apply plugin: "com.android.application" import com.android.build.OutputFile project.ext.react = [ entryFile: "index.js" ] apply from: "../../node_modules/react-native/react.gradle" def enableSeparateBuildPerCPUArchitecture = false def enableProguardInReleaseBuilds = false android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { applicationId "by.mts.money" minSdkVersion 16 targetSdkVersion 26 versionCode 32 versionName "2.2.1" multiDexEnabled true ndk { abiFilters "armeabi-v7a", "x86" } missingDimensionStrategy 'react-native-camera', 'mlkit' } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86" } } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits def versionCodes = ["armeabi-v7a": 1, "x86": 2] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } productFlavors { } } dependencies { implementation project(':react-native-maps') compile project(':@react-native-community_async-storage') compile project(':react-native-camera') compile project(':react-native-webview') compile project(':react-native-svg') compile project(':react-native-firebase') compile project(':react-native-wheel-datepicker') compile project(':react-native-splash-screen') compile (project(':react-native-device-info')) { exclude group: "com.google.android.gms" } implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':react-native-text-input-mask') compile project(':react-native-text-input-mask') compile project(':react-native-vector-icons') compile project(':react-native-fcm') implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.facebook.react:react-native:+' implementation 'com.google.firebase:firebase-core:16.0.4' implementation 'com.google.firebase:firebase-messaging:17.3.3' implementation 'com.android.support:support-v4' compile('com.crashlytics.sdk.android:crashlytics:+'); compile 'com.android.support:multidex:1.0.3' } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } apply plugin: 'com.google.gms.google-services' apply plugin: "io.fabric"