Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Add support for Android's archivesBaseName property #202

Merged
merged 4 commits into from
Mar 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class AndroidArtifacts implements Artifacts {
}

def mainJar(Project project) {
"$project.buildDir/outputs/aar/${project.name}-${variant.baseName}.aar"
def archiveBaseName = project.hasProperty("archivesBaseName") ? project.getProperty("archivesBaseName") : project.name
"$project.buildDir/outputs/aar/$archiveBaseName-${variant.baseName}.aar"
}

def from(Project project) {
Expand Down
1 change: 1 addition & 0 deletions samples/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ android {
targetSdkVersion 27
versionCode 1
versionName "1.0.0"
archivesBaseName = "$archivesBaseName-$versionName"
}
}

Expand Down