@capgo/capacitor-updater 4.17.43 → 4.17.46

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
3
3
  [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.com/invite/VnYRvBfgA6)
4
4
  <a href="https://discord.com/invite/VnYRvBfgA6"><img src="https://img.shields.io/discord/912707985829163099?color=%237289DA&label=Discord" alt="Discord">
5
- ![npm](https://img.shields.io/npm/dm/@capgo/capacitor-updater)
5
+ [![npm](https://img.shields.io/npm/dm/@capgo/capacitor-updater)](https://www.npmjs.com/package/@capgo/capacitor-updater)
6
6
  [![GitHub latest commit](https://badgen.net/github/last-commit/Cap-go/capacitor-updater/main)](https://GitHub.com/Cap-go/capacitor-updater/commit/)
7
7
  [![https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg](https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg)](https://good-labs.github.io/greater-good-affirmation)
8
8
  [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=Cap-go_capacitor-updater&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=Cap-go_capacitor-updater)
@@ -55,7 +55,7 @@ public class CapacitorUpdaterPlugin
55
55
  private static final String channelUrlDefault =
56
56
  "https://api.capgo.app/channel_self";
57
57
 
58
- private final String PLUGIN_VERSION = "4.17.43";
58
+ private final String PLUGIN_VERSION = "4.17.46";
59
59
  private static final String DELAY_CONDITION_PREFERENCES = "";
60
60
 
61
61
  private SharedPreferences.Editor editor;
@@ -6,11 +6,15 @@
6
6
 
7
7
  package ee.forgr.capacitor_updater;
8
8
 
9
+ import com.google.gson.annotations.SerializedName;
9
10
  import java.util.Objects;
10
11
 
11
12
  public class DelayCondition {
12
13
 
14
+ @SerializedName("kind")
13
15
  private DelayUntilNext kind;
16
+
17
+ @SerializedName("value")
14
18
  private String value;
15
19
 
16
20
  public DelayCondition(DelayUntilNext kind, String value) {
@@ -15,7 +15,7 @@ import Version
15
15
  @objc(CapacitorUpdaterPlugin)
16
16
  public class CapacitorUpdaterPlugin: CAPPlugin {
17
17
  private var implementation = CapacitorUpdater()
18
- private let PLUGIN_VERSION: String = "4.17.43"
18
+ private let PLUGIN_VERSION: String = "4.17.46"
19
19
  static let updateUrlDefault = "https://api.capgo.app/updates"
20
20
  static let statsUrlDefault = "https://api.capgo.app/stats"
21
21
  static let channelUrlDefault = "https://api.capgo.app/channel_self"
@@ -397,6 +397,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
397
397
  case "date":
398
398
  if value != nil && value != "" {
399
399
  let dateFormatter = ISO8601DateFormatter()
400
+ dateFormatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
400
401
  guard let ExpireDate = dateFormatter.date(from: value!) else {
401
402
  self._cancelDelay(source: "date parsing issue")
402
403
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-updater",
3
- "version": "4.17.43",
3
+ "version": "4.17.46",
4
4
  "packageManager": "pnpm@7.29.1",
5
5
  "license": "MPL-2.0",
6
6
  "description": "Live update for capacitor apps",