-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
68 lines (62 loc) · 2.3 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ext {
private1v1_is_modular = false
}
apply from: "${rootProject.getRootDir().absolutePath}/modular.gradle"
apply plugin: 'org.jetbrains.kotlin.android'
final def VERSION_SCENE_PRIVATE1V1 = "4.2.1"
android {
defaultConfig {
if(private1v1_is_modular){
applicationId "io.agora.private1v1"
buildConfigField "Boolean", "is_modular", "${true}"
}else {
buildConfigField "Boolean", "is_modular", "${false}"
}
buildConfigField "String", "VERSION", "\"${VERSION_SCENE_PRIVATE1V1}\""
}
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jniLibs']
// 独立调试与集成调试时使用不同的 AndroidManifest.xml 文件
if (private1v1_is_modular) {
manifest.srcFile 'src/main/moduleManifest/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/AndroidManifest.xml'
}
}
}
buildFeatures {
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation project(":common:base")
implementation project(':common:ui-widget')
implementation project(':common:scenario-api:lib_callapi')
implementation project(':common:scenario-api:lib_audioscenarioapi')
implementation project(':RTMSyncManager')
kapt rootProject.ext.deps.arouter_kapt
implementation rootProject.ext.deps.arouter
kapt rootProject.ext.deps.glide_compiler
implementation rootProject.ext.deps.glide
implementation rootProject.ext.deps.layout_kernel
implementation rootProject.ext.deps.header_classics
implementation rootProject.ext.deps.annotation
implementation rootProject.ext.deps.appcompat
implementation rootProject.ext.deps.lifecycle
implementation rootProject.ext.deps.lifecycle_runtime
implementation rootProject.ext.deps.fragment_ktx
implementation rootProject.ext.deps.core_ktx
implementation rootProject.ext.deps.constraintlayout
implementation rootProject.ext.deps.material
implementation rootProject.ext.deps.rtm
implementation rootProject.ext.deps.gson
}