Commit 9e18bf6b authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed debug AAR used instead of release while creating a release if both exists

parent 350fc029
Pipeline #3727 failed with stages
in 1 minute and 55 seconds
......@@ -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+"
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'))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment