Skip to content

Commit 7d23eef

Browse files
committed
[Android]update gradle config.
1 parent c53ad17 commit 7d23eef

5 files changed

Lines changed: 33 additions & 43 deletions

File tree

Android/APIExample/agora-simple-filter/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 31
5-
buildToolsVersion "31.0.0"
4+
compileSdkVersion 32
5+
buildToolsVersion "32.0.0"
66

77
defaultConfig {
8-
minSdkVersion 16
9-
targetSdkVersion 31
8+
minSdkVersion 21
9+
targetSdkVersion 32
1010
versionCode 1
1111
versionName "1.0"
1212

@@ -37,7 +37,6 @@ android {
3737
}
3838
}
3939

40-
ndkVersion '21.4.7075529'
4140
}
4241

4342
dependencies {

Android/APIExample/app/build.gradle

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: "androidx.navigation.safeargs"
32

43
def localSdkPath= "${rootProject.projectDir.absolutePath}/../../sdk"
54

65
android {
7-
compileSdkVersion 31
8-
buildToolsVersion "31.0.0"
6+
compileSdkVersion 32
7+
buildToolsVersion "32.0.0"
98

109
defaultConfig {
1110
applicationId "io.agora.api.example"
12-
minSdkVersion 19
13-
targetSdkVersion 29
11+
minSdkVersion 21
12+
targetSdkVersion 32
1413
versionCode 1
1514
versionName "1.0"
16-
1715
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1816
}
1917

@@ -38,7 +36,6 @@ android {
3836
}
3937
}
4038

41-
ndkVersion '21.4.7075529'
4239
}
4340

4441
dependencies {
@@ -67,15 +64,15 @@ dependencies {
6764
}
6865

6966

70-
implementation 'androidx.appcompat:appcompat:1.1.0'
71-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
67+
implementation 'androidx.appcompat:appcompat:1.5.0'
68+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
7269

7370
// Java language implementation
74-
implementation "androidx.navigation:navigation-fragment:2.3.0-alpha06"
75-
implementation "androidx.navigation:navigation-ui:2.3.0-alpha06"
71+
implementation "androidx.navigation:navigation-fragment:2.5.0"
72+
implementation "androidx.navigation:navigation-ui:2.5.0"
7673

7774
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
78-
implementation 'androidx.recyclerview:recyclerview:1.1.0'
75+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
7976
if (simpleFilter.toBoolean()) {
8077
implementation project(path: ':agora-simple-filter')
8178
}

Android/APIExample/build.gradle

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
3-
buildscript {
4-
repositories {
5-
mavenCentral()
6-
google()
7-
jcenter()
8-
9-
}
10-
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.4.2'
12-
13-
// NOTE: Do not place your application dependencies here; they belong
14-
// in the individual module build.gradle files
15-
16-
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0-alpha06"
17-
}
18-
}
19-
20-
allprojects {
21-
repositories {
22-
mavenCentral()
23-
google()
24-
jcenter()
25-
maven { url 'https://jitpack.io' }
26-
}
2+
plugins {
3+
id 'com.android.application' version '7.2.0' apply false
4+
id 'com.android.library' version '7.2.0' apply false
275
}
286

297
task clean(type: Delete) {

Android/APIExample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https://services.gradle.org/distributions/gradle-6.5-bin.zip
6+
distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

Android/APIExample/settings.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
mavenCentral()
6+
}
7+
}
8+
dependencyResolutionManagement {
9+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10+
repositories {
11+
mavenCentral()
12+
google()
13+
jcenter()
14+
maven { url 'https://jitpack.io' }
15+
}
16+
}
117
rootProject.name='APIExample'
218
include ':app'
319
if (simpleFilter.toBoolean()) {

0 commit comments

Comments
 (0)