expo-screen-orientation 8.1.5 → 8.1.7

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 (44) hide show
  1. package/CHANGELOG.md +12 -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/ios/ScreenOrientationReactDelegateHandler.swift +1 -1
  6. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.aar +0 -0
  7. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.aar.md5 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.aar.sha1 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.aar.sha256 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.aar.sha512 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.module → 8.1.7/expo.modules.screenorientation-8.1.7.module} +17 -17
  12. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.module.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.module.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.module.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.module.sha512 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5.pom → 8.1.7/expo.modules.screenorientation-8.1.7.pom} +1 -1
  17. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.pom.md5 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.pom.sha1 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.pom.sha256 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.7/expo.modules.screenorientation-8.1.7.pom.sha512 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml +4 -4
  22. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.md5 +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha1 +1 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha256 +1 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/maven-metadata.xml.sha512 +1 -1
  26. package/package.json +3 -3
  27. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.aar +0 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.aar.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.aar.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.aar.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.aar.sha512 +0 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.md5 +0 -1
  33. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha1 +0 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha256 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.module.sha512 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.md5 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha1 +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha256 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/8.1.5/expo.modules.screenorientation-8.1.5.pom.sha512 +0 -1
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar → 8.1.7/expo.modules.screenorientation-8.1.7-sources.jar} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.md5 → 8.1.7/expo.modules.screenorientation-8.1.7-sources.jar.md5} +0 -0
  42. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha1 → 8.1.7/expo.modules.screenorientation-8.1.7-sources.jar.sha1} +0 -0
  43. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha256 → 8.1.7/expo.modules.screenorientation-8.1.7-sources.jar.sha256} +0 -0
  44. /package/local-maven-repo/host/exp/exponent/expo.modules.screenorientation/{8.1.5/expo.modules.screenorientation-8.1.5-sources.jar.sha512 → 8.1.7/expo.modules.screenorientation-8.1.7-sources.jar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 8.1.7 — 2025-06-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Call `createRootViewController` from the `ExpoReactNativeFactoryDelegate`. ([#36787](https://github.com/expo/expo/pull/36787) by [@alanjhughes](https://github.com/alanjhughes))
18
+
19
+ ## 8.1.6 — 2025-05-06
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - [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))
24
+
13
25
  ## 8.1.5 — 2025-04-30
14
26
 
15
27
  _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.7'
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.7'
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.7",
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
  }
@@ -4,7 +4,7 @@ import ExpoModulesCore
4
4
 
5
5
  @objc(EXScreenOrientationReactDelegateHandler)
6
6
  public class ScreenOrientationReactDelegateHandler: ExpoReactDelegateHandler {
7
- public override func createRootViewController(reactDelegate: ExpoReactDelegate) -> UIViewController? {
7
+ public override func createRootViewController() -> UIViewController? {
8
8
  return ScreenOrientationViewController(defaultScreenOrientationFromPlist: ())
9
9
  }
10
10
  }
@@ -0,0 +1 @@
1
+ da13cd5f7980f02173287d85b9409796b560eb4d5d43b7750cd3fe922ca0e7ba
@@ -0,0 +1 @@
1
+ b2b19dbfb2e6d071183349e5f4cde6414a8660076bd76bf7665a4bf55611edd63b0a5e2b1e0ed7e9be6a490352d96e209e1fd082c7e33b182372e97706dda80a
@@ -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.7",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
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",
29
- "size": 36593,
30
- "sha512": "ee96e8fc296906ebe83f3911901516aa56bbf398f1d11dddfab58b4e93400f25d04033746b55a193e51b9cf0561a0fe3bc9488636219c074de0e0a84fe2d0c28",
31
- "sha256": "5da37a64aaa5f2292e6bf8d9830f946805cc6c5b2801b4fe90b7aeb180f92441",
32
- "sha1": "f977790e984f1724dd17964dd347594148829714",
33
- "md5": "56176ffcfa2fb45eb7c81369673e674a"
27
+ "name": "expo.modules.screenorientation-8.1.7.aar",
28
+ "url": "expo.modules.screenorientation-8.1.7.aar",
29
+ "size": 36666,
30
+ "sha512": "b2b19dbfb2e6d071183349e5f4cde6414a8660076bd76bf7665a4bf55611edd63b0a5e2b1e0ed7e9be6a490352d96e209e1fd082c7e33b182372e97706dda80a",
31
+ "sha256": "da13cd5f7980f02173287d85b9409796b560eb4d5d43b7750cd3fe922ca0e7ba",
32
+ "sha1": "b4544abbe63f30f394f3d9c2681d73edccc7af31",
33
+ "md5": "358c54f566948165c647571380125c6a"
34
34
  }
35
35
  ]
36
36
  },
@@ -53,13 +53,13 @@
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",
58
- "size": 36593,
59
- "sha512": "ee96e8fc296906ebe83f3911901516aa56bbf398f1d11dddfab58b4e93400f25d04033746b55a193e51b9cf0561a0fe3bc9488636219c074de0e0a84fe2d0c28",
60
- "sha256": "5da37a64aaa5f2292e6bf8d9830f946805cc6c5b2801b4fe90b7aeb180f92441",
61
- "sha1": "f977790e984f1724dd17964dd347594148829714",
62
- "md5": "56176ffcfa2fb45eb7c81369673e674a"
56
+ "name": "expo.modules.screenorientation-8.1.7.aar",
57
+ "url": "expo.modules.screenorientation-8.1.7.aar",
58
+ "size": 36666,
59
+ "sha512": "b2b19dbfb2e6d071183349e5f4cde6414a8660076bd76bf7665a4bf55611edd63b0a5e2b1e0ed7e9be6a490352d96e209e1fd082c7e33b182372e97706dda80a",
60
+ "sha256": "da13cd5f7980f02173287d85b9409796b560eb4d5d43b7750cd3fe922ca0e7ba",
61
+ "sha1": "b4544abbe63f30f394f3d9c2681d73edccc7af31",
62
+ "md5": "358c54f566948165c647571380125c6a"
63
63
  }
64
64
  ]
65
65
  },
@@ -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.7-sources.jar",
77
+ "url": "expo.modules.screenorientation-8.1.7-sources.jar",
78
78
  "size": 5194,
79
79
  "sha512": "e06be0d0236539250b81b1d5670d89f70600b03c82fa53c245602afdcb2bab06d04d42e6dd85e9686867d069a8b09dd3fbc04f562bc1760e33f68ea614b2ec42",
80
80
  "sha256": "d63ace679c73e409ffd1706ac43973134e9151254bf644d73a33c27539db1037",
@@ -0,0 +1 @@
1
+ 9a42ace777d084ee410afb0e2d55b99c547c82b34ed49c2fb39d07607c3f1fec
@@ -0,0 +1 @@
1
+ df07e488c9a8e6a71f4e222c84d510d33eb956c2b2314a14fa81938f1a04c7df5e9d0573f815d298a5bdd4986590ccad3f36cc1a4da3bc4a1f10367be66f61f1
@@ -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.7</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
+ 7d2a61f54dd3e4db067d18fa43355ef3ddf52845de73aaef88c632de7e1cb6c6
@@ -0,0 +1 @@
1
+ 7004acfbc893f024dcb17eeac296e1a167b3ad6affefdc60776774016ee78e10f42e925ea26e6f93d19bcf201e64eb2688109863196c16ff99b5ed91cf4e2197
@@ -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.7</latest>
7
+ <release>8.1.7</release>
8
8
  <versions>
9
- <version>8.1.5</version>
9
+ <version>8.1.7</version>
10
10
  </versions>
11
- <lastUpdated>20250430211452</lastUpdated>
11
+ <lastUpdated>20250604230414</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 6b3bf227fa37c53784bc74c04b1db7b1
1
+ 6116cb9c73cf29891810f626ef9dec24
@@ -1 +1 @@
1
- c470ea0d4e6007d8f898e63e21cae0aa9906186f
1
+ 690a82477e4520ec7117a89a6acc07ad4627d24d
@@ -1 +1 @@
1
- cf2301d13fd2e422692cc8ad9b33f44a89270beccd4d36879fda81d2fef6ef23
1
+ 94986afbef889d40603fdda28441002d10f0d3b7f5d74477ed04df44e440d52c
@@ -1 +1 @@
1
- b06210c59ba128b3fba59fa6055fca30c6bb4b425bf069951e1438e1b23c72ff0b897327a600d49a6a536d7cdc998c38c31ab6c3934269e04dc3f7b07d56ce64
1
+ 3294931201ef63292e1535023de6ab86c34b544767bcf27e3e71afe38e29b79bacb39dd4a57e34fe12614e05b35b6c2e8b1151453acc9bbad0b04349d56cda2c
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.7",
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.6"
39
+ "expo-module-scripts": "^4.1.7"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "expo": "*",
43
43
  "react-native": "*"
44
44
  },
45
- "gitHead": "84355076bc31a356aa3d23257f387f221885f53d"
45
+ "gitHead": "7638c800b57fe78f57cc7f129022f58e84a523c5"
46
46
  }
@@ -1 +0,0 @@
1
- 5da37a64aaa5f2292e6bf8d9830f946805cc6c5b2801b4fe90b7aeb180f92441
@@ -1 +0,0 @@
1
- ee96e8fc296906ebe83f3911901516aa56bbf398f1d11dddfab58b4e93400f25d04033746b55a193e51b9cf0561a0fe3bc9488636219c074de0e0a84fe2d0c28
@@ -1 +0,0 @@
1
- 3ff04ef929ef4c093513ba4681851830f154a0267978f4850a47d7d12fa3a01a
@@ -1 +0,0 @@
1
- 637f119c4fd1c86342f3f2adc2a38e1784959d7271141f9e08a34b02bfca6e32ba9dafe732cd26e4f6207edfa70d801232f9ba2bd0730aae982ddfffc75a2570
@@ -1 +0,0 @@
1
- 8daeaa7b067c3b08f87f35f99fc72ac1281c254b66df51daabcb366b762d8a08
@@ -1 +0,0 @@
1
- c8422616e40d040dcb14ec58a8c72db89c3e450cc23a5bec5c87e0702137e3d901f465ba632a33f438b10900202cd85c082663da2c939bc0216fdd241869fbdc