Skip to content

Commit

Permalink
[Android]Update gradle config.
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Apr 9, 2024
1 parent df32365 commit 9a948f0
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions Android/APIExample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ apply plugin: 'kotlin-android'
apply from: "${rootDir.absolutePath}/git-hooks.gradle"
apply from: 'vendors.gradle'

def agoraSdkVersion = "4.3.1"
def localSdkPath= "${rootProject.projectDir.absolutePath}/../../sdk"


android {
compileSdkVersion 32
buildToolsVersion "32.0.0"

defaultConfig {
applicationId "io.agora.test.entfull"
applicationId "io.agora.api.example"
minSdkVersion 21
targetSdkVersion 32
versionCode 1
Expand Down Expand Up @@ -55,6 +57,14 @@ android {
viewBinding true
}

applicationVariants.all {
variant ->
variant.outputs.all { output ->
outputFileName = new File(rootProject.name
+ "_" + agoraSdkVersion
+ "_" + new Date().format("yyyyMMddHHmm") + ".apk")
}
}
}

dependencies {
Expand All @@ -64,25 +74,24 @@ dependencies {
implementation fileTree(dir: "${localSdkPath}", include: ['*.jar', '*.aar'])
}
else {
def agora_sdk_version = "4.3.1"
// case 1: full libs
implementation "io.agora.rtc:full-sdk:${agora_sdk_version}"
implementation "io.agora.rtc:full-screen-sharing:${agora_sdk_version}"
implementation "io.agora.rtc:full-sdk:${agoraSdkVersion}"
implementation "io.agora.rtc:full-screen-sharing:${agoraSdkVersion}"
// case 2: partial libs
// implementation "io.agora.rtc:full-rtc-basic:${agora_sdk_version}"
// implementation "io.agora.rtc:ains:${agora_sdk_version}"
// implementation "io.agora.rtc:full-content-inspect:${agora_sdk_version}"
// implementation "io.agora.rtc:full-virtual-background:${agora_sdk_version}"
// implementation "io.agora.rtc:full-super-resolution:${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:clear-vision:${agora_sdk_version}"
// implementation "io.agora.rtc:pvc:${agora_sdk_version}"
// implementation "io.agora.rtc:screen-capture:${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 "io.agora.rtc:full-vqa:${agora_sdk_version}"
// implementation "io.agora.rtc:full-rtc-basic:${agoraSdkVersion}"
// implementation "io.agora.rtc:ains:${agoraSdkVersion}"
// implementation "io.agora.rtc:full-content-inspect:${agoraSdkVersion}"
// implementation "io.agora.rtc:full-virtual-background:${agoraSdkVersion}"
// implementation "io.agora.rtc:full-super-resolution:${agoraSdkVersion}"
// implementation "io.agora.rtc:spatial-audio:${agoraSdkVersion}"
// implementation "io.agora.rtc:audio-beauty:${agoraSdkVersion}"
// implementation "io.agora.rtc:clear-vision:${agoraSdkVersion}"
// implementation "io.agora.rtc:pvc:${agoraSdkVersion}"
// implementation "io.agora.rtc:screen-capture:${agoraSdkVersion}"
// implementation "io.agora.rtc:aiaec:${agoraSdkVersion}"
// implementation "io.agora.rtc:drm-loader:${agoraSdkVersion}"
// implementation "io.agora.rtc:drm:${agoraSdkVersion}"
// implementation "io.agora.rtc:full-vqa:${agoraSdkVersion}"
}


Expand Down

0 comments on commit 9a948f0

Please sign in to comment.