Magisk/app/build.gradle

84 lines
2.8 KiB
Groovy
Raw Normal View History

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