@capacitor/screen-orientation 6.0.3 → 7.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'screen-orientation/ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
14
+ s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
package/Package.swift CHANGED
@@ -3,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapacitorScreenOrientation",
6
- platforms: [.iOS(.v13)],
6
+ platforms: [.iOS(.v14)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapacitorScreenOrientation",
10
10
  targets: ["ScreenOrientationPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main")
14
14
  ],
15
15
  targets: [
16
16
  .target(
@@ -1,9 +1,9 @@
1
1
  ext {
2
2
  capacitorVersion = System.getenv('CAPACITOR_VERSION')
3
3
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
4
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
5
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
6
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
4
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
5
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
6
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
7
7
  }
8
8
 
9
9
  buildscript {
@@ -15,7 +15,7 @@ buildscript {
15
15
  }
16
16
  }
17
17
  dependencies {
18
- classpath 'com.android.tools.build:gradle:8.2.1'
18
+ classpath 'com.android.tools.build:gradle:8.7.2'
19
19
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
20
20
  classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
21
21
  }
@@ -31,10 +31,10 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
31
31
 
32
32
  android {
33
33
  namespace "com.capacitorjs.plugins.screenorientation"
34
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
34
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
35
35
  defaultConfig {
36
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
37
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
36
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
37
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
38
38
  versionCode 1
39
39
  versionName "1.0"
40
40
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -49,8 +49,8 @@ android {
49
49
  abortOnError false
50
50
  }
51
51
  compileOptions {
52
- sourceCompatibility JavaVersion.VERSION_17
53
- targetCompatibility JavaVersion.VERSION_17
52
+ sourceCompatibility JavaVersion.VERSION_21
53
+ targetCompatibility JavaVersion.VERSION_21
54
54
  }
55
55
  publishing {
56
56
  singleVariant("release")
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var core = require('@capacitor/core');
6
4
 
7
5
  const ScreenOrientation = core.registerPlugin('ScreenOrientation', {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenOrientation = registerPlugin('ScreenOrientation', {\n web: () => import('./web').then(m => new m.ScreenOrientationWeb()),\n});\nexport * from './definitions';\nexport { ScreenOrientation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenOrientationWeb extends WebPlugin {\n constructor() {\n super();\n if (typeof screen !== 'undefined' &&\n typeof screen.orientation !== 'undefined') {\n screen.orientation.addEventListener('change', () => {\n const type = screen.orientation.type;\n this.notifyListeners('screenOrientationChange', { type });\n });\n }\n }\n async orientation() {\n if (typeof screen === 'undefined' || !screen.orientation) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n return { type: screen.orientation.type };\n }\n async lock(options) {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.lock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n await screen.orientation.lock(options.orientation);\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n async unlock() {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.unlock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n screen.orientation.unlock();\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,oBAAoB,EAAE,C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AK;AACL,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;AACzC,YAAY,CAAC,MAAM,CAAC,WAAW;AAC/B,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE;AACxC,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;AAC1F,SAAS;AACT,QAAQ,IAAI;AACZ,YAAY,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;AACxC,SAAS;AACT,QAAQ,OAAO,EAAE,EAAE;AACnB,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;AAC1F,SAAS;AACT,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenOrientation = registerPlugin('ScreenOrientation', {\n web: () => import('./web').then(m => new m.ScreenOrientationWeb()),\n});\nexport * from './definitions';\nexport { ScreenOrientation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenOrientationWeb extends WebPlugin {\n constructor() {\n super();\n if (typeof screen !== 'undefined' &&\n typeof screen.orientation !== 'undefined') {\n screen.orientation.addEventListener('change', () => {\n const type = screen.orientation.type;\n this.notifyListeners('screenOrientationChange', { type });\n });\n }\n }\n async orientation() {\n if (typeof screen === 'undefined' || !screen.orientation) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n return { type: screen.orientation.type };\n }\n async lock(options) {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.lock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n await screen.orientation.lock(options.orientation);\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n async unlock() {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.unlock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n screen.orientation.unlock();\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACtE,CAAC;;ACFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;AACpD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;AACzC,YAAY,OAAO,MAAM,CAAC,WAAW,KAAK,WAAW,EAAE;AACvD,YAAY,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM;AAChE,gBAAgB,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI;AACpD,gBAAgB,IAAI,CAAC,eAAe,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,CAAC;AACzE,aAAa,CAAC;AACd;AACA;AACA,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;AAClE,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AACzF;AACA,QAAQ,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE;AAChD;AACA,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;AACzC,YAAY,CAAC,MAAM,CAAC,WAAW;AAC/B,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE;AACtC,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AACzF;AACA,QAAQ,IAAI;AACZ,YAAY,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;AAC9D;AACA,QAAQ,OAAO,EAAE,EAAE;AACnB,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AACzF;AACA;AACA,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;AACzC,YAAY,CAAC,MAAM,CAAC,WAAW;AAC/B,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE;AACxC,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AACzF;AACA,QAAQ,IAAI;AACZ,YAAY,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE;AACvC;AACA,QAAQ,OAAO,EAAE,EAAE;AACnB,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AACzF;AACA;AACA;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -57,8 +57,6 @@ var capacitorScreenOrientation = (function (exports, core) {
57
57
 
58
58
  exports.ScreenOrientation = ScreenOrientation;
59
59
 
60
- Object.defineProperty(exports, '__esModule', { value: true });
61
-
62
60
  return exports;
63
61
 
64
62
  })({}, capacitorExports);
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenOrientation = registerPlugin('ScreenOrientation', {\n web: () => import('./web').then(m => new m.ScreenOrientationWeb()),\n});\nexport * from './definitions';\nexport { ScreenOrientation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenOrientationWeb extends WebPlugin {\n constructor() {\n super();\n if (typeof screen !== 'undefined' &&\n typeof screen.orientation !== 'undefined') {\n screen.orientation.addEventListener('change', () => {\n const type = screen.orientation.type;\n this.notifyListeners('screenOrientationChange', { type });\n });\n }\n }\n async orientation() {\n if (typeof screen === 'undefined' || !screen.orientation) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n return { type: screen.orientation.type };\n }\n async lock(options) {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.lock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n await screen.orientation.lock(options.orientation);\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n async unlock() {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.unlock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n screen.orientation.unlock();\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;IAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACtE,CAAC;;ICFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;IACpD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;IACzC,YAAY,OAAO,MAAM,CAAC,WAAW,KAAK,WAAW,EAAE;IACvD,YAAY,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAChE,gBAAgB,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;IACrD,gBAAgB,IAAI,CAAC,eAAe,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,aAAa,CAAC,CAAC;IACf,SAAS;IACT,KAAK;IACL,IAAI,MAAM,WAAW,GAAG;IACxB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;IAClE,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;IAC1F,SAAS;IACT,QAAQ,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IACjD,KAAK;IACL,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;IACzC,YAAY,CAAC,MAAM,CAAC,WAAW;IAC/B,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE;IACtC,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;IAC1F,SAAS;IACT,QAAQ,IAAI;IACZ,YAAY,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC/D,SAAS;IACT,QAAQ,OAAO,EAAE,EAAE;IACnB,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;IAC1F,SAAS;IACT,KAAK;IACL,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;IACzC,YAAY,CAAC,MAAM,CAAC,WAAW;IAC/B,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE;IACxC,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;IAC1F,SAAS;IACT,QAAQ,IAAI;IACZ,YAAY,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;IACxC,SAAS;IACT,QAAQ,OAAO,EAAE,EAAE;IACnB,YAAY,MAAM,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC,CAAC;IAC1F,SAAS;IACT,KAAK;IACL;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenOrientation = registerPlugin('ScreenOrientation', {\n web: () => import('./web').then(m => new m.ScreenOrientationWeb()),\n});\nexport * from './definitions';\nexport { ScreenOrientation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenOrientationWeb extends WebPlugin {\n constructor() {\n super();\n if (typeof screen !== 'undefined' &&\n typeof screen.orientation !== 'undefined') {\n screen.orientation.addEventListener('change', () => {\n const type = screen.orientation.type;\n this.notifyListeners('screenOrientationChange', { type });\n });\n }\n }\n async orientation() {\n if (typeof screen === 'undefined' || !screen.orientation) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n return { type: screen.orientation.type };\n }\n async lock(options) {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.lock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n await screen.orientation.lock(options.orientation);\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n async unlock() {\n if (typeof screen === 'undefined' ||\n !screen.orientation ||\n !screen.orientation.unlock) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n try {\n screen.orientation.unlock();\n }\n catch (_a) {\n throw this.unavailable('ScreenOrientation API not available in this browser');\n }\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;IAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;IACtE,CAAC;;ICFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;IACpD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE;IACf,QAAQ,IAAI,OAAO,MAAM,KAAK,WAAW;IACzC,YAAY,OAAO,MAAM,CAAC,WAAW,KAAK,WAAW,EAAE;IACvD,YAAY,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,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CAAC,qDAAqD,CAAC;IACzF;IACA;IACA;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/screen-orientation",
3
- "version": "6.0.3",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "The Screen Orientation API provides methods to lock and unlock the screen orientation.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
34
- "verify:ios": "xcodebuild build -scheme CapacitorScreenOrientation -sdk iphonesimulator17.0 -destination 'OS=17.0,name=iPhone 15'",
34
+ "verify:ios": "xcodebuild build -scheme CapacitorScreenOrientation -destination generic/platform=iOS",
35
35
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
36
36
  "verify:web": "npm run build",
37
37
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
@@ -40,30 +40,30 @@
40
40
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
41
41
  "swiftlint": "node-swiftlint",
42
42
  "docgen": "docgen --api ScreenOrientationPlugin --output-readme README.md --output-json dist/docs.json",
43
- "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
43
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
44
44
  "clean": "rimraf ./dist",
45
45
  "watch": "tsc --watch",
46
46
  "prepublishOnly": "npm run build",
47
47
  "publish:cocoapod": "pod trunk push ./CapacitorScreenOrientation.podspec --allow-warnings"
48
48
  },
49
49
  "devDependencies": {
50
- "@capacitor/android": "^6.0.0",
51
- "@capacitor/core": "^6.0.0",
50
+ "@capacitor/android": "next",
51
+ "@capacitor/core": "next",
52
52
  "@capacitor/docgen": "0.2.2",
53
- "@capacitor/ios": "^6.0.0",
53
+ "@capacitor/ios": "next",
54
54
  "@ionic/eslint-config": "^0.4.0",
55
55
  "@ionic/prettier-config": "~1.0.1",
56
56
  "@ionic/swiftlint-config": "^1.1.2",
57
57
  "eslint": "^8.57.0",
58
58
  "prettier": "~2.3.0",
59
59
  "prettier-plugin-java": "~1.0.2",
60
- "rimraf": "^3.0.0",
61
- "rollup": "^2.29.0",
60
+ "rimraf": "^6.0.1",
61
+ "rollup": "^4.26.0",
62
62
  "swiftlint": "^1.0.1",
63
63
  "typescript": "~4.1.5"
64
64
  },
65
65
  "peerDependencies": {
66
- "@capacitor/core": "^6.0.0"
66
+ "@capacitor/core": "next"
67
67
  },
68
68
  "prettier": "@ionic/prettier-config",
69
69
  "swiftlint": "@ionic/swiftlint-config",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "6e94aa5bf785e957d0cfac83b62b5355bcf7d1ed"
84
+ "gitHead": "2158e6aa205a584a258c34f606e694fdf31cdcc0"
85
85
  }