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

Commit

Permalink
Merge pull request #202 from steurt/master
Browse files Browse the repository at this point in the history
Add support for Android's archivesBaseName property
  • Loading branch information
takecare authored Mar 26, 2018
2 parents 847b34d + 2f3f257 commit 165d01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit 165d01d

Please sign in to comment.