1- apply plugin : " com.android.application"
21apply plugin : ' com.onesignal.androidsdk.onesignal-gradle-plugin'
2+ apply plugin : " com.android.application"
33
44import com.android.build.OutputFile
55
@@ -78,7 +78,6 @@ project.ext.react = [
7878]
7979
8080apply from : " ../../node_modules/react-native/react.gradle"
81- apply from : " ../../node_modules/react-native-sentry/sentry.gradle"
8281
8382/**
8483 * Set this to true to create two separate APKs instead of one:
@@ -88,6 +87,7 @@ apply from: "../../node_modules/react-native-sentry/sentry.gradle"
8887 * Upload all the APKs to the Play Store and people will download
8988 * the correct one based on the CPU architecture of their device.
9089 */
90+ def useIntlJsc = false
9191def enableSeparateBuildPerCPUArchitecture = false
9292
9393/**
@@ -103,8 +103,8 @@ android {
103103 applicationId " org.break_out.breakout"
104104 minSdkVersion rootProject. ext. minSdkVersion
105105 targetSdkVersion rootProject. ext. targetSdkVersion
106- versionCode 50
107- versionName " 50 "
106+ versionCode 52
107+ versionName " 52 "
108108 ndk {
109109 abiFilters " armeabi-v7a" , " x86"
110110 }
@@ -141,7 +141,7 @@ android {
141141 variant. outputs. each { output ->
142142 // For each separate APK per architecture, set a unique version code as described here:
143143 // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
144- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
144+ def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a " : 3 , " x86_64 " : 4 ]
145145 def abi = output. getFilter(OutputFile . ABI )
146146 if (abi != null ) { // null for the universal-debug, universal-release variants
147147 output. versionCodeOverride =
@@ -152,18 +152,18 @@ android {
152152}
153153
154154dependencies {
155- compile project(' :react-native-device-info' )
156- compile project(' :rn-fetch-blob' )
157- compile project(' :react-native-video' )
158- compile project(' :react-native-sentry' )
159- compile project(' :react-native-maps' )
160- compile project(' :react-native-localization' )
161- compile project(' :react-native-image-picker' )
162- compile project(' :react-native-onesignal' )
155+ implementation project(' :react-native-onesignal' )
163156 implementation fileTree(dir : " libs" , include : [" *.jar" ])
164- implementation " com.android.support: support-v4:${ rootProject.ext.supportLibVersion } "
165- implementation " com.android.support :appcompat-v7: ${ rootProject.ext.supportLibVersion } "
157+ implementation ' androidx.legacy:legacy- support-v4:1.0.0 '
158+ implementation ' androidx.appcompat :appcompat:1.0.0 '
166159 implementation " com.facebook.react:react-native:+" // From node_modules
160+
161+ // JSC from node_modules
162+ if (useIntlJsc) {
163+ implementation ' org.webkit:android-jsc-intl:+'
164+ } else {
165+ implementation ' org.webkit:android-jsc:+'
166+ }
167167}
168168
169169// Run this once to be able to run the application with BUCK
@@ -172,3 +172,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
172172 from configurations. compile
173173 into ' libs'
174174}
175+
176+ apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments