expo-screen-orientation 7.0.2 → 7.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/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 7.0.4 — 2024-05-09
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix bug with weak var type causing dropped events. ([#28677](https://github.com/expo/expo/pull/28677) by [@aleqsio](https://github.com/aleqsio))
18
+
19
+ ## 7.0.3 — 2024-05-01
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 7.0.2 — 2024-04-25
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '7.0.2'
4
+ version = '7.0.4'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,6 +14,6 @@ android {
14
14
  namespace "expo.modules.screenorientation"
15
15
  defaultConfig {
16
16
  versionCode 7
17
- versionName '7.0.2'
17
+ versionName '7.0.4'
18
18
  }
19
19
  }
@@ -99,6 +99,7 @@ class ScreenOrientationModule : Module(), LifecycleEventListener {
99
99
  val rotation = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
100
100
  currentActivity.window.context.display?.rotation ?: return Orientation.UNKNOWN
101
101
  } else {
102
+ @Suppress("DEPRECATION")
102
103
  windowManager.defaultDisplay.rotation
103
104
  }
104
105
 
@@ -111,6 +112,7 @@ class ScreenOrientationModule : Module(), LifecycleEventListener {
111
112
  heightPixels = windowMetrics.bounds.height() - insets.top - insets.bottom
112
113
  }
113
114
  } else {
115
+ @Suppress("DEPRECATION")
114
116
  DisplayMetrics().also(windowManager.defaultDisplay::getMetrics)
115
117
  }
116
118
 
@@ -18,7 +18,7 @@ public class ScreenOrientationRegistry: NSObject, UIApplicationDelegate {
18
18
  var orientationControllers: [ScreenOrientationController] = []
19
19
  var controllerInterfaceMasks: [ObjectIdentifier: UIInterfaceOrientationMask] = [:]
20
20
  @objc
21
- public weak var currentTraitCollection: UITraitCollection?
21
+ public var currentTraitCollection: UITraitCollection?
22
22
  var lastOrientationMask: UIInterfaceOrientationMask
23
23
  var rootViewController: UIViewController? {
24
24
  let keyWindow = UIApplication
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-screen-orientation",
3
- "version": "7.0.2",
3
+ "version": "7.0.4",
4
4
  "description": "Expo universal module for managing device's screen orientation",
5
5
  "main": "build/ScreenOrientation.js",
6
6
  "types": "build/ScreenOrientation.d.ts",
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "expo": "*"
43
43
  },
44
- "gitHead": "f47e3af17a790a34b95fe10dda8383389e7d74e2"
44
+ "gitHead": "9c05bec11c7f5b031d1b9b0ebee78c3b71a7e11d"
45
45
  }