@onekeyfe/react-native-cloud-kit-module 1.1.11 → 1.1.12
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++/JAccountInfoResult.hpp +5 -1
- package/nitrogen/generated/android/c++/JDeleteRecordParams.hpp +5 -1
- package/nitrogen/generated/android/c++/JFetchRecordParams.hpp +5 -1
- package/nitrogen/generated/android/c++/JHybridCloudKitModuleSpec.cpp +14 -4
- package/nitrogen/generated/android/c++/JHybridCloudKitModuleSpec.hpp +2 -1
- package/nitrogen/generated/android/c++/JQueryRecordsParams.hpp +5 -1
- package/nitrogen/generated/android/c++/JQueryRecordsResult.hpp +7 -2
- package/nitrogen/generated/android/c++/JRecordExistsParams.hpp +5 -1
- package/nitrogen/generated/android/c++/JRecordResult.hpp +5 -1
- package/nitrogen/generated/android/c++/JSaveRecordParams.hpp +5 -1
- package/nitrogen/generated/android/c++/JSaveRecordResult.hpp +5 -1
- package/nitrogen/generated/android/c++/JVariant_NullType_RecordResult.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_RecordResult.hpp +72 -0
- package/nitrogen/generated/android/cloudkitmodule+autolinking.cmake +1 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/AccountInfoResult.kt +21 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/DeleteRecordParams.kt +18 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/FetchRecordParams.kt +18 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/HybridCloudKitModuleSpec.kt +10 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/QueryRecordsParams.kt +15 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/QueryRecordsResult.kt +15 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/RecordExistsParams.kt +18 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/RecordResult.kt +30 -21
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/SaveRecordParams.kt +24 -15
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/SaveRecordResult.kt +18 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/Variant_NullType_RecordResult.kt +59 -0
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Bridge.cpp +6 -5
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Bridge.hpp +55 -41
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Umbrella.hpp +2 -0
- package/nitrogen/generated/ios/c++/HybridCloudKitModuleSpecSwift.hpp +6 -1
- package/nitrogen/generated/ios/swift/AccountInfoResult.swift +1 -0
- package/nitrogen/generated/ios/swift/DeleteRecordParams.swift +1 -0
- package/nitrogen/generated/ios/swift/FetchRecordParams.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_AccountInfoResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryRecordsResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_SaveRecordResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__RecordResult_.swift +59 -0
- package/nitrogen/generated/ios/swift/HybridCloudKitModuleSpec.swift +8 -1
- package/nitrogen/generated/ios/swift/HybridCloudKitModuleSpec_cxx.swift +22 -13
- package/nitrogen/generated/ios/swift/QueryRecordsParams.swift +1 -0
- package/nitrogen/generated/ios/swift/QueryRecordsResult.swift +16 -11
- package/nitrogen/generated/ios/swift/RecordExistsParams.swift +1 -0
- package/nitrogen/generated/ios/swift/RecordResult.swift +1 -0
- package/nitrogen/generated/ios/swift/SaveRecordParams.swift +1 -0
- package/nitrogen/generated/ios/swift/SaveRecordResult.swift +1 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_RecordResult.swift +18 -0
- package/nitrogen/generated/shared/c++/AccountInfoResult.hpp +8 -0
- package/nitrogen/generated/shared/c++/DeleteRecordParams.hpp +8 -0
- package/nitrogen/generated/shared/c++/FetchRecordParams.hpp +8 -0
- package/nitrogen/generated/shared/c++/HybridCloudKitModuleSpec.hpp +3 -2
- package/nitrogen/generated/shared/c++/QueryRecordsParams.hpp +8 -0
- package/nitrogen/generated/shared/c++/QueryRecordsResult.hpp +8 -0
- package/nitrogen/generated/shared/c++/RecordExistsParams.hpp +8 -0
- package/nitrogen/generated/shared/c++/RecordResult.hpp +8 -0
- package/nitrogen/generated/shared/c++/SaveRecordParams.hpp +8 -0
- package/nitrogen/generated/shared/c++/SaveRecordResult.hpp +8 -0
- package/package.json +3 -4
- package/nitrogen/generated/ios/swift/Func_void_std__optional_RecordResult_.swift +0 -47
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -19,25 +20,29 @@ public extension QueryRecordsResult {
|
|
|
19
20
|
* Create a new instance of `QueryRecordsResult`.
|
|
20
21
|
*/
|
|
21
22
|
init(records: [RecordResult]) {
|
|
22
|
-
self.init(
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
self.init({ () -> bridge.std__vector_RecordResult_ in
|
|
24
|
+
var __vector = bridge.create_std__vector_RecordResult_(records.count)
|
|
25
|
+
for __item in records {
|
|
26
|
+
__vector.push_back(__item)
|
|
27
|
+
}
|
|
28
|
+
return __vector
|
|
29
|
+
}())
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
var records: [RecordResult] {
|
|
28
33
|
@inline(__always)
|
|
29
34
|
get {
|
|
30
|
-
return {
|
|
31
|
-
let __data = bridge.get_data_std__vector_RecordResult_(self.__records)
|
|
32
|
-
let __size = self.__records.size()
|
|
33
|
-
return Array(UnsafeBufferPointer(start: __data, count: __size))
|
|
34
|
-
}()
|
|
35
|
+
return self.__records.map({ __item in __item })
|
|
35
36
|
}
|
|
36
37
|
@inline(__always)
|
|
37
38
|
set {
|
|
38
|
-
self.__records =
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
self.__records = { () -> bridge.std__vector_RecordResult_ in
|
|
40
|
+
var __vector = bridge.create_std__vector_RecordResult_(newValue.count)
|
|
41
|
+
for __item in newValue {
|
|
42
|
+
__vector.push_back(__item)
|
|
43
|
+
}
|
|
44
|
+
return __vector
|
|
45
|
+
}()
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Variant_NullType_RecordResult.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* An Swift enum with associated values representing a Variant/Union type.
|
|
12
|
+
* JS type: `null | struct`
|
|
13
|
+
*/
|
|
14
|
+
@frozen
|
|
15
|
+
public indirect enum Variant_NullType_RecordResult {
|
|
16
|
+
case first(NullType)
|
|
17
|
+
case second(RecordResult)
|
|
18
|
+
}
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -66,6 +71,9 @@ namespace margelo::nitro {
|
|
|
66
71
|
return false;
|
|
67
72
|
}
|
|
68
73
|
jsi::Object obj = value.getObject(runtime);
|
|
74
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
69
77
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "status"))) return false;
|
|
70
78
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "statusName"))) return false;
|
|
71
79
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "containerUserId"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
66
74
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
67
75
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
66
74
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
67
75
|
return true;
|
|
@@ -36,8 +36,9 @@ namespace margelo::nitro::cloudkitmodule { struct QueryRecordsParams; }
|
|
|
36
36
|
#include "AccountInfoResult.hpp"
|
|
37
37
|
#include "SaveRecordResult.hpp"
|
|
38
38
|
#include "SaveRecordParams.hpp"
|
|
39
|
+
#include <NitroModules/Null.hpp>
|
|
39
40
|
#include "RecordResult.hpp"
|
|
40
|
-
#include <
|
|
41
|
+
#include <variant>
|
|
41
42
|
#include "FetchRecordParams.hpp"
|
|
42
43
|
#include "DeleteRecordParams.hpp"
|
|
43
44
|
#include "RecordExistsParams.hpp"
|
|
@@ -78,7 +79,7 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
78
79
|
virtual std::shared_ptr<Promise<bool>> isAvailable() = 0;
|
|
79
80
|
virtual std::shared_ptr<Promise<AccountInfoResult>> getAccountInfo() = 0;
|
|
80
81
|
virtual std::shared_ptr<Promise<SaveRecordResult>> saveRecord(const SaveRecordParams& params) = 0;
|
|
81
|
-
virtual std::shared_ptr<Promise<std::
|
|
82
|
+
virtual std::shared_ptr<Promise<std::variant<nitro::NullType, RecordResult>>> fetchRecord(const FetchRecordParams& params) = 0;
|
|
82
83
|
virtual std::shared_ptr<Promise<void>> deleteRecord(const DeleteRecordParams& params) = 0;
|
|
83
84
|
virtual std::shared_ptr<Promise<bool>> recordExists(const RecordExistsParams& params) = 0;
|
|
84
85
|
virtual std::shared_ptr<Promise<QueryRecordsResult>> queryRecords(const QueryRecordsParams& params) = 0;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -59,6 +64,9 @@ namespace margelo::nitro {
|
|
|
59
64
|
return false;
|
|
60
65
|
}
|
|
61
66
|
jsi::Object obj = value.getObject(runtime);
|
|
67
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
62
70
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
63
71
|
return true;
|
|
64
72
|
}
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RecordResult` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::cloudkitmodule { struct RecordResult; }
|
|
@@ -61,6 +66,9 @@ namespace margelo::nitro {
|
|
|
61
66
|
return false;
|
|
62
67
|
}
|
|
63
68
|
jsi::Object obj = value.getObject(runtime);
|
|
69
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
64
72
|
if (!JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::canConvert(runtime, obj.getProperty(runtime, "records"))) return false;
|
|
65
73
|
return true;
|
|
66
74
|
}
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
66
74
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
67
75
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -74,6 +79,9 @@ namespace margelo::nitro {
|
|
|
74
79
|
return false;
|
|
75
80
|
}
|
|
76
81
|
jsi::Object obj = value.getObject(runtime);
|
|
82
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
77
85
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
78
86
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
79
87
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "data"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -68,6 +73,9 @@ namespace margelo::nitro {
|
|
|
68
73
|
return false;
|
|
69
74
|
}
|
|
70
75
|
jsi::Object obj = value.getObject(runtime);
|
|
76
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
71
79
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
72
80
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
73
81
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "data"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
66
74
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "createdAt"))) return false;
|
|
67
75
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-cloud-kit-module",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "react-native-cloud-kit-module",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"!**/.*"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
-
"example": "yarn workspace react-native-cloud-kit-module-example",
|
|
38
37
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
39
38
|
"prepare": "bob build",
|
|
40
39
|
"nitrogen": "nitrogen",
|
|
@@ -78,12 +77,12 @@
|
|
|
78
77
|
"eslint-plugin-prettier": "^5.5.4",
|
|
79
78
|
"jest": "^29.7.0",
|
|
80
79
|
"lefthook": "^2.0.3",
|
|
81
|
-
"nitrogen": "
|
|
80
|
+
"nitrogen": "0.31.10",
|
|
82
81
|
"prettier": "^2.8.8",
|
|
83
82
|
"react": "19.2.0",
|
|
84
83
|
"react-native": "0.83.0",
|
|
85
84
|
"react-native-builder-bob": "^0.40.13",
|
|
86
|
-
"react-native-nitro-modules": "
|
|
85
|
+
"react-native-nitro-modules": "0.31.10",
|
|
87
86
|
"release-it": "^19.0.4",
|
|
88
87
|
"turbo": "^2.5.6",
|
|
89
88
|
"typescript": "^5.9.2"
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_std__optional_RecordResult_.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import NitroModules
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: RecordResult?) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_std__optional_RecordResult_ {
|
|
16
|
-
public typealias bridge = margelo.nitro.cloudkitmodule.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: RecordResult?) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: RecordResult?) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: bridge.std__optional_RecordResult_) -> Void {
|
|
26
|
-
self.closure(value.value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_std__optional_RecordResult_`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_std__optional_RecordResult_>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__optional_RecordResult_ {
|
|
45
|
-
return Unmanaged<Func_void_std__optional_RecordResult_>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|