Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle version #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ plugins {
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
compileSdkVersion 33

defaultConfig {
applicationId "com.sendbird.calls.quickstart.groupcall"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 33
versionCode 1
versionName "1.0.0"

Expand Down Expand Up @@ -44,10 +43,10 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'

// Sendbird Calls
implementation 'com.sendbird.sdk:sendbird-calls:1.6.0'
implementation 'com.sendbird.sdk:sendbird-calls:1.11.6'

// Glide
implementation 'com.github.bumptech.glide:glide:4.12.0'
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@
android:theme="@style/Theme.SendbirdRooms">
<activity
android:name="com.sendbird.calls.quickstart.groupcall.preview.PreviewActivity"
android:exported="false"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar" />
<activity
android:name="com.sendbird.calls.quickstart.groupcall.room.RoomActivity"
android:exported="false"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar" />
<activity
android:name="com.sendbird.calls.quickstart.groupcall.signin.SignInActivity"
android:exported="false"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar" />
<activity
android:name="com.sendbird.calls.quickstart.groupcall.splash.SplashActivity"
android:exported="true"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -30,6 +34,7 @@
</activity>
<activity
android:name="com.sendbird.calls.quickstart.groupcall.main.MainActivity"
android:exported="false"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar" />
</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,37 @@ class GroupCallViewModel(
_currentAudioDevice.postValue(currentAudioDevice)
}

override fun onCustomItemsDeleted(deletedKeys: List<String>) {
}

override fun onCustomItemsUpdated(updatedKeys: List<String>) {
}

override fun onDeleted() {
}

override fun onError(e: SendBirdException, participant: Participant?) {
Log.d(TAG, "onError() called with: e = $e, participant = $participant")
if (e.code == SendBirdError.ERR_LOCAL_PARTICIPANT_LOST_CONNECTION) {
// reconnection failed.
}
}

override fun onInvitationAccepted(roomInvitation: RoomInvitation) {
}

override fun onInvitationCanceled(roomInvitation: RoomInvitation) {
}

override fun onInvitationDeclined(roomInvitation: RoomInvitation) {
}

override fun onLocalParticipantDisconnected(participant: LocalParticipant) {
}

override fun onLocalParticipantReconnected(participant: LocalParticipant) {
}

override fun onRemoteAudioSettingsChanged(participant: RemoteParticipant) {
Log.d(TAG, "onRemoteAudioSettingsChanged() called with: participant = $participant")
_participants.postValue(_participants.value)
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.31"
ext.nav_version = "2.3.4"
ext.kotlin_version = '1.6.21'
ext.nav_version = '2.4.1'
ext.camerax_version = "1.0.0-rc03"
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip