modalReviewd

This commit is contained in:
ivan gomes
2021-11-29 15:48:35 +01:00
parent d2c207d473
commit 6fc66ce1e2
40 changed files with 764 additions and 78 deletions
+12 -1
View File
@@ -11,6 +11,8 @@ import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-pick
import { SqliteService } from 'src/app/services/sqlite.service';
import { BackgroundService } from 'src/app/services/background.service';
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
import { Directory, Filesystem } from '@capacitor/filesystem';
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
@@ -41,11 +43,20 @@ export class AppComponent {
private statusBar: StatusBar,
private screenOrientation: ScreenOrientation,
private sqliteservice: SqliteService,
private backgroundservice: BackgroundService
private backgroundservice: BackgroundService,
) {
this.createCacheFolder()
this.initializeApp();
}
async createCacheFolder(){
await Filesystem.mkdir({
directory: Directory.Cache,
path: `CACHED-IMG`
})
}
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();