Skip to content

Commit

Permalink
fix(bug): splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Dec 24, 2024
1 parent 58046cb commit ea3499d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: android
path: android/app/build/outputs/apk/release/*.apk
path: android/app/build/outputs/apk/release/app-release-signed.apk

8 changes: 5 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

<application
android:allowBackup="true"
android:icon="@drawable/splash"
android:roundIcon="@drawable/splash"
android:icon="@drawable/icon"
android:roundIcon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:supportsRtl="true">

<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/admob_app_id" />
Expand All @@ -20,7 +21,8 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:label="@string/title_activity_main"
android:launchMode="singleTask"
android:exported="true">
android:exported="true"
android:theme="@style/AppTheme.NoActionBarLaunch">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<resources>

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

</style>

<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:background">@drawable/splash_screen</item>
</style>

<style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
<item name="android:background">@drawable/splash_screen</item>
</style>

</resources>
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"@capacitor-community/admob": "^6.1.0",
"@capacitor/android": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/push-notifications": "^6.0.3"
"@capacitor/push-notifications": "^6.0.3",
"@capacitor/splash-screen": "^6.0.3"
},
"devDependencies": {
"@babel/core": "^7.26.0",
Expand Down

0 comments on commit ea3499d

Please sign in to comment.