expo-screen-orientation 4.3.0 → 5.0.0
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,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.0.0 — 2022-10-25
|
|
14
|
+
|
|
15
|
+
### 🛠 Breaking changes
|
|
16
|
+
|
|
17
|
+
- [plugin] Upgrade minimum runtime requirement to Node 14 (LTS). ([#18204](https://github.com/expo/expo/pull/18204) by [@EvanBacon](https://github.com/EvanBacon))
|
|
18
|
+
- 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))
|
|
19
|
+
|
|
20
|
+
### 💡 Others
|
|
21
|
+
|
|
22
|
+
- [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))
|
|
23
|
+
- 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))
|
|
24
|
+
|
|
13
25
|
## 4.3.0 — 2022-07-07
|
|
14
26
|
|
|
15
27
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '
|
|
6
|
+
version = '5.0.0'
|
|
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 '
|
|
77
|
+
versionName '5.0.0'
|
|
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, '
|
|
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": "
|
|
3
|
+
"version": "5.0.0",
|
|
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": "^
|
|
39
|
+
"expo-module-scripts": "^3.0.0"
|
|
43
40
|
},
|
|
44
41
|
"peerDependencies": {
|
|
45
42
|
"expo": "*"
|
|
46
43
|
},
|
|
47
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "eab2b09c735fb0fc2bf734a3f29a6593adba3838"
|
|
48
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
|