11apply plugin : ' com.android.application'
2-
2+ apply plugin : ' org.jetbrains.kotlin.android '
33
44def sdkVersionFile = file(" ../gradle.properties" )
55def properties = new Properties ()
@@ -11,13 +11,13 @@ println("${rootProject.project.name} agoraSdkVersion: ${agoraSdkVersion}")
1111def localSdkPath= " ${ rootProject.projectDir.absolutePath} /../../sdk"
1212
1313android {
14- compileSdkVersion 32
15- buildToolsVersion " 32.0.0 "
14+ namespace " io.agora.api.example "
15+ compileSdk 35
1616
1717 defaultConfig {
1818 applicationId " io.agora.api.example.audio"
19- minSdkVersion 21
20- targetSdkVersion 32
19+ minSdkVersion 24
20+ targetSdkVersion 35
2121 versionCode 1
2222 versionName " 1.0"
2323
@@ -50,11 +50,12 @@ android {
5050 }
5151
5252 compileOptions {
53- sourceCompatibility JavaVersion . VERSION_1_8
54- targetCompatibility JavaVersion . VERSION_1_8
53+ sourceCompatibility = JavaVersion . VERSION_1_8
54+ targetCompatibility = JavaVersion . VERSION_1_8
55+ }
56+ kotlinOptions {
57+ jvmTarget = " 1.8"
5558 }
56-
57-
5859
5960 sourceSets {
6061 main {
@@ -67,6 +68,7 @@ android {
6768
6869 buildFeatures{
6970 viewBinding true
71+ buildConfig true
7072 }
7173
7274 applicationVariants. all {
@@ -96,18 +98,19 @@ dependencies {
9698 // implementation "io.agora.rtc:drm:${agoraSdkVersion}"
9799 }
98100
99- implementation ' androidx.appcompat:appcompat:1.5 .0'
101+ implementation ' androidx.appcompat:appcompat:1.7 .0'
100102 implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
103+ implementation " org.jetbrains.kotlin:kotlin-stdlib:1.8.22"
101104
102105 // Java language implementation
103- implementation " androidx.navigation:navigation-fragment:2.5 .0"
104- implementation " androidx.navigation:navigation-ui:2.5 .0"
106+ implementation " androidx.navigation:navigation-fragment:2.7 .0"
107+ implementation " androidx.navigation:navigation-ui:2.7 .0"
105108
106109 implementation ' androidx.legacy:legacy-support-v4:1.0.0'
107- implementation ' androidx.recyclerview:recyclerview:1.2.1 '
108- testImplementation ' junit:junit:4.12 '
109- androidTestImplementation ' androidx.test.ext:junit:1.1 .1'
110- androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0 '
110+ implementation ' androidx.recyclerview:recyclerview:1.3.2 '
111+ testImplementation ' junit:junit:4.13.2 '
112+ androidTestImplementation ' androidx.test.ext:junit:1.2 .1'
113+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.6.1 '
111114
112115 implementation ' io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.2.0'
113116 implementation ' de.javagl:obj:0.2.1'
0 commit comments