55 lines
2.0 KiB
Groovy
55 lines
2.0 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
apply from: 'dependencies.gradle'
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:2.3.0'
|
|
// for ndk-build experimental
|
|
// classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha5'
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
subproject ->
|
|
afterEvaluate {
|
|
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
|
|
if (!android.compileSdkVersion) {
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
}
|
|
}
|
|
android {
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
// for those defined in AndroidManifest.xml
|
|
manifestPlaceholders = [
|
|
manifestApplicationId : "${applicationId}",
|
|
onesignal_app_id : "${ONESIGNAL_APP_ID}",
|
|
onesignal_google_project_number: "${ONESIGNAL_GOOGLE_PROJECT_NUMBER}",
|
|
facebook_app_id : "${FACEBOOK_APPID}",
|
|
// TA_APPKEY : "${MTA_APPKEY}",
|
|
// TA_INSTALL_CHANNEL : "${MTA_INSTALL_CHANNEL}"
|
|
]
|
|
}
|
|
lintOptions.abortOnError false
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/NOTICE'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
exclude 'META-INF/services/javax.annotation.processing.Processor'
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
} |