expo-dev-client 3.3.11 → 4.0.0
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 +15 -9
- package/README.md +10 -5
- package/android/build.gradle +5 -80
- package/metro.config.js +13 -2
- package/package.json +8 -8
- package/plugin/build/getDefaultScheme.js +1 -1
- package/plugin/build/withGeneratedAndroidScheme.js +3 -3
- package/plugin/build/withGeneratedIosScheme.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,41 +10,47 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## 4.0.0 — 2024-04-18
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Removed deprecated backward compatible Gradle settings. ([#28083](https://github.com/expo/expo/pull/28083) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
19
|
+
## 3.3.11 - 2024-03-20
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
|
16
22
|
|
|
17
|
-
## 3.3.10
|
|
23
|
+
## 3.3.10 - 2024-03-13
|
|
18
24
|
|
|
19
25
|
_This version does not introduce any user-facing changes._
|
|
20
26
|
|
|
21
|
-
## 3.3.9
|
|
27
|
+
## 3.3.9 - 2024-02-27
|
|
22
28
|
|
|
23
29
|
_This version does not introduce any user-facing changes._
|
|
24
30
|
|
|
25
|
-
## 3.3.8
|
|
31
|
+
## 3.3.8 - 2024-02-01
|
|
26
32
|
|
|
27
33
|
_This version does not introduce any user-facing changes._
|
|
28
34
|
|
|
29
|
-
## 3.3.7
|
|
35
|
+
## 3.3.7 - 2024-01-24
|
|
30
36
|
|
|
31
37
|
_This version does not introduce any user-facing changes._
|
|
32
38
|
|
|
33
|
-
## 3.3.6
|
|
39
|
+
## 3.3.6 - 2024-01-18
|
|
34
40
|
|
|
35
41
|
_This version does not introduce any user-facing changes._
|
|
36
42
|
|
|
37
|
-
## 3.3.5
|
|
43
|
+
## 3.3.5 - 2024-01-10
|
|
38
44
|
|
|
39
45
|
### 💡 Others
|
|
40
46
|
|
|
41
47
|
- 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))
|
|
42
48
|
|
|
43
|
-
## 3.3.4
|
|
49
|
+
## 3.3.4 - 2023-12-21
|
|
44
50
|
|
|
45
51
|
_This version does not introduce any user-facing changes._
|
|
46
52
|
|
|
47
|
-
## 3.3.3
|
|
53
|
+
## 3.3.3 - 2023-12-19
|
|
48
54
|
|
|
49
55
|
_This version does not introduce any user-facing changes._
|
|
50
56
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p>
|
|
2
|
-
<a href="https://docs.expo.dev/
|
|
2
|
+
<a href="https://docs.expo.dev/versions/latest/sdk/dev-client/">
|
|
3
3
|
<img
|
|
4
4
|
src="../../.github/resources/expo-dev-client.svg"
|
|
5
5
|
alt="expo-dev-client"
|
|
@@ -7,16 +7,21 @@
|
|
|
7
7
|
</a>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
`expo-dev-client`
|
|
11
|
-
|
|
10
|
+
`expo-dev-client` adds various useful development tools to your debug builds:
|
|
11
|
+
|
|
12
|
+
- A configurable launcher UI, so you can launch updates (such as from [PR previews](https://docs.expo.dev/develop/development-builds/development-workflows#pr-previews)) and switch between development servers without needing to recompile the native app
|
|
13
|
+
- Improved debugging tools (such as support for [inspecting network requests](https://docs.expo.dev/debugging/tools/#inspecting-network-requests))
|
|
14
|
+
- [A powerful and extensible developer menu UI](https://docs.expo.dev/debugging/tools#developer-menu)
|
|
15
|
+
|
|
16
|
+
Expo documentation refers to debug builds that include `expo-dev-client` as [development builds](https://docs.expo.dev/develop/development-builds/introduction/).
|
|
12
17
|
|
|
13
18
|
## Documentation
|
|
14
19
|
|
|
15
|
-
You can find more information in the [Expo documentation](https://docs.expo.dev/
|
|
20
|
+
You can find more information in the [Expo documentation](https://docs.expo.dev/versions/latest/sdk/dev-client).
|
|
16
21
|
|
|
17
22
|
## Issues
|
|
18
23
|
|
|
19
|
-
If you encounter any issues using this package in your project, please [report your issue here](https://github.com/expo/expo/issues/new?template=dev_client_bug_report.yml).
|
|
24
|
+
If you encounter any issues using this package in your project, please [report your issue here](https://github.com/expo/expo/issues/new?template=dev_client_bug_report.yml).
|
|
20
25
|
|
|
21
26
|
## Contributing
|
|
22
27
|
|
package/android/build.gradle
CHANGED
|
@@ -1,73 +1,19 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
|
-
apply plugin: 'kotlin-android'
|
|
3
|
-
apply plugin: 'maven-publish'
|
|
4
2
|
|
|
5
3
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
buildscript {
|
|
12
|
-
// Simple helper that allows the root project to override versions declared by this library.
|
|
13
|
-
ext.safeExtGet = { prop, fallback ->
|
|
14
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Ensures backward compatibility
|
|
18
|
-
ext.getKotlinVersion = {
|
|
19
|
-
if (ext.has("kotlinVersion")) {
|
|
20
|
-
ext.kotlinVersion()
|
|
21
|
-
} else {
|
|
22
|
-
ext.safeExtGet("kotlinVersion", "1.8.10")
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
repositories {
|
|
27
|
-
mavenCentral()
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
dependencies {
|
|
31
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
|
|
32
|
-
}
|
|
33
|
-
}
|
|
4
|
+
apply from: expoModulesCorePlugin
|
|
5
|
+
applyKotlinExpoModulesCorePlugin()
|
|
6
|
+
useCoreDependencies()
|
|
7
|
+
useDefaultAndroidSdkVersions()
|
|
34
8
|
|
|
35
9
|
android {
|
|
36
|
-
// Remove this if and it's contents, when support for SDK49 is dropped
|
|
37
|
-
if (!safeExtGet("expoProvidesDefaultConfig", false)) {
|
|
38
|
-
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
|
39
|
-
|
|
40
|
-
defaultConfig {
|
|
41
|
-
minSdkVersion safeExtGet("minSdkVersion", 23)
|
|
42
|
-
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
lintOptions {
|
|
46
|
-
abortOnError false
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
10
|
namespace "expo.modules.devclient"
|
|
50
11
|
defaultConfig {
|
|
51
|
-
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
52
|
-
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
53
12
|
versionCode 1
|
|
54
|
-
versionName "
|
|
55
|
-
|
|
13
|
+
versionName "4.0.0"
|
|
56
14
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
57
15
|
}
|
|
58
16
|
|
|
59
|
-
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
60
|
-
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
|
|
61
|
-
compileOptions {
|
|
62
|
-
sourceCompatibility JavaVersion.VERSION_11
|
|
63
|
-
targetCompatibility JavaVersion.VERSION_11
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
kotlinOptions {
|
|
67
|
-
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
17
|
buildTypes {
|
|
72
18
|
buildTypes.each {
|
|
73
19
|
it.buildConfigField 'String', 'VERSION', "\"${defaultConfig.versionName}\""
|
|
@@ -89,30 +35,9 @@ android {
|
|
|
89
35
|
buildConfig true
|
|
90
36
|
viewBinding true
|
|
91
37
|
}
|
|
92
|
-
|
|
93
|
-
publishing {
|
|
94
|
-
singleVariant("release") {
|
|
95
|
-
withSourcesJar()
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
repositories {
|
|
101
|
-
// ref: https://www.baeldung.com/maven-local-repository
|
|
102
|
-
mavenLocal()
|
|
103
|
-
maven {
|
|
104
|
-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
105
|
-
url "$rootDir/../node_modules/react-native/android"
|
|
106
|
-
}
|
|
107
|
-
maven {
|
|
108
|
-
// Android JSC is installed from npm
|
|
109
|
-
url "$rootDir/../node_modules/jsc-android/dist"
|
|
110
|
-
}
|
|
111
|
-
google()
|
|
112
38
|
}
|
|
113
39
|
|
|
114
40
|
dependencies {
|
|
115
|
-
androidTestImplementation project(':expo-modules-core')
|
|
116
41
|
androidTestImplementation project(":expo-dev-menu-interface")
|
|
117
42
|
androidTestImplementation project(":expo-updates-interface")
|
|
118
43
|
androidTestImplementation project(":expo-dev-menu")
|
package/metro.config.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { getDefaultConfig } = require('expo/metro-config');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const config = getDefaultConfig(__dirname);
|
|
4
|
+
|
|
5
|
+
// Copied from expo-yarn-workspaces
|
|
6
|
+
config.transformer.enableBabelRCLookup = false;
|
|
7
|
+
config.resolver.assetExts.push('db');
|
|
8
|
+
config.resolver.blockList = [
|
|
9
|
+
/\/__tests__\//,
|
|
10
|
+
/\/android\/React(Android|Common)\//,
|
|
11
|
+
/\/versioned-react-native\//,
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Expo Development Client",
|
|
5
5
|
"main": "build/DevClient.js",
|
|
6
6
|
"types": "build/DevClient.d.ts",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"homepage": "https://docs.expo.dev/clients/introduction/",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"expo-dev-launcher": "
|
|
36
|
-
"expo-dev-menu": "
|
|
37
|
-
"expo-dev-menu-interface": "1.
|
|
38
|
-
"expo-manifests": "~0.
|
|
39
|
-
"expo-updates-interface": "~0.
|
|
35
|
+
"expo-dev-launcher": "4.0.0",
|
|
36
|
+
"expo-dev-menu": "5.0.0",
|
|
37
|
+
"expo-dev-menu-interface": "1.8.0",
|
|
38
|
+
"expo-manifests": "~0.14.0",
|
|
39
|
+
"expo-updates-interface": "~0.16.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"expo-module-scripts": "^3.0.0",
|
|
43
|
-
"expo-test-runner": "0.0.
|
|
43
|
+
"expo-test-runner": "0.0.19"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"expo": "*"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"jest": {
|
|
49
49
|
"preset": "expo-module-scripts"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
|
|
52
52
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = getDefaultScheme;
|
|
3
4
|
/*
|
|
4
5
|
* Converts the slug from app configuration to a string that's a valid URI scheme.
|
|
5
6
|
* From RFC3986 Section 3.1.
|
|
@@ -23,4 +24,3 @@ function getDefaultScheme(config) {
|
|
|
23
24
|
// Add a prefix to avoid leading digits and to distinguish from user-defined schemes.
|
|
24
25
|
return `exp+${scheme}`;
|
|
25
26
|
}
|
|
26
|
-
exports.default = getDefaultScheme;
|
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.withGeneratedAndroidScheme = void 0;
|
|
7
|
+
exports.setGeneratedAndroidScheme = setGeneratedAndroidScheme;
|
|
8
|
+
exports.removeExpoSchemaFromVerifiedIntentFilters = removeExpoSchemaFromVerifiedIntentFilters;
|
|
7
9
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
8
10
|
const getDefaultScheme_1 = __importDefault(require("./getDefaultScheme"));
|
|
9
11
|
const withGeneratedAndroidScheme = (config) => {
|
|
@@ -22,7 +24,6 @@ function setGeneratedAndroidScheme(config, androidManifest) {
|
|
|
22
24
|
}
|
|
23
25
|
return androidManifest;
|
|
24
26
|
}
|
|
25
|
-
exports.setGeneratedAndroidScheme = setGeneratedAndroidScheme;
|
|
26
27
|
/**
|
|
27
28
|
* Remove the custom Expo dev client scheme from intent filters, which are set to `autoVerify=true`.
|
|
28
29
|
* The custom scheme `<data android:scheme="exp+<slug>"/>` seems to block verification for these intent filters.
|
|
@@ -50,7 +51,6 @@ function removeExpoSchemaFromVerifiedIntentFilters(config, androidManifest) {
|
|
|
50
51
|
}
|
|
51
52
|
return androidManifest;
|
|
52
53
|
}
|
|
53
|
-
exports.removeExpoSchemaFromVerifiedIntentFilters = removeExpoSchemaFromVerifiedIntentFilters;
|
|
54
54
|
/**
|
|
55
55
|
* Determine if the activity should contain the intent filters to clean.
|
|
56
56
|
*
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.withGeneratedIosScheme = void 0;
|
|
7
|
+
exports.setGeneratedIosScheme = setGeneratedIosScheme;
|
|
7
8
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
8
9
|
const getDefaultScheme_1 = __importDefault(require("./getDefaultScheme"));
|
|
9
10
|
const withGeneratedIosScheme = (config) => {
|
|
@@ -21,4 +22,3 @@ function setGeneratedIosScheme(config, infoPlist) {
|
|
|
21
22
|
}
|
|
22
23
|
return infoPlist;
|
|
23
24
|
}
|
|
24
|
-
exports.setGeneratedIosScheme = setGeneratedIosScheme;
|