Browse Source

Adds android version variable.

The variables in gradle.properties can be overridden on command line like: -Pversion=1.
master
damencho 9 years ago
parent
commit
e5dc7058c1
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      android/app/build.gradle
  2. 1
    0
      android/gradle.properties

+ 2
- 2
android/app/build.gradle View File

101
         applicationId 'org.jitsi.jitsi_meet_react'
101
         applicationId 'org.jitsi.jitsi_meet_react'
102
         minSdkVersion 16
102
         minSdkVersion 16
103
         targetSdkVersion 22
103
         targetSdkVersion 22
104
-        versionCode 1
105
-        versionName '1.0'
104
+        versionCode Integer.parseInt("${version}")
105
+        versionName "1.0.${version}"
106
         ndk {
106
         ndk {
107
             abiFilters 'armeabi-v7a', 'x86'
107
             abiFilters 'armeabi-v7a', 'x86'
108
         }
108
         }

+ 1
- 0
android/gradle.properties View File

18
 # org.gradle.parallel=true
18
 # org.gradle.parallel=true
19
 
19
 
20
 android.useDeprecatedNdk=true
20
 android.useDeprecatedNdk=true
21
+version=1

Loading…
Cancel
Save