Skip to content

Commit ea3499d

Browse files
fix(bug): splash screen
1 parent 58046cb commit ea3499d

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ jobs:
6060
uses: actions/upload-artifact@v4
6161
with:
6262
name: android
63-
path: android/app/build/outputs/apk/release/*.apk
63+
path: android/app/build/outputs/apk/release/app-release-signed.apk
6464

android/app/src/main/AndroidManifest.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
<application
1010
android:allowBackup="true"
11-
android:icon="@drawable/splash"
12-
android:roundIcon="@drawable/splash"
11+
android:icon="@drawable/icon"
12+
android:roundIcon="@drawable/icon"
1313
android:label="@string/app_name"
14+
android:theme="@style/AppTheme"
1415
android:supportsRtl="true">
1516

1617
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/admob_app_id" />
@@ -20,7 +21,8 @@
2021
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
2122
android:label="@string/title_activity_main"
2223
android:launchMode="singleTask"
23-
android:exported="true">
24+
android:exported="true"
25+
android:theme="@style/AppTheme.NoActionBarLaunch">
2426
<intent-filter>
2527
<action android:name="android.intent.action.MAIN" />
2628
<category android:name="android.intent.category.LAUNCHER" />
Loading
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<resources>
2+
3+
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
4+
5+
</style>
6+
7+
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
8+
<item name="android:background">@drawable/splash_screen</item>
9+
</style>
10+
11+
<style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
12+
<item name="android:background">@drawable/splash_screen</item>
13+
</style>
14+
15+
</resources>

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"@capacitor-community/admob": "^6.1.0",
2626
"@capacitor/android": "^6.2.0",
2727
"@capacitor/core": "^6.2.0",
28-
"@capacitor/push-notifications": "^6.0.3"
28+
"@capacitor/push-notifications": "^6.0.3",
29+
"@capacitor/splash-screen": "^6.0.3"
2930
},
3031
"devDependencies": {
3132
"@babel/core": "^7.26.0",

0 commit comments

Comments
 (0)