Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- desc "Clean, build development release"
- lane :dev do |options|
- if options[:clean]
- clean_android
- end
- rntest
- test
- gradle(
- task: "assemble",
- build_type: "debug",
- project_dir: "./")
- end
- apply plugin: "com.android.application"
- apply plugin: 'io.fabric'
- repositories {
- maven { url 'https://maven.fabric.io/public' }
- }
- import com.android.build.OutputFile
- project.ext.react = [
- entryFile: "index.js",
- bundleInRelease: true,
- bundleInDebug: false,
- bundleInStaging: true,
- ]
- apply from: "../../node_modules/react-native/react.gradle"
- def enableSeparateBuildPerCPUArchitecture = false
- /**
- * Run Proguard to shrink the Java bytecode in release builds.
- */
- def enableProguardInReleaseBuilds = false
- android {
- compileSdkVersion 25
- buildToolsVersion "25.0.1"
- defaultConfig {
- applicationId "be.appfoundry.digitalreceptionist"
- minSdkVersion 16
- targetSdkVersion 22
- versionCode 1
- def env = System.getenv()
- versionName "1.0.0." + env['BUILD_NUMBER']
- ndk {
- abiFilters "armeabi-v7a", "x86"
- }
- }
- signingConfigs {
- release {
- storeFile file(MYAPP_RELEASE_STORE_FILE)
- storePassword "afst18gv"
- keyAlias MYAPP_RELEASE_KEY_ALIAS
- keyPassword "afst18gv"
- }
- }
- splits {
- abi {
- reset()
- enable enableSeparateBuildPerCPUArchitecture
- universalApk false // If true, also generate a universal APK
- include "armeabi-v7a", "x86"
- }
- }
- buildTypes {
- staging {
- minifyEnabled enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- applicationIdSuffix ".staging"
- signingConfig signingConfigs.release
- }
- release {
- minifyEnabled enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- signingConfig signingConfigs.release
- }
- debug {
- applicationIdSuffix ".debug"
- }
- }
- dexOptions {
- jumboMode true
- }
- // 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 {
- compile project(':react-native-splash-screen')
- compile(project(':react-native-firebase')) {
- transitive = false
- }
- compile project(':react-native-push-notification')
- compile fileTree(include: ['*.jar'], dir: 'libs')
- compile 'com.android.support:appcompat-v7:23.0.1'
- compile 'com.facebook.react:react-native:+'
- compile project(':react-native-maps')
- compile project(':react-native-navigation')
- // From node_modules
- compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
- transitive = true
- }
- compile(project(':react-native-maps')){
- exclude group: 'com.google.android.gms', module: 'play-services-base'
- exclude group: 'com.google.android.gms', module: 'play-services-maps'
- }
- // Firebase dependencies
- compile "com.google.android.gms:play-services-base:11.8.0"
- compile "com.google.firebase:firebase-core:11.8.0"
- compile "com.google.firebase:firebase-auth:11.8.0"
- compile "com.google.firebase:firebase-firestore:11.8.0"
- compile "com.google.android.gms:play-services-maps:11.8.0"
- }
- // 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'
Add Comment
Please, Sign In to add comment