@onekeyfe/react-native-app-update 3.0.85 → 3.0.87
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/nitrogen/generated/android/c++/JAppUpdateDownloadParams.hpp +1 -1
- package/nitrogen/generated/android/c++/JAppUpdateFileParams.hpp +1 -1
- package/nitrogen/generated/android/c++/JDownloadEvent.hpp +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/AppUpdateDownloadParams.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/AppUpdateFileParams.kt +13 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/DownloadEvent.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/Func_void_DownloadEvent.kt +0 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/HybridReactNativeAppUpdateSpec.kt +2 -0
- package/nitrogen/generated/ios/ReactNativeAppUpdate+autolinking.rb +2 -0
- package/package.json +4 -4
|
@@ -17,7 +17,7 @@ namespace margelo::nitro::reactnativeappupdate {
|
|
|
17
17
|
using namespace facebook;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The C++ JNI bridge between the C++ struct "AppUpdateDownloadParams" and the
|
|
20
|
+
* The C++ JNI bridge between the C++ struct "AppUpdateDownloadParams" and the Kotlin data class "AppUpdateDownloadParams".
|
|
21
21
|
*/
|
|
22
22
|
struct JAppUpdateDownloadParams final: public jni::JavaClass<JAppUpdateDownloadParams> {
|
|
23
23
|
public:
|
|
@@ -17,7 +17,7 @@ namespace margelo::nitro::reactnativeappupdate {
|
|
|
17
17
|
using namespace facebook;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The C++ JNI bridge between the C++ struct "AppUpdateFileParams" and the
|
|
20
|
+
* The C++ JNI bridge between the C++ struct "AppUpdateFileParams" and the Kotlin data class "AppUpdateFileParams".
|
|
21
21
|
*/
|
|
22
22
|
struct JAppUpdateFileParams final: public jni::JavaClass<JAppUpdateFileParams> {
|
|
23
23
|
public:
|
|
@@ -17,7 +17,7 @@ namespace margelo::nitro::reactnativeappupdate {
|
|
|
17
17
|
using namespace facebook;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The C++ JNI bridge between the C++ struct "DownloadEvent" and the
|
|
20
|
+
* The C++ JNI bridge between the C++ struct "DownloadEvent" and the Kotlin data class "DownloadEvent".
|
|
21
21
|
*/
|
|
22
22
|
struct JDownloadEvent final: public jni::JavaClass<JDownloadEvent> {
|
|
23
23
|
public:
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.reactnativeappupdate
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -29,6 +30,22 @@ data class AppUpdateDownloadParams(
|
|
|
29
30
|
) {
|
|
30
31
|
/* primary constructor */
|
|
31
32
|
|
|
33
|
+
override fun equals(other: Any?): Boolean {
|
|
34
|
+
if (this === other) return true
|
|
35
|
+
if (other !is AppUpdateDownloadParams) return false
|
|
36
|
+
return Objects.deepEquals(this.downloadUrl, other.downloadUrl)
|
|
37
|
+
&& Objects.deepEquals(this.notificationTitle, other.notificationTitle)
|
|
38
|
+
&& Objects.deepEquals(this.fileSize, other.fileSize)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
override fun hashCode(): Int {
|
|
42
|
+
return arrayOf<Any?>(
|
|
43
|
+
downloadUrl,
|
|
44
|
+
notificationTitle,
|
|
45
|
+
fileSize
|
|
46
|
+
).contentDeepHashCode()
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
companion object {
|
|
33
50
|
/**
|
|
34
51
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.reactnativeappupdate
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -23,6 +24,18 @@ data class AppUpdateFileParams(
|
|
|
23
24
|
) {
|
|
24
25
|
/* primary constructor */
|
|
25
26
|
|
|
27
|
+
override fun equals(other: Any?): Boolean {
|
|
28
|
+
if (this === other) return true
|
|
29
|
+
if (other !is AppUpdateFileParams) return false
|
|
30
|
+
return Objects.deepEquals(this.downloadUrl, other.downloadUrl)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
override fun hashCode(): Int {
|
|
34
|
+
return arrayOf<Any?>(
|
|
35
|
+
downloadUrl
|
|
36
|
+
).contentDeepHashCode()
|
|
37
|
+
}
|
|
38
|
+
|
|
26
39
|
companion object {
|
|
27
40
|
/**
|
|
28
41
|
* Constructor called from C++
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeappupdate/DownloadEvent.kt
CHANGED
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.reactnativeappupdate
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -29,6 +30,22 @@ data class DownloadEvent(
|
|
|
29
30
|
) {
|
|
30
31
|
/* primary constructor */
|
|
31
32
|
|
|
33
|
+
override fun equals(other: Any?): Boolean {
|
|
34
|
+
if (this === other) return true
|
|
35
|
+
if (other !is DownloadEvent) return false
|
|
36
|
+
return Objects.deepEquals(this.type, other.type)
|
|
37
|
+
&& Objects.deepEquals(this.progress, other.progress)
|
|
38
|
+
&& Objects.deepEquals(this.message, other.message)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
override fun hashCode(): Int {
|
|
42
|
+
return arrayOf<Any?>(
|
|
43
|
+
type,
|
|
44
|
+
progress,
|
|
45
|
+
message
|
|
46
|
+
).contentDeepHashCode()
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
companion object {
|
|
33
50
|
/**
|
|
34
51
|
* Constructor called from C++
|
|
@@ -10,7 +10,6 @@ package com.margelo.nitro.reactnativeappupdate
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
-
import dalvik.annotation.optimization.FastNative
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -59,7 +58,6 @@ class Func_void_DownloadEvent_cxx: Func_void_DownloadEvent {
|
|
|
59
58
|
override fun invoke(event: DownloadEvent): Unit
|
|
60
59
|
= invoke_cxx(event)
|
|
61
60
|
|
|
62
|
-
@FastNative
|
|
63
61
|
private external fun invoke_cxx(event: DownloadEvent): Unit
|
|
64
62
|
}
|
|
65
63
|
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.reactnativeappupdate
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
13
14
|
import com.margelo.nitro.core.Promise
|
|
14
15
|
import com.margelo.nitro.core.HybridObject
|
|
15
16
|
|
|
@@ -92,6 +93,7 @@ abstract class HybridReactNativeAppUpdateSpec: HybridObject() {
|
|
|
92
93
|
@Keep
|
|
93
94
|
protected open class CxxPart(javaPart: HybridReactNativeAppUpdateSpec): HybridObject.CxxPart(javaPart) {
|
|
94
95
|
// C++ JHybridReactNativeAppUpdateSpec::CxxPart::initHybrid(...)
|
|
96
|
+
@FastNative
|
|
95
97
|
external override fun initHybrid(): HybridData
|
|
96
98
|
}
|
|
97
99
|
override fun createCxxPart(): CxxPart {
|
|
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
|
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
59
|
+
# Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
|
|
60
|
+
"SWIFT_INSTALL_OBJC_HEADER" => "NO",
|
|
59
61
|
})
|
|
60
62
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-app-update",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.87",
|
|
4
4
|
"description": "react-native-app-update",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"eslint-plugin-prettier": "^5.5.4",
|
|
79
79
|
"jest": "^29.7.0",
|
|
80
80
|
"lefthook": "^2.0.3",
|
|
81
|
-
"nitrogen": "0.
|
|
81
|
+
"nitrogen": "0.36.5",
|
|
82
82
|
"prettier": "^2.8.8",
|
|
83
83
|
"react": "19.2.0",
|
|
84
84
|
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
|
|
85
85
|
"react-native-builder-bob": "^0.40.13",
|
|
86
|
-
"react-native-nitro-modules": "0.
|
|
86
|
+
"react-native-nitro-modules": "0.36.5",
|
|
87
87
|
"release-it": "^19.0.4",
|
|
88
88
|
"turbo": "^2.5.6",
|
|
89
89
|
"typescript": "^5.9.2"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"react": "*",
|
|
93
93
|
"react-native": "*",
|
|
94
|
-
"react-native-nitro-modules": "0.
|
|
94
|
+
"react-native-nitro-modules": "0.36.5"
|
|
95
95
|
},
|
|
96
96
|
"react-native-builder-bob": {
|
|
97
97
|
"source": "src",
|