-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.gradle
91 lines (76 loc) · 1.87 KB
/
build.gradle
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apply plugin: 'com.android.application'
def askForKeystorePassword() {
def prompt =
"\n==========================================================" +
"\nKeystore : ${android.signingConfigs.release.storeFile}" +
"\nKey alias: ${android.signingConfigs.release.keyAlias}" +
"\n==========================================================" +
"\nPassword: "
def console = System.console()
if (console) {
return new String(console.readPassword(prompt))
} else {
return ""
}
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.3'
}
}
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.j256.ormlite:ormlite-android:6.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'joda-time:joda-time:2.13.0'
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.15.0'
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
}
android {
namespace 'at.jclehner.rxdroid'
compileSdk 34
defaultConfig {
minSdkVersion 21
targetSdkVersion 34
applicationId 'at.jclehner.rxdroid'
versionCode 9390
versionName '0.9.39'
}
signingConfigs {
release {
def keystore = System.getenv("RXDROID_KEYSTORE")
def console = System.console()
if (keystore && console) {
storeFile file(keystore)
keyAlias System.getenv("RXDROID_KEY_ALIAS")
storePassword askForKeystorePassword()
keyPassword storePassword
}
}
}
buildTypes {
release {
minifyEnabled true
proguardFile 'proguard-project.txt'
signingConfig signingConfigs.release
}
debug {
//applicationIdSuffix '.debug'
}
}
lint {
warning 'MissingTranslation', 'MissingQuantity'
}
buildFeatures {
buildConfig true
}
}