File tree Expand file tree Collapse file tree
java/org/bitcoindevkit/devkitwallet/presentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ dependencies {
5757 implementation(" androidx.datastore:datastore:1.1.1" )
5858 implementation(" com.google.protobuf:protobuf-javalite:3.18.0" )
5959 implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3" )
60+ implementation(" androidx.core:core-splashscreen:1.0.1" )
6061
6162 // Jetpack Compose
6263 // Adding the Bill of Materials synchronizes dependencies in the androidx.compose namespace
Original file line number Diff line number Diff line change 1313
1414 <activity
1515 android : name =" org.bitcoindevkit.devkitwallet.presentation.DevkitWalletActivity"
16- android : theme =" @style/Theme.BitcoindevkitSampleApp.Launcher "
16+ android : theme =" @style/SplashScreen "
1717 android : exported =" true" >
1818 <intent-filter >
1919 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import org.bitcoindevkit.devkitwallet.data.UserPreferencesSerializer
2323import org.bitcoindevkit.devkitwallet.domain.DwLogger
2424import org.bitcoindevkit.devkitwallet.domain.UserPreferencesRepository
2525import org.bitcoindevkit.devkitwallet.domain.Wallet
26+ import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
2627import org.bitcoindevkit.devkitwallet.presentation.navigation.CreateWalletNavigation
2728import org.bitcoindevkit.devkitwallet.presentation.navigation.HomeNavigation
2829import org.bitcoindevkit.devkitwallet.presentation.theme.DevkitTheme
@@ -36,6 +37,8 @@ private val Context.userPreferencesStore: DataStore<UserPreferences> by dataStor
3637
3738class DevkitWalletActivity : AppCompatActivity () {
3839 override fun onCreate (savedInstanceState : Bundle ? ) {
40+ installSplashScreen()
41+
3942 super .onCreate(savedInstanceState)
4043
4144 // Initialize Devkit Wallet Logger (used in the LogsScreen)
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <resources >
3+ <style name =" SplashScreen" parent =" Theme.SplashScreen" >
4+ <item name =" windowSplashScreenBackground" >@color/primary_dark</item >
5+ <item name =" windowSplashScreenAnimatedIcon" >@drawable/ic_launcher_bdk_foreground</item >
6+ <item name =" postSplashScreenTheme" >@style/Theme.BitcoindevkitSampleApp</item >
7+ </style >
8+ </resources >
Original file line number Diff line number Diff line change 44 <!-- Status bar color -->
55 <item name =" android:statusBarColor" >@color/primary_dark</item >
66 </style >
7-
8- <style name =" Theme.BitcoindevkitSampleApp.Launcher" >
9- <item name =" android:background" >@drawable/launch_screen</item >
10- </style >
117</resources >
You can’t perform that action at this time.
0 commit comments