From 2ef1fa32ce15363a4d1c93153128fbec39d03b2f Mon Sep 17 00:00:00 2001 From: Aravind Raveendran Date: Mon, 27 May 2024 16:11:09 +1000 Subject: [PATCH 1/2] Add missing `com.github.triplet.play` plugin --- android/app/build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index c2bbf30..f8c312d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,7 +1,9 @@ -apply plugin: "com.android.application" -apply plugin: "com.facebook.react" -apply plugin: "org.jetbrains.kotlin.android" - +plugins { + id 'com.android.application' + id 'com.facebook.react' + id 'org.jetbrains.kotlin.android' + id 'com.github.triplet.play' version '3.9.1' +} /** * This is the configuration block to customize your React Native Android app. * By default you don't need to apply any configuration, just uncomment the lines you need. From 514fddd71cca86068043a3e564f8801497f4866f Mon Sep 17 00:00:00 2001 From: Aravind Raveendran Date: Mon, 27 May 2024 16:33:56 +1000 Subject: [PATCH 2/2] Custom app version name and version code for android builds --- android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index f8c312d..3d48ccd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -81,8 +81,8 @@ android { applicationId "io.dolby.rn.interactiveplayer" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0" + versionCode Integer.valueOf(System.env.VERSION_CODE ?: 1) + versionName System.env.VERSION_NAME ?: "1.0" } signingConfigs { release {