Skip to content

Commit d3e77e6

Browse files
Add splash screen to Wear OS app and bump version
- Delete social media post planning documents - Add `androidx.core.splashscreen` dependency - Implement splash screen in `WearQuickEntryActivity` - Add splash screen resources and theme configuration for Wear OS - Increment Wear OS version to `0.1.7-wear` (code `3601008`)
1 parent d2d0151 commit d3e77e6

9 files changed

Lines changed: 25 additions & 311 deletions

File tree

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ activityCompose = "1.12.3"
99
navigationCompose = "2.9.0"
1010
lifecycle = "2.9.0"
1111
coreKtx = "1.16.0"
12+
splashScreen = "1.2.0"
1213
appcompat = "1.7.0"
1314
coroutines = "1.10.2"
1415
firebaseBom = "34.3.0"
@@ -25,6 +26,7 @@ wearCompose = "1.5.6"
2526

2627
[libraries]
2728
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
29+
androidx-core-splashscreen = { group = "androidx.core", name = "core-splashscreen", version.ref = "splashScreen" }
2830
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
2931

3032
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle" }

site/LINKEDIN_X_POSTS_APRIL_2026.md

Lines changed: 0 additions & 195 deletions
This file was deleted.

site/X_15_DAY_POST_PLAN.md

Lines changed: 0 additions & 113 deletions
This file was deleted.

wear/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ plugins {
1919
}
2020

2121
/** Human-readable version string displayed to the user and embedded in output filenames. */
22-
val wearVersionName = "0.1.6-wear"
22+
val wearVersionName = "0.1.7-wear"
2323

2424
/** Numeric version code used by the Play Store for update ordering. */
25-
val wearVersionCode = 3601007
25+
val wearVersionCode = 3601008
2626

2727
/**
2828
* Local keystore configuration loaded from keystore.properties in the project root.
@@ -214,6 +214,7 @@ dependencies {
214214
implementation(libs.androidx.navigation.compose)
215215
implementation(libs.google.material)
216216
implementation(libs.androidx.activity.compose)
217+
implementation(libs.androidx.core.splashscreen)
217218
implementation(libs.androidx.lifecycle.runtime.ktx)
218219
implementation(libs.androidx.lifecycle.viewmodel.compose)
219220
implementation(libs.androidx.lifecycle.runtime.compose)

wear/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<activity
1919
android:name=".presentation.WearQuickEntryActivity"
2020
android:exported="true"
21-
android:theme="@style/Theme.DunioWear">
21+
android:theme="@style/Theme.DunioWear.Starting">
2222
<intent-filter>
2323
<action android:name="android.intent.action.MAIN" />
2424
<category android:name="android.intent.category.LAUNCHER" />

wear/src/main/java/com/davideagostini/summ/wearapp/presentation/WearQuickEntryActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import android.os.Bundle
2424
import androidx.activity.ComponentActivity
2525
import androidx.activity.compose.setContent
2626
import androidx.activity.enableEdgeToEdge
27+
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
2728
import androidx.lifecycle.compose.LifecycleResumeEffect
2829
import androidx.lifecycle.compose.collectAsStateWithLifecycle
2930
import androidx.lifecycle.viewmodel.compose.viewModel
@@ -40,6 +41,7 @@ class WearQuickEntryActivity : ComponentActivity() {
4041
* the ViewModel, state, and navigation are wired together.
4142
*/
4243
override fun onCreate(savedInstanceState: Bundle?) {
44+
installSplashScreen()
4345
super.onCreate(savedInstanceState)
4446
enableEdgeToEdge()
4547
setContent {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item
4+
android:width="@dimen/splash_screen_icon_size"
5+
android:height="@dimen/splash_screen_icon_size"
6+
android:drawable="@mipmap/ic_launcher_round"
7+
android:gravity="center" />
8+
</layer-list>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<dimen name="splash_screen_icon_size">48dp</dimen>
3+
</resources>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<resources>
22
<style name="Theme.DunioWear" parent="@android:style/Theme.DeviceDefault" />
3+
4+
<style name="Theme.DunioWear.Starting" parent="Theme.SplashScreen">
5+
<item name="windowSplashScreenBackground">@android:color/black</item>
6+
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_screen</item>
7+
<item name="postSplashScreenTheme">@style/Theme.DunioWear</item>
8+
</style>
39
</resources>

0 commit comments

Comments
 (0)