-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from baronha/feat/nitro-20
✨ feat: Nitro 20
- Loading branch information
Showing
44 changed files
with
622 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5414,10 +5414,10 @@ react-native-builder-bob@^0.30.0: | |
which "^2.0.2" | ||
yargs "^17.5.1" | ||
|
||
react-native-nitro-modules@0.18.2: | ||
version "0.18.2" | ||
resolved "https://registry.yarnpkg.com/react-native-nitro-modules/-/react-native-nitro-modules-0.18.2.tgz#f1172f90ecaded0e4b3306f6e7be4b54a24b310e" | ||
integrity sha512-eHsq1cRfm/Bz1Nq7KctTqxAqhzVSNo0WGX281xARZh+vOq8633Qxn1NHRZ5/Rno2Bla6HOXlUW6RoW0wKM/7kg== | ||
react-native-nitro-modules@0.20.0: | ||
version "0.20.0" | ||
resolved "https://registry.yarnpkg.com/react-native-nitro-modules/-/react-native-nitro-modules-0.20.0.tgz#3c659d4c8cbc8038b1bf35af6475e77023e70ffa" | ||
integrity sha512-u41SaGdQ/EQFuRLFPRQ+cbEemzsARmkElXErwZlXJhr2KYmVwQMrIYGe69NuMSyvHlw3JTl09SNugt3PXa2vEQ== | ||
|
||
[email protected]: | ||
version "0.76.5" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
nitrogen/generated/android/c++/JFunc_void_std__vector_PickerResult_.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/// | ||
/// JFunc_void_std__vector_PickerResult_.hpp | ||
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. | ||
/// https://github.com/mrousavy/nitro | ||
/// Copyright © 2024 Marc Rousavy @ Margelo | ||
/// | ||
|
||
#pragma once | ||
|
||
#include <fbjni/fbjni.h> | ||
#include <functional> | ||
|
||
#include <functional> | ||
#include <vector> | ||
#include "PickerResult.hpp" | ||
#include "JPickerResult.hpp" | ||
#include <string> | ||
#include <optional> | ||
#include "ResultType.hpp" | ||
#include "JResultType.hpp" | ||
|
||
namespace margelo::nitro::multipleimagepicker { | ||
|
||
using namespace facebook; | ||
|
||
/** | ||
* C++ representation of the callback Func_void_std__vector_PickerResult_. | ||
* This is a Kotlin `(result: Array<PickerResult>) -> Unit`, backed by a `std::function<...>`. | ||
*/ | ||
struct JFunc_void_std__vector_PickerResult_ final: public jni::HybridClass<JFunc_void_std__vector_PickerResult_> { | ||
public: | ||
static jni::local_ref<JFunc_void_std__vector_PickerResult_::javaobject> fromCpp(const std::function<void(const std::vector<PickerResult>& /* result */)>& func) { | ||
return JFunc_void_std__vector_PickerResult_::newObjectCxxArgs(func); | ||
} | ||
|
||
public: | ||
void call(jni::alias_ref<jni::JArrayClass<JPickerResult>> result) { | ||
_func([&]() { | ||
size_t __size = result->size(); | ||
std::vector<PickerResult> __vector; | ||
__vector.reserve(__size); | ||
for (size_t __i = 0; __i < __size; __i++) { | ||
auto __element = result->getElement(__i); | ||
__vector.push_back(__element->toCpp()); | ||
} | ||
return __vector; | ||
}()); | ||
} | ||
|
||
public: | ||
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/multipleimagepicker/Func_void_std__vector_PickerResult_;"; | ||
static void registerNatives() { | ||
registerHybrid({makeNativeMethod("call", JFunc_void_std__vector_PickerResult_::call)}); | ||
} | ||
|
||
private: | ||
explicit JFunc_void_std__vector_PickerResult_(const std::function<void(const std::vector<PickerResult>& /* result */)>& func): _func(func) { } | ||
|
||
private: | ||
friend HybridBase; | ||
std::function<void(const std::vector<PickerResult>& /* result */)> _func; | ||
}; | ||
|
||
} // namespace margelo::nitro::multipleimagepicker |
64 changes: 0 additions & 64 deletions
64
nitrogen/generated/android/c++/JFunc_void_std__vector_Result_.hpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.