expo-dev-launcher 0.10.2 → 0.10.5
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 +19 -0
- package/android/build.gradle +29 -2
- package/android/src/debug/AndroidManifest.xml +7 -0
- package/android/src/main/AndroidManifest.xml +2 -1
- package/package.json +3 -3
- package/plugin/build/withDevLauncherAppDelegate.js +7 -5
- package/plugin/src/withDevLauncherAppDelegate.ts +11 -9
- package/yarn-error.log +4366 -2578
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.10.5 — 2022-04-26
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.10.4 — 2022-02-07
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug fixes
|
|
20
|
+
|
|
21
|
+
- Fix opening published projects on Android. ([#16157](https://github.com/expo/expo/pull/16157) by [@esamelson](https://github.com/esamelson))
|
|
22
|
+
|
|
23
|
+
## 0.10.3 — 2022-02-01
|
|
24
|
+
|
|
25
|
+
### 🐛 Bug fixes
|
|
26
|
+
|
|
27
|
+
- Added `android:exported="true"` to the activity, cause on Android 12 and higher it needs to [explicity declared](https://developer.android.com/about/versions/12/behavior-changes-12#exported). ([#16367](https://github.com/expo/expo/pull/16367) by [@wbroek](https://github.com/wbroek))
|
|
28
|
+
- Fix build errors on React Native 0.66 caused by `okio` and `okhttp`. ([#15632](https://github.com/expo/expo/pull/15632) by [@kudo](https://github.com/kudo))
|
|
29
|
+
- Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
|
|
30
|
+
- Fix regression in deep linking configuration. ([#16125](https://github.com/expo/expo/pull/16125) by [@ajsmth](https://github.com/ajsmth))
|
|
31
|
+
|
|
13
32
|
## 0.10.2 — 2022-01-18
|
|
14
33
|
|
|
15
34
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -2,7 +2,7 @@ import groovy.json.JsonSlurper
|
|
|
2
2
|
|
|
3
3
|
apply plugin: 'com.android.library'
|
|
4
4
|
apply plugin: 'kotlin-android'
|
|
5
|
-
apply plugin: 'maven'
|
|
5
|
+
apply plugin: 'maven-publish'
|
|
6
6
|
|
|
7
7
|
buildscript {
|
|
8
8
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -25,7 +25,7 @@ android {
|
|
|
25
25
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
26
26
|
targetSdkVersion safeExtGet('targetSdkVersion', 30)
|
|
27
27
|
versionCode 9
|
|
28
|
-
versionName "0.10.
|
|
28
|
+
versionName "0.10.5"
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
lintOptions {
|
|
@@ -159,3 +159,30 @@ def getRNVersion() {
|
|
|
159
159
|
patch
|
|
160
160
|
)
|
|
161
161
|
}
|
|
162
|
+
|
|
163
|
+
// [BEGIN] Workaround okhttp/okio compatibility issue
|
|
164
|
+
// Remove when we drop support for SDK 44
|
|
165
|
+
def okhttpPinnedArtifacts = []
|
|
166
|
+
configurations.implementation.getDependencies().removeIf { it ->
|
|
167
|
+
if (it.group == 'com.squareup.okhttp3' && it.name == 'okhttp') {
|
|
168
|
+
okhttpPinnedArtifacts.add(it)
|
|
169
|
+
return true
|
|
170
|
+
}
|
|
171
|
+
return false
|
|
172
|
+
}
|
|
173
|
+
okhttpPinnedArtifacts.each { artifact ->
|
|
174
|
+
dependencies.add('compileOnly', artifact)
|
|
175
|
+
dependencies.add('testImplementation', artifact)
|
|
176
|
+
configurations.all { conf ->
|
|
177
|
+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
|
178
|
+
def requested = details.requested
|
|
179
|
+
// Only to pin old okhttp in compile phase because mockwebserver requires okhttp4
|
|
180
|
+
if (conf.name.contains('Compile')) {
|
|
181
|
+
if (requested.group == artifact.group && requested.name == artifact.name) {
|
|
182
|
+
details.useVersion artifact.version
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// [END] Workaround okhttp/okio compatibility issue
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
android:name="expo.modules.devlauncher.launcher.DevLauncherActivity"
|
|
7
7
|
android:screenOrientation="portrait"
|
|
8
8
|
android:theme="@style/Theme.DevLauncher.LauncherActivity"
|
|
9
|
-
android:launchMode="singleTask"
|
|
9
|
+
android:launchMode="singleTask"
|
|
10
|
+
android:exported="true"
|
|
10
11
|
>
|
|
11
12
|
<intent-filter>
|
|
12
13
|
<action android:name="android.intent.action.VIEW"/>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-launcher",
|
|
3
3
|
"title": "Expo Development Launcher",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.5",
|
|
5
5
|
"description": "Pre-release version of the Expo development launcher package for testing.",
|
|
6
6
|
"main": "build/DevLauncher.js",
|
|
7
7
|
"types": "build/DevLauncher.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@expo/config-plugins": "^4.0.14",
|
|
33
33
|
"resolve-from": "^5.0.0",
|
|
34
34
|
"semver": "^7.3.5",
|
|
35
|
-
"expo-dev-menu": "0.9.
|
|
35
|
+
"expo-dev-menu": "0.9.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@react-navigation/bottom-tabs": "^6.0.9",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"./setupTests.ts"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "1b93b3b57477cd50cba0f92b7e7b5fdc4446bcda"
|
|
66
66
|
}
|
|
@@ -19,12 +19,16 @@ const DEV_LAUNCHER_APP_DELEGATE_SOURCE_FOR_URL = ` #if defined(EX_DEV_LAUNCHER_
|
|
|
19
19
|
#else
|
|
20
20
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
|
21
21
|
#endif`;
|
|
22
|
+
const DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK_TO_REMOVE = new RegExp('return (' +
|
|
23
|
+
escapeRegExpCharacters('[super application:application openURL:url options:options] || ') +
|
|
24
|
+
')?' +
|
|
25
|
+
escapeRegExpCharacters('[RCTLinkingManager application:application openURL:url options:options];'));
|
|
22
26
|
const DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK = `#if defined(EX_DEV_LAUNCHER_ENABLED)
|
|
23
27
|
if ([EXDevLauncherController.sharedInstance onDeepLink:url options:options]) {
|
|
24
28
|
return true;
|
|
25
29
|
}
|
|
26
30
|
#endif
|
|
27
|
-
|
|
31
|
+
$&`;
|
|
28
32
|
const DEV_LAUNCHER_APP_DELEGATE_IOS_IMPORT = `
|
|
29
33
|
#if defined(EX_DEV_LAUNCHER_ENABLED)
|
|
30
34
|
#include <EXDevLauncher/EXDevLauncherController.h>
|
|
@@ -192,7 +196,7 @@ function removeDevMenuInit(appDelegate) {
|
|
|
192
196
|
}
|
|
193
197
|
function addDeepLinkHandler(appDelegate) {
|
|
194
198
|
if (!appDelegate.includes(DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK)) {
|
|
195
|
-
appDelegate = appDelegate.replace(
|
|
199
|
+
appDelegate = appDelegate.replace(DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK_TO_REMOVE, DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK);
|
|
196
200
|
}
|
|
197
201
|
return appDelegate;
|
|
198
202
|
}
|
|
@@ -263,9 +267,7 @@ See the expo-dev-client installation instructions to modify your AppDelegate man
|
|
|
263
267
|
if (!appDelegate.includes(DEV_LAUNCHER_APP_DELEGATE_CONTROLLER_DELEGATE)) {
|
|
264
268
|
appDelegate += DEV_LAUNCHER_APP_DELEGATE_CONTROLLER_DELEGATE;
|
|
265
269
|
}
|
|
266
|
-
|
|
267
|
-
appDelegate = appDelegate.replace('return [RCTLinkingManager application:application openURL:url options:options];', DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK);
|
|
268
|
-
}
|
|
270
|
+
appDelegate = addDeepLinkHandler(appDelegate);
|
|
269
271
|
appDelegate = changeDebugURL(appDelegate);
|
|
270
272
|
appDelegate = removeDevMenuInit(appDelegate);
|
|
271
273
|
return appDelegate;
|
|
@@ -17,12 +17,20 @@ const DEV_LAUNCHER_APP_DELEGATE_SOURCE_FOR_URL = ` #if defined(EX_DEV_LAUNCHER_
|
|
|
17
17
|
#else
|
|
18
18
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
|
19
19
|
#endif`;
|
|
20
|
+
const DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK_TO_REMOVE = new RegExp(
|
|
21
|
+
'return (' +
|
|
22
|
+
escapeRegExpCharacters('[super application:application openURL:url options:options] || ') +
|
|
23
|
+
')?' +
|
|
24
|
+
escapeRegExpCharacters(
|
|
25
|
+
'[RCTLinkingManager application:application openURL:url options:options];'
|
|
26
|
+
)
|
|
27
|
+
);
|
|
20
28
|
const DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK = `#if defined(EX_DEV_LAUNCHER_ENABLED)
|
|
21
29
|
if ([EXDevLauncherController.sharedInstance onDeepLink:url options:options]) {
|
|
22
30
|
return true;
|
|
23
31
|
}
|
|
24
32
|
#endif
|
|
25
|
-
|
|
33
|
+
$&`;
|
|
26
34
|
const DEV_LAUNCHER_APP_DELEGATE_IOS_IMPORT = `
|
|
27
35
|
#if defined(EX_DEV_LAUNCHER_ENABLED)
|
|
28
36
|
#include <EXDevLauncher/EXDevLauncherController.h>
|
|
@@ -223,7 +231,7 @@ function removeDevMenuInit(appDelegate: string): string {
|
|
|
223
231
|
function addDeepLinkHandler(appDelegate: string): string {
|
|
224
232
|
if (!appDelegate.includes(DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK)) {
|
|
225
233
|
appDelegate = appDelegate.replace(
|
|
226
|
-
|
|
234
|
+
DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK_TO_REMOVE,
|
|
227
235
|
DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK
|
|
228
236
|
);
|
|
229
237
|
}
|
|
@@ -338,13 +346,7 @@ See the expo-dev-client installation instructions to modify your AppDelegate man
|
|
|
338
346
|
appDelegate += DEV_LAUNCHER_APP_DELEGATE_CONTROLLER_DELEGATE;
|
|
339
347
|
}
|
|
340
348
|
|
|
341
|
-
|
|
342
|
-
appDelegate = appDelegate.replace(
|
|
343
|
-
'return [RCTLinkingManager application:application openURL:url options:options];',
|
|
344
|
-
DEV_LAUNCHER_APP_DELEGATE_ON_DEEP_LINK
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
|
|
349
|
+
appDelegate = addDeepLinkHandler(appDelegate);
|
|
348
350
|
appDelegate = changeDebugURL(appDelegate);
|
|
349
351
|
appDelegate = removeDevMenuInit(appDelegate);
|
|
350
352
|
return appDelegate;
|