@@ -96,24 +96,25 @@ def enableProguardInReleaseBuilds = false
9696
9797android {
9898 compileSdkVersion rootProject. ext. compileSdkVersion
99- buildToolsVersion rootProject. ext. buildToolsVersion
99+
100+ compileOptions {
101+ sourceCompatibility JavaVersion . VERSION_1_8
102+ targetCompatibility JavaVersion . VERSION_1_8
103+ }
100104
101105 defaultConfig {
102- applicationId " com.codepushdemoapp "
106+ applicationId " com.codepushdemo "
103107 minSdkVersion rootProject. ext. minSdkVersion
104108 targetSdkVersion rootProject. ext. targetSdkVersion
105- versionCode 20180818
109+ versionCode 20190504
106110 versionName " 5.6.0"
107- ndk {
108- abiFilters " armeabi-v7a" , " x86"
109- }
110111 }
111112 splits {
112113 abi {
113114 reset()
114115 enable enableSeparateBuildPerCPUArchitecture
115116 universalApk false // If true, also generate a universal APK
116- include " armeabi-v7a" , " x86"
117+ include " armeabi-v7a" , " x86" , " arm64-v8a " , " x86_64 "
117118 }
118119 }
119120 signingConfigs {
@@ -136,7 +137,7 @@ android {
136137 variant. outputs. each { output ->
137138 // For each separate APK per architecture, set a unique version code as described here:
138139 // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
139- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
140+ def versionCodes = [" armeabi-v7a" :1 , " x86" :2 , " arm64-v8a " : 3 , " x86_64 " : 4 ]
140141 def abi = output. getFilter(OutputFile . ABI )
141142 if (abi != null ) { // null for the universal-debug, universal-release variants
142143 output. versionCodeOverride =
@@ -147,10 +148,10 @@ android {
147148}
148149
149150dependencies {
150- compile project(' :react-native-code-push' )
151- compile fileTree(dir : " libs" , include : [" *.jar" ])
152- compile " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion} "
153- compile " com.facebook.react:react-native:+" // From node_modules
151+ implementation project(' :react-native-code-push' )
152+ implementation fileTree(dir : " libs" , include : [" *.jar" ])
153+ implementation " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion} "
154+ implementation " com.facebook.react:react-native:+" // From node_modules
154155}
155156
156157// Run this once to be able to run the application with BUCK
0 commit comments