File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
group = " io.agora.agorartm.agora_rtm"
2
2
version = " 1.0"
3
3
4
+ def safeExtGet (prop , fallback ) {
5
+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
6
+ }
7
+
4
8
buildscript {
5
9
repositories {
6
10
google()
@@ -26,16 +30,23 @@ android {
26
30
namespace = " io.agora.agorartm.agora_rtm"
27
31
}
28
32
29
- compileSdk = 34
33
+ compileSdkVersion safeExtGet( ' compileSdkVersion ' , 31 )
30
34
31
35
compileOptions {
32
36
sourceCompatibility = JavaVersion . VERSION_1_8
33
37
targetCompatibility = JavaVersion . VERSION_1_8
34
38
}
35
39
36
40
defaultConfig {
41
+ minSdkVersion safeExtGet(' minSdkVersion' , 21 )
37
42
minSdk = 16
38
43
consumerProguardFiles ' consumer-rules.pro'
44
+
45
+ externalNativeBuild {
46
+ cmake {
47
+ arguments ' -DANDROID_STL=c++_static'
48
+ }
49
+ }
39
50
}
40
51
41
52
sourceSets {
@@ -45,6 +56,12 @@ android {
45
56
}
46
57
}
47
58
59
+ externalNativeBuild {
60
+ cmake {
61
+ path ' ../src/CMakeLists.txt'
62
+ }
63
+ }
64
+
48
65
dependencies {
49
66
testImplementation(" junit:junit:4.13.2" )
50
67
testImplementation(" org.mockito:mockito-core:5.0.0" )
You can’t perform that action at this time.
0 commit comments