expo-screen-orientation 4.3.0 → 5.0.1

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,22 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 5.0.1 — 2022-10-28
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 5.0.0 — 2022-10-25
18
+
19
+ ### 🛠 Breaking changes
20
+
21
+ - [plugin] Upgrade minimum runtime requirement to Node 14 (LTS). ([#18204](https://github.com/expo/expo/pull/18204) by [@EvanBacon](https://github.com/EvanBacon))
22
+ - Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta))
23
+
24
+ ### 💡 Others
25
+
26
+ - [plugin] Migrate import from @expo/config-plugins to expo/config-plugins and @expo/config-types to expo/config. ([#18855](https://github.com/expo/expo/pull/18855) by [@brentvatne](https://github.com/brentvatne))
27
+ - Drop `@expo/config-plugins` dependency in favor of peer dependency on `expo`. ([#18595](https://github.com/expo/expo/pull/18595) by [@EvanBacon](https://github.com/EvanBacon))
28
+
13
29
  ## 4.3.0 — 2022-07-07
14
30
 
15
31
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '4.3.0'
6
+ version = '5.0.1'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
76
76
  versionCode 7
77
- versionName '4.3.0'
77
+ versionName '5.0.1'
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platform = :ios, '12.0'
13
+ s.platform = :ios, '13.0'
14
14
  s.swift_version = '5.4'
15
15
  s.source = { git: 'https://github.com/expo/expo.git' }
16
16
  s.static_framework = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-screen-orientation",
3
- "version": "4.3.0",
3
+ "version": "5.0.1",
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",
@@ -35,14 +35,11 @@
35
35
  "jest": {
36
36
  "preset": "expo-module-scripts"
37
37
  },
38
- "dependencies": {
39
- "@expo/config-plugins": "~5.0.0"
40
- },
41
38
  "devDependencies": {
42
- "expo-module-scripts": "^2.0.0"
39
+ "expo-module-scripts": "^3.0.0"
43
40
  },
44
41
  "peerDependencies": {
45
42
  "expo": "*"
46
43
  },
47
- "gitHead": "6e131f2da851a47c3a24eb3d6fc971a1a7822086"
44
+ "gitHead": "59081bb17e727b10f2a00cd07bb45cd283a6f6a5"
48
45
  }
@@ -1,5 +1,5 @@
1
- import { ConfigPlugin, InfoPlist } from '@expo/config-plugins';
2
- import { ExpoConfig } from '@expo/config-types';
1
+ import { ExpoConfig } from 'expo/config';
2
+ import { ConfigPlugin, InfoPlist } from 'expo/config-plugins';
3
3
  export declare const INITIAL_ORIENTATION_KEY = "EXDefaultScreenOrientationMask";
4
4
  declare const OrientationLock: {
5
5
  DEFAULT: string;
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.setInitialOrientation = exports.getInitialOrientation = exports.INITIAL_ORIENTATION_KEY = void 0;
7
- const config_plugins_1 = require("@expo/config-plugins");
8
7
  const assert_1 = __importDefault(require("assert"));
8
+ const config_plugins_1 = require("expo/config-plugins");
9
9
  const pkg = require('expo-screen-orientation/package.json');
10
10
  // This value must match the `EXDefaultScreenOrientationMask` string used in `expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationViewController.m` (do not change).
11
11
  exports.INITIAL_ORIENTATION_KEY = 'EXDefaultScreenOrientationMask';
@@ -31,8 +31,7 @@ const withScreenOrientationViewController = (config, { initialOrientation = 'DEF
31
31
  return config;
32
32
  };
33
33
  function getInitialOrientation(config) {
34
- var _a;
35
- return (_a = config.initialOrientation) !== null && _a !== void 0 ? _a : 'DEFAULT';
34
+ return config.initialOrientation ?? 'DEFAULT';
36
35
  }
37
36
  exports.getInitialOrientation = getInitialOrientation;
38
37
  function setInitialOrientation(config, infoPlist) {
@@ -1,6 +1,6 @@
1
- import { ConfigPlugin, createRunOncePlugin, InfoPlist, withInfoPlist } from '@expo/config-plugins';
2
- import { ExpoConfig } from '@expo/config-types';
3
1
  import assert from 'assert';
2
+ import { ExpoConfig } from 'expo/config';
3
+ import { ConfigPlugin, createRunOncePlugin, InfoPlist, withInfoPlist } from 'expo/config-plugins';
4
4
 
5
5
  const pkg = require('expo-screen-orientation/package.json');
6
6