12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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 23
- buildToolsVersion "23.0.3"
-
- 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.android.support:appcompat-v7:23.0.1'
- compile 'com.facebook.react:react-native:+'
- compile project(':react-native-navigation')
- }
|