summaryrefslogtreecommitdiff
path: root/org.fox.epube/build.gradle
blob: b6a0de93c4d1d7d247736c120be052c0c8af98c8 (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
apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "org.fox.epube"
        minSdkVersion 23
        targetSdkVersion 29
        versionCode 8
        versionName "1.7"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        buildConfigField "boolean", "ENABLE_UPDATER", "false"
        buildConfigField "String", "EPUBE_BASE_URL", "\"https://epube-dev.fakecake.org\""
    }

    signingConfigs {
        fdroid {
            if (project.hasProperty("FDROID_STORE_FILE")) {
                storeFile file(FDROID_STORE_FILE)
                storePassword FDROID_STORE_PASSWORD
                keyAlias FDROID_KEY_ALIAS
                keyPassword FDROID_KEY_PASSWORD
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            buildConfigField "String", "EPUBE_BASE_URL", "\"https://books.fakecake.org\""
        }

        fdroid {
            minifyEnabled  false
            versionNameSuffix "-fdroid"
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            signingConfig signingConfigs.fdroid
            buildConfigField "boolean", "ENABLE_UPDATER", "true"
            buildConfigField "String", "EPUBE_BASE_URL", "\"https://books.fakecake.org\""
            //matchingFallbacks = ['release']
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.webkit:webkit:1.9.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'frankiesardo:icepick:3.2.0'
    compileOnly 'frankiesardo:icepick-processor:3.2.0'
    annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
    implementation 'com.github.livefront:bridge:v1.1.1'
    implementation 'com.github.javiersantos:AppUpdater:2.7'
}