forked from AgoraIO/API-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (68 loc) · 2.76 KB
/
build.gradle
File metadata and controls
82 lines (68 loc) · 2.76 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
apply plugin: 'com.android.application'
def localSdkPath= "${rootProject.projectDir.absolutePath}/../../sdk"
android {
compileSdkVersion 32
buildToolsVersion "32.0.0"
defaultConfig {
applicationId "io.agora.api.example.audio"
minSdkVersion 21
targetSdkVersion 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
jniLibs.srcDirs += 'src/main/jniLibs'
if(new File("${localSdkPath}").exists()){
jniLibs.srcDirs += "${localSdkPath}"
}
}
}
buildFeatures{
viewBinding true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
if(new File("${localSdkPath}").exists()){
implementation fileTree(dir: "${localSdkPath}", include: ['*.jar', '*.aar'])
}
else{
def agora_sdk_version = "4.1.1"
// case 1: full single lib with voice only
implementation "io.agora.rtc:voice-sdk:${agora_sdk_version}"
// case 2: partial libs with voice only
// implementation "io.agora.rtc:voice-rtc-basic:${agora_sdk_version}"
// implementation "io.agora.rtc:spatial-audio:${agora_sdk_version}"
// implementation "io.agora.rtc:audio-beauty:${agora_sdk_version}"
// implementation "io.agora.rtc:aiaec:${agora_sdk_version}"
// implementation "io.agora.rtc:drm-loader:${agora_sdk_version}"
// implementation "io.agora.rtc:drm:${agora_sdk_version}"
}
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// Java language implementation
implementation "androidx.navigation:navigation-fragment:2.5.0"
implementation "androidx.navigation:navigation-ui:2.5.0"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.2.0'
implementation 'com.yanzhenjie:permission:2.0.3'
implementation 'de.javagl:obj:0.2.1'
implementation "com.squareup.okhttp3:okhttp:4.10.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
}