-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
197 lines (178 loc) · 7.11 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
plugins {
id 'idea'
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'dagger.hilt.android.plugin'
id 'kotlin-kapt'
id 'kotlin-parcelize'
id 'com.squareup.wire'
// id "com.google.protobuf" version "0.8.17"
}
android {
namespace 'com.anafthdev.remindme'
compileSdk 33
defaultConfig {
applicationId "com.anafthdev.remindme"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}
buildTypes {
debug {
minifyEnabled false
kotlinOptions {
freeCompilerArgs += [
'-Xopt-in=kotlin.RequiresOptIn'
]
freeCompilerArgs += [
"-Xjvm-default=all",
]
}
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
kotlinOptions {
freeCompilerArgs += [
'-Xopt-in=kotlin.RequiresOptIn'
]
freeCompilerArgs += [
"-Xjvm-default=all",
]
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.4.0'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
//idea {
// module {
// // Use "${protobuf.generatedFilesBaseDir}/main/javalite" for LITE_RUNTIME protos
// sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java");
// }
//}
//protobuf {
// generatedFilesBaseDir = "$projectDir/src/generated"
//
// // Configures the Protobuf compilation and the protoc executable
// protoc {
// // Downloads from the repositories
// artifact = "com.google.protobuf:protoc:3.14.0"
// }
//
// // Generates the java Protobuf-lite code for the Protobufs in this project
// generateProtoTasks {
// all().each { task ->
// task.builtins {
// remove java
//// kotlin {}
// // Configures the task output type
// java {
// // Java Lite has smaller code size and is recommended for Android
// option 'lite'
// }
// }
// }
// }
//}
wire {
kotlin {
android = true
}
}
dependencies {
kapt "org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0"
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.activity:activity-compose:1.6.1'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.compose.ui:ui-util:$compose_version"
implementation "androidx.compose.runtime:runtime-livedata:1.3.3"
// implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.compose.animation:animation:1.3.3"
// implementation "androidx.compose.animation:animation:$compose_version"
implementation "androidx.navigation:navigation-compose:2.5.3"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
// Constraint layout
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
// Material Design
implementation 'com.google.android.material:material:1.8.0'
implementation "androidx.compose.material:material:1.3.1"
implementation "androidx.compose.material:material-icons-extended:1.3.1"
implementation "androidx.compose.material3:material3:1.1.0-alpha05"
implementation "androidx.compose.material3:material3-window-size-class:1.0.1"
// Large screen support
implementation 'androidx.window:window:1.0.0'
implementation 'androidx.window:window-java:1.0.0'
// Datastore
implementation "androidx.datastore:datastore:1.0.0"
implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation "androidx.datastore:datastore-core:1.0.0"
// implementation "com.google.protobuf:protobuf-javalite:3.18.0"
// implementation "com.google.protobuf:protobuf-kotlin:3.19.1"
// implementation 'com.google.protobuf:protobuf-kotlin-lite:3.19.1'
// Lifecycle
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.6.0-alpha05"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
kapt 'androidx.lifecycle:lifecycle-common-java8:2.5.1'
// Dependency Injection
implementation 'com.google.dagger:hilt-android:2.44.2'
kapt 'androidx.hilt:hilt-compiler:1.0.0'
kapt 'com.google.dagger:hilt-compiler:2.44.2'
kapt 'com.google.dagger:hilt-android-compiler:2.44.2'
// Datastore
implementation "androidx.datastore:datastore:1.0.0"
implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation "androidx.datastore:datastore-core:1.0.0"
// Room
implementation 'androidx.room:room-runtime:2.5.0'
implementation 'androidx.room:room-ktx:2.5.0'
kapt 'androidx.room:room-compiler:2.5.0'
// Accompanist
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
implementation "com.google.accompanist:accompanist-adaptive:$accompanist_version"
implementation "com.google.accompanist:accompanist-navigation-material:$accompanist_version"
implementation "com.google.accompanist:accompanist-navigation-animation:$accompanist_version"
implementation "com.google.accompanist:accompanist-flowlayout:$accompanist_version"
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
// Other
implementation "com.google.code.gson:gson:2.8.9"
implementation 'com.jakewharton.timber:timber:5.0.1'
implementation 'joda-time:joda-time:2.10.14'
implementation "com.squareup.wire:wire-runtime:4.4.3"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
androidTestImplementation 'com.google.dagger:hilt-android-testing:2.44.2'
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
kaptAndroidTest 'com.google.dagger:hilt-android-compiler:2.44.2'
}