@@ -95,24 +95,25 @@ def enableProguardInReleaseBuilds = false
9595
9696android {
9797 compileSdkVersion rootProject. ext. compileSdkVersion
98- buildToolsVersion rootProject. ext. buildToolsVersion
98+
99+ compileOptions {
100+ sourceCompatibility JavaVersion . VERSION_1_8
101+ targetCompatibility JavaVersion . VERSION_1_8
102+ }
99103
100104 defaultConfig {
101105 applicationId " com.sampleapp"
102106 minSdkVersion rootProject. ext. minSdkVersion
103107 targetSdkVersion rootProject. ext. targetSdkVersion
104108 versionCode 1
105109 versionName " 1.0"
106- ndk {
107- abiFilters " armeabi-v7a" , " x86"
108- }
109110 }
110111 splits {
111112 abi {
112113 reset()
113114 enable enableSeparateBuildPerCPUArchitecture
114115 universalApk false // If true, also generate a universal APK
115- include " armeabi-v7a" , " x86"
116+ include " armeabi-v7a" , " x86" , " arm64-v8a " , " x86_64 "
116117 }
117118 }
118119 buildTypes {
@@ -126,7 +127,7 @@ android {
126127 variant. outputs. each { output ->
127128 // For each separate APK per architecture, set a unique version code as described here:
128129 // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
129- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
130+ def versionCodes = [" armeabi-v7a" :1 , " x86" :2 , " arm64-v8a " : 3 , " x86_64 " : 4 ]
130131 def abi = output. getFilter(OutputFile . ABI )
131132 if (abi != null ) { // null for the universal-debug, universal-release variants
132133 output. versionCodeOverride =
@@ -137,9 +138,9 @@ android {
137138}
138139
139140dependencies {
140- compile fileTree(dir : " libs" , include : [" *.jar" ])
141- compile " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion} "
142- compile " com.facebook.react:react-native:+" // From node_modules
141+ implementation fileTree(dir : " libs" , include : [" *.jar" ])
142+ implementation " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion} "
143+ implementation " com.facebook.react:react-native:+" // From node_modules
143144}
144145
145146// Run this once to be able to run the application with BUCK
0 commit comments