@capawesome/capacitor-screen-orientation 8.0.2 → 8.0.4

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.
package/Package.swift CHANGED
@@ -19,10 +19,6 @@ let package = Package(
19
19
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
20
  .product(name: "Cordova", package: "capacitor-swift-pm")
21
21
  ],
22
- path: "ios/Plugin"),
23
- .testTarget(
24
- name: "ScreenOrientationPluginTests",
25
- dependencies: ["ScreenOrientationPlugin"],
26
- path: "ios/PluginTests")
22
+ path: "ios/Plugin")
27
23
  ]
28
24
  )
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  Capacitor plugin to lock/unlock the screen orientation.
4
4
 
5
5
  <div class="capawesome-z29o10a">
6
- <a href="https://cloud.capawesome.io/" target="_blank">
7
- <img alt="Deliver Live Updates to your Capacitor app with Capawesome Cloud" src="https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1" />
6
+ <a href="https://capawesome.io/" target="_blank">
7
+ <img alt="Thousands of teams ship faster with Capawesome Cloud Native Builds and Live Updates" src="https://capawesome.io/assets/banners/cloud-teams-ship-faster-with-capacitor.png" />
8
8
  </a>
9
9
  </div>
10
10
 
@@ -44,6 +44,10 @@ The Screen Orientation plugin is typically used whenever certain screens of an a
44
44
  | 6.x.x | 6.x.x | Deprecated |
45
45
  | 5.x.x | 5.x.x | Deprecated |
46
46
 
47
+ ## Demo
48
+
49
+ A working example can be found here: [robingenz/capacitor-plugin-demo](https://github.com/robingenz/capacitor-plugin-demo)
50
+
47
51
  ## Installation
48
52
 
49
53
  You can use our **AI-Assisted Setup** to install the plugin.
@@ -102,10 +106,6 @@ On iPad, you must add the following to your app's `Info.plist`:
102
106
 
103
107
  No configuration required for this plugin.
104
108
 
105
- ## Demo
106
-
107
- A working example can be found here: [robingenz/capacitor-plugin-demo](https://github.com/robingenz/capacitor-plugin-demo)
108
-
109
109
  ## Usage
110
110
 
111
111
  The following examples show how to lock, unlock, and read the current screen orientation.
@@ -55,6 +55,7 @@ import Capacitor
55
55
  ScreenOrientation.supportedInterfaceOrientations = orientationMask
56
56
  UINavigationController.attemptRotationToDeviceOrientation()
57
57
  guard let orientationType = self.lastOrientationType else {
58
+ completion()
58
59
  return
59
60
  }
60
61
  let orientationValue = self.convertOrientationTypeToValue(orientationType)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/capacitor-screen-orientation",
3
- "version": "8.0.2",
3
+ "version": "8.0.4",
4
4
  "description": "Capacitor plugin to lock/unlock the screen orientation on Android, iOS, and Web.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",