-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
104 lines (96 loc) · 3.37 KB
/
build.gradle.kts
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
import java.io.FileInputStream
import java.util.Properties
plugins {
kuring("application")
kuringPrimitive("test")
kuringPrimitive("android-test")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
id("com.google.android.gms.oss-licenses-plugin")
}
val keystorePropertiesFile = rootProject.file("app/signing/keystore.properties")
val keystoreFile = rootProject.file("app/signing/ku_ring_keystore.jks")
android {
namespace = "com.ku_stacks.ku_ring"
testOptions {
unitTests {
isIncludeAndroidResources = true
}
}
signingConfigs {
create("release") {
if (keystorePropertiesFile.exists()) {
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
storeFile = keystoreFile
keyAlias = keystoreProperties["keyAlias"] as? String ?: ""
keyPassword = keystoreProperties["keyPassword"] as? String ?: ""
storePassword = keystoreProperties["storePassword"] as? String ?: ""
}
}
}
defaultConfig {
applicationId = "com.ku_stacks.ku_ring"
javaCompileOptions {
annotationProcessorOptions {
arguments(mapOf("room.schemaLocation" to "$projectDir/schemas"))
}
}
}
sourceSets {
getByName("androidTest") {
assets.srcDirs(files("$projectDir/schemas"))
}
}
buildTypes {
debug {
isMinifyEnabled = false
manifestPlaceholders.putAll(
mapOf(
"appName" to "@string/app_name_debug",
"appIcon" to "@drawable/ic_ku_ring_launcher_dev"
)
)
applicationIdSuffix = ".debug"
}
release {
isDebuggable = false
signingConfig = signingConfigs.getByName("release")
manifestPlaceholders.putAll(
mapOf(
"appName" to "@string/app_name",
"appIcon" to "@drawable/ic_ku_ring_launcher"
)
)
}
}
lint {
disable.add("Instantiatable")
}
}
dependencies {
implementation(projects.core.util)
implementation(projects.core.uiUtil)
implementation(projects.core.thirdparty)
implementation(projects.data.domain)
implementation(projects.feature.editDepartments)
implementation(projects.feature.editSubscription)
implementation(projects.feature.feedback)
implementation(projects.feature.noticeDetail)
implementation(projects.feature.notion)
implementation(projects.feature.onboarding)
implementation(projects.feature.splash)
implementation(projects.feature.main)
implementation(projects.feature.kuringbot)
implementation(projects.feature.library)
implementation(libs.androidx.startup.runtime)
testImplementation(libs.kotlinx.coroutines.test)
implementation(libs.play.services.oss.licenses)
implementation(libs.bundles.androidx.work)
debugImplementation(libs.leakcanary.android)
implementation(libs.play.services.auth)
androidTestImplementation(libs.androidx.navigation.testing)
androidTestImplementation(libs.androidx.espresso.intents)
implementation(platform(libs.firebase.bom))
implementation(libs.firebase.crashlytics.ktx)
}