@onekeyfe/react-native-keychain-module 3.0.81 → 3.0.82
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++/JGetItemParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JGetItemResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JHasItemParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JHybridKeychainModuleSpec.cpp +26 -24
- package/nitrogen/generated/android/c++/JHybridKeychainModuleSpec.hpp +20 -22
- package/nitrogen/generated/android/c++/JRemoveItemParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JSetItemParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JVariant_NullType_GetItemResult.cpp +1 -1
- package/nitrogen/generated/android/c++/JVariant_NullType_GetItemResult.hpp +6 -6
- package/nitrogen/generated/android/keychainmodule+autolinking.cmake +1 -1
- package/nitrogen/generated/android/keychainmodule+autolinking.gradle +1 -1
- package/nitrogen/generated/android/keychainmoduleOnLoad.cpp +27 -17
- package/nitrogen/generated/android/keychainmoduleOnLoad.hpp +14 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/GetItemParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/GetItemResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/HasItemParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/HybridKeychainModuleSpec.kt +16 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/RemoveItemParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/SetItemParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/Variant_NullType_GetItemResult.kt +1 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/keychainmodule/keychainmoduleOnLoad.kt +1 -1
- package/nitrogen/generated/ios/KeychainModule+autolinking.rb +2 -2
- package/nitrogen/generated/ios/KeychainModule-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/KeychainModule-Swift-Cxx-Bridge.hpp +4 -4
- package/nitrogen/generated/ios/KeychainModule-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/KeychainModuleAutolinking.mm +1 -1
- package/nitrogen/generated/ios/KeychainModuleAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridKeychainModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridKeychainModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__GetItemResult_.swift +1 -2
- package/nitrogen/generated/ios/swift/GetItemParams.swift +3 -10
- package/nitrogen/generated/ios/swift/GetItemResult.swift +5 -18
- package/nitrogen/generated/ios/swift/HasItemParams.swift +3 -10
- package/nitrogen/generated/ios/swift/HybridKeychainModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridKeychainModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/RemoveItemParams.swift +3 -10
- package/nitrogen/generated/ios/swift/SetItemParams.swift +32 -81
- package/nitrogen/generated/ios/swift/Variant_NullType_GetItemResult.swift +1 -1
- package/nitrogen/generated/shared/c++/GetItemParams.hpp +13 -5
- package/nitrogen/generated/shared/c++/GetItemResult.hpp +16 -8
- package/nitrogen/generated/shared/c++/HasItemParams.hpp +13 -5
- package/nitrogen/generated/shared/c++/HybridKeychainModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridKeychainModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/RemoveItemParams.hpp +13 -5
- package/nitrogen/generated/shared/c++/SetItemParams.hpp +25 -17
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HasItemParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,13 +37,16 @@ namespace margelo::nitro::keychainmodule {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (HasItemParams).
|
|
34
39
|
*/
|
|
35
|
-
struct HasItemParams {
|
|
40
|
+
struct HasItemParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string key SWIFT_PRIVATE;
|
|
38
43
|
|
|
39
44
|
public:
|
|
40
45
|
HasItemParams() = default;
|
|
41
46
|
explicit HasItemParams(std::string key): key(key) {}
|
|
47
|
+
|
|
48
|
+
public:
|
|
49
|
+
friend bool operator==(const HasItemParams& lhs, const HasItemParams& rhs) = default;
|
|
42
50
|
};
|
|
43
51
|
|
|
44
52
|
} // namespace margelo::nitro::keychainmodule
|
|
@@ -51,12 +59,12 @@ namespace margelo::nitro {
|
|
|
51
59
|
static inline margelo::nitro::keychainmodule::HasItemParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
52
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
53
61
|
return margelo::nitro::keychainmodule::HasItemParams(
|
|
54
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "key"))
|
|
62
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key")))
|
|
55
63
|
);
|
|
56
64
|
}
|
|
57
65
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::keychainmodule::HasItemParams& arg) {
|
|
58
66
|
jsi::Object obj(runtime);
|
|
59
|
-
obj.setProperty(runtime, "key", JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
67
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "key"), JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
60
68
|
return obj;
|
|
61
69
|
}
|
|
62
70
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -67,7 +75,7 @@ namespace margelo::nitro {
|
|
|
67
75
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
68
76
|
return false;
|
|
69
77
|
}
|
|
70
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "key"))) return false;
|
|
78
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key")))) return false;
|
|
71
79
|
return true;
|
|
72
80
|
}
|
|
73
81
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridKeychainModuleSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridKeychainModuleSpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// RemoveItemParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,13 +37,16 @@ namespace margelo::nitro::keychainmodule {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (RemoveItemParams).
|
|
34
39
|
*/
|
|
35
|
-
struct RemoveItemParams {
|
|
40
|
+
struct RemoveItemParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string key SWIFT_PRIVATE;
|
|
38
43
|
|
|
39
44
|
public:
|
|
40
45
|
RemoveItemParams() = default;
|
|
41
46
|
explicit RemoveItemParams(std::string key): key(key) {}
|
|
47
|
+
|
|
48
|
+
public:
|
|
49
|
+
friend bool operator==(const RemoveItemParams& lhs, const RemoveItemParams& rhs) = default;
|
|
42
50
|
};
|
|
43
51
|
|
|
44
52
|
} // namespace margelo::nitro::keychainmodule
|
|
@@ -51,12 +59,12 @@ namespace margelo::nitro {
|
|
|
51
59
|
static inline margelo::nitro::keychainmodule::RemoveItemParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
52
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
53
61
|
return margelo::nitro::keychainmodule::RemoveItemParams(
|
|
54
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "key"))
|
|
62
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key")))
|
|
55
63
|
);
|
|
56
64
|
}
|
|
57
65
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::keychainmodule::RemoveItemParams& arg) {
|
|
58
66
|
jsi::Object obj(runtime);
|
|
59
|
-
obj.setProperty(runtime, "key", JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
67
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "key"), JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
60
68
|
return obj;
|
|
61
69
|
}
|
|
62
70
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -67,7 +75,7 @@ namespace margelo::nitro {
|
|
|
67
75
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
68
76
|
return false;
|
|
69
77
|
}
|
|
70
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "key"))) return false;
|
|
78
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key")))) return false;
|
|
71
79
|
return true;
|
|
72
80
|
}
|
|
73
81
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// SetItemParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -33,7 +38,7 @@ namespace margelo::nitro::keychainmodule {
|
|
|
33
38
|
/**
|
|
34
39
|
* A struct which can be represented as a JavaScript object (SetItemParams).
|
|
35
40
|
*/
|
|
36
|
-
struct SetItemParams {
|
|
41
|
+
struct SetItemParams final {
|
|
37
42
|
public:
|
|
38
43
|
std::string key SWIFT_PRIVATE;
|
|
39
44
|
std::string value SWIFT_PRIVATE;
|
|
@@ -44,6 +49,9 @@ namespace margelo::nitro::keychainmodule {
|
|
|
44
49
|
public:
|
|
45
50
|
SetItemParams() = default;
|
|
46
51
|
explicit SetItemParams(std::string key, std::string value, std::optional<bool> enableSync, std::optional<std::string> label, std::optional<std::string> description): key(key), value(value), enableSync(enableSync), label(label), description(description) {}
|
|
52
|
+
|
|
53
|
+
public:
|
|
54
|
+
friend bool operator==(const SetItemParams& lhs, const SetItemParams& rhs) = default;
|
|
47
55
|
};
|
|
48
56
|
|
|
49
57
|
} // namespace margelo::nitro::keychainmodule
|
|
@@ -56,20 +64,20 @@ namespace margelo::nitro {
|
|
|
56
64
|
static inline margelo::nitro::keychainmodule::SetItemParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
57
65
|
jsi::Object obj = arg.asObject(runtime);
|
|
58
66
|
return margelo::nitro::keychainmodule::SetItemParams(
|
|
59
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "key")),
|
|
60
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "value")),
|
|
61
|
-
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "enableSync")),
|
|
62
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "label")),
|
|
63
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "description"))
|
|
67
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key"))),
|
|
68
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value"))),
|
|
69
|
+
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "enableSync"))),
|
|
70
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "label"))),
|
|
71
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "description")))
|
|
64
72
|
);
|
|
65
73
|
}
|
|
66
74
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::keychainmodule::SetItemParams& arg) {
|
|
67
75
|
jsi::Object obj(runtime);
|
|
68
|
-
obj.setProperty(runtime, "key", JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
69
|
-
obj.setProperty(runtime, "value", JSIConverter<std::string>::toJSI(runtime, arg.value));
|
|
70
|
-
obj.setProperty(runtime, "enableSync", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.enableSync));
|
|
71
|
-
obj.setProperty(runtime, "label", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.label));
|
|
72
|
-
obj.setProperty(runtime, "description", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.description));
|
|
76
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "key"), JSIConverter<std::string>::toJSI(runtime, arg.key));
|
|
77
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "value"), JSIConverter<std::string>::toJSI(runtime, arg.value));
|
|
78
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "enableSync"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.enableSync));
|
|
79
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "label"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.label));
|
|
80
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "description"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.description));
|
|
73
81
|
return obj;
|
|
74
82
|
}
|
|
75
83
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -80,11 +88,11 @@ namespace margelo::nitro {
|
|
|
80
88
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
81
89
|
return false;
|
|
82
90
|
}
|
|
83
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "key"))) return false;
|
|
84
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "value"))) return false;
|
|
85
|
-
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "enableSync"))) return false;
|
|
86
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "label"))) return false;
|
|
87
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "description"))) return false;
|
|
91
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "key")))) return false;
|
|
92
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value")))) return false;
|
|
93
|
+
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "enableSync")))) return false;
|
|
94
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "label")))) return false;
|
|
95
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "description")))) return false;
|
|
88
96
|
return true;
|
|
89
97
|
}
|
|
90
98
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-keychain-module",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.82",
|
|
4
4
|
"description": "react-native-keychain-module",
|
|
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.35.2",
|
|
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.35.2",
|
|
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.35.2"
|
|
95
95
|
},
|
|
96
96
|
"react-native-builder-bob": {
|
|
97
97
|
"source": "src",
|