apply plugin: 'com.android.application' apply plugin: "androidx.navigation.safeargs" apply plugin: 'com.google.gms.google-services' apply plugin: 'io.fabric' apply plugin: 'com.google.android.gms.oss-licenses-plugin' apply plugin: 'com.google.firebase.firebase-perf' def privateProperties = new Properties() def conf = project.file("private.properties") if (conf.exists()) privateProperties.load(conf.newDataInputStream()) android { compileSdkVersion 28 defaultConfig { applicationId "moe.yuuta.sysuicontroller" minSdkVersion 21 targetSdkVersion 28 versionCode rootProject.ext.versionCode versionName rootProject.ext.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } signingConfigs { general { def locate = privateProperties['key.locate'] def keystorePwd = privateProperties['key.store.pwd'] def alias = privateProperties['key.alias'] def pwd = privateProperties['key.pwd'] storeFile file(locate != null ? locate : project.rootProject.file(".yuuta.jks")) storePassword keystorePwd != null ? keystorePwd : System.getenv("KEYSTORE_PASS") keyAlias alias != null ? alias : System.getenv("ALIAS_NAME") keyPassword pwd != null ? pwd : System.getenv("ALIAS_PASS") v2SigningEnabled true } } buildTypes { debug { signingConfig signingConfigs.general } release { signingConfig signingConfigs.general minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility = '1.8' targetCompatibility = '1.8' } } repositories { maven { url 'https://dl.bintray.com/rikkaw/Shizuku' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.firebase:firebase-core:16.0.8' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation 'eu.chainfire:librootjava:1.3.0' implementation 'eu.chainfire:libsuperuser:1.0.0.+' implementation 'eu.chainfire:librootjavadaemon:1.3.0' implementation 'moe.shizuku.preference:preference:3.0.0' implementation 'moe.shizuku.preference:preference-dialog-android:3.0.0' implementation 'moe.shizuku.preference:preference-simplemenu:3.0.0' def nav_version = "1.0.0" implementation "android.arch.navigation:navigation-fragment:$nav_version" implementation "android.arch.navigation:navigation-ui:$nav_version" implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9' implementation "android.arch.work:work-runtime:1.0.0" implementation 'com.google.android.gms:play-services-oss-licenses:16.0.2' implementation 'com.google.firebase:firebase-perf:16.2.4' implementation 'moe.shizuku.privilege:api:3.0.0-alpha6' }