1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-05 12:06:01 +01:00
dandelion/app/build.gradle

97 lines
3 KiB
Groovy
Raw Normal View History

2016-03-03 17:46:31 +01:00
apply plugin: 'com.android.application'
2017-08-04 05:42:43 +02:00
ext {
version_sdk = [
2017-10-29 11:01:27 +01:00
compileSdk: 27,
minSdk : 17,
2017-08-04 05:42:43 +02:00
]
version_lib = [
appcompat : "27.0.0",
2017-10-29 11:01:27 +01:00
butterknife: "8.8.1",
netcipher : "2.0.0-alpha1",
2017-08-04 05:42:43 +02:00
]
}
2016-03-03 17:46:31 +01:00
2017-10-29 11:01:27 +01:00
2016-03-03 17:46:31 +01:00
android {
2017-08-04 05:42:43 +02:00
compileSdkVersion version_sdk.compileSdk
2017-10-29 11:01:27 +01:00
flavorDimensions "default"
2016-03-03 17:46:31 +01:00
defaultConfig {
2017-08-04 05:42:43 +02:00
minSdkVersion version_sdk.minSdk
2017-10-29 11:01:27 +01:00
targetSdkVersion version_sdk.compileSdk
buildConfigField "boolean", "IS_TEST_BUILD", "false"
buildConfigField "boolean", "IS_GPLAY_BUILD", "false"
buildConfigField("String[]", "APPLICATION_LANGUAGES", '{' + getUsedAndroidLanguages().collect {"\"${it}\""}.join(",") + '}')
2017-10-29 11:01:27 +01:00
buildConfigField "String", "GITHASH", "\"${getGitHash()}\""
2017-10-29 11:01:27 +01:00
applicationId "com.github.dfa.diaspora_android"
2017-10-28 09:56:33 +02:00
versionName "1.0.7"
2017-10-29 11:01:27 +01:00
versionCode 27
2017-05-03 23:48:22 +02:00
2017-10-29 11:01:27 +01:00
vectorDrawables.useSupportLibrary = true
2017-05-03 23:48:22 +02:00
resValue 'string', 'app_name', "dandelion*"
manifestPlaceholders = [appIcon: "@drawable/ic_launcher"]
2017-10-29 11:01:27 +01:00
}
2017-05-03 23:48:22 +02:00
2017-10-29 11:01:27 +01:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
2016-03-03 17:46:31 +01:00
}
2017-10-29 11:01:27 +01:00
2016-03-03 17:46:31 +01:00
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
2016-07-27 21:54:54 +02:00
2016-12-22 04:07:30 +01:00
productFlavors {
flavorDefault {
2016-12-22 04:07:30 +01:00
}
/*
flavorGplay {
2017-05-03 23:48:22 +02:00
buildConfigField "boolean", "IS_GPLAY_BUILD", "true"
2017-10-29 11:01:27 +01:00
}*/
flavorTest {
2017-05-03 23:48:22 +02:00
applicationId "com.github.dfa.secondlion"
resValue 'string', 'app_name', "secondlion*"
2017-05-03 23:48:22 +02:00
manifestPlaceholders = [appIcon: "@drawable/ic_launcher_test"]
2017-02-24 22:46:17 +01:00
versionCode = Integer.parseInt(new Date().format('yyMMdd'))
versionName = new Date().format('yyMMdd')
buildConfigField "boolean", "IS_TEST_BUILD", "true"
2016-12-22 04:07:30 +01:00
}
}
2016-07-27 21:54:54 +02:00
lintOptions {
disable 'MissingTranslation'
}
2016-03-03 17:46:31 +01:00
}
dependencies {
2016-05-05 17:42:29 +02:00
// Sub-Projects
2017-10-29 11:01:27 +01:00
//implementation project(':subprojectFromRoot')
2016-05-05 17:42:29 +02:00
// Jars
2017-10-29 11:01:27 +01:00
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
2016-05-05 17:42:29 +02:00
// Android standard libs
2017-10-29 11:01:27 +01:00
implementation "com.android.support:appcompat-v7:${version_lib.appcompat}"
implementation "com.android.support:design:${version_lib.appcompat}"
implementation "com.android.support:support-v4:${version_lib.appcompat}"
implementation "com.android.support:customtabs:${version_lib.appcompat}"
implementation "com.android.support:cardview-v7:${version_lib.appcompat}"
2016-05-05 17:42:29 +02:00
// UI libraries
2017-10-29 11:01:27 +01:00
implementation "com.github.DASAR:ShiftColorPicker:v0.5"
// Tool libraries
2017-10-29 11:01:27 +01:00
implementation "com.jakewharton:butterknife:${version_lib.butterknife}"
implementation "info.guardianproject.netcipher:netcipher:${version_lib.netcipher}"
implementation "info.guardianproject.netcipher:netcipher-webkit:${version_lib.netcipher}"
2017-08-04 05:42:43 +02:00
annotationProcessor "com.jakewharton:butterknife-compiler:${version_lib.butterknife}"
}