expo-system-ui 2.9.1 → 2.9.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
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.9.3 — 2024-01-10
14
+
15
+ ### 💡 Others
16
+
17
+ - Replace deprecated `com.facebook.react:react-native:+` Android dependency with `com.facebook.react:react-android`. ([#26237](https://github.com/expo/expo/pull/26237) by [@kudo](https://github.com/kudo))
18
+
19
+ ## 2.9.2 — 2023-12-19
20
+
21
+ _This version does not introduce any user-facing changes._
22
+
13
23
  ## 2.9.1 — 2023-12-15
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '2.9.1'
6
+ version = '2.9.3'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.systemui"
95
95
  defaultConfig {
96
96
  versionCode 1
97
- versionName '2.9.1'
97
+ versionName '2.9.3'
98
98
  }
99
99
  }
100
100
 
@@ -105,8 +105,7 @@ dependencies {
105
105
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
106
106
  }
107
107
 
108
- //noinspection GradleDynamicVersion
109
- implementation 'com.facebook.react:react-native:+'
108
+ implementation 'com.facebook.react:react-android'
110
109
  implementation 'androidx.core:core:1.6.0'
111
110
  implementation 'androidx.appcompat:appcompat:1.2.0'
112
111
  }
@@ -12,18 +12,21 @@ object SystemUI {
12
12
  successCallback: () -> Unit,
13
13
  failureCallback: (reason: String) -> Unit
14
14
  ) {
15
-
16
15
  val mode = if (style == null) {
17
16
  AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
18
- } else when (style) {
19
- "automatic" -> {
20
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
21
- AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY
22
- } else AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
17
+ } else {
18
+ when (style) {
19
+ "automatic" -> {
20
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
21
+ AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY
22
+ } else {
23
+ AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM
24
+ }
25
+ }
26
+ "dark" -> AppCompatDelegate.MODE_NIGHT_YES
27
+ "", "light" -> AppCompatDelegate.MODE_NIGHT_NO
28
+ else -> return failureCallback("Invalid user interface style: \"$style\"")
23
29
  }
24
- "dark" -> AppCompatDelegate.MODE_NIGHT_YES
25
- "", "light" -> AppCompatDelegate.MODE_NIGHT_NO
26
- else -> return failureCallback("Invalid user interface style: \"$style\"")
27
30
  }
28
31
  AppCompatDelegate.setDefaultNightMode(mode)
29
32
  successCallback()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-system-ui",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "Interact with system UI elements",
5
5
  "main": "build/SystemUI.js",
6
6
  "types": "build/SystemUI.d.ts",
@@ -44,5 +44,5 @@
44
44
  "peerDependencies": {
45
45
  "expo": "*"
46
46
  },
47
- "gitHead": "1a7c4e8ffed182e00cf1cf654ca2401441a7377a"
47
+ "gitHead": "ca014bf2516c7644ef303f4c21fdd68de4d99f76"
48
48
  }