@capgo/capacitor-updater 4.10.2 → 4.10.4
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/CapgoCapacitorUpdater.podspec +1 -1
- package/android/build.gradle +8 -8
- package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdater.java +1 -1
- package/ios/Plugin/CapacitorUpdater.swift +1 -1
- package/ios/Plugin/{ObjectPreferences.swift → UserDefaultsExtension.swift} +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '13.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.dependency 'SSZipArchive'
|
|
17
17
|
s.dependency 'Alamofire'
|
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
ext {
|
|
2
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
@@ -11,17 +11,17 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:
|
|
14
|
+
classpath 'com.android.tools.build:gradle:7.2.1'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
apply plugin: 'com.android.library'
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
|
-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
21
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
|
|
22
22
|
defaultConfig {
|
|
23
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
24
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
23
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
24
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
|
|
25
25
|
versionCode 1
|
|
26
26
|
versionName "1.0"
|
|
27
27
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -52,7 +52,7 @@ public class CapacitorUpdater {
|
|
|
52
52
|
private static final String bundleDirectory = "versions";
|
|
53
53
|
|
|
54
54
|
public static final String TAG = "Capacitor-updater";
|
|
55
|
-
public static final String pluginVersion = "4.10.
|
|
55
|
+
public static final String pluginVersion = "4.10.4";
|
|
56
56
|
|
|
57
57
|
public SharedPreferences.Editor editor;
|
|
58
58
|
public SharedPreferences prefs;
|
|
@@ -208,7 +208,7 @@ extension CustomError: LocalizedError {
|
|
|
208
208
|
public let TAG = "✨ Capacitor-updater:"
|
|
209
209
|
public let CAP_SERVER_PATH = "serverBasePath"
|
|
210
210
|
public var customId = ""
|
|
211
|
-
public let pluginVersion = "4.10.
|
|
211
|
+
public let pluginVersion = "4.10.4"
|
|
212
212
|
public var statsUrl = ""
|
|
213
213
|
public var channelUrl = ""
|
|
214
214
|
public var appId = ""
|
|
@@ -27,9 +27,9 @@ extension UserDefaults: ObjectSavable {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
func getObj<Object>(forKey: String, castTo type: Object.Type) throws -> Object where Object: Decodable {
|
|
30
|
-
print("forKey", forKey)
|
|
30
|
+
// print("forKey", forKey)
|
|
31
31
|
guard let data = data(forKey: forKey) else { throw ObjectSavableError.noValue }
|
|
32
|
-
print("data", data)
|
|
32
|
+
// print("data", data)
|
|
33
33
|
let decoder = JSONDecoder()
|
|
34
34
|
do {
|
|
35
35
|
let object = try decoder.decode(type, from: data)
|