expo-dev-client 4.0.25 → 4.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,10 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 4.0.26 — 2024-09-03
|
|
14
|
+
|
|
15
|
+
- Add `addGeneratedScheme` config plugin option to disable automatic adding of dev client app scheme. ([#31147](https://github.com/expo/expo/pull/31147) by [@keith-kurak](https://github.com/keith-kurak))
|
|
16
|
+
|
|
13
17
|
## 4.0.25 — 2024-08-23
|
|
14
18
|
|
|
15
19
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.26",
|
|
4
4
|
"description": "Expo Development Client",
|
|
5
5
|
"main": "build/DevClient.js",
|
|
6
6
|
"types": "build/DevClient.d.ts",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"jest": {
|
|
49
49
|
"preset": "expo-module-scripts"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "c62c6a599c7ce1d4cc1f64311ec635267ff7a499"
|
|
52
52
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { PluginConfigType } from 'expo-dev-launcher/plugin/build/pluginConfig';
|
|
2
|
-
|
|
2
|
+
type DevClientPluginConfigType = PluginConfigType & {
|
|
3
|
+
addGeneratedScheme?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("@expo/config-plugins").ConfigPlugin<DevClientPluginConfigType>;
|
|
3
6
|
export default _default;
|
|
@@ -14,8 +14,11 @@ const pkg = require('expo-dev-client/package.json');
|
|
|
14
14
|
function withDevClient(config, props) {
|
|
15
15
|
config = (0, app_plugin_2.default)(config);
|
|
16
16
|
config = (0, app_plugin_1.default)(config, props);
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const mySchemeProps = { addGeneratedScheme: true, ...props };
|
|
18
|
+
if (mySchemeProps.addGeneratedScheme) {
|
|
19
|
+
config = (0, withGeneratedAndroidScheme_1.withGeneratedAndroidScheme)(config);
|
|
20
|
+
config = (0, withGeneratedIosScheme_1.withGeneratedIosScheme)(config);
|
|
21
|
+
}
|
|
19
22
|
return config;
|
|
20
23
|
}
|
|
21
24
|
exports.default = (0, config_plugins_1.createRunOncePlugin)(withDevClient, pkg.name, pkg.version);
|
|
@@ -11,12 +11,21 @@ import { withGeneratedIosScheme } from './withGeneratedIosScheme';
|
|
|
11
11
|
|
|
12
12
|
const pkg = require('expo-dev-client/package.json');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
type DevClientPluginConfigType = PluginConfigType & {
|
|
15
|
+
addGeneratedScheme?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
function withDevClient(config: ExpoConfig, props: DevClientPluginConfigType) {
|
|
15
19
|
config = withDevMenu(config);
|
|
16
20
|
config = withDevLauncher(config, props);
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
|
|
22
|
+
const mySchemeProps = { addGeneratedScheme: true, ...props };
|
|
23
|
+
|
|
24
|
+
if (mySchemeProps.addGeneratedScheme) {
|
|
25
|
+
config = withGeneratedAndroidScheme(config);
|
|
26
|
+
config = withGeneratedIosScheme(config);
|
|
27
|
+
}
|
|
19
28
|
return config;
|
|
20
29
|
}
|
|
21
30
|
|
|
22
|
-
export default createRunOncePlugin<
|
|
31
|
+
export default createRunOncePlugin<DevClientPluginConfigType>(withDevClient, pkg.name, pkg.version);
|