Skip to content

Commit 928d95b

Browse files
Copilot0xrinegade
andcommitted
Fix Capacitor init step logic and convert config to JSON format
Co-authored-by: 0xrinegade <[email protected]>
1 parent 151fd76 commit 928d95b

File tree

3 files changed

+31
-39
lines changed

3 files changed

+31
-39
lines changed

.github/workflows/build-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Initialize Capacitor (if not exists)
4747
run: |
48-
if [ ! -d "android" ] || [ ! -f "capacitor.config.ts" ]; then
48+
if [ ! -d "android" ] && [ ! -f "capacitor.config.json" ] && [ ! -f "capacitor.config.ts" ]; then
4949
npx cap init "SVMSeek Wallet" "com.svmseek.wallet" --web-dir=build
5050
fi
5151

capacitor.config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"appId": "com.svmseek.wallet",
3+
"appName": "SVMSeek Wallet",
4+
"webDir": "build",
5+
"server": {
6+
"androidScheme": "https"
7+
},
8+
"plugins": {
9+
"SplashScreen": {
10+
"launchShowDuration": 3000,
11+
"launchAutoHide": true,
12+
"backgroundColor": "#ffffffff",
13+
"androidSplashResourceName": "splash",
14+
"androidScaleType": "CENTER_CROP",
15+
"showSpinner": true,
16+
"androidSpinnerStyle": "large",
17+
"iosSpinnerStyle": "small",
18+
"spinnerColor": "#999999",
19+
"splashFullScreen": true,
20+
"splashImmersive": true,
21+
"layoutName": "launch_screen",
22+
"useDialog": true
23+
}
24+
},
25+
"android": {
26+
"buildOptions": {
27+
"releaseType": "APK"
28+
}
29+
}
30+
}

capacitor.config.ts

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

0 commit comments

Comments
 (0)