Skip to content

Commit 2467435

Browse files
Include version number in aar output file
1 parent 63472e6 commit 2467435

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

android-database-sqlcipher/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
minSdkVersion 14
1111
targetSdkVersion 26
1212
versionCode 1
13-
versionName "${rootProject.ext.clientVersionNumber}"
13+
versionName "${clientVersionNumber}"
1414
}
1515

1616
buildTypes {
@@ -33,6 +33,13 @@ android {
3333
afterEvaluate {
3434
android.libraryVariants.all { variant ->
3535
variant.javaCompile.dependsOn([buildNative32, buildNative64])
36+
variant.outputs.each { output ->
37+
def outputFile = output.outputFile
38+
if (outputFile != null && outputFile.name.endsWith(".aar")) {
39+
def fileName = "${archivesBaseName}-${clientVersionNumber}.aar"
40+
output.outputFile = new File(outputFile.parent, fileName)
41+
}
42+
}
3643
}
3744
}
3845

0 commit comments

Comments
 (0)