Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def enableProguardInReleaseBuilds = false
- android {
- compileSdkVersion 26
- buildToolsVersion '27.0.3'
- defaultConfig {
- applicationId "com.afbmobile"
- minSdkVersion 16
- targetSdkVersion 26
- versionCode 1
- versionName "1.0"
- ndk {
- abiFilters "armeabi-v7a", "x86"
- }
- }
- signingConfigs {
- release {
- if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
- storeFile file(MYAPP_RELEASE_STORE_FILE)
- storePassword MYAPP_RELEASE_STORE_PASSWORD
- keyAlias MYAPP_RELEASE_KEY_ALIAS
- keyPassword MYAPP_RELEASE_KEY_PASSWORD
- }
- }
- }
- buildTypes {
- release {
- debuggable false
- // minifyEnabled true
- // shrinkResources true
- signingConfig signingConfigs.release
- // minifyEnabled enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- }
- }
- splits {
- abi {
- reset()
- enable enableSeparateBuildPerCPUArchitecture
- universalApk false // If true, also generate a universal APK
- include "armeabi-v7a", "x86"
- }
- }
- // buildTypes {
- // release {
- // minifyEnabled enableProguardInReleaseBuilds
- // proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- // }
- // }
- // applicationVariants are e.g. debug, release
- 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
- }
- }
- }
- }
- dependencies {
- implementation project(':react-native-maps')
- implementation project(':react-native-device-info')
- implementation project(':react-native-i18n')
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation "com.android.support:appcompat-v7:23.0.1"
- implementation "com.facebook.react:react-native:+" // From node_modules
- implementation 'com.facebook.fresco:animated-gif:1.3.0'
- implementation(project(':react-native-maps')) {
- exclude group: 'com.google.android.gms', module: 'play-services-base'
- exclude group: 'com.google.android.gms', module: 'play-services-maps'
- }
- implementation 'com.google.android.gms:play-services-base:11.0.4'
- implementation 'com.google.android.gms:play-services-maps:11.0.4'
- }
- // 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'
- }
Add Comment
Please, Sign In to add comment