Skip to content

Commit e479972

Browse files
committed
feat: added the capacitor status bar plugin to fix scrolling content over the status bar
1 parent 7497dd6 commit e479972

File tree

10 files changed

+61
-25
lines changed

10 files changed

+61
-25
lines changed

android/app/capacitor.build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies {
1818
implementation project(':capacitor-preferences')
1919
implementation project(':capacitor-share')
2020
implementation project(':capacitor-splash-screen')
21+
implementation project(':capacitor-status-bar')
2122
implementation project(':send-intent')
2223

2324
}

android/app/src/main/assets/capacitor.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
},
1717
"CapacitorHttp": {
1818
"enabled": true
19+
},
20+
"StatusBar": {
21+
"overlaysWebView": true
1922
}
2023
},
2124
"cordova": {}

android/app/src/main/assets/capacitor.plugins.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
"pkg": "@capacitor/splash-screen",
3636
"classpath": "com.capacitorjs.plugins.splashscreen.SplashScreenPlugin"
3737
},
38+
{
39+
"pkg": "@capacitor/status-bar",
40+
"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
41+
},
3842
{
3943
"pkg": "send-intent",
4044
"classpath": "de.mindlib.sendIntent.SendIntent"

android/capacitor.settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ project(':capacitor-share').projectDir = new File('../node_modules/@capacitor/sh
2929
include ':capacitor-splash-screen'
3030
project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android')
3131

32+
include ':capacitor-status-bar'
33+
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
34+
3235
include ':send-intent'
3336
project(':send-intent').projectDir = new File('../node_modules/send-intent/android')

capacitor.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
},
1717
"CapacitorHttp": {
1818
"enabled": true
19+
},
20+
"StatusBar": {
21+
"overlaysWebView": true
1922
}
2023
},
2124
"cordova": {}

ios/App/App/capacitor.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
},
1717
"CapacitorHttp": {
1818
"enabled": true
19+
},
20+
"StatusBar": {
21+
"overlaysWebView": true
1922
}
2023
},
2124
"cordova": {},
@@ -29,6 +32,7 @@
2932
"PreferencesPlugin",
3033
"SharePlugin",
3134
"SplashScreenPlugin",
35+
"StatusBarPlugin",
3236
"SendIntentPlugin"
3337
]
3438
}

ios/App/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def capacitor_pods
2020
pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences'
2121
pod 'CapacitorShare', :path => '../../node_modules/@capacitor/share'
2222
pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
23+
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
2324
pod 'SendIntent', :path => '../../node_modules/send-intent'
2425
end
2526

ios/App/Podfile.lock

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@ PODS:
22
- ByteowlsCapacitorOauth2 (5.0.0):
33
- Capacitor
44
- OAuthSwift (= 2.2.0)
5-
- Capacitor (6.1.1):
5+
- Capacitor (7.1.0):
66
- CapacitorCordova
7-
- CapacitorApp (6.0.0):
7+
- CapacitorApp (7.0.0):
88
- Capacitor
9-
- CapacitorBrowser (6.0.1):
9+
- CapacitorBrowser (7.0.0):
1010
- Capacitor
11-
- CapacitorCordova (6.1.1)
12-
- CapacitorDevice (6.0.0):
11+
- CapacitorCordova (7.1.0)
12+
- CapacitorDevice (7.0.0):
1313
- Capacitor
14-
- CapacitorFilesystem (6.0.0):
14+
- CapacitorFilesystem (7.0.0):
1515
- Capacitor
16-
- CapacitorNetwork (6.0.1):
16+
- CapacitorNetwork (7.0.0):
1717
- Capacitor
18-
- CapacitorPreferences (6.0.1):
18+
- CapacitorPreferences (7.0.0):
1919
- Capacitor
20-
- CapacitorShare (6.0.1):
20+
- CapacitorShare (7.0.0):
2121
- Capacitor
22-
- CapacitorSplashScreen (6.0.1):
22+
- CapacitorSplashScreen (7.0.0):
23+
- Capacitor
24+
- CapacitorStatusBar (7.0.1):
2325
- Capacitor
2426
- OAuthSwift (2.2.0)
25-
- SendIntent (0.0.1):
27+
- SendIntent (7.0.0):
2628
- Capacitor
2729

2830
DEPENDENCIES:
@@ -37,6 +39,7 @@ DEPENDENCIES:
3739
- "CapacitorPreferences (from `../../node_modules/@capacitor/preferences`)"
3840
- "CapacitorShare (from `../../node_modules/@capacitor/share`)"
3941
- "CapacitorSplashScreen (from `../../node_modules/@capacitor/splash-screen`)"
42+
- "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
4043
- SendIntent (from `../../node_modules/send-intent`)
4144

4245
SPEC REPOS:
@@ -66,24 +69,27 @@ EXTERNAL SOURCES:
6669
:path: "../../node_modules/@capacitor/share"
6770
CapacitorSplashScreen:
6871
:path: "../../node_modules/@capacitor/splash-screen"
72+
CapacitorStatusBar:
73+
:path: "../../node_modules/@capacitor/status-bar"
6974
SendIntent:
7075
:path: "../../node_modules/send-intent"
7176

7277
SPEC CHECKSUMS:
7378
ByteowlsCapacitorOauth2: 9e7cdae2bf251463a6ad89493e27fb288bf694d7
74-
Capacitor: 8941aba4364ba9d1b22188569001f2ce45cc2b00
75-
CapacitorApp: 9d53aec7101f7b030a950c5bdc4df8612576b279
76-
CapacitorBrowser: 473c7fd70ddbe541608ff09ec1be14da0078279e
77-
CapacitorCordova: 8f2cc8d8d3619c566e9418fe8772064a94266106
78-
CapacitorDevice: f8fd88f9edd1261c55a109f32015b09bbbfdc4a0
79-
CapacitorFilesystem: 60e59ba274c234a979e7a3be2552feaadcee4263
80-
CapacitorNetwork: 5c94acfdddc22043f2ffaff224ce9b4aa5a179f0
81-
CapacitorPreferences: 72909b165bc7807103778ddbb86d5d8ce06abf71
82-
CapacitorShare: 02222f2457ff003e642370a9c1ecd101baaa27c8
83-
CapacitorSplashScreen: 61645214e8f955ff2b80f16a6a3648960fe4c89f
79+
Capacitor: 68ff8eabbcce387e69767c13b5fbcc1c5399eabc
80+
CapacitorApp: 45cb7cbef4aa380b9236fd6980033eb5cde6fcd2
81+
CapacitorBrowser: 352a66541b15ceadae1d703802b11979023705e3
82+
CapacitorCordova: 866217f32c1d25b326c568a10ea3ed0c36b13e29
83+
CapacitorDevice: 62066b65e148a133df7b8c5bf972ba835b329748
84+
CapacitorFilesystem: 2881ad012b5c8d0ffbfed1216aadfc2cca16d5b5
85+
CapacitorNetwork: cd17b98182841055ff58629213242a1f22f4a76b
86+
CapacitorPreferences: e24a50a936f0e4f54a6b43be6121f923b4d91c27
87+
CapacitorShare: 2fcf1758cd07e0558f6aed40d7437bf8a3a42297
88+
CapacitorSplashScreen: f4e58cc02aafd91c7cbaf32a3d1b44d02a115125
89+
CapacitorStatusBar: 275cbf2f4dfc00388f519ef80c7ec22edda342c9
8490
OAuthSwift: 75efbb5bd9a4b2b71a37bd7e986bf3f55ddd54c6
85-
SendIntent: 0a17b6984c4f27e9dfa56513267ba2c044a5a6c8
91+
SendIntent: 1f4f65c7103eb423067c566682dfcda973b5fb29
8692

87-
PODFILE CHECKSUM: ec4a5e49843d3546e8e3d2415a3cc07be4758a27
93+
PODFILE CHECKSUM: 5f190d3cd506bedc6bc77c16b4323e26407cdc66
8894

8995
COCOAPODS: 1.16.2

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"@capacitor/preferences": "7.x",
8989
"@capacitor/share": "7.x",
9090
"@capacitor/splash-screen": "7.x",
91+
"@capacitor/status-bar": "7.x",
9192
"@isomorphic-git/lightning-fs": "^4.6.0",
9293
"@sentry/vue": "7.x",
9394
"@sentry/webpack-plugin": "2.x",

0 commit comments

Comments
 (0)