diff --git a/jest.config.js b/jest.config.js index cae628ad0..fd6c50807 100644 --- a/jest.config.js +++ b/jest.config.js @@ -12,7 +12,7 @@ module.exports = { transform: { '^.+\\.(ts|html)$': 'ts-jest', }, - transformIgnorePatterns: ['node_modules/(?!@ionic-native|@ionic|@moodlehq/ionic-native-push)'], + transformIgnorePatterns: ['node_modules/(?!@awesome-cordova-plugins|@ionic/core|@stencil/core|ionicons|@moodlehq/ionic-native-push)'], moduleNameMapper: { ...pathsToModuleNameMapper(compilerOptions.paths, { prefix: '/src/' }), '^!raw-loader!.*': 'jest-raw-loader', diff --git a/package-lock.json b/package-lock.json index 94b5a6400..729e6b7e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,29 @@ "@angular/platform-browser": "^16.2.0", "@angular/platform-browser-dynamic": "^16.2.0", "@angular/router": "^16.2.0", + "@awesome-cordova-plugins/badge": "^6.3.0", + "@awesome-cordova-plugins/camera": "^6.3.0", + "@awesome-cordova-plugins/chooser": "^6.3.0", + "@awesome-cordova-plugins/clipboard": "^6.3.0", + "@awesome-cordova-plugins/core": "^6.3.0", + "@awesome-cordova-plugins/device": "^6.3.0", + "@awesome-cordova-plugins/diagnostic": "^6.3.0", + "@awesome-cordova-plugins/file": "^6.3.0", + "@awesome-cordova-plugins/file-opener": "^6.3.0", + "@awesome-cordova-plugins/file-transfer": "^6.3.0", + "@awesome-cordova-plugins/geolocation": "^6.3.0", + "@awesome-cordova-plugins/http": "^6.3.0", + "@awesome-cordova-plugins/in-app-browser": "^6.3.0", + "@awesome-cordova-plugins/ionic-webview": "^6.3.0", + "@awesome-cordova-plugins/keyboard": "^6.3.0", + "@awesome-cordova-plugins/local-notifications": "^6.3.0", + "@awesome-cordova-plugins/media-capture": "^6.3.0", + "@awesome-cordova-plugins/network": "^6.3.0", + "@awesome-cordova-plugins/splash-screen": "^6.3.0", + "@awesome-cordova-plugins/sqlite": "^6.3.0", + "@awesome-cordova-plugins/status-bar": "^6.3.0", + "@awesome-cordova-plugins/web-intent": "^6.3.0", + "@awesome-cordova-plugins/zip": "^6.3.0", "@ionic/angular": "^7.0.0", "@ionic/cordova-builders": "^10.0.0", "@moodlehq/cordova-plugin-advanced-http": "3.3.1-moodle.1", @@ -758,6 +781,281 @@ "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==" }, + "node_modules/@awesome-cordova-plugins/badge": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/badge/-/badge-6.4.0.tgz", + "integrity": "sha512-4Fy1ykRH6hfSVTbVOX98g+MiJlhc3ozjEePTl7z2FsJ4kkfUT9lVPM6TdBo1PVNn+PePNR2gKCKOIMJK4BJ+jw==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/camera": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/camera/-/camera-6.4.0.tgz", + "integrity": "sha512-ApkGm5DaRet1XVTZEk2flhFqPaxbI2Ymj3I7FjqfjR+oP5GvVj0MQ17Oo8gVGRIHZIde6ifks0xn/NfdiT9ySg==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/chooser": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/chooser/-/chooser-6.4.0.tgz", + "integrity": "sha512-/0Tei8A9Ms2sE9VyWKtt0pVC9r+d9hURQxFnVmtZfKX3nM5fdYRRfzh5BBIrJzn4YMV+TIOv6g3EE1YAhvYTpA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/clipboard": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/clipboard/-/clipboard-6.4.0.tgz", + "integrity": "sha512-oDPQ/vJe8wQi/GeqHt7bCydeiReRMQ1lcmC9EvH0GoQUa/M3MOb4dWcSAAz23CxdGY6ePeeCS+727+Hc7xpakA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/core/-/core-6.4.0.tgz", + "integrity": "sha512-06I5JdTgAgKTby+VG+3sQF5+z4RNCEyVl6y7tz2rICx8MURL1biuh3oGGN1rCQQjsuMZcX5siMBr0NF/OHqxLQ==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/device": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/device/-/device-6.4.0.tgz", + "integrity": "sha512-uGwlkNH7siiMvgC6PijCDySn59JY0qwxXLvOvhhumX1Lh8VjCEUfVRjkrgJEPEcJGY6lHjw4jChCWY2Tr1g/UQ==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/diagnostic": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/diagnostic/-/diagnostic-6.4.0.tgz", + "integrity": "sha512-XvYYviet10nRLeNDLcYkO9EdWxxTKWKt4XFHscmhP1Nyg7QFi2vJS8FwZj6u4y/u3JBlCe+/4s3xXC/6jpQTbg==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/file": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/file/-/file-6.4.0.tgz", + "integrity": "sha512-KOpYpUYA9PU37qiNS1QsTwtms1bX6YsOY2ASxwCqhD+gOqpCfkFHW0kJ9yFmO68gRR2vK3k6PgUimwJXkG6RgA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/file-opener": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/file-opener/-/file-opener-6.4.0.tgz", + "integrity": "sha512-1IIFvnz8gPL4mQNqkA1LOUQeWoF8aUAbFGSVLfcvEwJlgXvzT6yC/t8F3Czf0se2TX4tbaoqCiAtxnwBaoIItA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/file-transfer": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/file-transfer/-/file-transfer-6.4.0.tgz", + "integrity": "sha512-0FCtWSJQh62tlRu6GZdila6Yz5Z4D538zoIDvbmPNJfH8Urhops5ihscatebYHjNAt2UF8WmxzVjDyGOljcCbQ==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/geolocation": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/geolocation/-/geolocation-6.4.0.tgz", + "integrity": "sha512-Jyn3pB1sPBqpZrv6/6A1gT7/FIDSYOaGbYNEeF9EHm9hz2maLXIVVdwYY8Hp9vggZ2g2mDpRLRNbXRfSo+R9Gw==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/http": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/http/-/http-6.4.0.tgz", + "integrity": "sha512-nv8Az1bYnEm/MQSA6Oec0FFAGFu5bmubQXypp08ZUJA4uGkps3IJS02F0451PF/vM0Jcpnb+W6ZRqRCNJ34ZJA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/in-app-browser": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/in-app-browser/-/in-app-browser-6.4.0.tgz", + "integrity": "sha512-AaHg/hpXrfKtX+HCzENJDjR9z2wYyNe86o2VeKZlQQP/teuo8SleOIsmN4yTVI1nqnGrQTuD4sKQIhiNeS836g==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/ionic-webview": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/ionic-webview/-/ionic-webview-6.4.0.tgz", + "integrity": "sha512-w45CjIn/CqZ3D5pXG5t+QyXwdUnBskFmbdN/A6Tv0NVu6uYl3cz0ZWFN+4bK2X/5IPlSC1orQAHaEHrGFomvpw==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/keyboard": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/keyboard/-/keyboard-6.4.0.tgz", + "integrity": "sha512-9CNRYlnqbi47FyRPzcPGUkW8kQNv0nowxPAmBFkda51GNXvtw+BQ7YLDQSkthyBZr5RlU3GmtGibyYIMeOlLkQ==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/local-notifications": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/local-notifications/-/local-notifications-6.4.0.tgz", + "integrity": "sha512-q6oeVqLx6SSOkeSCu46PvX6twdY3GevRz5aIlOtroNhqmCmeDmIq2OppDnL3DmnqOY0VVO3spYdQEuo2uYRCwQ==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/media-capture": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/media-capture/-/media-capture-6.4.0.tgz", + "integrity": "sha512-HP6OsvIDr1V76UgBfNvhoy9dM1IC7Eo0ACisbPoJECZKVSNfTwWoVZonyCvp76U0xaoXuF10GRN6WlQisoWXIw==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/network": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/network/-/network-6.4.0.tgz", + "integrity": "sha512-opEQo8c/KeGH2bSqJ6F7jOxgC2lMkTZD2PxIsN5jId4KsbOMfvB4cE5ljVcx8TCmeKwHj7pGPlLcR9Eze1BawA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/splash-screen": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/splash-screen/-/splash-screen-6.4.0.tgz", + "integrity": "sha512-0JlJysmxOPiU+wCMfo4ocHTPBWrhyTsh34Kig6t+lgO5fLUUtrLXW3LCOxx0TaXJt5XjYdfXXQciLYGXcQ4gww==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/sqlite": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/sqlite/-/sqlite-6.4.0.tgz", + "integrity": "sha512-2CXSZxp0pQUabSv4kLzCMpicNjuKmwraJ3xCP3+6QVvZr0kZ10Xh8cgIU5nPL/x9G2zzG9fVubLewh3hEgR8Zg==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/status-bar": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/status-bar/-/status-bar-6.4.0.tgz", + "integrity": "sha512-BQ0Nip16YFQ7PvQvu5+SJASDl8Uomxm1wn9tZpk+8NcQGLKTf8fL94Z2MA5HjFsHaAlzw+fFo7UJ9+9qfd1hPA==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/web-intent": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/web-intent/-/web-intent-6.4.0.tgz", + "integrity": "sha512-JJJpQ/viDCCkdhvq0A3ZnY5mmnNPd1IHGlB8tDR0jfunWzh2wK5EbETt0RVAF7zYxRnHKltx6Ep3FAd7JIY0Kw==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, + "node_modules/@awesome-cordova-plugins/zip": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/zip/-/zip-6.4.0.tgz", + "integrity": "sha512-s6Bg+sBepwhVvN+8fdns8QOOY5Mo5pg9Iy1aJiFDBUipuQOLaO++zw5u+no0igObnYcaQAdSO2XyEBX/h0T59g==", + "dependencies": { + "@types/cordova": "latest" + }, + "peerDependencies": { + "@awesome-cordova-plugins/core": "^6.0.1", + "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.23.4", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", diff --git a/package.json b/package.json index 11f19e95b..433ff5496 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,29 @@ "@angular/platform-browser": "^16.2.0", "@angular/platform-browser-dynamic": "^16.2.0", "@angular/router": "^16.2.0", + "@awesome-cordova-plugins/badge": "^6.3.0", + "@awesome-cordova-plugins/camera": "^6.3.0", + "@awesome-cordova-plugins/chooser": "^6.3.0", + "@awesome-cordova-plugins/clipboard": "^6.3.0", + "@awesome-cordova-plugins/core": "^6.3.0", + "@awesome-cordova-plugins/device": "^6.3.0", + "@awesome-cordova-plugins/diagnostic": "^6.3.0", + "@awesome-cordova-plugins/file": "^6.3.0", + "@awesome-cordova-plugins/file-opener": "^6.3.0", + "@awesome-cordova-plugins/file-transfer": "^6.3.0", + "@awesome-cordova-plugins/geolocation": "^6.3.0", + "@awesome-cordova-plugins/http": "^6.3.0", + "@awesome-cordova-plugins/in-app-browser": "^6.3.0", + "@awesome-cordova-plugins/ionic-webview": "^6.3.0", + "@awesome-cordova-plugins/keyboard": "^6.3.0", + "@awesome-cordova-plugins/local-notifications": "^6.3.0", + "@awesome-cordova-plugins/media-capture": "^6.3.0", + "@awesome-cordova-plugins/network": "^6.3.0", + "@awesome-cordova-plugins/splash-screen": "^6.3.0", + "@awesome-cordova-plugins/sqlite": "^6.3.0", + "@awesome-cordova-plugins/status-bar": "^6.3.0", + "@awesome-cordova-plugins/web-intent": "^6.3.0", + "@awesome-cordova-plugins/zip": "^6.3.0", "@ionic/angular": "^7.0.0", "@ionic/cordova-builders": "^10.0.0", "@moodlehq/cordova-plugin-advanced-http": "3.3.1-moodle.1", diff --git a/src/addons/mod/assign/services/assign-helper.ts b/src/addons/mod/assign/services/assign-helper.ts index 36691cf68..49384adee 100644 --- a/src/addons/mod/assign/services/assign-helper.ts +++ b/src/addons/mod/assign/services/assign-helper.ts @@ -15,7 +15,7 @@ import { Injectable } from '@angular/core'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreSites, CoreSitesCommonWSOptions } from '@services/sites'; -import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry } from '@awesome-cordova-plugins/file/ngx'; import { AddonModAssignProvider, AddonModAssignAssign, diff --git a/src/addons/mod/assign/submission/file/component/file.ts b/src/addons/mod/assign/submission/file/component/file.ts index 560757263..dd43def99 100644 --- a/src/addons/mod/assign/submission/file/component/file.ts +++ b/src/addons/mod/assign/submission/file/component/file.ts @@ -20,7 +20,7 @@ import { CoreFileUploaderStoreFilesResult } from '@features/fileuploader/service import { CoreFileSession } from '@services/file-session'; import { CoreUtils } from '@services/utils/utils'; import { AddonModAssignSubmissionFileHandlerService } from '../services/handler'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { AddonModAssignSubmissionPluginBaseComponent } from '@addons/mod/assign/classes/base-submission-plugin-component'; import { CoreFileEntry } from '@services/file-helper'; diff --git a/src/addons/mod/assign/submission/file/services/handler.ts b/src/addons/mod/assign/submission/file/services/handler.ts index 07f87e6a9..a919b5ac4 100644 --- a/src/addons/mod/assign/submission/file/services/handler.ts +++ b/src/addons/mod/assign/submission/file/services/handler.ts @@ -30,7 +30,7 @@ import { CoreUtils } from '@services/utils/utils'; import { CoreWSFile } from '@services/ws'; import { makeSingleton } from '@singletons'; import { AddonModAssignSubmissionFileComponent } from '../component/file'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import type { AddonModAssignSubmissionPluginBaseComponent } from '@addons/mod/assign/classes/base-submission-plugin-component'; /** diff --git a/src/addons/mod/data/fields/file/services/handler.ts b/src/addons/mod/data/fields/file/services/handler.ts index 46c665809..28db29431 100644 --- a/src/addons/mod/data/fields/file/services/handler.ts +++ b/src/addons/mod/data/fields/file/services/handler.ts @@ -22,7 +22,7 @@ import { import { AddonModDataFieldHandler } from '@addons/mod/data/services/data-fields-delegate'; import { Injectable, Type } from '@angular/core'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileSession } from '@services/file-session'; import { CoreFormFields } from '@singletons/form'; import { makeSingleton, Translate } from '@singletons'; diff --git a/src/addons/mod/data/fields/picture/services/handler.ts b/src/addons/mod/data/fields/picture/services/handler.ts index 386b59231..809f3ef7f 100644 --- a/src/addons/mod/data/fields/picture/services/handler.ts +++ b/src/addons/mod/data/fields/picture/services/handler.ts @@ -22,7 +22,7 @@ import { import { AddonModDataFieldHandler } from '@addons/mod/data/services/data-fields-delegate'; import { Injectable, Type } from '@angular/core'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileSession } from '@services/file-session'; import { CoreFormFields } from '@singletons/form'; import { makeSingleton, Translate } from '@singletons'; diff --git a/src/addons/mod/data/services/data-fields-delegate.ts b/src/addons/mod/data/services/data-fields-delegate.ts index 4332cefc9..ba0a103d3 100644 --- a/src/addons/mod/data/services/data-fields-delegate.ts +++ b/src/addons/mod/data/services/data-fields-delegate.ts @@ -22,7 +22,7 @@ import { AddonModDataEntryField, AddonModDataSubfieldData, } from './data'; import { CoreFormFields } from '@singletons/form'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileEntry } from '@services/file-helper'; import type { AddonModDataFieldPluginBaseComponent } from '@addons/mod/data/classes/base-field-plugin-component'; diff --git a/src/addons/mod/data/services/data-helper.ts b/src/addons/mod/data/services/data-helper.ts index 8227bd512..a5df40d37 100644 --- a/src/addons/mod/data/services/data-helper.ts +++ b/src/addons/mod/data/services/data-helper.ts @@ -17,7 +17,7 @@ import { Injectable } from '@angular/core'; import { CoreCourse } from '@features/course/services/course'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreRatingOffline } from '@features/rating/services/rating-offline'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreSites, CoreSitesReadingStrategy } from '@services/sites'; import { CoreDomUtils, ToastDuration } from '@services/utils/dom'; import { CoreFormFields } from '@singletons/form'; diff --git a/src/addons/mod/forum/pages/new-discussion/new-discussion.ts b/src/addons/mod/forum/pages/new-discussion/new-discussion.ts index c69537590..6eb86ce9a 100644 --- a/src/addons/mod/forum/pages/new-discussion/new-discussion.ts +++ b/src/addons/mod/forum/pages/new-discussion/new-discussion.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, OnDestroy, ViewChild, ElementRef, OnInit, Optional } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { FormControl } from '@angular/forms'; import { CoreEvents, CoreEventObserver } from '@singletons/events'; import { CoreGroup, CoreGroups, CoreGroupsProvider } from '@services/groups'; diff --git a/src/addons/mod/forum/services/forum-helper.ts b/src/addons/mod/forum/services/forum-helper.ts index 68c86e7aa..a3c45cd35 100644 --- a/src/addons/mod/forum/services/forum-helper.ts +++ b/src/addons/mod/forum/services/forum-helper.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreUser } from '@features/user/services/user'; import { CoreNetwork } from '@services/network'; diff --git a/src/addons/mod/glossary/pages/entry/entry.ts b/src/addons/mod/glossary/pages/entry/entry.ts index d40f875d6..cc15c5dcb 100644 --- a/src/addons/mod/glossary/pages/entry/entry.ts +++ b/src/addons/mod/glossary/pages/entry/entry.ts @@ -23,7 +23,7 @@ import { CoreCommentsCommentsComponent } from '@features/comments/components/com import { CoreComments } from '@features/comments/services/comments'; import { CoreRatingInfo } from '@features/rating/services/rating'; import { CoreTag } from '@features/tag/services/tag'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreNavigator } from '@services/navigator'; import { CoreNetwork } from '@services/network'; import { CoreDomUtils, ToastDuration } from '@services/utils/dom'; diff --git a/src/addons/mod/glossary/services/glossary-helper.ts b/src/addons/mod/glossary/services/glossary-helper.ts index 46e4e25ca..e4f9e3067 100644 --- a/src/addons/mod/glossary/services/glossary-helper.ts +++ b/src/addons/mod/glossary/services/glossary-helper.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreFile } from '@services/file'; import { CoreUtils } from '@services/utils/utils'; diff --git a/src/addons/mod/workshop/services/workshop-helper.ts b/src/addons/mod/workshop/services/workshop-helper.ts index 367148474..898ab0166 100644 --- a/src/addons/mod/workshop/services/workshop-helper.ts +++ b/src/addons/mod/workshop/services/workshop-helper.ts @@ -15,7 +15,7 @@ import { Injectable } from '@angular/core'; import { CoreError } from '@classes/errors/error'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile } from '@services/file'; import { CoreFileEntry } from '@services/file-helper'; import { CoreSites } from '@services/sites'; diff --git a/src/addons/qtype/essay/component/essay.ts b/src/addons/qtype/essay/component/essay.ts index 2b2313f8b..d216b87f4 100644 --- a/src/addons/qtype/essay/component/essay.ts +++ b/src/addons/qtype/essay/component/essay.ts @@ -14,7 +14,7 @@ import { Component, ElementRef } from '@angular/core'; import { FormBuilder, FormControl } from '@angular/forms'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { AddonModQuizEssayQuestion, CoreQuestionBaseComponent } from '@features/question/classes/base-question-component'; diff --git a/src/addons/qtype/essay/services/handlers/essay.ts b/src/addons/qtype/essay/services/handlers/essay.ts index 96c39cd18..5d5ad3d7a 100644 --- a/src/addons/qtype/essay/services/handlers/essay.ts +++ b/src/addons/qtype/essay/services/handlers/essay.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable, Type } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { AddonModQuizEssayQuestion } from '@features/question/classes/base-question-component'; diff --git a/src/core/classes/native-to-angular-http.ts b/src/core/classes/native-to-angular-http.ts index 08349dd30..a5c12dc0f 100644 --- a/src/core/classes/native-to-angular-http.ts +++ b/src/core/classes/native-to-angular-http.ts @@ -13,7 +13,7 @@ // limitations under the License. import { HttpResponse as AngularHttpResponse, HttpHeaders } from '@angular/common/http'; -import { HTTPResponse as NativeHttpResponse } from '@ionic-native/http'; +import { HTTPResponse as NativeHttpResponse } from '@awesome-cordova-plugins/http'; const HTTP_STATUS_MESSAGES = { 100: 'Continue', diff --git a/src/core/classes/sites/site.ts b/src/core/classes/sites/site.ts index 53cce59c8..b19afa532 100644 --- a/src/core/classes/sites/site.ts +++ b/src/core/classes/sites/site.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { InAppBrowserObject, InAppBrowserOptions } from '@ionic-native/in-app-browser'; +import { InAppBrowserObject, InAppBrowserOptions } from '@awesome-cordova-plugins/in-app-browser'; import { CoreNetwork } from '@services/network'; import { CoreDB } from '@services/db'; diff --git a/src/core/classes/sqlitedb.ts b/src/core/classes/sqlitedb.ts index a406f7e43..f6793f8cb 100644 --- a/src/core/classes/sqlitedb.ts +++ b/src/core/classes/sqlitedb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { SQLiteObject } from '@ionic-native/sqlite/ngx'; +import { SQLiteObject } from '@awesome-cordova-plugins/sqlite/ngx'; import { SQLite } from '@singletons'; import { CoreError } from '@classes/errors/error'; diff --git a/src/core/components/attachments/attachments.ts b/src/core/components/attachments/attachments.ts index 97999dd16..d8b9ad346 100644 --- a/src/core/components/attachments/attachments.ts +++ b/src/core/components/attachments/attachments.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, Input, OnInit } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFileUploader, CoreFileUploaderTypeList } from '@features/fileuploader/services/fileuploader'; import { CoreSites } from '@services/sites'; diff --git a/src/core/components/local-file/local-file.ts b/src/core/components/local-file/local-file.ts index 290979e0d..a61142734 100644 --- a/src/core/components/local-file/local-file.ts +++ b/src/core/components/local-file/local-file.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, Input, Output, OnInit, EventEmitter, ViewChild, ElementRef } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreIonLoadingElement } from '@classes/ion-loading'; import { CoreFile } from '@services/file'; diff --git a/src/core/features/emulator/classes/sqlitedb.ts b/src/core/features/emulator/classes/sqlitedb.ts index 9111fd84b..f0243ba6f 100644 --- a/src/core/features/emulator/classes/sqlitedb.ts +++ b/src/core/features/emulator/classes/sqlitedb.ts @@ -13,7 +13,7 @@ // limitations under the License. import { SQLiteDB } from '@classes/sqlitedb'; -import { DbTransaction, SQLiteObject } from '@ionic-native/sqlite/ngx'; +import { DbTransaction, SQLiteObject } from '@awesome-cordova-plugins/sqlite/ngx'; import { CoreDB } from '@services/db'; /** diff --git a/src/core/features/emulator/components/capture-media/capture-media.ts b/src/core/features/emulator/components/capture-media/capture-media.ts index 34f9390e9..dfa829888 100644 --- a/src/core/features/emulator/components/capture-media/capture-media.ts +++ b/src/core/features/emulator/components/capture-media/capture-media.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, OnInit, OnDestroy, ViewChild, ElementRef, ChangeDetectorRef, Input } from '@angular/core'; -import { MediaFile } from '@ionic-native/media-capture/ngx'; +import { MediaFile } from '@awesome-cordova-plugins/media-capture/ngx'; import { CoreFile, CoreFileProvider } from '@services/file'; import { CoreDomUtils } from '@services/utils/dom'; diff --git a/src/core/features/emulator/emulator.module.ts b/src/core/features/emulator/emulator.module.ts index e82936fe0..a5436fa31 100644 --- a/src/core/features/emulator/emulator.module.ts +++ b/src/core/features/emulator/emulator.module.ts @@ -18,16 +18,16 @@ import { CoreEmulatorHelper } from './services/emulator-helper'; import { CoreEmulatorComponentsModule } from './components/components.module'; // Ionic Native services. -import { Camera } from '@ionic-native/camera/ngx'; -import { Clipboard } from '@ionic-native/clipboard/ngx'; -import { File } from '@ionic-native/file/ngx'; -import { FileOpener } from '@ionic-native/file-opener/ngx'; -import { FileTransfer } from '@ionic-native/file-transfer/ngx'; -import { Geolocation } from '@ionic-native/geolocation/ngx'; -import { InAppBrowser } from '@ionic-native/in-app-browser/ngx'; -import { LocalNotifications } from '@ionic-native/local-notifications/ngx'; -import { MediaCapture } from '@ionic-native/media-capture/ngx'; -import { Zip } from '@ionic-native/zip/ngx'; +import { Camera } from '@awesome-cordova-plugins/camera/ngx'; +import { Clipboard } from '@awesome-cordova-plugins/clipboard/ngx'; +import { File } from '@awesome-cordova-plugins/file/ngx'; +import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx'; +import { FileTransfer } from '@awesome-cordova-plugins/file-transfer/ngx'; +import { Geolocation } from '@awesome-cordova-plugins/geolocation/ngx'; +import { InAppBrowser } from '@awesome-cordova-plugins/in-app-browser/ngx'; +import { LocalNotifications } from '@awesome-cordova-plugins/local-notifications/ngx'; +import { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx'; +import { Zip } from '@awesome-cordova-plugins/zip/ngx'; // Mock services. import { CameraMock } from './services/camera'; diff --git a/src/core/features/emulator/services/camera.ts b/src/core/features/emulator/services/camera.ts index 5718ca7a3..871fc2235 100644 --- a/src/core/features/emulator/services/camera.ts +++ b/src/core/features/emulator/services/camera.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { Camera, CameraOptions } from '@ionic-native/camera/ngx'; +import { Camera, CameraOptions } from '@awesome-cordova-plugins/camera/ngx'; import { CoreEmulatorCaptureHelper } from './capture-helper'; diff --git a/src/core/features/emulator/services/capture-helper.ts b/src/core/features/emulator/services/capture-helper.ts index 42c0288a5..e984b3cb4 100644 --- a/src/core/features/emulator/services/capture-helper.ts +++ b/src/core/features/emulator/services/capture-helper.ts @@ -13,8 +13,8 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { CameraOptions } from '@ionic-native/camera/ngx'; -import { CaptureImageOptions, CaptureVideoOptions, MediaFile } from '@ionic-native/media-capture/ngx'; +import { CameraOptions } from '@awesome-cordova-plugins/camera/ngx'; +import { CaptureImageOptions, CaptureVideoOptions, MediaFile } from '@awesome-cordova-plugins/media-capture/ngx'; import { CoreMimetypeUtils } from '@services/utils/mimetype'; import { makeSingleton, ModalController } from '@singletons'; diff --git a/src/core/features/emulator/services/clipboard.ts b/src/core/features/emulator/services/clipboard.ts index 3a4615fc2..24c45dbcd 100644 --- a/src/core/features/emulator/services/clipboard.ts +++ b/src/core/features/emulator/services/clipboard.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { Clipboard } from '@ionic-native/clipboard/ngx'; +import { Clipboard } from '@awesome-cordova-plugins/clipboard/ngx'; /** * Emulates the Cordova Clipboard plugin in browser. diff --git a/src/core/features/emulator/services/file-opener.ts b/src/core/features/emulator/services/file-opener.ts index 89835c2ab..38fc0ff22 100644 --- a/src/core/features/emulator/services/file-opener.ts +++ b/src/core/features/emulator/services/file-opener.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileOpener } from '@ionic-native/file-opener/ngx'; +import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx'; import { CoreFile } from '@services/file'; diff --git a/src/core/features/emulator/services/file-transfer.ts b/src/core/features/emulator/services/file-transfer.ts index 174ad8a42..7b758bb4d 100644 --- a/src/core/features/emulator/services/file-transfer.ts +++ b/src/core/features/emulator/services/file-transfer.ts @@ -14,7 +14,7 @@ import { CoreTextUtils } from '@services/utils/text'; import { Injectable } from '@angular/core'; -import { FileTransfer, FileTransferObject, FileUploadResult, FileTransferError } from '@ionic-native/file-transfer/ngx'; +import { FileTransfer, FileTransferObject, FileUploadResult, FileTransferError } from '@awesome-cordova-plugins/file-transfer/ngx'; import { CoreFile } from '@services/file'; diff --git a/src/core/features/emulator/services/file.ts b/src/core/features/emulator/services/file.ts index b98d70e9b..a9a61a124 100644 --- a/src/core/features/emulator/services/file.ts +++ b/src/core/features/emulator/services/file.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { File, Entry, DirectoryEntry, FileEntry, IWriteOptions, RemoveResult } from '@ionic-native/file/ngx'; +import { File, Entry, DirectoryEntry, FileEntry, IWriteOptions, RemoveResult } from '@awesome-cordova-plugins/file/ngx'; import { CorePath } from '@singletons/path'; /** diff --git a/src/core/features/emulator/services/geolocation.ts b/src/core/features/emulator/services/geolocation.ts index 2f7ef778b..729993ac8 100644 --- a/src/core/features/emulator/services/geolocation.ts +++ b/src/core/features/emulator/services/geolocation.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { Geolocation, GeolocationOptions, Geoposition } from '@ionic-native/geolocation/ngx'; +import { Geolocation, GeolocationOptions, Geoposition } from '@awesome-cordova-plugins/geolocation/ngx'; import { Observable, Subscriber, TeardownLogic } from 'rxjs'; /** diff --git a/src/core/features/emulator/services/inappbrowser.ts b/src/core/features/emulator/services/inappbrowser.ts index 4a5dd709c..f91f78207 100644 --- a/src/core/features/emulator/services/inappbrowser.ts +++ b/src/core/features/emulator/services/inappbrowser.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { InAppBrowser, InAppBrowserObject } from '@ionic-native/in-app-browser/ngx'; +import { InAppBrowser, InAppBrowserObject } from '@awesome-cordova-plugins/in-app-browser/ngx'; /** * Emulates the Cordova InAppBrowser plugin in desktop apps. diff --git a/src/core/features/emulator/services/local-notifications.ts b/src/core/features/emulator/services/local-notifications.ts index 006b78230..02ef0cdd9 100644 --- a/src/core/features/emulator/services/local-notifications.ts +++ b/src/core/features/emulator/services/local-notifications.ts @@ -13,7 +13,7 @@ // limitations under the License. import { CoreError } from '@classes/errors/error'; -import { ILocalNotification, ILocalNotificationAction, LocalNotifications } from '@ionic-native/local-notifications/ngx'; +import { ILocalNotification, ILocalNotificationAction, LocalNotifications } from '@awesome-cordova-plugins/local-notifications/ngx'; import { Observable, Subject } from 'rxjs'; /** diff --git a/src/core/features/emulator/services/media-capture.ts b/src/core/features/emulator/services/media-capture.ts index 8c8985fbd..a84aced0c 100644 --- a/src/core/features/emulator/services/media-capture.ts +++ b/src/core/features/emulator/services/media-capture.ts @@ -18,7 +18,7 @@ import { CaptureImageOptions, CaptureVideoOptions, MediaFile, -} from '@ionic-native/media-capture/ngx'; +} from '@awesome-cordova-plugins/media-capture/ngx'; import { CoreEmulatorCaptureHelper } from './capture-helper'; diff --git a/src/core/features/emulator/services/zip.ts b/src/core/features/emulator/services/zip.ts index a511661f0..eb2c869c6 100644 --- a/src/core/features/emulator/services/zip.ts +++ b/src/core/features/emulator/services/zip.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { Zip } from '@ionic-native/zip/ngx'; +import { Zip } from '@awesome-cordova-plugins/zip/ngx'; import * as JSZip from 'jszip'; import { CorePath } from '@singletons/path'; import { File } from '@singletons'; diff --git a/src/core/features/fileuploader/services/fileuploader-delegate.ts b/src/core/features/fileuploader/services/fileuploader-delegate.ts index 1b2f2eb34..04683f7d6 100644 --- a/src/core/features/fileuploader/services/fileuploader-delegate.ts +++ b/src/core/features/fileuploader/services/fileuploader-delegate.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreDelegate, CoreDelegateHandler } from '@classes/delegate'; import { CoreEvents } from '@singletons/events'; diff --git a/src/core/features/fileuploader/services/fileuploader-helper.ts b/src/core/features/fileuploader/services/fileuploader-helper.ts index 6db1e65d3..d1d2cf9c1 100644 --- a/src/core/features/fileuploader/services/fileuploader-helper.ts +++ b/src/core/features/fileuploader/services/fileuploader-helper.ts @@ -14,10 +14,10 @@ import { Injectable } from '@angular/core'; import { ActionSheetButton } from '@ionic/core'; -import { CameraOptions } from '@ionic-native/camera/ngx'; -import { ChooserResult } from '@ionic-native/chooser/ngx'; -import { FileEntry, IFile } from '@ionic-native/file/ngx'; -import { MediaFile } from '@ionic-native/media-capture/ngx'; +import { CameraOptions } from '@awesome-cordova-plugins/camera/ngx'; +import { ChooserResult } from '@awesome-cordova-plugins/chooser/ngx'; +import { FileEntry, IFile } from '@awesome-cordova-plugins/file/ngx'; +import { MediaFile } from '@awesome-cordova-plugins/media-capture/ngx'; import { CoreNetwork } from '@services/network'; import { CoreFile, CoreFileProvider, CoreFileProgressEvent } from '@services/file'; diff --git a/src/core/features/fileuploader/services/fileuploader.ts b/src/core/features/fileuploader/services/fileuploader.ts index b9565d276..00c0d3af6 100644 --- a/src/core/features/fileuploader/services/fileuploader.ts +++ b/src/core/features/fileuploader/services/fileuploader.ts @@ -13,9 +13,9 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { CameraOptions } from '@ionic-native/camera/ngx'; -import { FileEntry } from '@ionic-native/file/ngx'; -import { MediaFile, CaptureError, CaptureVideoOptions } from '@ionic-native/media-capture/ngx'; +import { CameraOptions } from '@awesome-cordova-plugins/camera/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; +import { MediaFile, CaptureError, CaptureVideoOptions } from '@awesome-cordova-plugins/media-capture/ngx'; import { Subject } from 'rxjs'; import { CoreFile, CoreFileProvider } from '@services/file'; diff --git a/src/core/features/h5p/classes/helper.ts b/src/core/features/h5p/classes/helper.ts index f79ed7304..ba3c25a12 100644 --- a/src/core/features/h5p/classes/helper.ts +++ b/src/core/features/h5p/classes/helper.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile, CoreFileProvider } from '@services/file'; import { CoreSites } from '@services/sites'; diff --git a/src/core/features/h5p/classes/validator.ts b/src/core/features/h5p/classes/validator.ts index cabe33d35..2a7e7ea34 100644 --- a/src/core/features/h5p/classes/validator.ts +++ b/src/core/features/h5p/classes/validator.ts @@ -13,7 +13,7 @@ // limitations under the License. import { CoreError } from '@classes/errors/error'; -import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile, CoreFileFormat } from '@services/file'; import { Translate } from '@singletons'; import { CorePath } from '@singletons/path'; diff --git a/src/core/features/h5p/services/handlers/pluginfile.ts b/src/core/features/h5p/services/handlers/pluginfile.ts index aff8d9095..a370b7cbb 100644 --- a/src/core/features/h5p/services/handlers/pluginfile.ts +++ b/src/core/features/h5p/services/handlers/pluginfile.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFilepoolOnProgressCallback } from '@services/filepool'; import { CorePluginFileDownloadableResult, CorePluginFileHandler } from '@services/plugin-file-delegate'; diff --git a/src/core/features/native/native.module.ts b/src/core/features/native/native.module.ts index ae1248de5..1e1404954 100644 --- a/src/core/features/native/native.module.ts +++ b/src/core/features/native/native.module.ts @@ -14,29 +14,29 @@ import { NgModule } from '@angular/core'; -import { Badge } from '@ionic-native/badge/ngx'; -import { Camera } from '@ionic-native/camera/ngx'; -import { Chooser } from '@ionic-native/chooser/ngx'; -import { Clipboard } from '@ionic-native/clipboard/ngx'; -import { Device } from '@ionic-native/device/ngx'; -import { Diagnostic } from '@ionic-native/diagnostic/ngx'; -import { File } from '@ionic-native/file/ngx'; -import { FileOpener } from '@ionic-native/file-opener/ngx'; -import { FileTransfer } from '@ionic-native/file-transfer/ngx'; -import { Geolocation } from '@ionic-native/geolocation/ngx'; -import { HTTP } from '@ionic-native/http/ngx'; -import { InAppBrowser } from '@ionic-native/in-app-browser/ngx'; -import { WebView } from '@ionic-native/ionic-webview/ngx'; -import { Keyboard } from '@ionic-native/keyboard/ngx'; -import { LocalNotifications } from '@ionic-native/local-notifications/ngx'; -import { MediaCapture } from '@ionic-native/media-capture/ngx'; +import { Badge } from '@awesome-cordova-plugins/badge/ngx'; +import { Camera } from '@awesome-cordova-plugins/camera/ngx'; +import { Chooser } from '@awesome-cordova-plugins/chooser/ngx'; +import { Clipboard } from '@awesome-cordova-plugins/clipboard/ngx'; +import { Device } from '@awesome-cordova-plugins/device/ngx'; +import { Diagnostic } from '@awesome-cordova-plugins/diagnostic/ngx'; +import { File } from '@awesome-cordova-plugins/file/ngx'; +import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx'; +import { FileTransfer } from '@awesome-cordova-plugins/file-transfer/ngx'; +import { Geolocation } from '@awesome-cordova-plugins/geolocation/ngx'; +import { HTTP } from '@awesome-cordova-plugins/http/ngx'; +import { InAppBrowser } from '@awesome-cordova-plugins/in-app-browser/ngx'; +import { WebView } from '@awesome-cordova-plugins/ionic-webview/ngx'; +import { Keyboard } from '@awesome-cordova-plugins/keyboard/ngx'; +import { LocalNotifications } from '@awesome-cordova-plugins/local-notifications/ngx'; +import { MediaCapture } from '@awesome-cordova-plugins/media-capture/ngx'; import { Push } from '@moodlehq/ionic-native-push/ngx'; import { QRScanner } from '@ionic-native/qr-scanner/ngx'; -import { SplashScreen } from '@ionic-native/splash-screen/ngx'; -import { SQLite } from '@ionic-native/sqlite/ngx'; -import { StatusBar } from '@ionic-native/status-bar/ngx'; -import { WebIntent } from '@ionic-native/web-intent/ngx'; -import { Zip } from '@ionic-native/zip/ngx'; +import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx'; +import { SQLite } from '@awesome-cordova-plugins/sqlite/ngx'; +import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx'; +import { WebIntent } from '@awesome-cordova-plugins/web-intent/ngx'; +import { Zip } from '@awesome-cordova-plugins/zip/ngx'; export const CORE_NATIVE_SERVICES = [ Badge, diff --git a/src/core/features/pushnotifications/services/pushnotifications.ts b/src/core/features/pushnotifications/services/pushnotifications.ts index 4453fbdd0..aec8d807c 100644 --- a/src/core/features/pushnotifications/services/pushnotifications.ts +++ b/src/core/features/pushnotifications/services/pushnotifications.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { ILocalNotification } from '@ionic-native/local-notifications'; +import { ILocalNotification } from '@awesome-cordova-plugins/local-notifications'; import { NotificationEventResponse, PushOptions, RegistrationEventResponse } from '@moodlehq/ionic-native-push/ngx'; import { CoreApp } from '@services/app'; diff --git a/src/core/features/question/services/question-helper.ts b/src/core/features/question/services/question-helper.ts index aad1dd3b8..44e89b3f1 100644 --- a/src/core/features/question/services/question-helper.ts +++ b/src/core/features/question/services/question-helper.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable, EventEmitter } from '@angular/core'; -import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile } from '@services/file'; import { CoreFileHelper } from '@services/file-helper'; diff --git a/src/core/features/reminders/services/reminders.ts b/src/core/features/reminders/services/reminders.ts index d7afcff2d..75c846c54 100644 --- a/src/core/features/reminders/services/reminders.ts +++ b/src/core/features/reminders/services/reminders.ts @@ -18,7 +18,7 @@ import { CoreSites } from '@services/sites'; import { CoreTimeUtils } from '@services/utils/time'; import { makeSingleton, Translate } from '@singletons'; import { CoreReminderDBRecord, REMINDERS_TABLE } from './database/reminders'; -import { ILocalNotification } from '@ionic-native/local-notifications'; +import { ILocalNotification } from '@awesome-cordova-plugins/local-notifications'; import { CorePlatform } from '@services/platform'; import { CoreConstants } from '@/core/constants'; import { CoreConfig } from '@services/config'; diff --git a/src/core/features/sharedfiles/components/list-modal/list-modal.ts b/src/core/features/sharedfiles/components/list-modal/list-modal.ts index 6f0b206bf..34f9cd550 100644 --- a/src/core/features/sharedfiles/components/list-modal/list-modal.ts +++ b/src/core/features/sharedfiles/components/list-modal/list-modal.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, OnInit, Input } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile } from '@services/file'; import { ModalController, Translate } from '@singletons'; diff --git a/src/core/features/sharedfiles/components/list/list.ts b/src/core/features/sharedfiles/components/list/list.ts index b2d802af2..827d06205 100644 --- a/src/core/features/sharedfiles/components/list/list.ts +++ b/src/core/features/sharedfiles/components/list/list.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core'; -import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry } from '@awesome-cordova-plugins/file/ngx'; import { Md5 } from 'ts-md5'; import { CoreSharedFiles } from '@features/sharedfiles/services/sharedfiles'; diff --git a/src/core/features/sharedfiles/pages/choose-site/choose-site.ts b/src/core/features/sharedfiles/pages/choose-site/choose-site.ts index 84407e809..271ce4ada 100644 --- a/src/core/features/sharedfiles/pages/choose-site/choose-site.ts +++ b/src/core/features/sharedfiles/pages/choose-site/choose-site.ts @@ -15,7 +15,7 @@ import { Component, OnInit } from '@angular/core'; import { CoreAccountsList, CoreLoginHelper } from '@features/login/services/login-helper'; import { CoreSharedFilesHelper } from '@features/sharedfiles/services/sharedfiles-helper'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile } from '@services/file'; import { CoreNavigator } from '@services/navigator'; import { CoreSiteBasicInfo } from '@services/sites'; diff --git a/src/core/features/sharedfiles/services/sharedfiles-helper.ts b/src/core/features/sharedfiles/services/sharedfiles-helper.ts index 4fa26d913..6fcba0679 100644 --- a/src/core/features/sharedfiles/services/sharedfiles-helper.ts +++ b/src/core/features/sharedfiles/services/sharedfiles-helper.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreCanceledError } from '@classes/errors/cancelederror'; import { CoreFileUploader } from '@features/fileuploader/services/fileuploader'; diff --git a/src/core/features/sharedfiles/services/sharedfiles.ts b/src/core/features/sharedfiles/services/sharedfiles.ts index 151d4b515..f0a732e72 100644 --- a/src/core/features/sharedfiles/services/sharedfiles.ts +++ b/src/core/features/sharedfiles/services/sharedfiles.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry } from '@awesome-cordova-plugins/file/ngx'; import { Md5 } from 'ts-md5/dist/md5'; import { SQLiteDB } from '@classes/sqlitedb'; diff --git a/src/core/features/user/services/support.ts b/src/core/features/user/services/support.ts index beefcb5e3..1e85f5848 100644 --- a/src/core/features/user/services/support.ts +++ b/src/core/features/user/services/support.ts @@ -15,7 +15,7 @@ import { Injectable } from '@angular/core'; import { CoreUserSupportConfig } from '@features/user/classes/support/support-config'; import { CoreUserAuthenticatedSupportConfig } from '@features/user/classes/support/authenticated-support-config'; -import { InAppBrowserObject } from '@ionic-native/in-app-browser'; +import { InAppBrowserObject } from '@awesome-cordova-plugins/in-app-browser'; import { CorePlatform } from '@services/platform'; import { CoreSites } from '@services/sites'; import { CoreUtils } from '@services/utils/utils'; diff --git a/src/core/services/file-helper.ts b/src/core/services/file-helper.ts index 93825ee38..4914dab06 100644 --- a/src/core/services/file-helper.ts +++ b/src/core/services/file-helper.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreNetwork } from '@services/network'; import { CoreFile } from '@services/file'; diff --git a/src/core/services/file.ts b/src/core/services/file.ts index 939cea4ee..f5988f8b6 100644 --- a/src/core/services/file.ts +++ b/src/core/services/file.ts @@ -14,7 +14,7 @@ import { Injectable } from '@angular/core'; -import { FileEntry, DirectoryEntry, Entry, Metadata, IFile } from '@ionic-native/file/ngx'; +import { FileEntry, DirectoryEntry, Entry, Metadata, IFile } from '@awesome-cordova-plugins/file/ngx'; import { CoreMimetypeUtils } from '@services/utils/mimetype'; import { CoreTextUtils } from '@services/utils/text'; diff --git a/src/core/services/geolocation.ts b/src/core/services/geolocation.ts index dbbd977c0..c696550f3 100644 --- a/src/core/services/geolocation.ts +++ b/src/core/services/geolocation.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { Coordinates } from '@ionic-native/geolocation'; +import { Coordinates } from '@awesome-cordova-plugins/geolocation'; import { CoreApp } from '@services/app'; import { CoreAnyError, CoreError } from '@classes/errors/error'; diff --git a/src/core/services/local-notifications.ts b/src/core/services/local-notifications.ts index 3a776001d..87fa6ff1e 100644 --- a/src/core/services/local-notifications.ts +++ b/src/core/services/local-notifications.ts @@ -14,7 +14,7 @@ import { Injectable } from '@angular/core'; import { Subject, Subscription } from 'rxjs'; -import { ILocalNotification } from '@ionic-native/local-notifications'; +import { ILocalNotification } from '@awesome-cordova-plugins/local-notifications'; import { CoreApp } from '@services/app'; import { CoreConfig } from '@services/config'; diff --git a/src/core/services/network.ts b/src/core/services/network.ts index b50a87601..bedc9549b 100644 --- a/src/core/services/network.ts +++ b/src/core/services/network.ts @@ -14,7 +14,7 @@ import { Injectable } from '@angular/core'; import { CorePlatform } from '@services/platform'; -import { Network } from '@ionic-native/network/ngx'; +import { Network } from '@awesome-cordova-plugins/network/ngx'; import { makeSingleton } from '@singletons'; import { Observable, Subject, merge } from 'rxjs'; diff --git a/src/core/services/plugin-file-delegate.ts b/src/core/services/plugin-file-delegate.ts index 8cfb3f32f..65b0b8e12 100644 --- a/src/core/services/plugin-file-delegate.ts +++ b/src/core/services/plugin-file-delegate.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFilepool, CoreFilepoolOnProgressCallback } from '@services/filepool'; import { CoreWSFile } from '@services/ws'; diff --git a/src/core/services/utils/mimetype.ts b/src/core/services/utils/mimetype.ts index e563cf843..69d6496a9 100644 --- a/src/core/services/utils/mimetype.ts +++ b/src/core/services/utils/mimetype.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { CoreFile } from '@services/file'; import { CoreTextUtils } from '@services/utils/text'; diff --git a/src/core/services/utils/utils.ts b/src/core/services/utils/utils.ts index 16ccfe1f2..84cbf839c 100644 --- a/src/core/services/utils/utils.ts +++ b/src/core/services/utils/utils.ts @@ -13,8 +13,8 @@ // limitations under the License. import { Injectable } from '@angular/core'; -import { InAppBrowserObject, InAppBrowserOptions } from '@ionic-native/in-app-browser'; -import { FileEntry } from '@ionic-native/file/ngx'; +import { InAppBrowserObject, InAppBrowserOptions } from '@awesome-cordova-plugins/in-app-browser'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; import { Subscription } from 'rxjs'; import { CoreEvents } from '@singletons/events'; diff --git a/src/core/services/ws.ts b/src/core/services/ws.ts index 3f8d682eb..0c299c56c 100644 --- a/src/core/services/ws.ts +++ b/src/core/services/ws.ts @@ -15,8 +15,8 @@ import { Injectable } from '@angular/core'; import { HttpResponse, HttpParams, HttpErrorResponse } from '@angular/common/http'; -import { FileEntry } from '@ionic-native/file/ngx'; -import { FileUploadOptions, FileUploadResult } from '@ionic-native/file-transfer/ngx'; +import { FileEntry } from '@awesome-cordova-plugins/file/ngx'; +import { FileUploadOptions, FileUploadResult } from '@awesome-cordova-plugins/file-transfer/ngx'; import { Md5 } from 'ts-md5/dist/md5'; import { Observable, firstValueFrom } from 'rxjs'; import { timeout } from 'rxjs/operators'; diff --git a/src/core/singletons/index.ts b/src/core/singletons/index.ts index 493dd35a0..52e8fea21 100644 --- a/src/core/singletons/index.ts +++ b/src/core/singletons/index.ts @@ -37,29 +37,29 @@ import { PopoverController as PopoverControllerService, } from '@ionic/angular'; -import { Badge as BadgeService } from '@ionic-native/badge/ngx'; -import { Camera as CameraService } from '@ionic-native/camera/ngx'; -import { Chooser as ChooserService } from '@ionic-native/chooser/ngx'; -import { Clipboard as ClipboardService } from '@ionic-native/clipboard/ngx'; -import { Diagnostic as DiagnosticService } from '@ionic-native/diagnostic/ngx'; -import { Device as DeviceService } from '@ionic-native/device/ngx'; -import { File as FileService } from '@ionic-native/file/ngx'; -import { FileOpener as FileOpenerService } from '@ionic-native/file-opener/ngx'; -import { FileTransfer as FileTransferService } from '@ionic-native/file-transfer/ngx'; -import { Geolocation as GeolocationService } from '@ionic-native/geolocation/ngx'; -import { HTTP } from '@ionic-native/http/ngx'; -import { InAppBrowser as InAppBrowserService } from '@ionic-native/in-app-browser/ngx'; -import { WebView as WebViewService } from '@ionic-native/ionic-webview/ngx'; -import { Keyboard as KeyboardService } from '@ionic-native/keyboard/ngx'; -import { LocalNotifications as LocalNotificationsService } from '@ionic-native/local-notifications/ngx'; -import { MediaCapture as MediaCaptureService } from '@ionic-native/media-capture/ngx'; +import { Badge as BadgeService } from '@awesome-cordova-plugins/badge/ngx'; +import { Camera as CameraService } from '@awesome-cordova-plugins/camera/ngx'; +import { Chooser as ChooserService } from '@awesome-cordova-plugins/chooser/ngx'; +import { Clipboard as ClipboardService } from '@awesome-cordova-plugins/clipboard/ngx'; +import { Diagnostic as DiagnosticService } from '@awesome-cordova-plugins/diagnostic/ngx'; +import { Device as DeviceService } from '@awesome-cordova-plugins/device/ngx'; +import { File as FileService } from '@awesome-cordova-plugins/file/ngx'; +import { FileOpener as FileOpenerService } from '@awesome-cordova-plugins/file-opener/ngx'; +import { FileTransfer as FileTransferService } from '@awesome-cordova-plugins/file-transfer/ngx'; +import { Geolocation as GeolocationService } from '@awesome-cordova-plugins/geolocation/ngx'; +import { HTTP } from '@awesome-cordova-plugins/http/ngx'; +import { InAppBrowser as InAppBrowserService } from '@awesome-cordova-plugins/in-app-browser/ngx'; +import { WebView as WebViewService } from '@awesome-cordova-plugins/ionic-webview/ngx'; +import { Keyboard as KeyboardService } from '@awesome-cordova-plugins/keyboard/ngx'; +import { LocalNotifications as LocalNotificationsService } from '@awesome-cordova-plugins/local-notifications/ngx'; +import { MediaCapture as MediaCaptureService } from '@awesome-cordova-plugins/media-capture/ngx'; import { Push as PushService } from '@moodlehq/ionic-native-push/ngx'; import { QRScanner as QRScannerService } from '@ionic-native/qr-scanner/ngx'; -import { StatusBar as StatusBarService } from '@ionic-native/status-bar/ngx'; -import { SplashScreen as SplashScreenService } from '@ionic-native/splash-screen/ngx'; -import { SQLite as SQLiteService } from '@ionic-native/sqlite/ngx'; -import { WebIntent as WebIntentService } from '@ionic-native/web-intent/ngx'; -import { Zip as ZipService } from '@ionic-native/zip/ngx'; +import { StatusBar as StatusBarService } from '@awesome-cordova-plugins/status-bar/ngx'; +import { SplashScreen as SplashScreenService } from '@awesome-cordova-plugins/splash-screen/ngx'; +import { SQLite as SQLiteService } from '@awesome-cordova-plugins/sqlite/ngx'; +import { WebIntent as WebIntentService } from '@awesome-cordova-plugins/web-intent/ngx'; +import { Zip as ZipService } from '@awesome-cordova-plugins/zip/ngx'; import { TranslateService } from '@ngx-translate/core'; diff --git a/src/storybook/stubs/classes/sqlitedb.ts b/src/storybook/stubs/classes/sqlitedb.ts index 94d81b5a1..f35345951 100644 --- a/src/storybook/stubs/classes/sqlitedb.ts +++ b/src/storybook/stubs/classes/sqlitedb.ts @@ -13,7 +13,7 @@ // limitations under the License. import { SQLiteDB } from '@classes/sqlitedb'; -import { SQLiteObject } from '@ionic-native/sqlite/ngx'; +import { SQLiteObject } from '@awesome-cordova-plugins/sqlite/ngx'; /** * SQlite database stub.