Refactor: Introduce ViewModel for score/level, fix game over flow

This commit is contained in:
cmclark00 2025-04-01 14:39:27 -04:00
parent 5952cac760
commit 0a5bf6bb7e
5 changed files with 151 additions and 168 deletions

View file

@ -19,7 +19,7 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
@ -47,6 +47,7 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0'
implementation "androidx.activity:activity-ktx:1.9.0"
implementation 'androidx.window:window:1.2.0' // For better display support
implementation 'androidx.window:window-java:1.2.0'
implementation 'com.google.code.gson:gson:2.10.1'