Fixed debug AAR used instead of release while creating a release if both exists
This commit is contained in:
parent
350fc02997
commit
9e18bf6bcf
2 changed files with 6 additions and 4 deletions
|
@ -151,7 +151,8 @@ dependencies {
|
|||
implementation 'com.github.bumptech.glide:glide:4.9.0'
|
||||
|
||||
if (isLocalAarAvailable()) {
|
||||
implementation project(":linphone-sdk-android")
|
||||
debugImplementation project(path: ":linphone-sdk-android", configuration: 'debug')
|
||||
releaseImplementation project(path: ":linphone-sdk-android", configuration: 'release')
|
||||
} else {
|
||||
implementation "org.linphone:linphone-sdk-android:4.1+"
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
configurations.maybeCreate("default")
|
||||
configurations.maybeCreate("debug")
|
||||
configurations.maybeCreate("release")
|
||||
|
||||
File debugAar = new File('linphone-sdk-android/linphone-sdk-android-debug.aar')
|
||||
File releaseAar = new File('linphone-sdk-android/linphone-sdk-android-release.aar')
|
||||
|
||||
if (debugAar.exists()) {
|
||||
artifacts.add("default", file('linphone-sdk-android-debug.aar'))
|
||||
artifacts.add("debug", file('linphone-sdk-android-debug.aar'))
|
||||
}
|
||||
if (releaseAar.exists()) {
|
||||
artifacts.add("default", file('linphone-sdk-android-release.aar'))
|
||||
artifacts.add("release", file('linphone-sdk-android-release.aar'))
|
||||
}
|
Loading…
Reference in a new issue