aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
blob: 529328d4db4fa932969e8a664999010cc629ab3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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'
    }
}

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'
}