expo-screen-orientation 8.1.4 → 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 +10 -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.4/expo.modules.screenorientation-8.1.4.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.4/expo.modules.screenorientation-8.1.4.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 +3 -3
  21. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.module.md5 +0 -1
  22. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.module.sha1 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.module.sha256 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.module.sha512 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.pom.md5 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.pom.sha1 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.pom.sha256 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.4/expo.modules.screenorientation-8.1.4.pom.sha512 +0 -1
  29. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.4/expo.modules.screenorientation-8.1.4-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.4/expo.modules.screenorientation-8.1.4-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.4/expo.modules.screenorientation-8.1.4-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.4/expo.modules.screenorientation-8.1.4-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.4/expo.modules.screenorientation-8.1.4-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.4/expo.modules.screenorientation-8.1.4.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.4/expo.modules.screenorientation-8.1.4.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.4/expo.modules.screenorientation-8.1.4.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.4/expo.modules.screenorientation-8.1.4.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.4/expo.modules.screenorientation-8.1.4.aar.sha512 → 8.1.6/expo.modules.screenorientation-8.1.6.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
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
+
19
+ ## 8.1.5 — 2025-04-30
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 8.1.4 — 2025-04-25
14
24
 
15
25
  _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.4'
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.4'
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.4",
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.4",
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.4.aar",
28
- "url": "expo.modules.screenorientation-8.1.4.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.4.aar",
57
- "url": "expo.modules.screenorientation-8.1.4.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.4-sources.jar",
77
- "url": "expo.modules.screenorientation-8.1.4-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.4</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.4</latest>
7
- <release>8.1.4</release>
6
+ <latest>8.1.6</latest>
7
+ <release>8.1.6</release>
8
8
  <versions>
9
- <version>8.1.4</version>
9
+ <version>8.1.6</version>
10
10
  </versions>
11
- <lastUpdated>20250425210748</lastUpdated>
11
+ <lastUpdated>20250506221714</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- f371318d660ee3459d1828155c28ece4
1
+ cdad6e02c2ffb40080118ea0d1920344
@@ -1 +1 @@
1
- 5da1b3d1686af1b4c3dd1e8560a51f64587f7bc1
1
+ a0b2e393ab8429300deb0ab37cdd19aa1eb77c8f
@@ -1 +1 @@
1
- 504ab3f6db33cc4fcc281a6f4825775683739e37bf632f310c15a266e6fc55bf
1
+ deeae032ee7e4ce568194de5b48f240563f97cf8c9b97be4a22cb4b221184cbb
@@ -1 +1 @@
1
- e35391a3f7f4607b3d378a1758d357591e88fe67df2fe80864849121b3a9f0b6c07ceeb78821364e55d97c3a4b0bb5c469869344067518c5b22ea84f7b313a79
1
+ 263dd92cf670b90ae54e3d941849d99873b865c47931ce1f2c4f549d6156b936b478f75412ee7cc11c779b38638f2131b342de5e010256168e93489fc72c4e6e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-screen-orientation",
3
- "version": "8.1.4",
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",
@@ -36,11 +36,11 @@
36
36
  "preset": "expo-module-scripts"
37
37
  },
38
38
  "devDependencies": {
39
- "expo-module-scripts": "^4.1.5"
39
+ "expo-module-scripts": "^4.1.6"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "expo": "*",
43
43
  "react-native": "*"
44
44
  },
45
- "gitHead": "3cd208465df78e385ca9380531bbbfe33ca68e81"
45
+ "gitHead": "907224d194d100adb3dff522d4d7be91ee43be51"
46
46
  }
@@ -1 +0,0 @@
1
- e5227bfcd3248ec28375c99d01c430a08b6f1472221c4815b00a8f5b1825459f
@@ -1 +0,0 @@
1
- 8e4a723cf9bc3b688c50b4bb2485180a98cbe80d55e30be461e38ab967aff22ebd72df90a2b62867c0804b0156ac111bb869771c2295e03624da864db1669285
@@ -1 +0,0 @@
1
- d747a98ac6dc1ec4d7b68b9e91a21df523183b139718db9685dfe9782c0bd8ca
@@ -1 +0,0 @@
1
- 68fbd282c1296c69d09b2477b190db8e8ad23ddc38d2f0e5d9455fc0b2d85bd8d62689a1ae622238359d87f9ecb9a2dea8294076e4ad394b0f4d0de8be21a0d3