Magisk/app/build.gradle

82 lines
2.7 KiB
Groovy
Raw Permalink Normal View History

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