@@ -96,6 +96,11 @@ def enableProguardInReleaseBuilds = true
96
96
android {
97
97
compileSdkVersion rootProject. ext. compileSdkVersion
98
98
99
+ compileOptions {
100
+ sourceCompatibility JavaVersion . VERSION_1_8
101
+ targetCompatibility JavaVersion . VERSION_1_8
102
+ }
103
+
99
104
defaultConfig {
100
105
applicationId rootProject. ext. applicationId
101
106
minSdkVersion rootProject. ext. minSdkVersion
@@ -108,7 +113,7 @@ android {
108
113
reset()
109
114
enable enableSeparateBuildPerCPUArchitecture
110
115
universalApk false // If true, also generate a universal APK
111
- include " armeabi-v7a" , " x86"
116
+ include " armeabi-v7a" , " x86" , " arm64-v8a " , " x86_64 "
112
117
}
113
118
}
114
119
buildTypes {
@@ -126,7 +131,7 @@ android {
126
131
variant. outputs. each { output ->
127
132
// For each separate APK per architecture, set a unique version code as described here:
128
133
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
129
- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
134
+ def versionCodes = [" armeabi-v7a" :1 , " x86" :2 , " arm64-v8a " : 3 , " x86_64 " : 4 ]
130
135
def abi = output. getFilter(OutputFile . ABI )
131
136
if (abi != null ) { // null for the universal-debug, universal-release variants
132
137
output. versionCodeOverride =
@@ -137,6 +142,7 @@ android {
137
142
}
138
143
139
144
dependencies {
145
+ implementation project(' :@react-native-community_async-storage' )
140
146
implementation fileTree(dir : " libs" , include : [" *.jar" ])
141
147
implementation " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion} "
142
148
implementation " com.facebook.react:react-native:+" // From node_modules
0 commit comments