react-native-candle 0.1.14 → 0.1.15

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.
@@ -22,47 +22,6 @@ Pod::Spec.new do |s|
22
22
  "cpp/**/*.{hpp,cpp}",
23
23
  ]
24
24
 
25
- spm_dependency(s,
26
- url: "https://github.com/candlefinance/swift-security",
27
- requirement: {
28
- "kind": "branch",
29
- "branch": "main"
30
- },
31
- products: ["SwiftSecurity"]
32
- )
33
- spm_dependency(s,
34
- url: "https://github.com/apple/swift-openapi-urlsession",
35
- requirement: {
36
- "kind": "exactVersion",
37
- "version": "1.0.2"
38
- },
39
- products: ["OpenAPIURLSession"]
40
- )
41
- spm_dependency(s,
42
- url: "https://github.com/apple/swift-nio",
43
- requirement: {
44
- "kind": "exactVersion",
45
- "version": "2.81.0"
46
- },
47
- products: ["NIO", "NIOHTTP1", "NIOWebSocket"]
48
- )
49
- spm_dependency(s,
50
- url: "https://github.com/apple/swift-nio-ssl",
51
- requirement: {
52
- "kind": "exactVersion",
53
- "version": "2.29.3"
54
- },
55
- products: ["NIOSSL"]
56
- )
57
- spm_dependency(s,
58
- url: "https://github.com/apple/swift-nio-transport-services",
59
- requirement: {
60
- "kind": "exactVersion",
61
- "version": "1.23.1"
62
- },
63
- products: ["NIOTransportServices"]
64
- )
65
-
66
25
  s.pod_target_xcconfig = {
67
26
  # C++ compiler flags, mainly for folly.
68
27
  "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES"
@@ -71,7 +30,7 @@ Pod::Spec.new do |s|
71
30
  load 'nitrogen/generated/ios/ReactNativeCandle+autolinking.rb'
72
31
  add_nitrogen_files(s)
73
32
 
74
- s.dependency 'Candle', '3.0.230-beta'
33
+ s.dependency 'Candle', '3.0.234-beta'
75
34
  s.dependency 'React-jsi'
76
35
  s.dependency 'React-callinvoker'
77
36
  install_modules_dependencies(s)
@@ -98,16 +98,13 @@ final class HybridRNCandle: HybridRNCandleSpec {
98
98
 
99
99
  public func getFiatAccounts() throws -> Promise<String> {
100
100
  .async {
101
- let accounts = try await self.viewModel.candleClient.getFiatAccounts()
102
- return try self.encodeToJSONString(accounts)
101
+ return ""
103
102
  }
104
103
  }
105
104
 
106
105
  public func getActivity(span: String?) throws -> Promise<String> {
107
106
  .async {
108
- let activity =
109
- try await self.viewModel.candleClient.getActivity(query: .init(span: span))
110
- return try self.encodeToJSONString(activity)
107
+ return ""
111
108
  }
112
109
  }
113
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-candle",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Candle SDK for React Native",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -20,12 +20,6 @@ const plugin = (config, options = {}) => {
20
20
  },
21
21
  ],
22
22
  ],
23
- [
24
- withXcodeProject,
25
- async (config) => {
26
- return withMyCustomBuildPhase(config);
27
- },
28
- ],
29
23
  ]);
30
24
  };
31
25
 
@@ -56,18 +50,9 @@ const withIosDeploymentTarget = async (config) => {
56
50
  }
57
51
 
58
52
  const setPreInstallHook = mergeContents({
59
- tag: "rnreanimated-preinstall",
53
+ tag: "",
60
54
  src: setDeploymentTarget.contents,
61
- newSrc: ` pre_install do |installer|
62
- installer.pod_targets.each do |pod|
63
- if pod.name.eql?('RNReanimated')
64
- def pod.build_type;
65
- # This is a workaround for the issue with the dynamic library
66
- Pod::BuildType.static_library;
67
- end
68
- end
69
- end
70
- end`,
55
+ newSrc: ``,
71
56
  anchor: /post_install do \|installer\|/i,
72
57
  offset: 0,
73
58
  comment: "#",
@@ -83,139 +68,4 @@ const withIosDeploymentTarget = async (config) => {
83
68
  return config;
84
69
  };
85
70
 
86
- // This function adds a custom build phase to the Xcode project
87
- // that removes signature files from the build directory
88
- // for Xcode 15 and 16. This is a workaround for a known issue
89
- // with these versions of Xcode.
90
- // I think it's because of the duplicate symbol issue.
91
- const withMyCustomBuildPhase = async (config) => {
92
- // Duplicate symbols issue
93
- const xcodeProject = config.modResults;
94
- const shellScript = `if { [ "$XCODE_VERSION_MAJOR" = "1500" ] || [ "$XCODE_VERSION_MAJOR" = "1600" ]; } && [ "$CONFIGURATION" = "Release" ]; then
95
- echo "Remove signature files (Xcode 15/16 workaround, only in Release)"
96
- find "$BUILD_DIR/\${CONFIGURATION}-iphoneos" -name "*.signature" -type f | xargs -r rm
97
- fi`;
98
-
99
- xcodeProject.addBuildPhase(
100
- [],
101
- "PBXShellScriptBuildPhase",
102
- "Remove Framework signature files (Xcode 15/16 workaround)",
103
- null,
104
- {
105
- shellPath: "/bin/sh",
106
- shellScript,
107
- runOnlyForDeploymentPostprocessing: 1,
108
- }
109
- );
110
-
111
- // reference the "props"
112
- // const { version, repositoryUrl, repoName, productName } = {
113
- // repositoryUrl: "https://github.com/candlefinance/candle-swift",
114
- // repoName: "candle-swift",
115
- // productName: "Candle",
116
- // version: "fa0db96e9a73740bbd4977160894a45c6db96f51",
117
- // };
118
- // // get XCRemoteSwiftPackageReference section
119
- // const spmReferences =
120
- // xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"];
121
- // // if doesn't exist (this is our first SPM package) create empty object
122
- // if (!spmReferences) {
123
- // xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"] = {};
124
- // }
125
- // // generate new ID
126
- // const packageReferenceUUID = xcodeProject.generateUuid();
127
- // // add XCRemoteSwiftPackageReference section
128
- // xcodeProject.hash.project.objects["XCRemoteSwiftPackageReference"][
129
- // `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`
130
- // ] = {
131
- // isa: "XCRemoteSwiftPackageReference",
132
- // repositoryURL: repositoryUrl,
133
- // requirement: {
134
- // kind: "revision",
135
- // revision: version,
136
- // },
137
- // };
138
-
139
- // get XCSwiftPackageProductDependency section
140
- // const spmProducts =
141
- // xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"];
142
- // // if doesn't exist (this is our first SPM package) create empty object
143
- // if (!spmProducts) {
144
- // xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"] = {};
145
- // }
146
- // // generate new ID
147
- // const packageUUID = xcodeProject.generateUuid();
148
- // // add XCSwiftPackageProductDependency section
149
- // xcodeProject.hash.project.objects["XCSwiftPackageProductDependency"][
150
- // `${packageUUID} /* ${productName} */`
151
- // ] = {
152
- // isa: "XCSwiftPackageProductDependency",
153
- // // from step before
154
- // package: `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`,
155
- // productName: productName,
156
- // };
157
-
158
- // get main project ID
159
- // const projectId = Object.keys(
160
- // xcodeProject.hash.project.objects["PBXProject"]
161
- // ).at(0);
162
- // // create empty array for package references if it doesn't exist
163
- // if (
164
- // !xcodeProject.hash.project.objects["PBXProject"][projectId][
165
- // "packageReferences"
166
- // ]
167
- // ) {
168
- // xcodeProject.hash.project.objects["PBXProject"][projectId][
169
- // "packageReferences"
170
- // ] = [];
171
- // }
172
- // // add our package reference (use ID from first step)
173
- // xcodeProject.hash.project.objects["PBXProject"][projectId][
174
- // "packageReferences"
175
- // ] = [
176
- // ...xcodeProject.hash.project.objects["PBXProject"][projectId][
177
- // "packageReferences"
178
- // ],
179
- // `${packageReferenceUUID} /* XCRemoteSwiftPackageReference "${repoName}" */`,
180
- // ];
181
-
182
- // // generate new ID
183
- // const frameworkUUID = xcodeProject.generateUuid();
184
- // // add comment and reference to our framework in PBXBuildFile section
185
- // xcodeProject.hash.project.objects["PBXBuildFile"][
186
- // `${frameworkUUID}_comment`
187
- // ] = `${productName} in Frameworks`;
188
- // xcodeProject.hash.project.objects["PBXBuildFile"][frameworkUUID] = {
189
- // isa: "PBXBuildFile",
190
- // productRef: packageUUID,
191
- // productRef_comment: productName,
192
- // };
193
-
194
- // // get first build phase
195
- // const buildPhaseId = Object.keys(
196
- // xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"]
197
- // ).at(0);
198
- // // create empty array for files if it doesn't exist
199
- // if (
200
- // !xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
201
- // "files"
202
- // ]
203
- // ) {
204
- // xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
205
- // "files"
206
- // ] = [];
207
- // }
208
- // // add our framework reference (use ID from step 4)
209
- // xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][buildPhaseId][
210
- // "files"
211
- // ] = [
212
- // ...xcodeProject.hash.project.objects["PBXFrameworksBuildPhase"][
213
- // buildPhaseId
214
- // ]["files"],
215
- // `${frameworkUUID} /* ${productName} in Frameworks */`,
216
- // ];
217
-
218
- return config;
219
- };
220
-
221
71
  module.exports = plugin;