expo-updates-interface 0.13.0 → 0.15.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 CHANGED
@@ -10,6 +10,24 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.15.0 — 2023-11-14
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Bumped iOS deployment target to 13.4. ([#25063](https://github.com/expo/expo/pull/25063) by [@gabrieldonadel](https://github.com/gabrieldonadel))
18
+ - On `Android` bump `compileSdkVersion` and `targetSdkVersion` to `34`. ([#24708](https://github.com/expo/expo/pull/24708) by [@alanjhughes](https://github.com/alanjhughes))
19
+
20
+ ### 💡 Others
21
+
22
+ - Renamed `unimodule.json` to `expo-module.config.json`. ([#25100](https://github.com/expo/expo/pull/25100) by [@reichhartd](https://github.com/reichhartd))
23
+ - Remove unused `storedUpdateIdsWithConfiguration` method. ([#25194](https://github.com/expo/expo/pull/25194) by [@wschurman](https://github.com/wschurman))
24
+
25
+ ## 0.14.0 — 2023-10-17
26
+
27
+ ### 🛠 Breaking changes
28
+
29
+ - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate))
30
+
13
31
  ## 0.13.0 — 2023-09-15
14
32
 
15
33
  ### 🎉 New features
@@ -3,15 +3,20 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.13.0'
6
+ version = '0.15.0'
7
7
 
8
- buildscript {
9
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
- if (expoModulesCorePlugin.exists()) {
11
- apply from: expoModulesCorePlugin
12
- applyKotlinExpoModulesCorePlugin()
8
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
+ if (expoModulesCorePlugin.exists()) {
10
+ apply from: expoModulesCorePlugin
11
+ applyKotlinExpoModulesCorePlugin()
12
+
13
+ // Remove this check, but keep the contents after SDK49 support is dropped
14
+ if (safeExtGet("expoProvidesDefaultConfig", false)) {
15
+ useExpoPublishing()
13
16
  }
17
+ }
14
18
 
19
+ buildscript {
15
20
  // Simple helper that allows the root project to override versions declared by this library.
16
21
  ext.safeExtGet = { prop, fallback ->
17
22
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -35,23 +40,44 @@ buildscript {
35
40
  }
36
41
  }
37
42
 
38
- afterEvaluate {
39
- publishing {
40
- publications {
41
- release(MavenPublication) {
42
- from components.release
43
+ // Remove this if and it's contents, when support for SDK49 is dropped
44
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
45
+ afterEvaluate {
46
+ publishing {
47
+ publications {
48
+ release(MavenPublication) {
49
+ from components.release
50
+ }
43
51
  }
44
- }
45
- repositories {
46
- maven {
47
- url = mavenLocal().url
52
+ repositories {
53
+ maven {
54
+ url = mavenLocal().url
55
+ }
48
56
  }
49
57
  }
50
58
  }
51
59
  }
52
60
 
53
61
  android {
54
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
62
+ // Remove this if and it's contents, when support for SDK49 is dropped
63
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
64
+ compileSdkVersion safeExtGet("compileSdkVersion", 34)
65
+
66
+ defaultConfig {
67
+ minSdkVersion safeExtGet("minSdkVersion", 23)
68
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
69
+ }
70
+
71
+ publishing {
72
+ singleVariant("release") {
73
+ withSourcesJar()
74
+ }
75
+ }
76
+
77
+ lintOptions {
78
+ abortOnError false
79
+ }
80
+ }
55
81
 
56
82
  def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
57
83
  if (agpVersion.tokenize('.')[0].toInteger() < 8) {
@@ -67,18 +93,8 @@ android {
67
93
 
68
94
  namespace "expo.modules.updatesinterface"
69
95
  defaultConfig {
70
- minSdkVersion safeExtGet("minSdkVersion", 21)
71
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
72
96
  versionCode 1
73
- versionName '0.13.0'
74
- }
75
- lintOptions {
76
- abortOnError false
77
- }
78
- publishing {
79
- singleVariant("release") {
80
- withSourcesJar()
81
- }
97
+ versionName '0.15.0'
82
98
  }
83
99
  }
84
100
 
@@ -26,11 +26,6 @@ public interface UpdatesInterface {
26
26
  */
27
27
  boolean onManifestLoaded(JSONObject manifest);
28
28
  }
29
-
30
- interface QueryCallback {
31
- void onFailure(Exception e);
32
- void onSuccess(List<UUID> updateIds);
33
- }
34
29
 
35
30
  interface Update {
36
31
  JSONObject getManifest();
@@ -40,6 +35,4 @@ public interface UpdatesInterface {
40
35
  void reset();
41
36
 
42
37
  void fetchUpdateWithConfiguration(HashMap<String, Object> configuration, Context context, UpdateCallback callback);
43
-
44
- void storedUpdateIdsWithConfiguration(HashMap<String, Object> configuration, Context context, QueryCallback callback);
45
38
  }
@@ -1,4 +1,3 @@
1
1
  {
2
- "name": "expo-updates-interface",
3
2
  "platforms": ["ios", "android"]
4
3
  }
@@ -4,7 +4,6 @@ import Foundation
4
4
 
5
5
  public typealias UpdatesErrorBlock = (_ error: Error) -> Void
6
6
  public typealias UpdatesUpdateSuccessBlock = (_ manifest: [String: Any]?) -> Void
7
- public typealias UpdatesQuerySuccessBlock = (_ updateIds: [UUID]) -> Void
8
7
  public typealias UpdatesProgressBlock = (_ successfulAssetCount: UInt, _ failedAssetCount: UInt, _ totalAssetCount: UInt) -> Void
9
8
 
10
9
  /**
@@ -32,14 +31,4 @@ public protocol UpdatesExternalInterface {
32
31
  success successBlock: @escaping UpdatesUpdateSuccessBlock,
33
32
  error errorBlock: @escaping UpdatesErrorBlock
34
33
  )
35
-
36
- /**
37
- * Obtains a list of UUIDs for updates already in the updates DB that are in the READY state.
38
- * The success block will pass in the array of UUIDs
39
- */
40
- @objc func storedUpdateIds(
41
- withConfiguration configuration: [String: Any],
42
- success successBlock: @escaping UpdatesQuerySuccessBlock,
43
- error errorBlock: @escaping UpdatesErrorBlock
44
- )
45
34
  }
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platforms = { :ios => '13.0', :tvos => '13.0' }
13
+ s.platforms = { :ios => '13.4', :tvos => '13.4' }
14
14
  s.swift_version = '5.4'
15
15
  s.source = { git: 'https://github.com/expo/expo.git' }
16
16
  s.static_framework = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-updates-interface",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
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": "ee2c866ba3c7fbc35ff2a3e896041cf15d3bd7c5"
26
+ "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
27
27
  }