expo-updates-interface 0.15.0 → 0.15.1

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.15.1 — 2023-12-19
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Add relaunch to disabled and dev client controllers. ([#25973](https://github.com/expo/expo/pull/25973) by [@wschurman](https://github.com/wschurman))
18
+
13
19
  ## 0.15.0 — 2023-11-14
14
20
 
15
21
  ### 🛠 Breaking changes
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.15.0'
6
+ version = '0.15.1'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.updatesinterface"
95
95
  defaultConfig {
96
96
  versionCode 1
97
- versionName '0.15.0'
97
+ versionName '0.15.1'
98
98
  }
99
99
  }
100
100
 
@@ -0,0 +1,5 @@
1
+ package expo.modules.updatesinterface;
2
+
3
+ public interface UpdatesInterfaceCallbacks {
4
+ void onRequestRelaunch();
5
+ }
@@ -20,6 +20,7 @@ public typealias UpdatesManifestBlock = (_ manifest: [String: Any]) -> Bool
20
20
  @objc(EXUpdatesExternalInterface)
21
21
  public protocol UpdatesExternalInterface {
22
22
  @objc weak var bridge: AnyObject? { get set }
23
+ @objc weak var updatesExternalInterfaceDelegate: (any UpdatesExternalInterfaceDelegate)? { get set }
23
24
  @objc var launchAssetURL: URL? { get }
24
25
 
25
26
  @objc func reset()
@@ -32,3 +33,11 @@ public protocol UpdatesExternalInterface {
32
33
  error errorBlock: @escaping UpdatesErrorBlock
33
34
  )
34
35
  }
36
+
37
+ /**
38
+ * Protocol for communication/delegation back to the host dev client for functionality.
39
+ */
40
+ @objc(EXUpdatesExternalInterfaceDelegate)
41
+ public protocol UpdatesExternalInterfaceDelegate {
42
+ @objc func updatesExternalInterfaceDidRequestRelaunch(_ updatesExternalInterface: UpdatesExternalInterface)
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-updates-interface",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Native interface for modules that optionally depend on expo-updates, e.g. expo-dev-launcher.",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -23,5 +23,5 @@
23
23
  "peerDependencies": {
24
24
  "expo": "*"
25
25
  },
26
- "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
26
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
27
27
  }