@capgo/capacitor-updater 6.51.21 → 6.53.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.
Files changed (29) hide show
  1. package/CapgoCapacitorUpdater.podspec +0 -3
  2. package/Package.swift +3 -11
  3. package/README.md +202 -67
  4. package/android/build.gradle +2 -3
  5. package/android/src/main/java/ee/forgr/capacitor_updater/CapacitorUpdaterPlugin.java +610 -177
  6. package/android/src/main/java/ee/forgr/capacitor_updater/CapgoUpdater.java +909 -196
  7. package/android/src/main/java/ee/forgr/capacitor_updater/CryptoCipher.java +53 -19
  8. package/android/src/main/java/ee/forgr/capacitor_updater/DelayUpdateUtils.java +226 -106
  9. package/android/src/main/java/ee/forgr/capacitor_updater/DownloadService.java +210 -58
  10. package/android/src/main/java/ee/forgr/capacitor_updater/HeadlessUpdateWorker.java +325 -0
  11. package/android/src/main/java/ee/forgr/capacitor_updater/Logger.java +63 -4
  12. package/android/src/main/java/ee/forgr/capacitor_updater/NativeUpdatePrompt.java +303 -0
  13. package/android/src/main/java/ee/forgr/capacitor_updater/Version.java +306 -0
  14. package/dist/docs.json +394 -27
  15. package/dist/esm/definitions.d.ts +220 -7
  16. package/dist/esm/definitions.js.map +1 -1
  17. package/ios/Sources/CapacitorUpdaterPlugin/AES.swift +104 -52
  18. package/ios/Sources/CapacitorUpdaterPlugin/CapacitorUpdaterPlugin.swift +562 -187
  19. package/ios/Sources/CapacitorUpdaterPlugin/CapgoSemanticVersion.swift +162 -0
  20. package/ios/Sources/CapacitorUpdaterPlugin/CapgoUpdater.swift +564 -109
  21. package/ios/Sources/CapacitorUpdaterPlugin/CryptoCipher.swift +11 -2
  22. package/ios/Sources/CapacitorUpdaterPlugin/DelayUpdateUtils.swift +204 -93
  23. package/ios/Sources/CapacitorUpdaterPlugin/Logger.swift +75 -5
  24. package/ios/Sources/CapacitorUpdaterPlugin/NativeUpdatePrompt.swift +183 -0
  25. package/ios/Sources/CapacitorUpdaterPlugin/RedirectPolicyDelegate.swift +53 -0
  26. package/ios/Sources/CapacitorUpdaterPlugin/ShakeMenu.swift +9 -3
  27. package/ios/Sources/CapacitorUpdaterPlugin/ZipArchiveReader.swift +247 -0
  28. package/ios/Sources/CapacitorUpdaterPlugin/ZipCentralDirectory.swift +280 -0
  29. package/package.json +7 -3
@@ -13,8 +13,5 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '13.4'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'ZIPFoundation', '~> 0.9'
17
- s.dependency 'Alamofire', '5.10.2'
18
- s.dependency 'Version', '0.8.0'
19
16
  s.swift_version = '5.1'
20
17
  end
package/Package.swift CHANGED
@@ -10,28 +10,20 @@ let package = Package(
10
10
  targets: ["CapacitorUpdaterPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0"),
14
- .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.12.0")),
15
- .package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.20"),
16
- .package(url: "https://github.com/mrackwitz/Version.git", exact: "0.8.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0")
17
14
  ],
18
15
  targets: [
19
16
  .target(
20
17
  name: "CapacitorUpdaterPlugin",
21
18
  dependencies: [
22
19
  .product(name: "Capacitor", package: "capacitor-swift-pm"),
23
- .product(name: "Cordova", package: "capacitor-swift-pm"),
24
- .product(name: "ZIPFoundation", package: "ZIPFoundation"),
25
- .product(name: "Alamofire", package: "Alamofire"),
26
- .product(name: "Version", package: "Version")
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
27
21
  ],
28
22
  path: "ios/Sources/CapacitorUpdaterPlugin"),
29
23
  .testTarget(
30
24
  name: "CapacitorUpdaterPluginTests",
31
25
  dependencies: [
32
- "CapacitorUpdaterPlugin",
33
- .product(name: "Version", package: "Version"),
34
- .product(name: "ZIPFoundation", package: "ZIPFoundation")
26
+ "CapacitorUpdaterPlugin"
35
27
  ],
36
28
  path: "ios/Tests/CapacitorUpdaterPluginTests")
37
29
  ],