@onekeyfe/react-native-bundle-update 6.7.0-1 → 6.7.0-alpha.310

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 (25) hide show
  1. package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt +604 -230
  2. package/ios/ReactNativeBundleUpdate.swift +782 -198
  3. package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts +0 -5
  4. package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +1 -5
  5. package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +1 -5
  6. package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +1 -5
  7. package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +1 -5
  8. package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +1 -5
  9. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +2 -7
  10. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +3 -8
  11. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +3 -8
  12. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +3 -8
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +3 -8
  14. package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +2 -7
  15. package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +2 -7
  16. package/nitrogen/generated/ios/swift/BundleInstallParams.swift +2 -7
  17. package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +2 -7
  18. package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +2 -7
  19. package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +1 -5
  20. package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +1 -5
  21. package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +1 -5
  22. package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +1 -5
  23. package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +1 -5
  24. package/package.json +1 -1
  25. package/src/ReactNativeBundleUpdate.nitro.ts +0 -5
@@ -7,20 +7,17 @@ export interface BundleDownloadParams {
7
7
  sha256: string;
8
8
  }
9
9
  export interface BundleDownloadResult {
10
- downloadedFile: string;
11
10
  downloadUrl: string;
12
11
  latestVersion: string;
13
12
  bundleVersion: string;
14
13
  sha256: string;
15
14
  }
16
15
  export interface BundleVerifyParams {
17
- downloadedFile: string;
18
16
  sha256: string;
19
17
  latestVersion: string;
20
18
  bundleVersion: string;
21
19
  }
22
20
  export interface BundleVerifyASCParams {
23
- downloadedFile: string;
24
21
  sha256: string;
25
22
  latestVersion: string;
26
23
  bundleVersion: string;
@@ -28,14 +25,12 @@ export interface BundleVerifyASCParams {
28
25
  }
29
26
  export interface BundleDownloadASCParams {
30
27
  downloadUrl: string;
31
- downloadedFile: string;
32
28
  signature: string;
33
29
  latestVersion: string;
34
30
  bundleVersion: string;
35
31
  sha256: string;
36
32
  }
37
33
  export interface BundleInstallParams {
38
- downloadedFile: string;
39
34
  latestVersion: string;
40
35
  bundleVersion: string;
41
36
  signature: string;
@@ -33,8 +33,6 @@ namespace margelo::nitro::reactnativebundleupdate {
33
33
  static const auto clazz = javaClassStatic();
34
34
  static const auto fieldDownloadUrl = clazz->getField<jni::JString>("downloadUrl");
35
35
  jni::local_ref<jni::JString> downloadUrl = this->getFieldValue(fieldDownloadUrl);
36
- static const auto fieldDownloadedFile = clazz->getField<jni::JString>("downloadedFile");
37
- jni::local_ref<jni::JString> downloadedFile = this->getFieldValue(fieldDownloadedFile);
38
36
  static const auto fieldSignature = clazz->getField<jni::JString>("signature");
39
37
  jni::local_ref<jni::JString> signature = this->getFieldValue(fieldSignature);
40
38
  static const auto fieldLatestVersion = clazz->getField<jni::JString>("latestVersion");
@@ -45,7 +43,6 @@ namespace margelo::nitro::reactnativebundleupdate {
45
43
  jni::local_ref<jni::JString> sha256 = this->getFieldValue(fieldSha256);
46
44
  return BundleDownloadASCParams(
47
45
  downloadUrl->toStdString(),
48
- downloadedFile->toStdString(),
49
46
  signature->toStdString(),
50
47
  latestVersion->toStdString(),
51
48
  bundleVersion->toStdString(),
@@ -59,13 +56,12 @@ namespace margelo::nitro::reactnativebundleupdate {
59
56
  */
60
57
  [[maybe_unused]]
61
58
  static jni::local_ref<JBundleDownloadASCParams::javaobject> fromCpp(const BundleDownloadASCParams& value) {
62
- using JSignature = JBundleDownloadASCParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
59
+ using JSignature = JBundleDownloadASCParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
63
60
  static const auto clazz = javaClassStatic();
64
61
  static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
65
62
  return create(
66
63
  clazz,
67
64
  jni::make_jstring(value.downloadUrl),
68
- jni::make_jstring(value.downloadedFile),
69
65
  jni::make_jstring(value.signature),
70
66
  jni::make_jstring(value.latestVersion),
71
67
  jni::make_jstring(value.bundleVersion),
@@ -31,8 +31,6 @@ namespace margelo::nitro::reactnativebundleupdate {
31
31
  [[nodiscard]]
32
32
  BundleDownloadResult toCpp() const {
33
33
  static const auto clazz = javaClassStatic();
34
- static const auto fieldDownloadedFile = clazz->getField<jni::JString>("downloadedFile");
35
- jni::local_ref<jni::JString> downloadedFile = this->getFieldValue(fieldDownloadedFile);
36
34
  static const auto fieldDownloadUrl = clazz->getField<jni::JString>("downloadUrl");
37
35
  jni::local_ref<jni::JString> downloadUrl = this->getFieldValue(fieldDownloadUrl);
38
36
  static const auto fieldLatestVersion = clazz->getField<jni::JString>("latestVersion");
@@ -42,7 +40,6 @@ namespace margelo::nitro::reactnativebundleupdate {
42
40
  static const auto fieldSha256 = clazz->getField<jni::JString>("sha256");
43
41
  jni::local_ref<jni::JString> sha256 = this->getFieldValue(fieldSha256);
44
42
  return BundleDownloadResult(
45
- downloadedFile->toStdString(),
46
43
  downloadUrl->toStdString(),
47
44
  latestVersion->toStdString(),
48
45
  bundleVersion->toStdString(),
@@ -56,12 +53,11 @@ namespace margelo::nitro::reactnativebundleupdate {
56
53
  */
57
54
  [[maybe_unused]]
58
55
  static jni::local_ref<JBundleDownloadResult::javaobject> fromCpp(const BundleDownloadResult& value) {
59
- using JSignature = JBundleDownloadResult(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
56
+ using JSignature = JBundleDownloadResult(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
60
57
  static const auto clazz = javaClassStatic();
61
58
  static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
62
59
  return create(
63
60
  clazz,
64
- jni::make_jstring(value.downloadedFile),
65
61
  jni::make_jstring(value.downloadUrl),
66
62
  jni::make_jstring(value.latestVersion),
67
63
  jni::make_jstring(value.bundleVersion),
@@ -31,8 +31,6 @@ namespace margelo::nitro::reactnativebundleupdate {
31
31
  [[nodiscard]]
32
32
  BundleInstallParams toCpp() const {
33
33
  static const auto clazz = javaClassStatic();
34
- static const auto fieldDownloadedFile = clazz->getField<jni::JString>("downloadedFile");
35
- jni::local_ref<jni::JString> downloadedFile = this->getFieldValue(fieldDownloadedFile);
36
34
  static const auto fieldLatestVersion = clazz->getField<jni::JString>("latestVersion");
37
35
  jni::local_ref<jni::JString> latestVersion = this->getFieldValue(fieldLatestVersion);
38
36
  static const auto fieldBundleVersion = clazz->getField<jni::JString>("bundleVersion");
@@ -40,7 +38,6 @@ namespace margelo::nitro::reactnativebundleupdate {
40
38
  static const auto fieldSignature = clazz->getField<jni::JString>("signature");
41
39
  jni::local_ref<jni::JString> signature = this->getFieldValue(fieldSignature);
42
40
  return BundleInstallParams(
43
- downloadedFile->toStdString(),
44
41
  latestVersion->toStdString(),
45
42
  bundleVersion->toStdString(),
46
43
  signature->toStdString()
@@ -53,12 +50,11 @@ namespace margelo::nitro::reactnativebundleupdate {
53
50
  */
54
51
  [[maybe_unused]]
55
52
  static jni::local_ref<JBundleInstallParams::javaobject> fromCpp(const BundleInstallParams& value) {
56
- using JSignature = JBundleInstallParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
53
+ using JSignature = JBundleInstallParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
57
54
  static const auto clazz = javaClassStatic();
58
55
  static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
59
56
  return create(
60
57
  clazz,
61
- jni::make_jstring(value.downloadedFile),
62
58
  jni::make_jstring(value.latestVersion),
63
59
  jni::make_jstring(value.bundleVersion),
64
60
  jni::make_jstring(value.signature)
@@ -31,8 +31,6 @@ namespace margelo::nitro::reactnativebundleupdate {
31
31
  [[nodiscard]]
32
32
  BundleVerifyASCParams toCpp() const {
33
33
  static const auto clazz = javaClassStatic();
34
- static const auto fieldDownloadedFile = clazz->getField<jni::JString>("downloadedFile");
35
- jni::local_ref<jni::JString> downloadedFile = this->getFieldValue(fieldDownloadedFile);
36
34
  static const auto fieldSha256 = clazz->getField<jni::JString>("sha256");
37
35
  jni::local_ref<jni::JString> sha256 = this->getFieldValue(fieldSha256);
38
36
  static const auto fieldLatestVersion = clazz->getField<jni::JString>("latestVersion");
@@ -42,7 +40,6 @@ namespace margelo::nitro::reactnativebundleupdate {
42
40
  static const auto fieldSignature = clazz->getField<jni::JString>("signature");
43
41
  jni::local_ref<jni::JString> signature = this->getFieldValue(fieldSignature);
44
42
  return BundleVerifyASCParams(
45
- downloadedFile->toStdString(),
46
43
  sha256->toStdString(),
47
44
  latestVersion->toStdString(),
48
45
  bundleVersion->toStdString(),
@@ -56,12 +53,11 @@ namespace margelo::nitro::reactnativebundleupdate {
56
53
  */
57
54
  [[maybe_unused]]
58
55
  static jni::local_ref<JBundleVerifyASCParams::javaobject> fromCpp(const BundleVerifyASCParams& value) {
59
- using JSignature = JBundleVerifyASCParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
56
+ using JSignature = JBundleVerifyASCParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
60
57
  static const auto clazz = javaClassStatic();
61
58
  static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
62
59
  return create(
63
60
  clazz,
64
- jni::make_jstring(value.downloadedFile),
65
61
  jni::make_jstring(value.sha256),
66
62
  jni::make_jstring(value.latestVersion),
67
63
  jni::make_jstring(value.bundleVersion),
@@ -31,8 +31,6 @@ namespace margelo::nitro::reactnativebundleupdate {
31
31
  [[nodiscard]]
32
32
  BundleVerifyParams toCpp() const {
33
33
  static const auto clazz = javaClassStatic();
34
- static const auto fieldDownloadedFile = clazz->getField<jni::JString>("downloadedFile");
35
- jni::local_ref<jni::JString> downloadedFile = this->getFieldValue(fieldDownloadedFile);
36
34
  static const auto fieldSha256 = clazz->getField<jni::JString>("sha256");
37
35
  jni::local_ref<jni::JString> sha256 = this->getFieldValue(fieldSha256);
38
36
  static const auto fieldLatestVersion = clazz->getField<jni::JString>("latestVersion");
@@ -40,7 +38,6 @@ namespace margelo::nitro::reactnativebundleupdate {
40
38
  static const auto fieldBundleVersion = clazz->getField<jni::JString>("bundleVersion");
41
39
  jni::local_ref<jni::JString> bundleVersion = this->getFieldValue(fieldBundleVersion);
42
40
  return BundleVerifyParams(
43
- downloadedFile->toStdString(),
44
41
  sha256->toStdString(),
45
42
  latestVersion->toStdString(),
46
43
  bundleVersion->toStdString()
@@ -53,12 +50,11 @@ namespace margelo::nitro::reactnativebundleupdate {
53
50
  */
54
51
  [[maybe_unused]]
55
52
  static jni::local_ref<JBundleVerifyParams::javaobject> fromCpp(const BundleVerifyParams& value) {
56
- using JSignature = JBundleVerifyParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
53
+ using JSignature = JBundleVerifyParams(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>);
57
54
  static const auto clazz = javaClassStatic();
58
55
  static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
59
56
  return create(
60
57
  clazz,
61
- jni::make_jstring(value.downloadedFile),
62
58
  jni::make_jstring(value.sha256),
63
59
  jni::make_jstring(value.latestVersion),
64
60
  jni::make_jstring(value.bundleVersion)
@@ -23,9 +23,6 @@ data class BundleDownloadASCParams(
23
23
  val downloadUrl: String,
24
24
  @DoNotStrip
25
25
  @Keep
26
- val downloadedFile: String,
27
- @DoNotStrip
28
- @Keep
29
26
  val signature: String,
30
27
  @DoNotStrip
31
28
  @Keep
@@ -43,7 +40,6 @@ data class BundleDownloadASCParams(
43
40
  if (this === other) return true
44
41
  if (other !is BundleDownloadASCParams) return false
45
42
  return Objects.deepEquals(this.downloadUrl, other.downloadUrl)
46
- && Objects.deepEquals(this.downloadedFile, other.downloadedFile)
47
43
  && Objects.deepEquals(this.signature, other.signature)
48
44
  && Objects.deepEquals(this.latestVersion, other.latestVersion)
49
45
  && Objects.deepEquals(this.bundleVersion, other.bundleVersion)
@@ -53,7 +49,6 @@ data class BundleDownloadASCParams(
53
49
  override fun hashCode(): Int {
54
50
  return arrayOf<Any?>(
55
51
  downloadUrl,
56
- downloadedFile,
57
52
  signature,
58
53
  latestVersion,
59
54
  bundleVersion,
@@ -69,8 +64,8 @@ data class BundleDownloadASCParams(
69
64
  @Keep
70
65
  @Suppress("unused")
71
66
  @JvmStatic
72
- private fun fromCpp(downloadUrl: String, downloadedFile: String, signature: String, latestVersion: String, bundleVersion: String, sha256: String): BundleDownloadASCParams {
73
- return BundleDownloadASCParams(downloadUrl, downloadedFile, signature, latestVersion, bundleVersion, sha256)
67
+ private fun fromCpp(downloadUrl: String, signature: String, latestVersion: String, bundleVersion: String, sha256: String): BundleDownloadASCParams {
68
+ return BundleDownloadASCParams(downloadUrl, signature, latestVersion, bundleVersion, sha256)
74
69
  }
75
70
  }
76
71
  }
@@ -18,9 +18,6 @@ import java.util.Objects
18
18
  @DoNotStrip
19
19
  @Keep
20
20
  data class BundleDownloadResult(
21
- @DoNotStrip
22
- @Keep
23
- val downloadedFile: String,
24
21
  @DoNotStrip
25
22
  @Keep
26
23
  val downloadUrl: String,
@@ -39,8 +36,7 @@ data class BundleDownloadResult(
39
36
  override fun equals(other: Any?): Boolean {
40
37
  if (this === other) return true
41
38
  if (other !is BundleDownloadResult) return false
42
- return Objects.deepEquals(this.downloadedFile, other.downloadedFile)
43
- && Objects.deepEquals(this.downloadUrl, other.downloadUrl)
39
+ return Objects.deepEquals(this.downloadUrl, other.downloadUrl)
44
40
  && Objects.deepEquals(this.latestVersion, other.latestVersion)
45
41
  && Objects.deepEquals(this.bundleVersion, other.bundleVersion)
46
42
  && Objects.deepEquals(this.sha256, other.sha256)
@@ -48,7 +44,6 @@ data class BundleDownloadResult(
48
44
 
49
45
  override fun hashCode(): Int {
50
46
  return arrayOf<Any?>(
51
- downloadedFile,
52
47
  downloadUrl,
53
48
  latestVersion,
54
49
  bundleVersion,
@@ -64,8 +59,8 @@ data class BundleDownloadResult(
64
59
  @Keep
65
60
  @Suppress("unused")
66
61
  @JvmStatic
67
- private fun fromCpp(downloadedFile: String, downloadUrl: String, latestVersion: String, bundleVersion: String, sha256: String): BundleDownloadResult {
68
- return BundleDownloadResult(downloadedFile, downloadUrl, latestVersion, bundleVersion, sha256)
62
+ private fun fromCpp(downloadUrl: String, latestVersion: String, bundleVersion: String, sha256: String): BundleDownloadResult {
63
+ return BundleDownloadResult(downloadUrl, latestVersion, bundleVersion, sha256)
69
64
  }
70
65
  }
71
66
  }
@@ -18,9 +18,6 @@ import java.util.Objects
18
18
  @DoNotStrip
19
19
  @Keep
20
20
  data class BundleInstallParams(
21
- @DoNotStrip
22
- @Keep
23
- val downloadedFile: String,
24
21
  @DoNotStrip
25
22
  @Keep
26
23
  val latestVersion: String,
@@ -36,15 +33,13 @@ data class BundleInstallParams(
36
33
  override fun equals(other: Any?): Boolean {
37
34
  if (this === other) return true
38
35
  if (other !is BundleInstallParams) return false
39
- return Objects.deepEquals(this.downloadedFile, other.downloadedFile)
40
- && Objects.deepEquals(this.latestVersion, other.latestVersion)
36
+ return Objects.deepEquals(this.latestVersion, other.latestVersion)
41
37
  && Objects.deepEquals(this.bundleVersion, other.bundleVersion)
42
38
  && Objects.deepEquals(this.signature, other.signature)
43
39
  }
44
40
 
45
41
  override fun hashCode(): Int {
46
42
  return arrayOf<Any?>(
47
- downloadedFile,
48
43
  latestVersion,
49
44
  bundleVersion,
50
45
  signature
@@ -59,8 +54,8 @@ data class BundleInstallParams(
59
54
  @Keep
60
55
  @Suppress("unused")
61
56
  @JvmStatic
62
- private fun fromCpp(downloadedFile: String, latestVersion: String, bundleVersion: String, signature: String): BundleInstallParams {
63
- return BundleInstallParams(downloadedFile, latestVersion, bundleVersion, signature)
57
+ private fun fromCpp(latestVersion: String, bundleVersion: String, signature: String): BundleInstallParams {
58
+ return BundleInstallParams(latestVersion, bundleVersion, signature)
64
59
  }
65
60
  }
66
61
  }
@@ -18,9 +18,6 @@ import java.util.Objects
18
18
  @DoNotStrip
19
19
  @Keep
20
20
  data class BundleVerifyASCParams(
21
- @DoNotStrip
22
- @Keep
23
- val downloadedFile: String,
24
21
  @DoNotStrip
25
22
  @Keep
26
23
  val sha256: String,
@@ -39,8 +36,7 @@ data class BundleVerifyASCParams(
39
36
  override fun equals(other: Any?): Boolean {
40
37
  if (this === other) return true
41
38
  if (other !is BundleVerifyASCParams) return false
42
- return Objects.deepEquals(this.downloadedFile, other.downloadedFile)
43
- && Objects.deepEquals(this.sha256, other.sha256)
39
+ return Objects.deepEquals(this.sha256, other.sha256)
44
40
  && Objects.deepEquals(this.latestVersion, other.latestVersion)
45
41
  && Objects.deepEquals(this.bundleVersion, other.bundleVersion)
46
42
  && Objects.deepEquals(this.signature, other.signature)
@@ -48,7 +44,6 @@ data class BundleVerifyASCParams(
48
44
 
49
45
  override fun hashCode(): Int {
50
46
  return arrayOf<Any?>(
51
- downloadedFile,
52
47
  sha256,
53
48
  latestVersion,
54
49
  bundleVersion,
@@ -64,8 +59,8 @@ data class BundleVerifyASCParams(
64
59
  @Keep
65
60
  @Suppress("unused")
66
61
  @JvmStatic
67
- private fun fromCpp(downloadedFile: String, sha256: String, latestVersion: String, bundleVersion: String, signature: String): BundleVerifyASCParams {
68
- return BundleVerifyASCParams(downloadedFile, sha256, latestVersion, bundleVersion, signature)
62
+ private fun fromCpp(sha256: String, latestVersion: String, bundleVersion: String, signature: String): BundleVerifyASCParams {
63
+ return BundleVerifyASCParams(sha256, latestVersion, bundleVersion, signature)
69
64
  }
70
65
  }
71
66
  }
@@ -18,9 +18,6 @@ import java.util.Objects
18
18
  @DoNotStrip
19
19
  @Keep
20
20
  data class BundleVerifyParams(
21
- @DoNotStrip
22
- @Keep
23
- val downloadedFile: String,
24
21
  @DoNotStrip
25
22
  @Keep
26
23
  val sha256: String,
@@ -36,15 +33,13 @@ data class BundleVerifyParams(
36
33
  override fun equals(other: Any?): Boolean {
37
34
  if (this === other) return true
38
35
  if (other !is BundleVerifyParams) return false
39
- return Objects.deepEquals(this.downloadedFile, other.downloadedFile)
40
- && Objects.deepEquals(this.sha256, other.sha256)
36
+ return Objects.deepEquals(this.sha256, other.sha256)
41
37
  && Objects.deepEquals(this.latestVersion, other.latestVersion)
42
38
  && Objects.deepEquals(this.bundleVersion, other.bundleVersion)
43
39
  }
44
40
 
45
41
  override fun hashCode(): Int {
46
42
  return arrayOf<Any?>(
47
- downloadedFile,
48
43
  sha256,
49
44
  latestVersion,
50
45
  bundleVersion
@@ -59,8 +54,8 @@ data class BundleVerifyParams(
59
54
  @Keep
60
55
  @Suppress("unused")
61
56
  @JvmStatic
62
- private fun fromCpp(downloadedFile: String, sha256: String, latestVersion: String, bundleVersion: String): BundleVerifyParams {
63
- return BundleVerifyParams(downloadedFile, sha256, latestVersion, bundleVersion)
57
+ private fun fromCpp(sha256: String, latestVersion: String, bundleVersion: String): BundleVerifyParams {
58
+ return BundleVerifyParams(sha256, latestVersion, bundleVersion)
64
59
  }
65
60
  }
66
61
  }
@@ -18,8 +18,8 @@ public extension BundleDownloadASCParams {
18
18
  /**
19
19
  * Create a new instance of `BundleDownloadASCParams`.
20
20
  */
21
- init(downloadUrl: String, downloadedFile: String, signature: String, latestVersion: String, bundleVersion: String, sha256: String) {
22
- self.init(std.string(downloadUrl), std.string(downloadedFile), std.string(signature), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
21
+ init(downloadUrl: String, signature: String, latestVersion: String, bundleVersion: String, sha256: String) {
22
+ self.init(std.string(downloadUrl), std.string(signature), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
23
23
  }
24
24
 
25
25
  @inline(__always)
@@ -27,11 +27,6 @@ public extension BundleDownloadASCParams {
27
27
  return String(self.__downloadUrl)
28
28
  }
29
29
 
30
- @inline(__always)
31
- var downloadedFile: String {
32
- return String(self.__downloadedFile)
33
- }
34
-
35
30
  @inline(__always)
36
31
  var signature: String {
37
32
  return String(self.__signature)
@@ -18,15 +18,10 @@ public extension BundleDownloadResult {
18
18
  /**
19
19
  * Create a new instance of `BundleDownloadResult`.
20
20
  */
21
- init(downloadedFile: String, downloadUrl: String, latestVersion: String, bundleVersion: String, sha256: String) {
22
- self.init(std.string(downloadedFile), std.string(downloadUrl), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
21
+ init(downloadUrl: String, latestVersion: String, bundleVersion: String, sha256: String) {
22
+ self.init(std.string(downloadUrl), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
23
23
  }
24
24
 
25
- @inline(__always)
26
- var downloadedFile: String {
27
- return String(self.__downloadedFile)
28
- }
29
-
30
25
  @inline(__always)
31
26
  var downloadUrl: String {
32
27
  return String(self.__downloadUrl)
@@ -18,15 +18,10 @@ public extension BundleInstallParams {
18
18
  /**
19
19
  * Create a new instance of `BundleInstallParams`.
20
20
  */
21
- init(downloadedFile: String, latestVersion: String, bundleVersion: String, signature: String) {
22
- self.init(std.string(downloadedFile), std.string(latestVersion), std.string(bundleVersion), std.string(signature))
21
+ init(latestVersion: String, bundleVersion: String, signature: String) {
22
+ self.init(std.string(latestVersion), std.string(bundleVersion), std.string(signature))
23
23
  }
24
24
 
25
- @inline(__always)
26
- var downloadedFile: String {
27
- return String(self.__downloadedFile)
28
- }
29
-
30
25
  @inline(__always)
31
26
  var latestVersion: String {
32
27
  return String(self.__latestVersion)
@@ -18,15 +18,10 @@ public extension BundleVerifyASCParams {
18
18
  /**
19
19
  * Create a new instance of `BundleVerifyASCParams`.
20
20
  */
21
- init(downloadedFile: String, sha256: String, latestVersion: String, bundleVersion: String, signature: String) {
22
- self.init(std.string(downloadedFile), std.string(sha256), std.string(latestVersion), std.string(bundleVersion), std.string(signature))
21
+ init(sha256: String, latestVersion: String, bundleVersion: String, signature: String) {
22
+ self.init(std.string(sha256), std.string(latestVersion), std.string(bundleVersion), std.string(signature))
23
23
  }
24
24
 
25
- @inline(__always)
26
- var downloadedFile: String {
27
- return String(self.__downloadedFile)
28
- }
29
-
30
25
  @inline(__always)
31
26
  var sha256: String {
32
27
  return String(self.__sha256)
@@ -18,15 +18,10 @@ public extension BundleVerifyParams {
18
18
  /**
19
19
  * Create a new instance of `BundleVerifyParams`.
20
20
  */
21
- init(downloadedFile: String, sha256: String, latestVersion: String, bundleVersion: String) {
22
- self.init(std.string(downloadedFile), std.string(sha256), std.string(latestVersion), std.string(bundleVersion))
21
+ init(sha256: String, latestVersion: String, bundleVersion: String) {
22
+ self.init(std.string(sha256), std.string(latestVersion), std.string(bundleVersion))
23
23
  }
24
24
 
25
- @inline(__always)
26
- var downloadedFile: String {
27
- return String(self.__downloadedFile)
28
- }
29
-
30
25
  @inline(__always)
31
26
  var sha256: String {
32
27
  return String(self.__sha256)
@@ -40,7 +40,6 @@ namespace margelo::nitro::reactnativebundleupdate {
40
40
  struct BundleDownloadASCParams final {
41
41
  public:
42
42
  std::string downloadUrl SWIFT_PRIVATE;
43
- std::string downloadedFile SWIFT_PRIVATE;
44
43
  std::string signature SWIFT_PRIVATE;
45
44
  std::string latestVersion SWIFT_PRIVATE;
46
45
  std::string bundleVersion SWIFT_PRIVATE;
@@ -48,7 +47,7 @@ namespace margelo::nitro::reactnativebundleupdate {
48
47
 
49
48
  public:
50
49
  BundleDownloadASCParams() = default;
51
- explicit BundleDownloadASCParams(std::string downloadUrl, std::string downloadedFile, std::string signature, std::string latestVersion, std::string bundleVersion, std::string sha256): downloadUrl(downloadUrl), downloadedFile(downloadedFile), signature(signature), latestVersion(latestVersion), bundleVersion(bundleVersion), sha256(sha256) {}
50
+ explicit BundleDownloadASCParams(std::string downloadUrl, std::string signature, std::string latestVersion, std::string bundleVersion, std::string sha256): downloadUrl(downloadUrl), signature(signature), latestVersion(latestVersion), bundleVersion(bundleVersion), sha256(sha256) {}
52
51
 
53
52
  public:
54
53
  friend bool operator==(const BundleDownloadASCParams& lhs, const BundleDownloadASCParams& rhs) = default;
@@ -65,7 +64,6 @@ namespace margelo::nitro {
65
64
  jsi::Object obj = arg.asObject(runtime);
66
65
  return margelo::nitro::reactnativebundleupdate::BundleDownloadASCParams(
67
66
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"))),
68
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"))),
69
67
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature"))),
70
68
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"))),
71
69
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"))),
@@ -75,7 +73,6 @@ namespace margelo::nitro {
75
73
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::BundleDownloadASCParams& arg) {
76
74
  jsi::Object obj(runtime);
77
75
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"), JSIConverter<std::string>::toJSI(runtime, arg.downloadUrl));
78
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"), JSIConverter<std::string>::toJSI(runtime, arg.downloadedFile));
79
76
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "signature"), JSIConverter<std::string>::toJSI(runtime, arg.signature));
80
77
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"), JSIConverter<std::string>::toJSI(runtime, arg.latestVersion));
81
78
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"), JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
@@ -91,7 +88,6 @@ namespace margelo::nitro {
91
88
  return false;
92
89
  }
93
90
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl")))) return false;
94
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile")))) return false;
95
91
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature")))) return false;
96
92
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion")))) return false;
97
93
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))) return false;
@@ -39,7 +39,6 @@ namespace margelo::nitro::reactnativebundleupdate {
39
39
  */
40
40
  struct BundleDownloadResult final {
41
41
  public:
42
- std::string downloadedFile SWIFT_PRIVATE;
43
42
  std::string downloadUrl SWIFT_PRIVATE;
44
43
  std::string latestVersion SWIFT_PRIVATE;
45
44
  std::string bundleVersion SWIFT_PRIVATE;
@@ -47,7 +46,7 @@ namespace margelo::nitro::reactnativebundleupdate {
47
46
 
48
47
  public:
49
48
  BundleDownloadResult() = default;
50
- explicit BundleDownloadResult(std::string downloadedFile, std::string downloadUrl, std::string latestVersion, std::string bundleVersion, std::string sha256): downloadedFile(downloadedFile), downloadUrl(downloadUrl), latestVersion(latestVersion), bundleVersion(bundleVersion), sha256(sha256) {}
49
+ explicit BundleDownloadResult(std::string downloadUrl, std::string latestVersion, std::string bundleVersion, std::string sha256): downloadUrl(downloadUrl), latestVersion(latestVersion), bundleVersion(bundleVersion), sha256(sha256) {}
51
50
 
52
51
  public:
53
52
  friend bool operator==(const BundleDownloadResult& lhs, const BundleDownloadResult& rhs) = default;
@@ -63,7 +62,6 @@ namespace margelo::nitro {
63
62
  static inline margelo::nitro::reactnativebundleupdate::BundleDownloadResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
64
63
  jsi::Object obj = arg.asObject(runtime);
65
64
  return margelo::nitro::reactnativebundleupdate::BundleDownloadResult(
66
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"))),
67
65
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"))),
68
66
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"))),
69
67
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"))),
@@ -72,7 +70,6 @@ namespace margelo::nitro {
72
70
  }
73
71
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::BundleDownloadResult& arg) {
74
72
  jsi::Object obj(runtime);
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"), JSIConverter<std::string>::toJSI(runtime, arg.downloadedFile));
76
73
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"), JSIConverter<std::string>::toJSI(runtime, arg.downloadUrl));
77
74
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"), JSIConverter<std::string>::toJSI(runtime, arg.latestVersion));
78
75
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"), JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
@@ -87,7 +84,6 @@ namespace margelo::nitro {
87
84
  if (!nitro::isPlainObject(runtime, obj)) {
88
85
  return false;
89
86
  }
90
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile")))) return false;
91
87
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl")))) return false;
92
88
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion")))) return false;
93
89
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))) return false;
@@ -39,14 +39,13 @@ namespace margelo::nitro::reactnativebundleupdate {
39
39
  */
40
40
  struct BundleInstallParams final {
41
41
  public:
42
- std::string downloadedFile SWIFT_PRIVATE;
43
42
  std::string latestVersion SWIFT_PRIVATE;
44
43
  std::string bundleVersion SWIFT_PRIVATE;
45
44
  std::string signature SWIFT_PRIVATE;
46
45
 
47
46
  public:
48
47
  BundleInstallParams() = default;
49
- explicit BundleInstallParams(std::string downloadedFile, std::string latestVersion, std::string bundleVersion, std::string signature): downloadedFile(downloadedFile), latestVersion(latestVersion), bundleVersion(bundleVersion), signature(signature) {}
48
+ explicit BundleInstallParams(std::string latestVersion, std::string bundleVersion, std::string signature): latestVersion(latestVersion), bundleVersion(bundleVersion), signature(signature) {}
50
49
 
51
50
  public:
52
51
  friend bool operator==(const BundleInstallParams& lhs, const BundleInstallParams& rhs) = default;
@@ -62,7 +61,6 @@ namespace margelo::nitro {
62
61
  static inline margelo::nitro::reactnativebundleupdate::BundleInstallParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
62
  jsi::Object obj = arg.asObject(runtime);
64
63
  return margelo::nitro::reactnativebundleupdate::BundleInstallParams(
65
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"))),
66
64
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"))),
67
65
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"))),
68
66
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature")))
@@ -70,7 +68,6 @@ namespace margelo::nitro {
70
68
  }
71
69
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::BundleInstallParams& arg) {
72
70
  jsi::Object obj(runtime);
73
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"), JSIConverter<std::string>::toJSI(runtime, arg.downloadedFile));
74
71
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"), JSIConverter<std::string>::toJSI(runtime, arg.latestVersion));
75
72
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"), JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
76
73
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "signature"), JSIConverter<std::string>::toJSI(runtime, arg.signature));
@@ -84,7 +81,6 @@ namespace margelo::nitro {
84
81
  if (!nitro::isPlainObject(runtime, obj)) {
85
82
  return false;
86
83
  }
87
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile")))) return false;
88
84
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion")))) return false;
89
85
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))) return false;
90
86
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature")))) return false;