123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- 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.1"
-
- defaultConfig {
- applicationId "com.exampleredux"
- minSdkVersion 16
- targetSdkVersion 22
- 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:+"
- debugCompile project(path: ':react-native-navigation', configuration: 'libraryDebug')
- releaseCompile project(path: ':react-native-navigation', configuration: 'libraryRelease')
-
- }
-
-
-
- task copyDownloadableDepsToLibs(type: Copy) {
- from configurations.compile
- into 'libs'
- }
|