-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (63 loc) · 2.38 KB
/
build.gradle
File metadata and controls
72 lines (63 loc) · 2.38 KB
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
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.aefyr.sai"
minSdkVersion 21
targetSdkVersion 28
versionCode 48
versionName "3.7"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "version"
productFlavors {
normal {
dimension "version"
buildConfigField "int", "DEFAULT_THEME", "0"
}
fdroid {
dimension "version"
applicationId "com.aefyr.sai.fdroid"
buildConfigField "int", "DEFAULT_THEME", "6"
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.preference:preference:1.1.0'
implementation 'com.github.aefyr:pseudoapksigner:1.6'
implementation 'com.github.bumptech.glide:glide:4.10.0'
implementation 'moe.shizuku.privilege:api:3.0.0-alpha10'
implementation 'android.arch.lifecycle:common-java8:2.1.0'
implementation 'com.google.android:flexbox:1.1.1'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation 'com.github.aefyr.flexfilter:flexfilter:0.9-alpha'
implementation 'com.tomergoldst.android:tooltips:1.0.10'
//Google services
normalImplementation 'com.google.firebase:firebase-core:17.2.3'
normalImplementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
}
//Cancel google services/fabric plugins for fdroid flavor
gradle.taskGraph.beforeTask {
String taskName = it.name.toLowerCase()
if (taskName.contains("fdroid") && (taskName.contains("googleservices") || taskName.contains("fabric"))) {
println(String.format("Cancelling task \"%s\" due to fdroid build flavor", it.name))
it.setEnabled(false)
}
}
apply plugin: 'com.google.gms.google-services'