expo-dev-menu 55.0.24 → 55.0.26

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
+ ## 55.0.26 — 2026-05-01
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 55.0.25 — 2026-05-01
18
+
19
+ ### 🎉 New features
20
+
21
+ - [plugin] Add option to disable tools button by default. ([#44251](https://github.com/expo/expo/pull/44251) by [@alanjhughes](https://github.com/alanjhughes))
22
+
13
23
  ## 55.0.24 — 2026-04-21
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -12,7 +12,7 @@ apply plugin: 'expo-module-gradle-plugin'
12
12
  apply plugin: 'org.jetbrains.kotlin.plugin.compose'
13
13
 
14
14
  group = 'host.exp.exponent'
15
- version = '55.0.24'
15
+ version = '55.0.26'
16
16
 
17
17
  def hasDevLauncher = findProject(":expo-dev-launcher") != null
18
18
  def configureInRelease = findProperty("expo.devmenu.configureInRelease") == "true"
@@ -29,7 +29,7 @@ android {
29
29
 
30
30
  defaultConfig {
31
31
  versionCode 10
32
- versionName '55.0.24'
32
+ versionName '55.0.26'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -3,6 +3,7 @@ package expo.modules.devmenu
3
3
  import android.app.Application
4
4
  import android.content.Context.MODE_PRIVATE
5
5
  import android.content.SharedPreferences
6
+ import android.content.pm.PackageManager
6
7
  import expo.modules.devmenu.helpers.preferences
7
8
 
8
9
  private const val DEV_SETTINGS_PREFERENCES = "expo.modules.devmenu.sharedpreferences"
@@ -54,6 +55,15 @@ class DevMenuDefaultPreferences(
54
55
  ) : DevMenuPreferences {
55
56
  private val sharedPreferences = application.getSharedPreferences(DEV_SETTINGS_PREFERENCES, MODE_PRIVATE)
56
57
 
58
+ private val fabDefault: Boolean = try {
59
+ val ai = application.packageManager.getApplicationInfo(
60
+ application.packageName, PackageManager.GET_META_DATA
61
+ )
62
+ ai.metaData?.getBoolean("EXDevMenuShowFloatingActionButton", true) ?: true
63
+ } catch (_: Exception) {
64
+ true
65
+ }
66
+
57
67
  private val listeners = mutableListOf<() -> Unit>()
58
68
 
59
69
  // The preference manager does not currently store a strong reference to the listener.
@@ -89,5 +99,5 @@ class DevMenuDefaultPreferences(
89
99
  by preferences(sharedPreferences, false)
90
100
 
91
101
  override var showFab: Boolean
92
- by preferences(sharedPreferences, true)
102
+ by preferences(sharedPreferences, fabDefault)
93
103
  }
@@ -26,6 +26,8 @@ public class DevMenuPreferences: Module {
26
26
  and applying some preferences to static classes like interceptors.
27
27
  */
28
28
  static func setup() {
29
+ let fabDefault = Bundle.main.object(forInfoDictionaryKey: showFloatingActionButtonKey) as? Bool
30
+
29
31
  #if os(tvOS)
30
32
  UserDefaults.standard.register(defaults: [
31
33
  motionGestureEnabledKey: false,
@@ -33,7 +35,7 @@ public class DevMenuPreferences: Module {
33
35
  keyCommandsEnabledKey: true,
34
36
  showsAtLaunchKey: false,
35
37
  isOnboardingFinishedKey: true,
36
- showFloatingActionButtonKey: false
38
+ showFloatingActionButtonKey: fabDefault ?? false
37
39
  ])
38
40
  #else
39
41
  UserDefaults.standard.register(defaults: [
@@ -42,7 +44,7 @@ public class DevMenuPreferences: Module {
42
44
  keyCommandsEnabledKey: true,
43
45
  showsAtLaunchKey: false,
44
46
  isOnboardingFinishedKey: false,
45
- showFloatingActionButtonKey: true
47
+ showFloatingActionButtonKey: fabDefault ?? true
46
48
  ])
47
49
  #endif
48
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu",
3
- "version": "55.0.24",
3
+ "version": "55.0.26",
4
4
  "description": "Expo/React Native module with the developer menu.",
5
5
  "main": "build/DevMenu.js",
6
6
  "types": "build/DevMenu.d.ts",
@@ -39,7 +39,7 @@
39
39
  "@babel/preset-typescript": "^7.7.4",
40
40
  "@testing-library/react-native": "^13.3.0",
41
41
  "babel-plugin-module-resolver": "^5.0.0",
42
- "babel-preset-expo": "~55.0.18",
42
+ "babel-preset-expo": "~55.0.19",
43
43
  "expo-module-scripts": "^55.0.2",
44
44
  "react": "19.2.0",
45
45
  "react-native": "0.83.6"
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "expo": "*"
49
49
  },
50
- "gitHead": "e37e614d97c3ca53f16b91609a787675d044c284"
50
+ "gitHead": "a9eee95dc9ff0e1b65051c073ffb61ba3c402611"
51
51
  }