expo-screen-orientation 8.1.5 → 8.1.6

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/android/build.gradle +2 -2
  3. package/expo-module.config.json +1 -1
  4. package/ios/ScreenOrientationModule.swift +8 -10
  5. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.module → 8.1.6/expo.modules.screenorientation-8.1.6.module} +7 -7
  6. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.module.md5 +1 -0
  7. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.module.sha1 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.module.sha256 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.module.sha512 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.pom → 8.1.6/expo.modules.screenorientation-8.1.6.pom} +1 -1
  11. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.pom.md5 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.pom.sha1 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.pom.sha256 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.6/expo.modules.screenorientation-8.1.6.pom.sha512 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml +4 -4
  16. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.md5 +1 -1
  17. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha1 +1 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha256 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha512 +1 -1
  20. package/package.json +2 -2
  21. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha512 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha512 +0 -1
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar → 8.1.6/expo.modules.screenorientation-8.1.6-sources.jar} +0 -0
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.md5 → 8.1.6/expo.modules.screenorientation-8.1.6-sources.jar.md5} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha1 → 8.1.6/expo.modules.screenorientation-8.1.6-sources.jar.sha1} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha256 → 8.1.6/expo.modules.screenorientation-8.1.6-sources.jar.sha256} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha512 → 8.1.6/expo.modules.screenorientation-8.1.6-sources.jar.sha512} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.aar → 8.1.6/expo.modules.screenorientation-8.1.6.aar} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.aar.md5 → 8.1.6/expo.modules.screenorientation-8.1.6.aar.md5} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.aar.sha1 → 8.1.6/expo.modules.screenorientation-8.1.6.aar.sha1} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.aar.sha256 → 8.1.6/expo.modules.screenorientation-8.1.6.aar.sha256} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.aar.sha512 → 8.1.6/expo.modules.screenorientation-8.1.6.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 8.1.6 — 2025-05-06
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Fix the app becoming unresponsive when the orientation listener is used in `Split View` on iPad. ([#36667](https://github.com/expo/expo/pull/36667) by [@alanjhughes](https://github.com/alanjhughes))
18
+
13
19
  ## 8.1.5 — 2025-04-30
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -4,12 +4,12 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '8.1.5'
7
+ version = '8.1.6'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.screenorientation"
11
11
  defaultConfig {
12
12
  versionCode 7
13
- versionName '8.1.5'
13
+ versionName '8.1.6'
14
14
  }
15
15
  }
@@ -10,7 +10,7 @@
10
10
  "publication": {
11
11
  "groupId": "host.exp.exponent",
12
12
  "artifactId": "expo.modules.screenorientation",
13
- "version": "8.1.5",
13
+ "version": "8.1.6",
14
14
  "repository": "local-maven-repo"
15
15
  }
16
16
  }
@@ -2,14 +2,12 @@ import ExpoModulesCore
2
2
 
3
3
  public class ScreenOrientationModule: Module, ScreenOrientationController {
4
4
  static let didUpdateDimensionsEvent = "expoDidUpdateDimensions"
5
-
6
5
  let screenOrientationRegistry = ScreenOrientationRegistry.shared
7
- var shouldEmitEvents = false
8
6
 
9
7
  public func definition() -> ModuleDefinition {
10
8
  Name("ExpoScreenOrientation")
11
9
 
12
- Events("expoDidUpdateDimensions")
10
+ Events(ScreenOrientationModule.didUpdateDimensionsEvent)
13
11
 
14
12
  AsyncFunction("lockAsync") { (orientationLock: ModuleOrientationLock) in
15
13
  let orientationMask = orientationLock.toInterfaceOrientationMask()
@@ -83,19 +81,19 @@ public class ScreenOrientationModule: Module, ScreenOrientationController {
83
81
  screenOrientationRegistry.unregisterController(self)
84
82
  }
85
83
 
86
- OnStartObserving {
87
- shouldEmitEvents = true
84
+ OnAppEntersForeground {
85
+ screenOrientationRegistry.registerController(self)
88
86
  }
89
87
 
90
- OnStopObserving {
91
- shouldEmitEvents = false
88
+ OnAppEntersBackground {
89
+ screenOrientationRegistry.unregisterController(self)
92
90
  }
93
91
  }
94
92
 
95
93
  // MARK: - ScreenOrientationController
96
94
 
97
95
  public func screenOrientationDidChange(_ orientation: UIInterfaceOrientation) {
98
- guard let currentTraitCollection = screenOrientationRegistry.currentTraitCollection, shouldEmitEvents else {
96
+ guard let currentTraitCollection = screenOrientationRegistry.currentTraitCollection else {
99
97
  return
100
98
  }
101
99
 
@@ -103,8 +101,8 @@ public class ScreenOrientationModule: Module, ScreenOrientationController {
103
101
  "orientationLock": ModuleOrientationLock.from(mask: screenOrientationRegistry.currentOrientationMask).rawValue,
104
102
  "orientationInfo": [
105
103
  "orientation": ModuleOrientation.from(orientation: orientation).rawValue,
106
- "verticalSizeClass": currentTraitCollection.verticalSizeClass,
107
- "horizontalSizeClass": currentTraitCollection.horizontalSizeClass
104
+ "verticalSizeClass": currentTraitCollection.verticalSizeClass.rawValue,
105
+ "horizontalSizeClass": currentTraitCollection.horizontalSizeClass.rawValue
108
106
  ] as [String: Any]
109
107
  ])
110
108
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.screenorientation",
6
- "version": "8.1.5",
6
+ "version": "8.1.6",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.screenorientation-8.1.5.aar",
28
- "url": "expo.modules.screenorientation-8.1.5.aar",
27
+ "name": "expo.modules.screenorientation-8.1.6.aar",
28
+ "url": "expo.modules.screenorientation-8.1.6.aar",
29
29
  "size": 36593,
30
30
  "sha512": "ee96e8fc296906ebe83f3911901516aa56bbf398f1d11dddfab58b4e93400f25d04033746b55a193e51b9cf0561a0fe3bc9488636219c074de0e0a84fe2d0c28",
31
31
  "sha256": "5da37a64aaa5f2292e6bf8d9830f946805cc6c5b2801b4fe90b7aeb180f92441",
@@ -53,8 +53,8 @@
53
53
  ],
54
54
  "files": [
55
55
  {
56
- "name": "expo.modules.screenorientation-8.1.5.aar",
57
- "url": "expo.modules.screenorientation-8.1.5.aar",
56
+ "name": "expo.modules.screenorientation-8.1.6.aar",
57
+ "url": "expo.modules.screenorientation-8.1.6.aar",
58
58
  "size": 36593,
59
59
  "sha512": "ee96e8fc296906ebe83f3911901516aa56bbf398f1d11dddfab58b4e93400f25d04033746b55a193e51b9cf0561a0fe3bc9488636219c074de0e0a84fe2d0c28",
60
60
  "sha256": "5da37a64aaa5f2292e6bf8d9830f946805cc6c5b2801b4fe90b7aeb180f92441",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "files": [
75
75
  {
76
- "name": "expo.modules.screenorientation-8.1.5-sources.jar",
77
- "url": "expo.modules.screenorientation-8.1.5-sources.jar",
76
+ "name": "expo.modules.screenorientation-8.1.6-sources.jar",
77
+ "url": "expo.modules.screenorientation-8.1.6-sources.jar",
78
78
  "size": 5194,
79
79
  "sha512": "e06be0d0236539250b81b1d5670d89f70600b03c82fa53c245602afdcb2bab06d04d42e6dd85e9686867d069a8b09dd3fbc04f562bc1760e33f68ea614b2ec42",
80
80
  "sha256": "d63ace679c73e409ffd1706ac43973134e9151254bf644d73a33c27539db1037",
@@ -0,0 +1 @@
1
+ 6b945878346a7257f0711499a983621a55bf91d35faf1a648726362ea31228a1
@@ -0,0 +1 @@
1
+ 9bcdb45234a10c7413ba12b12f2cd3421f411493c518ce5e812821f21f9f42783ec62fb0afa56a5f5a7dad6e58b8ddc76c12c0e1a893923fd4f89d5fdedee85c
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.screenorientation</artifactId>
12
- <version>8.1.5</version>
12
+ <version>8.1.6</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.screenorientation</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ d6796b520a47a01126202d6981d05dd5055aa48e159dd8dd7f0a42c1f7e58cf4
@@ -0,0 +1 @@
1
+ 05f53474ea0ad540dec1790ca2091195d11e3ad898d4ef08ee02e0834b8c23ccf57815b0bbfbc9570a203cea0dc86ab78d3d3748f3fe856c1090817612c0c547
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.screenorientation</artifactId>
5
5
  <versioning>
6
- <latest>8.1.5</latest>
7
- <release>8.1.5</release>
6
+ <latest>8.1.6</latest>
7
+ <release>8.1.6</release>
8
8
  <versions>
9
- <version>8.1.5</version>
9
+ <version>8.1.6</version>
10
10
  </versions>
11
- <lastUpdated>20250430211452</lastUpdated>
11
+ <lastUpdated>20250506221714</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 6b3bf227fa37c53784bc74c04b1db7b1
1
+ cdad6e02c2ffb40080118ea0d1920344
@@ -1 +1 @@
1
- c470ea0d4e6007d8f898e63e21cae0aa9906186f
1
+ a0b2e393ab8429300deb0ab37cdd19aa1eb77c8f
@@ -1 +1 @@
1
- cf2301d13fd2e422692cc8ad9b33f44a89270beccd4d36879fda81d2fef6ef23
1
+ deeae032ee7e4ce568194de5b48f240563f97cf8c9b97be4a22cb4b221184cbb
@@ -1 +1 @@
1
- b06210c59ba128b3fba59fa6055fca30c6bb4b425bf069951e1438e1b23c72ff0b897327a600d49a6a536d7cdc998c38c31ab6c3934269e04dc3f7b07d56ce64
1
+ 263dd92cf670b90ae54e3d941849d99873b865c47931ce1f2c4f549d6156b936b478f75412ee7cc11c779b38638f2131b342de5e010256168e93489fc72c4e6e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-screen-orientation",
3
- "version": "8.1.5",
3
+ "version": "8.1.6",
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",
@@ -42,5 +42,5 @@
42
42
  "expo": "*",
43
43
  "react-native": "*"
44
44
  },
45
- "gitHead": "84355076bc31a356aa3d23257f387f221885f53d"
45
+ "gitHead": "907224d194d100adb3dff522d4d7be91ee43be51"
46
46
  }
@@ -1 +0,0 @@
1
- 3ff04ef929ef4c093513ba4681851830f154a0267978f4850a47d7d12fa3a01a
@@ -1 +0,0 @@
1
- 637f119c4fd1c86342f3f2adc2a38e1784959d7271141f9e08a34b02bfca6e32ba9dafe732cd26e4f6207edfa70d801232f9ba2bd0730aae982ddfffc75a2570
@@ -1 +0,0 @@
1
- 8daeaa7b067c3b08f87f35f99fc72ac1281c254b66df51daabcb366b762d8a08
@@ -1 +0,0 @@
1
- c8422616e40d040dcb14ec58a8c72db89c3e450cc23a5bec5c87e0702137e3d901f465ba632a33f438b10900202cd85c082663da2c939bc0216fdd241869fbdc