123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- apply plugin: "com.android.application"
-
- import com.android.build.OutputFile
- apply from: "../../node_modules/react-native/react.gradle"
-
-
- def enableSeparateBuildPerCPUArchitecture = false
-
-
- def enableProguardInReleaseBuilds = false
-
- android {
- compileSdkVersion 25
- buildToolsVersion "25.0.1"
-
- defaultConfig {
- applicationId "com.example"
- minSdkVersion 16
- targetSdkVersion 23
- versionCode 1
- versionName "1.0"
- ndk {
- abiFilters "armeabi-v7a", "x86"
- }
- }
- splits {
- abi {
- reset()
- enable enableSeparateBuildPerCPUArchitecture
- universalApk false
- include "armeabi-v7a", "x86"
- }
- }
- buildTypes {
- release {
- minifyEnabled enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- }
- }
-
- applicationVariants.all { variant ->
- variant.outputs.each { output ->
-
-
- def versionCodes = ["armeabi-v7a": 1, "x86": 2]
- def abi = output.getFilter(OutputFile.ABI)
- if (abi != null) {
- output.versionCodeOverride =
- versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
- }
- }
- }
- }
-
- dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.facebook.react:react-native:+'
- compile project(':react-native-navigation')
- }
|