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()
|
|
|
|
configProps.load(new FileInputStream(rootProject.file('config.prop')))
|
|
|
|
|
2017-12-04 07:21:55 +01:00
|
|
|
android {
|
2018-03-25 21:52:12 +02:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2017-12-04 07:21:55 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.topjohnwu.magisk"
|
|
|
|
minSdkVersion 21
|
2018-03-25 21:52:12 +02:00
|
|
|
targetSdkVersion rootProject.ext.compileSdkVersion
|
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 {
|
2018-08-28 18:17:27 +02:00
|
|
|
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
|
|
|
|
|
|
|
flavorDimensions "mode"
|
|
|
|
|
|
|
|
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
|
|
|
|
versionName "stub"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-04 07:21:55 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
dexOptions {
|
|
|
|
preDexLibraries true
|
|
|
|
javaMaxHeapSize "2g"
|
|
|
|
}
|
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2018-05-27 08:34:05 +02:00
|
|
|
fullImplementation project(':utils')
|
2018-06-02 16:00:52 +02:00
|
|
|
implementation "com.android.support:support-core-utils:${rootProject.ext.supportLibVersion}"
|
|
|
|
fullImplementation "com.android.support:preference-v7:${rootProject.ext.supportLibVersion}"
|
2018-05-27 08:34:05 +02:00
|
|
|
fullImplementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
|
|
|
|
fullImplementation "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}"
|
|
|
|
fullImplementation "com.android.support:design:${rootProject.ext.supportLibVersion}"
|
2018-08-08 12:57:55 +02:00
|
|
|
fullImplementation 'com.github.topjohnwu:libsu:2.0.1'
|
2018-05-27 08:34:05 +02:00
|
|
|
fullImplementation 'com.atlassian.commonmark:commonmark:0.11.0'
|
|
|
|
fullImplementation 'org.kamranzafar:jtar:2.3'
|
|
|
|
fullImplementation 'com.jakewharton:butterknife:8.8.1'
|
2018-07-30 14:37:00 +02:00
|
|
|
fullAnnotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
|
2016-08-05 18:58:05 +02:00
|
|
|
}
|