expo-updates-interface 0.4.0 → 0.6.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,26 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.6.0 — 2022-04-18
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add controller registry in order to support dev client auto-setup with updates integration on iOS. ([#16230](https://github.com/expo/expo/pull/16230) by [@esamelson](https://github.com/esamelson))
|
|
18
|
+
|
|
19
|
+
### ⚠️ Notices
|
|
20
|
+
|
|
21
|
+
- On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
|
|
22
|
+
|
|
23
|
+
## 0.5.1 - 2022-02-01
|
|
24
|
+
|
|
25
|
+
### 🐛 Bug fixes
|
|
26
|
+
|
|
27
|
+
- 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))
|
|
28
|
+
|
|
29
|
+
## 0.5.0 — 2021-12-03
|
|
30
|
+
|
|
31
|
+
_This version does not introduce any user-facing changes._
|
|
32
|
+
|
|
13
33
|
## 0.4.0 — 2021-09-28
|
|
14
34
|
|
|
15
35
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -1,64 +1,81 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
3
|
apply plugin: 'kotlin-android-extensions'
|
|
4
|
-
apply plugin: 'maven'
|
|
4
|
+
apply plugin: 'maven-publish'
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '0.
|
|
7
|
+
version = '0.6.0'
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
10
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
11
|
+
if (expoModulesCorePlugin.exists()) {
|
|
12
|
+
apply from: expoModulesCorePlugin
|
|
13
|
+
applyKotlinExpoModulesCorePlugin()
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
11
17
|
ext.safeExtGet = { prop, fallback ->
|
|
12
18
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
13
19
|
}
|
|
14
20
|
|
|
21
|
+
// Ensures backward compatibility
|
|
22
|
+
ext.getKotlinVersion = {
|
|
23
|
+
if (ext.has("kotlinVersion")) {
|
|
24
|
+
ext.kotlinVersion()
|
|
25
|
+
} else {
|
|
26
|
+
ext.safeExtGet("kotlinVersion", "1.6.10")
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
15
30
|
repositories {
|
|
16
31
|
mavenCentral()
|
|
17
32
|
}
|
|
18
33
|
|
|
19
34
|
dependencies {
|
|
20
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${
|
|
35
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
|
|
21
36
|
}
|
|
22
37
|
}
|
|
23
38
|
|
|
24
|
-
// Upload android library to maven with javadoc and android sources
|
|
25
|
-
configurations {
|
|
26
|
-
deployerJars
|
|
27
|
-
}
|
|
28
|
-
|
|
29
39
|
// Creating sources with comments
|
|
30
40
|
task androidSourcesJar(type: Jar) {
|
|
31
41
|
classifier = 'sources'
|
|
32
42
|
from android.sourceSets.main.java.srcDirs
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
afterEvaluate {
|
|
46
|
+
publishing {
|
|
47
|
+
publications {
|
|
48
|
+
release(MavenPublication) {
|
|
49
|
+
from components.release
|
|
50
|
+
// Add additional sourcesJar to artifacts
|
|
51
|
+
artifact(androidSourcesJar)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
repositories {
|
|
55
|
+
maven {
|
|
56
|
+
url = mavenLocal().url
|
|
57
|
+
}
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
android {
|
|
50
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
63
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 31)
|
|
51
64
|
|
|
52
65
|
compileOptions {
|
|
53
|
-
sourceCompatibility JavaVersion.
|
|
54
|
-
targetCompatibility JavaVersion.
|
|
66
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
67
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
kotlinOptions {
|
|
71
|
+
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
55
72
|
}
|
|
56
73
|
|
|
57
74
|
defaultConfig {
|
|
58
75
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
59
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
76
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
60
77
|
versionCode 1
|
|
61
|
-
versionName '0.
|
|
78
|
+
versionName '0.6.0'
|
|
62
79
|
}
|
|
63
80
|
lintOptions {
|
|
64
81
|
abortOnError false
|
|
@@ -70,5 +87,5 @@ repositories {
|
|
|
70
87
|
}
|
|
71
88
|
|
|
72
89
|
dependencies {
|
|
73
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${
|
|
90
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
74
91
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright © 2022-present 650 Industries. All rights reserved.
|
|
2
|
+
|
|
3
|
+
#import <EXUpdatesInterface/EXUpdatesExternalInterface.h>
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Simple singleton registry that holds a reference to a single controller implementing
|
|
7
|
+
* EXUpdatesExternalInterface. This allows modules (like expo-dev-launcher) to acccess such a
|
|
8
|
+
* controller without their podspec needing to declare a dependency on expo-updates.
|
|
9
|
+
*/
|
|
10
|
+
@interface EXUpdatesControllerRegistry : NSObject
|
|
11
|
+
|
|
12
|
+
@property (nonatomic, weak) id<EXUpdatesExternalInterface> controller;
|
|
13
|
+
|
|
14
|
+
+ (instancetype)sharedInstance;
|
|
15
|
+
|
|
16
|
+
@end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright © 2022-present 650 Industries. All rights reserved.
|
|
2
|
+
|
|
3
|
+
#import <EXUpdatesInterface/EXUpdatesControllerRegistry.h>
|
|
4
|
+
|
|
5
|
+
@implementation EXUpdatesControllerRegistry
|
|
6
|
+
|
|
7
|
+
+ (instancetype)sharedInstance
|
|
8
|
+
{
|
|
9
|
+
static EXUpdatesControllerRegistry *theRegistry;
|
|
10
|
+
static dispatch_once_t once;
|
|
11
|
+
dispatch_once(&once, ^{
|
|
12
|
+
if (!theRegistry) {
|
|
13
|
+
theRegistry = [[EXUpdatesControllerRegistry alloc] init];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
return theRegistry;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-updates-interface",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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": [
|
|
@@ -19,5 +19,9 @@
|
|
|
19
19
|
"author": "650 Industries, Inc.",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/module-template",
|
|
22
|
-
"
|
|
22
|
+
"dependencies": {},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"expo": "*"
|
|
25
|
+
},
|
|
26
|
+
"gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
|
|
23
27
|
}
|