Skip to content

Commit

Permalink
Custom app version name and version code for android builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-raveendran committed May 27, 2024
1 parent 2ef1fa3 commit 39449a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def enableProguardInReleaseBuilds = false
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
def appVersionCode = Integer.valueOf(providers.environmentVariable(System.env.VERSION_CODE).get() ?: 1)
def appVersionName = providers.environmentVariable(System.env.VERSION_NAME).get() ?: "1.0"

android {
ndkVersion rootProject.ext.ndkVersion
Expand All @@ -81,8 +83,8 @@ android {
applicationId "io.dolby.rn.interactiveplayer"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
versionCode appVersionCode
versionName appVersionName
}
signingConfigs {
release {
Expand Down

0 comments on commit 39449a1

Please sign in to comment.