Magisk/app/build.gradle

82 lines
2.7 KiB
Groovy
Raw Normal View History

2017-12-04 07:21:55 +01:00
apply plugin: 'com.android.application'
2016-08-05 18:58:05 +02:00
2018-08-20 06:02:38 +02:00
def configProps = new Properties()
def configPath = project.hasProperty('configPath') ? project.configPath : rootProject.file('config.prop')
configProps.load(new FileInputStream(configPath))
2018-08-20 06:02:38 +02:00
2017-12-04 07:21:55 +01:00
android {
defaultConfig {
2019-01-30 09:10:12 +01:00
applicationId 'com.topjohnwu.magisk'
2018-12-27 07:35:55 +01:00
vectorDrawables.useSupportLibrary = true
2016-08-05 18:58:05 +02:00
}
2018-08-20 06:02:38 +02:00
signingConfigs {
config {
storeFile rootProject.file('release-key.jks')
storePassword configProps['keyStorePass']
keyAlias configProps['keyAlias']
keyPassword configProps['keyPass']
}
}
2017-12-04 07:21:55 +01:00
buildTypes {
debug {
// If keystore exists, sign the APK with custom signature
if (signingConfigs.config.storeFile.exists())
signingConfig signingConfigs.config
}
2017-12-04 07:21:55 +01:00
release {
minifyEnabled true
shrinkResources true
2018-03-27 20:23:50 +02:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2018-08-20 06:02:38 +02:00
signingConfig signingConfigs.config
2017-12-04 07:21:55 +01:00
}
}
2018-05-27 08:34:05 +02:00
2019-01-30 09:10:12 +01:00
flavorDimensions 'mode'
2018-05-27 08:34:05 +02:00
productFlavors {
full {
2018-08-20 06:02:38 +02:00
versionName configProps['appVersion']
versionCode configProps['appVersionCode'] as Integer
2018-08-08 17:09:29 +02:00
javaCompileOptions {
annotationProcessorOptions {
argument('butterknife.debuggable', 'false')
}
}
2018-05-27 08:34:05 +02:00
}
stub {
versionCode 1
2019-01-30 09:10:12 +01:00
versionName 'stub'
2018-05-27 08:34:05 +02:00
}
}
2017-12-04 07:21:55 +01:00
lintOptions {
disable 'MissingTranslation'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
2018-12-12 11:51:45 +01:00
implementation project(':net')
2019-01-30 09:10:12 +01:00
fullImplementation project(':app-core')
2019-01-04 10:55:17 +01:00
fullImplementation 'ru.noties:markwon:2.0.1'
fullImplementation 'com.caverock:androidsvg-aar:1.3'
def androidXVersion = "1.0.0"
implementation 'androidx.core:core:1.0.1'
fullImplementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2018-11-10 04:04:04 +01:00
fullImplementation 'androidx.appcompat:appcompat:1.0.2'
2019-01-04 10:55:17 +01:00
fullImplementation "androidx.preference:preference:${androidXVersion}"
fullImplementation "androidx.recyclerview:recyclerview:${androidXVersion}"
fullImplementation "androidx.cardview:cardview:${androidXVersion}"
fullImplementation "com.google.android.material:material:${androidXVersion}"
2019-01-26 21:07:54 +01:00
fullImplementation 'android.arch.work:work-runtime:1.0.0-beta03'
2018-12-31 08:43:46 +01:00
fullImplementation 'androidx.room:room-runtime:2.0.0'
fullImplementation 'androidx.transition:transition:1.0.1'
2019-01-04 07:09:12 +01:00
def butterKnifeVersion = '10.0.0'
2019-01-26 21:07:54 +01:00
fullImplementation "com.jakewharton:butterknife-runtime:${butterKnifeVersion}"
fullAnnotationProcessor "com.jakewharton:butterknife-compiler:${butterKnifeVersion}"
2016-08-05 18:58:05 +02:00
}