aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-11-23 00:01:34 +0100
committerpedroGitt <pedro.contreiras@amdocs.com>2016-11-23 00:01:34 +0100
commitc725a561a283f508e68516ded86d141214f5ea06 (patch)
treeecb0d02372fce147c65e99515c9b5989ea70db21 /java
parent04fd4c5a1301545419fb72533c57e4253085bdc0 (diff)
Add lib version as sufix in the aar file name
Diffstat (limited to 'java')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/build.gradle12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/build.gradle b/java/android/OlmLibSdk/olm-sdk/build.gradle
index 8138617..b02ca0c 100644
--- a/java/android/OlmLibSdk/olm-sdk/build.gradle
+++ b/java/android/OlmLibSdk/olm-sdk/build.gradle
@@ -11,6 +11,7 @@ android {
targetSdkVersion 21
versionCode 1
versionName "1.0"
+ version "0.3.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
@@ -61,6 +62,17 @@ android {
}
clean.dependsOn cleanNative
+
+
+ libraryVariants.all { variant ->
+ variant.outputs.each { output ->
+ def outputFile = output.outputFile
+ if (outputFile != null && outputFile.name.endsWith('.aar')) {
+ def fileName = outputFile.name.replace(".aar", "-${version}.aar")
+ output.outputFile = new File(outputFile.parent, fileName)
+ }
+ }
+ }
}
def getNdkFolder() {