refactor: pre release cleanup all over the place

This commit is contained in:
Rainer Killinger
2022-10-21 16:01:44 +00:00
parent c3130a392a
commit acdd93eb99
20 changed files with 215 additions and 139 deletions

View File

@@ -94,19 +94,21 @@ export class AppComponent implements AfterContentInit {
});
this.platform.ready().then(async () => {
if (Capacitor.isNativePlatform()) {
await StatusBar.setBackgroundColor({
color: getComputedStyle(document.documentElement)
.getPropertyValue('--ion-color-primary')
.trim(),
});
await StatusBar.setStyle({style: Style.Dark});
await StatusBar.setOverlaysWebView({overlay: false});
await NavigationBar.setColor({
color: getComputedStyle(document.documentElement)
.getPropertyValue('--ion-background-color')
.trim(),
darkButtons: true,
});
if (Capacitor.getPlatform() === 'android') {
await StatusBar.setBackgroundColor({
color: getComputedStyle(document.documentElement)
.getPropertyValue('--ion-color-primary')
.trim(),
});
await StatusBar.setOverlaysWebView({overlay: false});
await NavigationBar.setColor({
color: getComputedStyle(document.documentElement)
.getPropertyValue('--ion-background-color')
.trim(),
darkButtons: true,
});
}
}
await this.authNotificationsInit();
@@ -120,7 +122,7 @@ export class AppComponent implements AfterContentInit {
});
window.addEventListener('touchmove', this.touchMoveEvent, true);
if (Capacitor.isNativePlatform()) {
if (Capacitor.getPlatform() === 'ios') {
Keyboard.setResizeMode({mode: KeyboardResize.None});
}
}