expo-screen-orientation 5.0.1 → 5.1.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,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.1.0 — 2023-02-03
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
13
19
|
## 5.0.1 — 2022-10-28
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Allows you to manage the orientation of your app's interface.
|
|
|
4
4
|
|
|
5
5
|
# API documentation
|
|
6
6
|
|
|
7
|
-
- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/screen-orientation.
|
|
7
|
+
- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/screen-orientation.mdx)
|
|
8
8
|
- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/screen-orientation/)
|
|
9
9
|
|
|
10
10
|
# Installation in managed Expo projects
|
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 = '5.0
|
|
6
|
+
version = '5.1.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -59,7 +59,7 @@ afterEvaluate {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
android {
|
|
62
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
62
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 33)
|
|
63
63
|
|
|
64
64
|
compileOptions {
|
|
65
65
|
sourceCompatibility JavaVersion.VERSION_11
|
|
@@ -72,9 +72,9 @@ android {
|
|
|
72
72
|
|
|
73
73
|
defaultConfig {
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
75
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
76
76
|
versionCode 7
|
|
77
|
-
versionName '5.0
|
|
77
|
+
versionName '5.1.0'
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -101,7 +101,7 @@ export declare enum WebOrientation {
|
|
|
101
101
|
LANDSCAPE_PRIMARY = "landscape-primary",
|
|
102
102
|
LANDSCAPE_SECONDARY = "landscape-secondary"
|
|
103
103
|
}
|
|
104
|
-
export
|
|
104
|
+
export type PlatformOrientationInfo = {
|
|
105
105
|
/**
|
|
106
106
|
* A constant to set using the Android native [API](https://developer.android.com/reference/android/R.attr.html#screenOrientation).
|
|
107
107
|
* For example, in order to set the lock policy to [unspecified](https://developer.android.com/reference/android/content/pm/ActivityInfo.html#SCREEN_ORIENTATION_UNSPECIFIED),
|
|
@@ -120,7 +120,7 @@ export declare type PlatformOrientationInfo = {
|
|
|
120
120
|
*/
|
|
121
121
|
screenOrientationLockWeb?: WebOrientationLock;
|
|
122
122
|
};
|
|
123
|
-
export
|
|
123
|
+
export type ScreenOrientationInfo = {
|
|
124
124
|
/**
|
|
125
125
|
* The current orientation of the device.
|
|
126
126
|
*/
|
|
@@ -138,8 +138,8 @@ export declare type ScreenOrientationInfo = {
|
|
|
138
138
|
*/
|
|
139
139
|
horizontalSizeClass?: SizeClassIOS;
|
|
140
140
|
};
|
|
141
|
-
export
|
|
142
|
-
export
|
|
141
|
+
export type OrientationChangeListener = (event: OrientationChangeEvent) => void;
|
|
142
|
+
export type OrientationChangeEvent = {
|
|
143
143
|
/**
|
|
144
144
|
* The current `OrientationLock` of the device.
|
|
145
145
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenOrientation.types.d.ts","sourceRoot":"","sources":["../src/ScreenOrientation.types.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,WAAW,IAAI;IACf;;OAEG;IACH,aAAa,IAAI;IACjB;;OAEG;IACH,cAAc,IAAI;IAClB;;OAEG;IACH,eAAe,IAAI;CACpB;AAGD;;;;;GAKG;AACH,oBAAY,eAAe;IACzB;;;OAGG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,GAAG,IAAI;IACP;;OAEG;IACH,QAAQ,IAAI;IACZ;;OAEG;IACH,WAAW,IAAI;IACf;;OAEG;IACH,aAAa,IAAI;IACjB;;OAEG;IACH,SAAS,IAAI;IACb;;OAEG;IACH,cAAc,IAAI;IAClB;;OAEG;IACH,eAAe,IAAI;IACnB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,OAAO,IAAI;CACZ;AAGD;;;GAGG;AACH,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,OAAO,IAAI;CACZ;AAGD;;;;;GAKG;AACH,oBAAY,kBAAkB;IAC5B,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,cAAc;IACxB,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;CAC5C;AAGD,
|
|
1
|
+
{"version":3,"file":"ScreenOrientation.types.d.ts","sourceRoot":"","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;IAClC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;AAGhF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,eAAe,EAAE,qBAAqB,CAAC;CACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-screen-orientation",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.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",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"expo": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1815e2eaad8c753588c7b1eb74420174a28e01f4"
|
|
45
45
|
}
|
|
@@ -11,7 +11,7 @@ declare const OrientationLock: {
|
|
|
11
11
|
LANDSCAPE_LEFT: string;
|
|
12
12
|
LANDSCAPE_RIGHT: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type OrientationMasks = keyof typeof OrientationLock;
|
|
15
15
|
interface ExpoConfigWithInitialOrientation extends ExpoConfig {
|
|
16
16
|
initialOrientation?: OrientationMasks;
|
|
17
17
|
}
|