@@ -95,49 +95,39 @@ def enableProguardInReleaseBuilds = false
95
95
96
96
android {
97
97
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
+ }
99
103
100
104
defaultConfig {
101
105
applicationId " com.reactnativefastimageexample"
102
106
minSdkVersion rootProject. ext. minSdkVersion
103
107
targetSdkVersion rootProject. ext. targetSdkVersion
104
108
versionCode 1
105
109
versionName " 1.0"
106
- ndk {
107
- abiFilters " armeabi-v7a" , " x86"
108
- }
109
- }
110
- signingConfigs {
111
- release {
112
- if (project. hasProperty(' MYAPP_RELEASE_STORE_FILE' )) {
113
- storeFile file(MYAPP_RELEASE_STORE_FILE )
114
- storePassword MYAPP_RELEASE_STORE_PASSWORD
115
- keyAlias MYAPP_RELEASE_KEY_ALIAS
116
- keyPassword MYAPP_RELEASE_KEY_PASSWORD
117
- }
118
- }
119
110
}
120
111
splits {
121
112
abi {
122
113
reset()
123
114
enable enableSeparateBuildPerCPUArchitecture
124
115
universalApk false // If true, also generate a universal APK
125
- include " armeabi-v7a" , " x86"
116
+ include " armeabi-v7a" , " x86" , " arm64-v8a " , " x86_64 "
126
117
}
127
118
}
128
119
buildTypes {
129
120
release {
130
121
minifyEnabled enableProguardInReleaseBuilds
131
122
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
132
- signingConfig signingConfigs. release
133
123
}
134
124
}
135
125
// applicationVariants are e.g. debug, release
136
126
applicationVariants. all { variant ->
137
127
variant. outputs. each { output ->
138
128
// For each separate APK per architecture, set a unique version code as described here:
139
129
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
140
- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
130
+ def versionCodes = [" armeabi-v7a" :1 , " x86" :2 , " arm64-v8a " : 3 , " x86_64 " : 4 ]
141
131
def abi = output. getFilter(OutputFile . ABI )
142
132
if (abi != null ) { // null for the universal-debug, universal-release variants
143
133
output. versionCodeOverride =
@@ -148,6 +138,7 @@ android {
148
138
}
149
139
150
140
dependencies {
141
+ implementation project(' :react-native-gesture-handler' )
151
142
implementation project(' :react-native-vector-icons' )
152
143
implementation project(' :react-native-image-picker' )
153
144
implementation project(' :react-native-fast-image' )
0 commit comments