Created
August 7, 2018 08:01
-
-
Save DrSterling/455698a4faed0adb633e7ea782c03180 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| repositories { | |
| maven { | |
| url 'https://maven.fabric.io/public' | |
| } | |
| jcenter() | |
| google() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.1.3' | |
| classpath 'com.google.gms:google-services:3.1.2' | |
| classpath 'io.fabric.tools:gradle:1.+' | |
| } | |
| } | |
| allprojects { | |
| repositories { | |
| jcenter() | |
| maven { | |
| name "Fyber's maven repo" | |
| url "https://fyber.bintray.com/maven" | |
| } | |
| google() | |
| } | |
| } | |
| apply plugin: 'com.android.application' | |
| def apkOutputFileName = "/home/jenkins/workspace/Output_android_dev/BuildResult/android_google.apk" | |
| android { | |
| compileSdkVersion 24 | |
| /* | |
| Have to make this error as a warning: | |
| strings.xml:3: Error: "engine_jni_activity" is not translated in "da" (Danish), "de" (German), "es" (Spanish), "fr" (French), "it" (Italian), "ja" (Japanese), "ko" (Korean), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "pt-PT" (Portuguese: Portugal), "ru" (Russian), "sv" (Swedish), "zh" (Chinese) [MissingTranslation] | |
| */ | |
| lintOptions { | |
| warning 'MissingTranslation' | |
| } | |
| defaultConfig { | |
| applicationId "com.android.app" | |
| multiDexEnabled true | |
| minSdkVersion 15 | |
| targetSdkVersion 24 | |
| ndk { | |
| abiFilters "armeabi-v7a", "x86" | |
| } | |
| externalNativeBuild { | |
| cmake { | |
| arguments "-DENGINE_PUBLISHER=1", "-DENGINE_PUBLISHER_CMAKE_INCLUDE_SRCS_FILE=/home/jenkins/workspace/Output_android_dev/BuildResult/Plugins.cmake", "-DANDROID_PLATFORM=android-9", "-DANDROID_PIE=TRUE", "-DANDROID_TOOLCHAIN=clang", "-DANDROID_CPP_FEATURES=exceptions" | |
| } | |
| } | |
| } | |
| sourceSets { | |
| main { | |
| manifest.srcFile 'AndroidManifest.xml' | |
| java.srcDirs = ['src'] | |
| resources.srcDirs = ['src'] | |
| aidl.srcDirs = ['src'] | |
| renderscript.srcDirs = ['src'] | |
| res.srcDirs = ['res'] | |
| jniLibs.srcDirs = ['jniLibs'] | |
| assets.srcDirs = ['assets'] | |
| } | |
| } | |
| signingConfigs { | |
| release { | |
| storeFile file("/home/jenkins/workspace/Output_android_dev/BuildResult/keystore/fg_dev/google.keystore") | |
| storePassword "android" | |
| keyAlias "androiddebugkey" | |
| keyPassword "android" | |
| } | |
| } | |
| buildTypes { | |
| release { | |
| minifyEnabled true | |
| proguardFiles getDefaultProguardFile('proguard-android.txt') | |
| signingConfig signingConfigs.release | |
| } | |
| } | |
| applicationVariants.all { variant -> | |
| variant.outputs.all { output -> | |
| output.outputFileName = new File(output.outputFile.getParent()).toPath().relativize(new File(apkOutputFileName).toPath()).toFile() | |
| } | |
| } | |
| externalNativeBuild { | |
| cmake { | |
| path '..//../../CMakeLists.txt' | |
| } | |
| } | |
| aaptOptions { | |
| noCompress 'pak', '.pak' | |
| } | |
| } | |
| task cleanExtra(type: Delete) { | |
| delete apkOutputFileName | |
| } | |
| clean.dependsOn(cleanExtra) | |
| ext { | |
| googleServicesLibraryVersion = "11.8.0" | |
| } | |
| dependencies { | |
| implementation 'com.android.support:multidex:1.0.1' | |
| implementation project(path: ':main') | |
| // Required to avoid 'google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.' error | |
| implementation "com.google.firebase:firebase-messaging:$googleServicesLibraryVersion" | |
| implementation project(':Plugin-AppsFlyer') | |
| implementation project(':Plugin-Fyber') | |
| } | |
| configurations.all { | |
| resolutionStrategy.eachDependency { details -> | |
| if (details.requested.group == 'com.android.support' | |
| && !details.requested.name.contains('multidex')) { | |
| details.useVersion "25.3.1" | |
| } | |
| } | |
| } | |
| apply plugin: 'com.google.gms.google-services' | |
| apply plugin: 'io.fabric' | |
| crashlytics { | |
| enableNdk true | |
| manifestPath 'AndroidManifest.xml' | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment