-
Notifications
You must be signed in to change notification settings - Fork 184
/
Copy pathbuild.gradle
executable file
·117 lines (102 loc) · 3.04 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'kotlin-kapt'
//apply plugin: 'com.google.firebase.crashlytics'
//apply plugin: 'com.google.gms.google-services'
android {
namespace 'com.dimowner.audiorecorder'
compileSdkVersion 34
defaultConfig {
applicationId "com.dimowner.audiorecorder"
minSdkVersion 23
targetSdkVersion 34
versionCode 935
versionName "0.9.99"
}
buildFeatures {
viewBinding true
buildConfig true
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
signingConfigs {
dev {
storeFile file('key/debug/debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
storeFile file(keystoreProperties['prodStoreFile'])
storePassword keystoreProperties['prodStorePassword']
keyAlias keystoreProperties['prodKeyAlias']
keyPassword keystoreProperties['prodKeyPassword']
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// firebaseCrashlytics {
// mappingFileUploadEnabled true
// }
}
debug {
minifyEnabled false
}
}
flavorDimensions "default"
productFlavors {
debugConfig {
dimension "default"
applicationId "com.dimowner.audiorecorder.debug"
signingConfig = signingConfigs.dev
}
releaseConfig {
dimension "default"
signingConfig = signingConfigs.dev
applicationId "com.dimowner.audiorecorder"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
lintOptions {
abortOnError false
}
}
// Remove not needed buildVariants.
android.variantFilter { variant ->
if (variant.buildType.name == 'release'
&& variant.getFlavors().get(0).name == 'debugConfig') {
variant.setIgnore(true)
}
if (variant.buildType.name == 'debug'
&& variant.getFlavors().get(0).name == 'releaseConfig') {
variant.setIgnore(true)
}
}
dependencies {
def androidX = "1.3.2"
def coroutines = "1.8.0"
def timber = "5.0.1"
//Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines"
//Timber
implementation "com.jakewharton.timber:timber:$timber"
implementation "androidx.recyclerview:recyclerview:$androidX"
testImplementation("junit:junit:4.13.2")
testImplementation("io.mockk:mockk:1.13.10")
// // Import the BoM for the Firebase platform
// implementation platform('com.google.firebase:firebase-bom:26.1.0')
// // Declare the dependencies for the Crashlytics and Analytics libraries
// // When using the BoM, you don't specify versions in Firebase library dependencies
// implementation 'com.google.firebase:firebase-crashlytics'
// implementation 'com.google.firebase:firebase-analytics'
}