@@ -23,7 +23,10 @@ android {
2323 }
2424 buildFeatures {
2525 dataBinding = true
26- viewBinding = true
26+ compose = true
27+ }
28+ composeOptions {
29+ kotlinCompilerExtensionVersion = " 1.3.1"
2730 }
2831 buildTypes {
2932 getByName(" release" ) {
@@ -41,6 +44,16 @@ android {
4144}
4245
4346dependencies {
47+
48+ // Compose
49+ val composeVersion = " 1.2.1"
50+ implementation(" androidx.compose.runtime:runtime:$composeVersion " )
51+ implementation(" androidx.compose.ui:ui:$composeVersion " )
52+ implementation(" androidx.compose.material:material:$composeVersion " )
53+ implementation(" androidx.compose.ui:ui-tooling:$composeVersion " )
54+ implementation(" androidx.compose.runtime:runtime-livedata:$composeVersion " )
55+ androidTestImplementation(" androidx.compose.ui:ui-test-junit4:$composeVersion " )
56+
4457 implementation(" androidx.appcompat:appcompat:1.4.1" )
4558 implementation(" androidx.fragment:fragment:1.3.6" )
4659 implementation(" androidx.fragment:fragment-ktx:1.3.6" )
@@ -49,7 +62,7 @@ dependencies {
4962 implementation(" androidx.recyclerview:recyclerview:1.2.1" )
5063 implementation(" androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1" )
5164 implementation(" com.google.android.material:material:1.5.0" )
52- implementation(" com.mparticle:android-core:5.44.2 " )
65+ implementation(" com.mparticle:android-core:5.45.0 " )
5366
5467 implementation(" androidx.navigation:navigation-fragment:2.3.5" )
5568 implementation(" androidx.navigation:navigation-ui:2.3.5" )
@@ -75,14 +88,15 @@ dependencies {
7588 implementation(" androidx.lifecycle:lifecycle-livedata-ktx:2.3.1" )
7689 implementation(" androidx.navigation:navigation-fragment-ktx:2.3.5" )
7790 implementation(" androidx.navigation:navigation-ui-ktx:2.3.5" )
91+ debugImplementation(" androidx.compose.ui:ui-tooling:1.1.1" )
7892
79- val roomVersion = " 2.4.1 "
93+ val roomVersion = " 2.4.3 "
8094 implementation(" androidx.room:room-runtime:$roomVersion " )
81- annotationProcessor(" androidx.room:room-compiler:$roomVersion " )
95+ // annotationProcessor("androidx.room:room-compiler:$roomVersion")
8296 kapt(" androidx.room:room-compiler:$roomVersion " )
8397 // ksp("androidx.room:room-compiler:$roomVersion")
8498 implementation(" androidx.room:room-ktx:$roomVersion " )
85- // implementation("androidx.room:room-rxjava2:$roomVersion")
99+ implementation(" androidx.room:room-rxjava2:$roomVersion " )
86100 // implementation("androidx.room:room-rxjava3:$roomVersion")
87101 // implementation("androidx.room:room-guava:$roomVersion")
88102 // implementation("androidx.room:room-paging:2.4.1")
@@ -105,6 +119,6 @@ dependencies {
105119
106120fun buildVersionCode (): Int {
107121 val df = SimpleDateFormat (" yyyyMMddHH" )
108- df.setTimeZone( TimeZone .getTimeZone(" EST" ) )
122+ df.timeZone = TimeZone .getTimeZone(" EST" )
109123 return df.format(Date ()).toInt()
110124}
0 commit comments