Skip to content

Commit

Permalink
Updated the build to set the version number on the generated aar arti…
Browse files Browse the repository at this point in the history
…facts
  • Loading branch information
christianrowlands committed Apr 28, 2021
1 parent b393f8a commit 3835acd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MqttLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ android {
versionCode 2
versionName version

setProperty("archivesBaseName", "$applicationName-$versionName")

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.enableJetifier=true
applicationName=mqtt-library

0 comments on commit 3835acd

Please sign in to comment.