-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathbuild.gradle
159 lines (133 loc) · 5.35 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
plugins {
alias libs.plugins.kotlin.android
alias libs.plugins.kotlin.kapt
alias libs.plugins.android.application
alias libs.plugins.ktlint.gradle
alias libs.plugins.gms
alias libs.plugins.navigation.safeargs
id "org.jetbrains.kotlin.plugin.serialization" version "1.7.0"
}
android {
compileSdk 34
defaultConfig {
applicationId "com.hieuwu.groceriesstore"
minSdkVersion 29
targetSdkVersion 33
versionCode 5
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
buildConfigField("String", "API_KEY", "\"${properties.getProperty("API_KEY")}\"")
buildConfigField("String", "SECRET", "\"${properties.getProperty("SECRET")}\"")
buildConfigField("String", "SUPABASE_URL", "\"${properties.getProperty("SUPABASE_URL")}\"")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "environment"
productFlavors {
dev {
dimension "environment"
applicationIdSuffix ".dev"
versionNameSuffix "-dev"
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
buildConfigField("String", "API_KEY", "\"${properties.getProperty("API_KEY_DEBUG")}\"")
buildConfigField("String", "SECRET", "\"${properties.getProperty("SECRET_DEBUG")}\"")
buildConfigField("String", "SUPABASE_URL", "\"${properties.getProperty("SUPABASE_URL_DEBUG")}\"")
}
prod {
dimension "environment"
applicationIdSuffix ".prod"
versionNameSuffix "-prod"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion "1.5.14"
}
namespace 'com.hieuwu.groceriesstore'
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation libs.bundles.androidx
implementation libs.bundles.android.ui
implementation libs.kotlin.stdlib
implementation libs.legacy.support.v4
implementation libs.timber
implementation libs.bundles.room
kapt libs.room.compiler
implementation libs.glide
kapt 'com.github.bumptech.glide:compiler:4.13.2'
implementation libs.lottie
implementation libs.lottie.compose
implementation libs.bundles.retrofit
implementation libs.gson
implementation libs.moshi
implementation libs.kotlin.coroutines.play.services
implementation(libs.kotlinx.immutable)
implementation(libs.glide.compose)
implementation platform(libs.firebase.bom)
implementation libs.bundles.firebase
implementation(libs.ktor.client.cio)
// implementation(libs.postgrest.kt.android)
implementation libs.ktor.client.android
implementation libs.ktor.utils.jvm
implementation libs.ktor.client.logging.jvm
implementation(libs.ktor.client.core)
implementation(platform("io.github.jan-tennert.supabase:bom:2.4.0"))
implementation("io.github.jan-tennert.supabase:postgrest-kt")
implementation("io.github.jan-tennert.supabase:gotrue-kt")
implementation("io.github.jan-tennert.supabase:storage-kt")
implementation("io.github.jan-tennert.supabase:compose-auth-ui")
def composeBom = platform('androidx.compose:compose-bom:2023.09.02')
implementation(composeBom)
androidTestImplementation(composeBom)
implementation("androidx.compose.runtime:runtime")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.foundation:foundation-layout")
implementation("androidx.compose.material:material")
implementation("androidx.compose.runtime:runtime-livedata")
implementation("androidx.compose.ui:ui-tooling")
implementation("io.insert-koin:koin-android:3.5.5")
implementation ("io.insert-koin:koin-androidx-compose:3.5.5")
implementation libs.accompanist.themeadapter.material
implementation libs.glide.compose
implementation libs.androidx.material3
testImplementation libs.mockito.core
debugImplementation libs.androidx.ui.tooling
implementation libs.androidx.ui.tooling.preview
def nav_version = "2.5.3"
implementation(libs.androidx.navigation.compose)
implementation libs.androidx.material.icons.extended
testImplementation libs.mockito.kotlin
testImplementation libs.junit
androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.test.arch.core
}
task wrapper(type: Wrapper) {
gradleVersion = '7.5'
}
ktlint {
// android.set(true)
// reporters {
// reporter(ReporterType.PLAIN)
// reporter(ReporterType.HTML)
// }
android = false
ignoreFailures = true
}