@capgo/capacitor-updater 4.11.5 → 4.11.12
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/android/build.gradle
CHANGED
|
@@ -11,7 +11,7 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:7.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:7.3.1'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -53,7 +53,7 @@ dependencies {
|
|
|
53
53
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
54
54
|
implementation 'com.android.volley:volley:1.2.1'
|
|
55
55
|
implementation 'io.github.g00fy2:versioncompare:1.5.0'
|
|
56
|
-
implementation 'com.google.code.gson:gson:2.
|
|
56
|
+
implementation 'com.google.code.gson:gson:2.10'
|
|
57
57
|
testImplementation "junit:junit:$junitVersion"
|
|
58
58
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
59
59
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -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.11.
|
|
55
|
+
public static final String pluginVersion = "4.11.12";
|
|
56
56
|
|
|
57
57
|
public SharedPreferences.Editor editor;
|
|
58
58
|
public SharedPreferences prefs;
|
|
@@ -134,7 +134,7 @@ public class CapacitorUpdater {
|
|
|
134
134
|
while ((entry = zis.getNextEntry()) != null) {
|
|
135
135
|
final File file = new File(targetDirectory, entry.getName());
|
|
136
136
|
final String canonicalPath = file.getCanonicalPath();
|
|
137
|
-
final String canonicalDir =
|
|
137
|
+
final String canonicalDir = targetDirectory.getCanonicalPath();
|
|
138
138
|
final File dir = entry.isDirectory() ? file : file.getParentFile();
|
|
139
139
|
|
|
140
140
|
if (!canonicalPath.startsWith(canonicalDir)) {
|
|
@@ -305,7 +305,7 @@ public class CapacitorUpdater {
|
|
|
305
305
|
}
|
|
306
306
|
return true;
|
|
307
307
|
}
|
|
308
|
-
Log.e(TAG, "
|
|
308
|
+
Log.e(TAG, "bundle removed: " + deleted.getVersionName());
|
|
309
309
|
this.sendStats("delete", deleted.getVersionName());
|
|
310
310
|
return false;
|
|
311
311
|
}
|
|
@@ -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.11.
|
|
211
|
+
public let pluginVersion = "4.11.12"
|
|
212
212
|
public var statsUrl = ""
|
|
213
213
|
public var channelUrl = ""
|
|
214
214
|
public var appId = ""
|
|
@@ -474,6 +474,7 @@ extension CustomError: LocalizedError {
|
|
|
474
474
|
} else {
|
|
475
475
|
self.saveBundleInfo(id: id, bundle: deleted.setStatus(status: BundleStatus.DELETED.localizedString))
|
|
476
476
|
}
|
|
477
|
+
print("\(self.TAG) bundle delete \(deleted.getVersionName())")
|
|
477
478
|
self.sendStats(action: "delete", versionName: deleted.getVersionName())
|
|
478
479
|
return true
|
|
479
480
|
}
|