Skip to content

Commit

Permalink
[tinker] Add TINKER_VERSION into AndroidManifest.xml in tinker-androi…
Browse files Browse the repository at this point in the history
…d-lib(-no-op) lib to pass maven central's artifact unique check.
  • Loading branch information
tys282000 committed Sep 10, 2021
1 parent 071a382 commit afcbebb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tinker-android/tinker-android-lib-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion

buildConfigField "String", "TINKER_VERSION", "\"${rootProject.ext.VERSION_NAME}\""

manifestPlaceholders = [TINKER_VERSION: "${rootProject.ext.VERSION_NAME}"]

consumerProguardFiles file('../consumer-proguard.txt')
}

Expand Down
4 changes: 4 additions & 0 deletions tinker-android/tinker-android-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion

buildConfigField "String", "TINKER_VERSION", "\"${rootProject.ext.VERSION_NAME}\""

manifestPlaceholders = [TINKER_VERSION: "${rootProject.ext.VERSION_NAME}"]

consumerProguardFiles file('../consumer-proguard.txt')
}

Expand Down

0 comments on commit afcbebb

Please sign in to comment.