@capawesome/capacitor-live-update 8.7.1 → 8.8.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.
|
@@ -9,7 +9,8 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.license = package['license']
|
|
10
10
|
s.homepage = package['repository']['url']
|
|
11
11
|
s.author = package['author']
|
|
12
|
-
|
|
12
|
+
# The npm tarball has the same layout as a local node_modules install, so one podspec serves both.
|
|
13
|
+
s.source = { :http => "https://registry.npmjs.org/@capawesome/capacitor-live-update/-/capacitor-live-update-#{s.version}.tgz" }
|
|
13
14
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
15
|
s.ios.deployment_target = '15.0'
|
|
15
16
|
s.dependency 'Capacitor'
|
package/android/build.gradle
CHANGED
|
@@ -9,6 +9,7 @@ ext {
|
|
|
9
9
|
zip4jVersion = project.hasProperty('zip4jVersion') ? rootProject.ext.zip4jVersion : '2.11.5'
|
|
10
10
|
ionicLiveUpdateProviderVersion = project.hasProperty('ionicLiveUpdateProviderVersion') ? rootProject.ext.ionicLiveUpdateProviderVersion : '1.0.0'
|
|
11
11
|
kotlinxCoroutinesVersion = project.hasProperty('kotlinxCoroutinesVersion') ? rootProject.ext.kotlinxCoroutinesVersion : '1.11.0'
|
|
12
|
+
capacitorCoreVersion = project.hasProperty('capacitorCoreVersion') ? rootProject.ext.capacitorCoreVersion : '8.0.0'
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
buildscript {
|
|
@@ -20,6 +21,9 @@ buildscript {
|
|
|
20
21
|
dependencies {
|
|
21
22
|
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
22
23
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
24
|
+
if (project.hasProperty('mavenCentralPublishing')) {
|
|
25
|
+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.37.0'
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
@@ -66,7 +70,12 @@ repositories {
|
|
|
66
70
|
|
|
67
71
|
dependencies {
|
|
68
72
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
69
|
-
|
|
73
|
+
if (project.hasProperty('mavenCentralPublishing')) {
|
|
74
|
+
// The Maven Central artifact depends on the published Capacitor core, not on an app's local module.
|
|
75
|
+
implementation "com.capacitorjs:core:$capacitorCoreVersion"
|
|
76
|
+
} else {
|
|
77
|
+
implementation project(':capacitor-android')
|
|
78
|
+
}
|
|
70
79
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
71
80
|
implementation "net.lingala.zip4j:zip4j:$zip4jVersion"
|
|
72
81
|
implementation "com.squareup.okhttp3:okhttp:$okhttp3Version"
|
|
@@ -80,3 +89,7 @@ dependencies {
|
|
|
80
89
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
81
90
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
82
91
|
}
|
|
92
|
+
|
|
93
|
+
if (project.hasProperty('mavenCentralPublishing')) {
|
|
94
|
+
apply from: 'publish.gradle'
|
|
95
|
+
}
|
package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdatePlugin.java
CHANGED
|
@@ -41,7 +41,7 @@ import java.util.Map;
|
|
|
41
41
|
public class LiveUpdatePlugin extends Plugin {
|
|
42
42
|
|
|
43
43
|
public static final String TAG = "LiveUpdate";
|
|
44
|
-
public static final String VERSION = "8.
|
|
44
|
+
public static final String VERSION = "8.8.0";
|
|
45
45
|
public static final String SHARED_PREFERENCES_NAME = "CapawesomeLiveUpdate"; // DO NOT CHANGE
|
|
46
46
|
public static final String ERROR_APP_ID_MISSING = "appId must be configured.";
|
|
47
47
|
public static final String ERROR_BUNDLE_DIRECTORY_NOT_FOUND = "Bundle directory could not be resolved.";
|
|
@@ -8,7 +8,7 @@ import Capacitor
|
|
|
8
8
|
@objc(LiveUpdatePlugin)
|
|
9
9
|
public class LiveUpdatePlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
10
|
public static let tag = "LiveUpdate"
|
|
11
|
-
public static let version = "8.
|
|
11
|
+
public static let version = "8.8.0"
|
|
12
12
|
public static let userDefaultsPrefix = "CapawesomeLiveUpdate" // DO NOT CHANGE
|
|
13
13
|
|
|
14
14
|
public let identifier = "LiveUpdatePlugin"
|
package/package.json
CHANGED