Skip to content

Commit bed66c8

Browse files
committed
Add launcher icon and splash screen
1 parent 357e539 commit bed66c8

26 files changed

+97
-207
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ dependencies {
7070
testImplementation(project(":core:testcommon"))
7171

7272
implementation(libs.jetbrains.kotlinx.datetime)
73+
implementation(libs.androidx.core.splashscreen)
7374
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
android:label="@string/app_name"
1212
android:roundIcon="@mipmap/ic_launcher_round"
1313
android:supportsRtl="true"
14-
android:theme="@style/Theme.RoutineTracker"
14+
android:theme="@style/Theme.RoutineTracker.Splash"
1515
tools:targetApi="33">
1616
<activity
1717
android:name=".MainActivity"
1818
android:exported="true"
19-
android:theme="@style/Theme.RoutineTracker"
19+
android:theme="@style/Theme.RoutineTracker.Splash"
2020
android:windowSoftInputMode="adjustResize">
2121
<intent-filter>
2222
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/rendox/routinetracker/app/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import androidx.activity.enableEdgeToEdge
88
import androidx.compose.foundation.isSystemInDarkTheme
99
import androidx.compose.foundation.layout.fillMaxSize
1010
import androidx.compose.ui.Modifier
11+
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
1112
import androidx.core.view.WindowCompat
1213
import com.rendox.routinetracker.app.navigation.RoutineTrackerNavHost
1314
import com.rendox.routinetracker.core.ui.theme.RoutineTrackerTheme
1415
import com.rendox.routinetracker.feature.agenda.navigation.agendaNavRoute
1516

1617
class MainActivity : ComponentActivity() {
17-
1818
override fun onCreate(savedInstanceState: Bundle?) {
19+
installSplashScreen()
1920
super.onCreate(savedInstanceState)
2021
WindowCompat.setDecorFitsSystemWindows(window, false)
2122

core/ui/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ dependencies {
3333
implementation(libs.kizitonwose.calendar.compose)
3434
implementation("androidx.compose.ui:ui-util")
3535
implementation(libs.material)
36+
implementation(libs.androidx.core.splashscreen)
3637
}
33.7 KB
Loading

core/ui/src/main/res/drawable-v24/ic_launcher_foreground.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.
-21.9 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="108"
5+
android:viewportHeight="108">
6+
<group android:pivotX="54"
7+
android:pivotY="54"
8+
android:scaleX="0.5"
9+
android:scaleY="0.5">
10+
<path android:fillColor="#FF2A23" android:pathData="M63.04,7.57C36.72,6.97 7.69,28.8 8.25,64.16c0.49,31.09 23.85,54.62 54.12,55.11c30.27,0.49 57.09,-19.52 57.25,-55.27C119.79,27.97 91.99,8.23 63.04,7.57z"/>
11+
<path android:fillColor="#FFFDFE" android:pathData="M63.12,20.19C42.24,20.9 21.17,36.48 20.68,63.95c-0.49,27.47 23.52,42.77 42.44,42.77c24.02,0 44.09,-18.92 43.59,-44.09C106.22,37.47 87.3,19.37 63.12,20.19z"/>
12+
<path android:fillColor="#FF2A23" android:pathData="M63.61,30.89c-18.92,-0.43 -32.9,16.29 -33.07,32.24c-0.16,16.29 10.03,32.9 32.74,33.72s33.39,-17.27 33.72,-32.57C97.34,48.98 85.16,31.38 63.61,30.89z"/>
13+
<path android:fillColor="#FFFFFF" android:pathData="M41.98,63.73c-0.16,14.31 10.03,22.54 22.37,22.54c11.21,0 22.21,-7.07 22.21,-22.04c0,-13.49 -10.2,-21.55 -21.55,-22.04C53.66,41.69 42.14,49.92 41.98,63.73z"/>
14+
<path android:fillColor="#FB2B22" android:pathData="M52.1,63.62c-0.61,8.53 6.33,12.61 12.58,12.61c5.92,0 11.76,-3.89 11.93,-11.79c0.15,-7.42 -5.67,-11.95 -11.93,-12.17C58.22,52.05 52.59,56.69 52.1,63.62z"/>
15+
<path android:fillColor="#CC1935" android:pathData="M66.74,64.29l-3.35,1.86l6.39,9.09c0,0 4.94,0.38 6.08,-0.91s-0.15,-5.09 -0.15,-5.09L66.74,64.29z"/>
16+
<path android:fillColor="#ACB1B5" android:pathData="M87.42,54.41c-0.9,-1.86 -1.82,-3.35 -4.26,-2.89c-2.43,0.46 -6.92,3.04 -7.76,4.26c-0.77,1.12 -1.52,2.51 -1.52,2.51s-8.6,4.7 -9.96,5.47c-2.13,1.22 -0.66,3.7 0.84,3.42c2.05,-0.38 11.21,-4.11 11.21,-4.11s1.94,0.46 3.08,0.46c1.14,0 7.64,-3.21 8.52,-3.8C89.02,58.74 88.33,56.31 87.42,54.41z"/>
17+
<path android:fillColor="#C8C8C8" android:pathData="M75.68,69.22c0,0 -0.48,1.7 -2.23,3.46c-1.82,1.82 -3.69,2.54 -3.69,2.54l5.77,8.46c0,0 4.29,0.31 7.41,-2.73s1.76,-7.02 1.76,-7.02L75.68,69.22z"/>
18+
<path android:fillColor="#CC1935" android:pathData="M81.4,92.57l-5.88,-8.9c0,0 0.98,-0.52 2.27,-1.4c2.37,-1.62 3.69,-2.91 5.38,-5.55c0.92,-1.42 1.51,-2.8 1.51,-2.8l9.09,4.49c0,0 -0.2,7.02 -3.17,10.44S81.4,92.57 81.4,92.57z"/>
19+
<path android:fillColor="#C8C8C8" android:pathData="M81.4,92.57l5.05,7.57c0,0 6.59,0.65 11.99,-5.82s3.96,-11.79 3.96,-11.79l-8.63,-4.13c0,0 -1.68,4.04 -5.02,7.92S81.4,92.57 81.4,92.57z"/>
20+
<path android:fillColor="#CC1935" android:pathData="M93.93,111.33l-7.47,-11.18c0,0 5.63,-3.29 9.63,-8.02c4.15,-4.91 6.32,-9.58 6.32,-9.58l12.09,6.01c0,0 -2.72,7.03 -8.75,13.38C99.85,108.13 93.93,111.33 93.93,111.33z"/>
21+
<path android:fillColor="#006CA9" android:pathData="M81.61,57.37c1.13,2.11 3,2.13 4.98,1.29c1.98,-0.84 11.33,-7.45 11.33,-7.45s12.7,6.39 20.91,3.19c8.21,-3.19 7.98,-11.86 7.98,-11.86l-4.86,-3.08c0,0 3.54,-1.84 4.68,-2.52c0.56,-0.34 1.39,-1.6 0.93,-2.73c-0.36,-0.88 -1.74,-1.18 -2.88,-0.72c-1.14,0.46 -4.43,1.49 -4.43,1.49s1.31,-5.45 1.08,-5.75c-0.23,-0.3 -2.59,-1.52 -2.59,-1.52s-7.68,0 -8.67,0.38c-0.99,0.38 -8.59,7.91 -8.59,7.91l-3.65,7.45l-1.56,3.32c0,0 -10.65,4.77 -12.25,5.45C82.43,52.91 80.22,54.8 81.61,57.37z"/>
22+
<path android:fillColor="#1F87FD" android:pathData="M98.54,45.85c0,0 4.48,-3.24 7.67,-4.84s9.11,-3.55 10.86,-3.76c1.75,-0.21 2.47,0.26 2.78,1.08c0.31,0.82 -0.72,1.85 -1.6,2.32c-0.87,0.46 -5.51,2.57 -10.65,5.3s-7.58,4.73 -9.66,5.2c-1.05,0.24 -2.4,-0.7 -2.48,-2.27c-0.06,-1.22 0.18,-2.24 0.98,-4.58c0.98,-2.88 3.13,-7.21 4.94,-10.03c2.68,-4.17 6.54,-7 10.81,-7.77c4.27,-0.77 7.77,0.31 8.65,1.03c0.87,0.72 0.82,1.46 0.51,1.71c-0.31,0.25 -0.77,0.45 -3.09,-0.37c-1.61,-0.57 -6.74,-0.57 -10.34,2.11c-3.64,2.7 -4.53,4.37 -6.12,7.31S98.54,45.85 98.54,45.85z"/>
23+
</group>
24+
</vector>
Lines changed: 3 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,170 +1,9 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<vector xmlns:android="http://schemas.android.com/apk/res/android"
32
android:width="108dp"
43
android:height="108dp"
54
android:viewportWidth="108"
65
android:viewportHeight="108">
7-
<path
8-
android:fillColor="#3DDC84"
9-
android:pathData="M0,0h108v108h-108z" />
10-
<path
11-
android:fillColor="#00000000"
12-
android:pathData="M9,0L9,108"
13-
android:strokeWidth="0.8"
14-
android:strokeColor="#33FFFFFF" />
15-
<path
16-
android:fillColor="#00000000"
17-
android:pathData="M19,0L19,108"
18-
android:strokeWidth="0.8"
19-
android:strokeColor="#33FFFFFF" />
20-
<path
21-
android:fillColor="#00000000"
22-
android:pathData="M29,0L29,108"
23-
android:strokeWidth="0.8"
24-
android:strokeColor="#33FFFFFF" />
25-
<path
26-
android:fillColor="#00000000"
27-
android:pathData="M39,0L39,108"
28-
android:strokeWidth="0.8"
29-
android:strokeColor="#33FFFFFF" />
30-
<path
31-
android:fillColor="#00000000"
32-
android:pathData="M49,0L49,108"
33-
android:strokeWidth="0.8"
34-
android:strokeColor="#33FFFFFF" />
35-
<path
36-
android:fillColor="#00000000"
37-
android:pathData="M59,0L59,108"
38-
android:strokeWidth="0.8"
39-
android:strokeColor="#33FFFFFF" />
40-
<path
41-
android:fillColor="#00000000"
42-
android:pathData="M69,0L69,108"
43-
android:strokeWidth="0.8"
44-
android:strokeColor="#33FFFFFF" />
45-
<path
46-
android:fillColor="#00000000"
47-
android:pathData="M79,0L79,108"
48-
android:strokeWidth="0.8"
49-
android:strokeColor="#33FFFFFF" />
50-
<path
51-
android:fillColor="#00000000"
52-
android:pathData="M89,0L89,108"
53-
android:strokeWidth="0.8"
54-
android:strokeColor="#33FFFFFF" />
55-
<path
56-
android:fillColor="#00000000"
57-
android:pathData="M99,0L99,108"
58-
android:strokeWidth="0.8"
59-
android:strokeColor="#33FFFFFF" />
60-
<path
61-
android:fillColor="#00000000"
62-
android:pathData="M0,9L108,9"
63-
android:strokeWidth="0.8"
64-
android:strokeColor="#33FFFFFF" />
65-
<path
66-
android:fillColor="#00000000"
67-
android:pathData="M0,19L108,19"
68-
android:strokeWidth="0.8"
69-
android:strokeColor="#33FFFFFF" />
70-
<path
71-
android:fillColor="#00000000"
72-
android:pathData="M0,29L108,29"
73-
android:strokeWidth="0.8"
74-
android:strokeColor="#33FFFFFF" />
75-
<path
76-
android:fillColor="#00000000"
77-
android:pathData="M0,39L108,39"
78-
android:strokeWidth="0.8"
79-
android:strokeColor="#33FFFFFF" />
80-
<path
81-
android:fillColor="#00000000"
82-
android:pathData="M0,49L108,49"
83-
android:strokeWidth="0.8"
84-
android:strokeColor="#33FFFFFF" />
85-
<path
86-
android:fillColor="#00000000"
87-
android:pathData="M0,59L108,59"
88-
android:strokeWidth="0.8"
89-
android:strokeColor="#33FFFFFF" />
90-
<path
91-
android:fillColor="#00000000"
92-
android:pathData="M0,69L108,69"
93-
android:strokeWidth="0.8"
94-
android:strokeColor="#33FFFFFF" />
95-
<path
96-
android:fillColor="#00000000"
97-
android:pathData="M0,79L108,79"
98-
android:strokeWidth="0.8"
99-
android:strokeColor="#33FFFFFF" />
100-
<path
101-
android:fillColor="#00000000"
102-
android:pathData="M0,89L108,89"
103-
android:strokeWidth="0.8"
104-
android:strokeColor="#33FFFFFF" />
105-
<path
106-
android:fillColor="#00000000"
107-
android:pathData="M0,99L108,99"
108-
android:strokeWidth="0.8"
109-
android:strokeColor="#33FFFFFF" />
110-
<path
111-
android:fillColor="#00000000"
112-
android:pathData="M19,29L89,29"
113-
android:strokeWidth="0.8"
114-
android:strokeColor="#33FFFFFF" />
115-
<path
116-
android:fillColor="#00000000"
117-
android:pathData="M19,39L89,39"
118-
android:strokeWidth="0.8"
119-
android:strokeColor="#33FFFFFF" />
120-
<path
121-
android:fillColor="#00000000"
122-
android:pathData="M19,49L89,49"
123-
android:strokeWidth="0.8"
124-
android:strokeColor="#33FFFFFF" />
125-
<path
126-
android:fillColor="#00000000"
127-
android:pathData="M19,59L89,59"
128-
android:strokeWidth="0.8"
129-
android:strokeColor="#33FFFFFF" />
130-
<path
131-
android:fillColor="#00000000"
132-
android:pathData="M19,69L89,69"
133-
android:strokeWidth="0.8"
134-
android:strokeColor="#33FFFFFF" />
135-
<path
136-
android:fillColor="#00000000"
137-
android:pathData="M19,79L89,79"
138-
android:strokeWidth="0.8"
139-
android:strokeColor="#33FFFFFF" />
140-
<path
141-
android:fillColor="#00000000"
142-
android:pathData="M29,19L29,89"
143-
android:strokeWidth="0.8"
144-
android:strokeColor="#33FFFFFF" />
145-
<path
146-
android:fillColor="#00000000"
147-
android:pathData="M39,19L39,89"
148-
android:strokeWidth="0.8"
149-
android:strokeColor="#33FFFFFF" />
150-
<path
151-
android:fillColor="#00000000"
152-
android:pathData="M49,19L49,89"
153-
android:strokeWidth="0.8"
154-
android:strokeColor="#33FFFFFF" />
155-
<path
156-
android:fillColor="#00000000"
157-
android:pathData="M59,19L59,89"
158-
android:strokeWidth="0.8"
159-
android:strokeColor="#33FFFFFF" />
160-
<path
161-
android:fillColor="#00000000"
162-
android:pathData="M69,19L69,89"
163-
android:strokeWidth="0.8"
164-
android:strokeColor="#33FFFFFF" />
165-
<path
166-
android:fillColor="#00000000"
167-
android:pathData="M79,19L79,89"
168-
android:strokeWidth="0.8"
169-
android:strokeColor="#33FFFFFF" />
6+
<path
7+
android:pathData="M0,0h108v108h-108z"
8+
android:fillColor="@color/ic_launcher_background_tint"/>
1709
</vector>

0 commit comments

Comments
 (0)