expo-dev-menu 5.0.19 → 5.0.21

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,17 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 5.0.21 — 2024-08-23
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 5.0.20 — 2024-08-21
18
+
19
+ ### 🐛 Bug fixes
20
+
21
+ - [iOS] Fix build error on `0.75` because of missing headers. ([#31100](https://github.com/expo/expo/pull/31100) by [@alanjhughes](https://github.com/alanjhughes))
22
+ - [Android] Fix a crash on android when calling `setSystemGestureExclusionRects` on apis below 29. ([#31114](https://github.com/expo/expo/pull/31114) by [@alanjhughes](https://github.com/alanjhughes))
23
+
13
24
  ## 5.0.19 — 2024-08-14
14
25
 
15
26
  ### 🎉 New features
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '5.0.19'
4
+ version = '5.0.21'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -20,7 +20,7 @@ android {
20
20
  namespace "expo.modules.devmenu"
21
21
  defaultConfig {
22
22
  versionCode 10
23
- versionName '5.0.19'
23
+ versionName '5.0.21'
24
24
  }
25
25
 
26
26
  buildTypes {
@@ -8,6 +8,7 @@ import android.view.View
8
8
  import android.view.ViewGroup
9
9
  import android.widget.FrameLayout
10
10
  import androidx.annotation.RequiresApi
11
+ import androidx.core.view.ViewCompat
11
12
  import androidx.core.view.doOnLayout
12
13
  import com.facebook.react.ReactRootView
13
14
  import expo.modules.devmenu.fab.MovableFloatingActionButton
@@ -18,7 +19,6 @@ import expo.modules.devmenu.fab.MovableFloatingActionButton
18
19
  private const val enableFAB = false
19
20
 
20
21
  class DevMenuReactRootViewContainer(context: Context) : FrameLayout(context) {
21
- @RequiresApi(Build.VERSION_CODES.Q)
22
22
  private val updateSystemGestureExclusionRects: () -> Unit = {
23
23
  val marginLayoutParams = fab.layoutParams as MarginLayoutParams
24
24
 
@@ -31,16 +31,12 @@ class DevMenuReactRootViewContainer(context: Context) : FrameLayout(context) {
31
31
  )
32
32
 
33
33
  // For some reason, updating the system gesture exclusion rects has to be called on that view
34
- // instead of calling it on the fab view itself. Probably, because we want to extend the react by view margins.
35
- setSystemGestureExclusionRects(listOf(rect))
34
+ // instead of calling it on the fab view itself. Probably, because we want to extend the rect by view margins.
35
+ ViewCompat.setSystemGestureExclusionRects(this, listOf(rect))
36
36
  }
37
37
 
38
38
  private val fab by lazy {
39
39
  MovableFloatingActionButton(context) {
40
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
41
- return@MovableFloatingActionButton
42
- }
43
-
44
40
  // `setSystemGestureExclusionRects` should be call after the view is laid out
45
41
  doOnLayout {
46
42
  updateSystemGestureExclusionRects()
@@ -106,6 +106,9 @@ Pod::Spec.new do |s|
106
106
  main.pod_target_xcconfig = {}
107
107
 
108
108
  main.dependency 'React-Core'
109
+ if ENV['USE_FRAMEWORKS'] && reactNativeTargetVersion >= 75
110
+ add_dependency(main, "React-rendererconsistency")
111
+ end
109
112
  add_dependency(main, "React-jsinspector", :framework_name => 'jsinspector_modern')
110
113
  main.dependency "EXManifests"
111
114
  main.dependency 'ExpoModulesCore'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu",
3
- "version": "5.0.19",
3
+ "version": "5.0.21",
4
4
  "description": "Expo/React Native module with the developer menu.",
5
5
  "main": "build/DevMenu.js",
6
6
  "types": "build/DevMenu.d.ts",
@@ -70,5 +70,5 @@
70
70
  "peerDependencies": {
71
71
  "expo": "*"
72
72
  },
73
- "gitHead": "91ceb059ee147ec5a17fd5599717b1222dc827a2"
73
+ "gitHead": "a1b4a5fbbc9e1a5bb310cac977ed84da13040ad5"
74
74
  }