Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bump send to new #55

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 60 additions & 1 deletion packages/npm/send/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@


# [0.4.0](https://github.com/candlefinance/oss/compare/v0.3.22...v0.4.0) (2024-09-02)


### Bug Fixes

* add more complex types ([ccdd0a9](https://github.com/candlefinance/oss/commit/ccdd0a96947746289e90eafb2e6548071d273182))
* **all:** cleanup android code ([03a0c3d](https://github.com/candlefinance/oss/commit/03a0c3d8894fe67bcecee92365069385d1fb0f02))
* **all:** cleanup pr comments ([6cf8ba5](https://github.com/candlefinance/oss/commit/6cf8ba5d461d2c9540826692771f1afc1301e11e))
* bump send version ([4f6b82c](https://github.com/candlefinance/oss/commit/4f6b82c15d8a85852bb0108e8b7d8c1e50555317))
* compiler error on android ([c22010a](https://github.com/candlefinance/oss/commit/c22010aa4bebbdf29d295a69da1b7f15044e0770))
* get android to compile ([de4bbce](https://github.com/candlefinance/oss/commit/de4bbce3596c97246d61e22a91d85902c4e4e14b))
* lint ([bb942a8](https://github.com/candlefinance/oss/commit/bb942a8562e13753679bb16e8a07237ef8c144b4))
* lock ([9d90e8e](https://github.com/candlefinance/oss/commit/9d90e8ebbd764c13fe91f7aff621591bf631d4c1))
* make android compile ([021670f](https://github.com/candlefinance/oss/commit/021670febdf72b205e026a6fb9db5b9c438a985e))
* make things compile ([88f64b9](https://github.com/candlefinance/oss/commit/88f64b91ce14fe8c14d5438523aaff44ddbd323f))
* more changes ([dc809b8](https://github.com/candlefinance/oss/commit/dc809b8d1df351f53b6d6a4e323222ec5a2dbf7a))
* more polish ([b1252ed](https://github.com/candlefinance/oss/commit/b1252edaaead926958d7dc231fe6c2102a5fa8ef))
* **packages:** add important note to readme ([33201b1](https://github.com/candlefinance/oss/commit/33201b1adee0a047f3a07d04a7235194333c9ef3))
* pass through errors ([4c4bf10](https://github.com/candlefinance/oss/commit/4c4bf102ac17fe8c595f70716c2a6fcbeb903cc9))
* pr feedback ([6e67a1c](https://github.com/candlefinance/oss/commit/6e67a1c819df86c7e95d7ad01ae7e929bb762de0))
* **prefs:** add ios impl ([dbc3322](https://github.com/candlefinance/oss/commit/dbc332223d2253260bf9f858fbec764fe0bdfcaa))
* **prefs:** add readme and make example app consistent ([27c3e52](https://github.com/candlefinance/oss/commit/27c3e5279a69e8bfb6a056332448a1bd8966b721))
* **prefs:** add try/catches and error handling ([04ecb0b](https://github.com/candlefinance/oss/commit/04ecb0ba37b48c65cb561fc9fe7f8c8e52ca45a2))
* **prefs:** clean up method names and signatures ([8c368e1](https://github.com/candlefinance/oss/commit/8c368e1e4e82c81aec79ea5bb32d0760d87d3880))
* **prefs:** expose non-effect interface ([d0788f3](https://github.com/candlefinance/oss/commit/d0788f3b331c181c4f4b68569ebfa2f40fda6340))
* **prefs:** fix readme ([2fa3464](https://github.com/candlefinance/oss/commit/2fa34642604983e37d5e617b39a626d7dde7d44f))
* **prefs:** fix readme ([2f0c773](https://github.com/candlefinance/oss/commit/2f0c7737b947aeb44f3642f8576d02ac068d377d))
* **prefs:** fix readme example code ([a500370](https://github.com/candlefinance/oss/commit/a5003708a94fc9cb2aa7b493944897dfd0e30797))
* **prefs:** fix throws ([e463c52](https://github.com/candlefinance/oss/commit/e463c5238b798a6b5fbdaa2f988544905c02bec0))
* **prefs:** improve readme formatting ([c1e213a](https://github.com/candlefinance/oss/commit/c1e213a7e3583366b0901c7b1cfb584067d2b161))
* **prefs:** use better file name ([1b4e21c](https://github.com/candlefinance/oss/commit/1b4e21ceb83fda9db72d6bc7351eb5417847653e))
* readme ([f9ebb92](https://github.com/candlefinance/oss/commit/f9ebb92b0af98af48e93bc9d6905f6dbfc2dcb09))
* revert ([c7486f1](https://github.com/candlefinance/oss/commit/c7486f183432f821e505e25ed7217c88c93e48d1))
* revert android changes ([0ed31d2](https://github.com/candlefinance/oss/commit/0ed31d2ef4ac6bb2882258aab65a23cc1e30ef3b))
* revert yarn ([2dcb5b4](https://github.com/candlefinance/oss/commit/2dcb5b47a7cc4d0883c74a674fdf5556e46125c1))
* udpates ([0249043](https://github.com/candlefinance/oss/commit/02490430d88929b029484e9dd8f5b3bc3a2e7cb3))
* update ([af6a8f2](https://github.com/candlefinance/oss/commit/af6a8f2e523833957714c2895ecc8b5fb6aa4e51))
* update ([1f7340a](https://github.com/candlefinance/oss/commit/1f7340aa4cff569213d519ab1efefe5470279653))
* update readme ([0b7adbc](https://github.com/candlefinance/oss/commit/0b7adbc5963d38d18b8346fe21a3bab14a600a34))
* updates ([c96843b](https://github.com/candlefinance/oss/commit/c96843b2f0d44608c88ba2263ecf5a61fcced0ae))
* updates ([bb1b28d](https://github.com/candlefinance/oss/commit/bb1b28d6bd7086e22b37165c1a617bfc3fe8c3e2))
* updates ([1e5f468](https://github.com/candlefinance/oss/commit/1e5f4683b94729e6a383dbbaa79a48f65a526473))
* updates ([d413696](https://github.com/candlefinance/oss/commit/d413696ad05f9ced9e039d6a031fe1843adfd488))
* updates ([21a9781](https://github.com/candlefinance/oss/commit/21a9781c135b5c249d575a56f07ac3f194fb0339))
* updates ([4f3956a](https://github.com/candlefinance/oss/commit/4f3956a379ca99bcee6dbfb07fcfa4640f049e33))
* updates and refactor ([4bb81ff](https://github.com/candlefinance/oss/commit/4bb81fff7ead5884a7435a0ce16410e937dfd1a7))
* updates to (wip) ([a4714d6](https://github.com/candlefinance/oss/commit/a4714d6f3e248bc6bf913fd58dd7ae2dbb2ae0f3))
* wip ([8019844](https://github.com/candlefinance/oss/commit/8019844918d9cb6450860bed389feade36c63295))
* wrap the headers and query ([4b7019e](https://github.com/candlefinance/oss/commit/4b7019e02be441df32458c6d286de3fba2fb522f))


### Features

* add android impl for new prefs library ([61832bb](https://github.com/candlefinance/oss/commit/61832bb76edff84c52966405a82906b50f3841ab))
* make ios compile ([e561816](https://github.com/candlefinance/oss/commit/e56181654c842ea6bc1f4508a3f22583fb291cca))
* make ios compile ([be7228f](https://github.com/candlefinance/oss/commit/be7228f9efe287aca95c0818a65d87d95de2ffd9))

## 0.3.14 (2024-06-05)

## 0.3.13 (2024-06-04)
Expand Down Expand Up @@ -105,4 +164,4 @@
### Features

- **all:** implement android library and tweak ios and react ([c630427](https://github.com/candlefinance/oss/commit/c6304279e0e9576b4a98982e0a96dc0335d44cc7))
- **ios:** implement ios library ([15ea2dc](https://github.com/candlefinance/oss/commit/15ea2dc77070ca8345fe905e63c6f85b2922b471))
- **ios:** implement ios library ([15ea2dc](https://github.com/candlefinance/oss/commit/15ea2dc77070ca8345fe905e63c6f85b2922b471))
2 changes: 1 addition & 1 deletion packages/npm/send/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
ENV['RCT_NEW_ARCH_ENABLED'] = '0'

# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
Expand Down
24 changes: 12 additions & 12 deletions packages/npm/send/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- boost (1.84.0)
- candlefinance-send (0.3.14):
- candlefinance-send (0.4.0):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -29,7 +29,7 @@ PODS:
- hermes-engine (0.75.2):
- hermes-engine/Pre-built (= 0.75.2)
- hermes-engine/Pre-built (0.75.2)
- NitroModules (0.6.0):
- NitroModules (0.12.0):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1748,13 +1748,13 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost: 4cb898d0bf20404aab1850c656dcea009429d6c1
candlefinance-send: ff2122d1795b0c437050490ae4f8f8af0aa09803
candlefinance-send: 1fe917564c59d2b31d5994fe204d39951a76829e
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
FBLazyVector: 38bb611218305c3bc61803e287b8a81c6f63b619
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
hermes-engine: 3b6e0717ca847e2fc90a201e59db36caf04dee88
NitroModules: b404fe4ebf47e0b057c526959b5e200256000f09
NitroModules: e77029bf91543f05ace96cc5241c4ef16660b299
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
RCTDeprecation: 34cbf122b623037ea9facad2e92e53434c5c7422
RCTRequired: 24c446d7bcd0f517d516b6265d8df04dc3eb1219
Expand All @@ -1765,16 +1765,16 @@ SPEC CHECKSUMS:
React-CoreModules: f92a2cb11d22f6066823ca547c61e900325dfe44
React-cxxreact: f5595a4cbfe5a4e9d401dffa2c1c78bbbbbe75e4
React-debug: 4a91c177b5b2efcc546fb50bc2f676f3f589efab
React-defaultsnativemodule: 6b666572abf5fe7fe87836a42776abd6ad5ed173
React-domnativemodule: 785d767c4edbb9f011b8c976271077759ca5c4aa
React-defaultsnativemodule: bb94c3db425b01c760f41a253de8536b3f5497f0
React-domnativemodule: 6c581fd39812cafb024171e091c00905b2c3a3e2
React-Fabric: a33cc1fdc62a3085774783bb30970531589d2028
React-FabricComponents: 98de5f94cbd35d407f4fc78855298b562d8289cb
React-FabricImage: 0ce8fd83844d9edef5825116d38f0e208b9ad786
React-featureflags: 37a78859ad71db758e2efdcbdb7384afefa8701e
React-featureflagsnativemodule: f94aacb52c463e200ee185bff90ae3b392e60263
React-featureflagsnativemodule: 52b46e161a151b4653cf1762285e8e899d534e3f
React-graphics: c16f1bab97a5d473831a79360d84300e93a614e5
React-hermes: 7801f8c0e12f326524b461dc368d3e74f3d2a385
React-idlecallbacksnativemodule: d81bb7b5d26cea9852a8edc6ad1979cd7ed0841f
React-idlecallbacksnativemodule: 58de2ac968ee80947d19dc8fe20def607e5c2de8
React-ImageManager: 98a1e5b0b05528dde47ebcd953d916ac66d46c09
React-jserrorhandler: 08f1c3465a71a6549c27ad82809ce145ad52d4f1
React-jsi: 161428ab2c706d5fcd9878d260ff1513fdb356ab
Expand All @@ -1783,16 +1783,16 @@ SPEC CHECKSUMS:
React-jsitracing: 52b849a77d02e2dc262a3031454c23be8dabb4d9
React-logger: 8db32983d75dc2ad54f278f344ccb9b256e694fc
React-Mapbuffer: 1c08607305558666fd16678b85ef135e455d5c96
React-microtasksnativemodule: f13f03163b6a5ec66665dfe80a0df4468bb766a6
React-microtasksnativemodule: 87b8de96f937faefece8afd2cb3a518321b2ef99
React-nativeconfig: 57781b79e11d5af7573e6f77cbf1143b71802a6d
React-NativeModulesApple: 7ff2e2cfb2e5fa5bdedcecf28ce37e696c6ef1e1
React-perflogger: 8a360ccf603de6ddbe9ff8f54383146d26e6c936
React-performancetimeline: 3cfec915adcb3653a5a633b41e711903844c35d8
React-RCTActionSheet: 1c0e26a88eec41215089cf4436e38188cfe9f01a
React-RCTAnimation: d87207841b1e2ae1389e684262ea8c73c887cb04
React-RCTAppDelegate: 328e56399c4f1c3d20cfe547ea24ebded2b3a87f
React-RCTAppDelegate: 4ec7824c0cc9cc4b146ca8ee0fd81b10c316a440
React-RCTBlob: 79b42cb7db55f34079297687a480dbcf37f023f6
React-RCTFabric: 27636a6a5fa5622159297fce26881945d3658cf6
React-RCTFabric: 1dd1661db93716f8cb116e451bd9c211a8d15716
React-RCTImage: 0c10a75de59f7384a2a55545d5f36fe783e6ecda
React-RCTLinking: bf08f4f655bf777af292b8d97449072c8bb196ca
React-RCTNetwork: 1b690846b40fc5685af58e088720657db6814637
Expand All @@ -1813,6 +1813,6 @@ SPEC CHECKSUMS:
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: 2a45d7e59592db061217551fd3bbe2dd993817ae

PODFILE CHECKSUM: 587829e2504f7c0b375fddc67c0ec17f3b28a967
PODFILE CHECKSUM: ab1658764ce8ab6ffe56492dd721cffdbaf705bb

COCOAPODS: 1.15.2
4 changes: 4 additions & 0 deletions packages/npm/send/example/ios/SendExample/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ - (NSURL *)bundleURL
#endif
}

- (BOOL)bridgelessEnabled {
return NO;
}

@end
2 changes: 1 addition & 1 deletion packages/npm/send/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "18.3.1",
"react-native": "0.75.2",
"react-native-nitro-modules": "^0.6.0"
"react-native-nitro-modules": "^0.12.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/npm/send/nitro.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"android": {
"androidNamespace": ["candlefinance_send"],
"androidCxxLibName": "send"
}
},
"autolinking": {},
"ignorePaths": ["node_modules"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JHybridSendSpec.cpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down Expand Up @@ -66,19 +65,19 @@ namespace margelo::nitro::send {

// Methods
std::future<SendResult> JHybridSendSpec::send(const SendRequest& request) {
static const auto method = _javaPart->getClass()->getMethod<jni::alias_ref<JPromise::javaobject>(jni::alias_ref<JSendRequest> /* request */)>("send");
auto result = method(_javaPart, JSendRequest::fromCpp(request));
static const auto method = _javaPart->getClass()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JSendRequest> /* request */)>("send");
auto __result = method(_javaPart, JSendRequest::fromCpp(request));
return [&]() {
auto promise = std::make_shared<std::promise<SendResult>>();
result->cthis()->addOnResolvedListener([=](const jni::global_ref<jni::JObject>& boxedResult) {
auto result = jni::static_ref_cast<JSendResult>(boxedResult);
promise->set_value(result->toCpp());
auto __promise = std::make_shared<std::promise<SendResult>>();
__result->cthis()->addOnResolvedListener([=](const jni::alias_ref<jni::JObject>& __boxedResult) {
auto __result = jni::static_ref_cast<JSendResult>(__boxedResult);
__promise->set_value(__result->toCpp());
});
result->cthis()->addOnRejectedListener([=](const jni::global_ref<jni::JString>& message) {
std::runtime_error error(message->toStdString());
promise->set_exception(std::make_exception_ptr(error));
__result->cthis()->addOnRejectedListener([=](const jni::alias_ref<jni::JString>& __message) {
std::runtime_error __error(__message->toStdString());
__promise->set_exception(std::make_exception_ptr(__error));
});
return promise->get_future();
return __promise->get_future();
}();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// HybridSendSpec.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand All @@ -12,18 +11,21 @@
#include <fbjni/fbjni.h>
#include "HybridSendSpec.hpp"




namespace margelo::nitro::send {

using namespace facebook;

class JHybridSendSpec final: public jni::HybridClass<JHybridSendSpec, JHybridObject>,
public HybridSendSpec {
class JHybridSendSpec: public jni::HybridClass<JHybridSendSpec, JHybridObject>,
public virtual HybridSendSpec {
public:
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/candlefinance_send/HybridSendSpec;";
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject> jThis);
static void registerNatives();

private:
protected:
// C++ constructor (called from Java via `initHybrid()`)
explicit JHybridSendSpec(jni::alias_ref<jhybridobject> jThis) :
HybridObject(HybridSendSpec::TAG),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendError.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendErrorCode.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down Expand Up @@ -78,7 +77,7 @@ namespace margelo::nitro::send {
return clazz->getStaticFieldValue(fieldUNEXPECTED);
default:
std::string stringValue = std::to_string(static_cast<int>(value));
throw std::runtime_error("Invalid enum value (" + stringValue + "!");
throw std::invalid_argument("Invalid enum value (" + stringValue + "!");
}
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendMethod.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down Expand Up @@ -72,7 +71,7 @@ namespace margelo::nitro::send {
return clazz->getStaticFieldValue(fieldTRACE);
default:
std::string stringValue = std::to_string(static_cast<int>(value));
throw std::runtime_error("Invalid enum value (" + stringValue + "!");
throw std::invalid_argument("Invalid enum value (" + stringValue + "!");
}
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendParameters.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down Expand Up @@ -36,12 +35,12 @@ namespace margelo::nitro::send {
jni::local_ref<jni::JMap<jni::JString, jni::JString>> parameters = this->getFieldValue(fieldParameters);
return SendParameters(
[&]() {
std::unordered_map<std::string, std::string> map;
map.reserve(parameters->size());
for (const auto& entry : *parameters) {
map.emplace(entry.first->toStdString(), entry.second->toStdString());
std::unordered_map<std::string, std::string> __map;
__map.reserve(parameters->size());
for (const auto& __entry : *parameters) {
__map.emplace(__entry.first->toStdString(), __entry.second->toStdString());
}
return map;
return __map;
}()
);
}
Expand All @@ -54,11 +53,11 @@ namespace margelo::nitro::send {
static jni::local_ref<JSendParameters::javaobject> fromCpp(const SendParameters& value) {
return newInstance(
[&]() {
auto map = jni::JHashMap<jni::JString, jni::JString>::create(value.parameters.size());
for (const auto& entry : value.parameters) {
map->put(jni::make_jstring(entry.first), jni::make_jstring(entry.second));
auto __map = jni::JHashMap<jni::JString, jni::JString>::create(value.parameters.size());
for (const auto& __entry : value.parameters) {
__map->put(jni::make_jstring(__entry.first), jni::make_jstring(__entry.second));
}
return map;
return __map;
}()
);
}
Expand Down
27 changes: 13 additions & 14 deletions packages/npm/send/nitrogen/generated/android/c++/JSendRequest.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendRequest.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down Expand Up @@ -60,14 +59,14 @@ namespace margelo::nitro::send {
method->toCpp(),
body != nullptr ? std::make_optional(body->toStdString()) : std::nullopt,
[&]() {
size_t size = utf8ContentTypes->size();
std::vector<std::string> vector;
vector.reserve(size);
for (size_t i = 0; i < size; i++) {
auto element = utf8ContentTypes->getElement(i);
vector.push_back(element->toStdString());
size_t __size = utf8ContentTypes->size();
std::vector<std::string> __vector;
__vector.reserve(__size);
for (size_t __i = 0; __i < __size; __i++) {
auto __element = utf8ContentTypes->getElement(__i);
__vector.push_back(__element->toStdString());
}
return vector;
return __vector;
}()
);
}
Expand All @@ -86,13 +85,13 @@ namespace margelo::nitro::send {
JSendMethod::fromCpp(value.method),
value.body.has_value() ? jni::make_jstring(value.body.value()) : nullptr,
[&]() {
size_t size = value.utf8ContentTypes.size();
jni::local_ref<jni::JArrayClass<jni::JString>> array = jni::JArrayClass<jni::JString>::newArray(size);
for (size_t i = 0; i < size; i++) {
const auto& element = value.utf8ContentTypes[i];
array->setElement(i, *jni::make_jstring(element));
size_t __size = value.utf8ContentTypes.size();
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
for (size_t __i = 0; __i < __size; __i++) {
const auto& __element = value.utf8ContentTypes[__i];
__array->setElement(__i, *jni::make_jstring(__element));
}
return array;
return __array;
}()
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendResponse.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
///
/// JSendResult.hpp
/// Mon Sep 02 2024
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
Expand Down
Loading
Loading