expo-modules-core 0.6.2 → 0.6.3

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,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.6.3 — 2021-12-16
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed the deep link wasn't passed to the application if the application wasn't running when the deep link was sent. ([#15593](https://github.com/expo/expo/pull/15593) by [@lukmccall](https://github.com/lukmccall))
18
+
13
19
  ## 0.6.2 — 2021-12-15
14
20
 
15
21
  ### 🎉 New features
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.6.2'
6
+ version = '0.6.3'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -58,7 +58,7 @@ android {
58
58
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
59
59
  consumerProguardFiles 'proguard-rules.pro'
60
60
  versionCode 1
61
- versionName "0.6.2"
61
+ versionName "0.6.3"
62
62
  }
63
63
  lintOptions {
64
64
  abortOnError false
@@ -21,8 +21,19 @@ open class ExpoAppDelegate: UIResponder, UIApplicationDelegate {
21
21
  // MARK: - Initializing the App
22
22
 
23
23
  open func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
24
- return subscribers.reduce(false) { result, subscriber in
25
- return subscriber.application?(application, willFinishLaunchingWithOptions: launchOptions) ?? false || result
24
+ let parsedSubscribers = subscribers.filter {
25
+ $0.responds(to: #selector(application(_:willFinishLaunchingWithOptions:)))
26
+ }
27
+
28
+ // If we can't find a subscriber that implements `willFinishLaunchingWithOptions`, we will delegate the decision if we can handel the passed URL to
29
+ // the `didFinishLaunchingWithOptions` method by returning `true` here.
30
+ // You can read more about how iOS handles deep links here: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application#discussion
31
+ if (parsedSubscribers.isEmpty) {
32
+ return true;
33
+ }
34
+
35
+ return parsedSubscribers.reduce(false) { result, subscriber in
36
+ return subscriber.application!(application, willFinishLaunchingWithOptions: launchOptions) || result
26
37
  }
27
38
  }
28
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "@testing-library/react-hooks": "^7.0.1",
43
43
  "expo-module-scripts": "^2.0.0"
44
44
  },
45
- "gitHead": "779a011c9a6a436d3e69df0f8f7d1a4703fb297a"
45
+ "gitHead": "150733e32b766c53c573ed505d2fe42bd8ceaa75"
46
46
  }