expo-screen-orientation 7.0.2 → 7.0.3
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
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '7.0.
|
|
4
|
+
version = '7.0.3'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,6 +14,6 @@ android {
|
|
|
14
14
|
namespace "expo.modules.screenorientation"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 7
|
|
17
|
-
versionName '7.0.
|
|
17
|
+
versionName '7.0.3'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -99,6 +99,7 @@ class ScreenOrientationModule : Module(), LifecycleEventListener {
|
|
|
99
99
|
val rotation = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
100
100
|
currentActivity.window.context.display?.rotation ?: return Orientation.UNKNOWN
|
|
101
101
|
} else {
|
|
102
|
+
@Suppress("DEPRECATION")
|
|
102
103
|
windowManager.defaultDisplay.rotation
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -111,6 +112,7 @@ class ScreenOrientationModule : Module(), LifecycleEventListener {
|
|
|
111
112
|
heightPixels = windowMetrics.bounds.height() - insets.top - insets.bottom
|
|
112
113
|
}
|
|
113
114
|
} else {
|
|
115
|
+
@Suppress("DEPRECATION")
|
|
114
116
|
DisplayMetrics().also(windowManager.defaultDisplay::getMetrics)
|
|
115
117
|
}
|
|
116
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-screen-orientation",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
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": "87bd0dfa8b784a834191195ca174a00dd30ee5b7"
|
|
45
45
|
}
|