Files
pezkuwi-wallet-android/feature-splash/build.gradle
T
SatoshiQaziMuhammed 5f96f63330 fix(splash): navigate to the first screen once, so a recreated activity cannot crash the app (#26)
* test(splash): the initial destination is navigated to once

* fix(splash): navigate to the first screen once

The splash screen asks for the initial destination on every onResume, which
runs again when the activity is recreated during startup while the view model
survives. The second navigation found the first already on the welcome screen,
with no route from there, and crashed the app with 'Unknown case for
welcomeFragment'. The view model now starts it once.
2026-10-18 16:04:52 +04:00

43 lines
973 B
Groovy

apply plugin: 'kotlin-parcelize'
android {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'io.novafoundation.nova.splash'
buildFeatures {
viewBinding true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':common')
implementation project(':feature-account-api')
implementation project(':feature-versions-api')
implementation kotlinDep
implementation androidDep
implementation daggerDep
ksp daggerCompiler
implementation lifecycleDep
ksp lifecycleCompiler
testImplementation jUnitDep
testImplementation mockitoDep
testImplementation project(':test-shared')
implementation coroutinesDep
implementation coroutinesAndroidDep
implementation viewModelKtxDep
implementation liveDataKtxDep
}