freerasp-react-native 1.0.0 → 1.1.0
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/LICENSE +20 -20
- package/README.md +442 -413
- package/android/build.gradle +87 -87
- package/android/gradle.properties +4 -4
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/freeraspreactnative/FreeraspDeviceStateListener.kt +25 -0
- package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +113 -108
- package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativePackage.kt +17 -17
- package/example/Gemfile +6 -6
- package/example/android/app/_BUCK +55 -55
- package/example/android/app/build.gradle +313 -313
- package/example/android/app/build_defs.bzl +19 -19
- package/example/android/app/proguard-rules.pro +10 -10
- package/example/android/app/src/debug/AndroidManifest.xml +13 -13
- package/example/android/app/src/debug/java/com/freeraspreactnativeexample/ReactNativeFlipper.java +73 -73
- package/example/android/app/src/main/AndroidManifest.xml +26 -26
- package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainActivity.java +48 -48
- package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainApplication.java +91 -91
- package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/MainApplicationReactNativeHost.java +116 -116
- package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry.java +36 -36
- package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
- package/example/android/app/src/main/jni/CMakeLists.txt +7 -7
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -32
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
- package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -65
- package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
- package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
- package/example/android/app/src/main/res/values/strings.xml +3 -3
- package/example/android/app/src/main/res/values/styles.xml +9 -9
- package/example/android/build.gradle +53 -53
- package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/example/android/gradle.properties +40 -40
- package/example/android/gradlew +234 -234
- package/example/android/settings.gradle +11 -11
- package/example/app.json +3 -3
- package/example/assets/checkmark-circle-outline.png +0 -0
- package/example/assets/checkmark-circle-outline.svg +1 -0
- package/example/assets/close-circle-outline.png +0 -0
- package/example/assets/close-circle-outline.svg +1 -0
- package/example/assets/talsec-logo.png +0 -0
- package/example/babel.config.js +17 -17
- package/example/index.js +5 -5
- package/example/ios/File.swift +6 -6
- package/example/ios/FreeraspReactNativeExample/AppDelegate.h +8 -8
- package/example/ios/FreeraspReactNativeExample/AppDelegate.mm +133 -133
- package/example/ios/FreeraspReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
- package/example/ios/FreeraspReactNativeExample/Images.xcassets/Contents.json +6 -6
- package/example/ios/FreeraspReactNativeExample/Info.plist +55 -55
- package/example/ios/FreeraspReactNativeExample/LaunchScreen.storyboard +47 -47
- package/example/ios/FreeraspReactNativeExample/main.m +10 -10
- package/example/ios/FreeraspReactNativeExample-Bridging-Header.h +3 -3
- package/example/ios/FreeraspReactNativeExample.xcodeproj/xcshareddata/xcschemes/FreeraspReactNativeExample.xcscheme +106 -106
- package/example/ios/FreeraspReactNativeExample.xcworkspace/contents.xcworkspacedata +10 -10
- package/example/ios/FreeraspReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/example/ios/FreeraspReactNativeExampleTests/FreeraspReactNativeExampleTests.m +66 -66
- package/example/ios/FreeraspReactNativeExampleTests/Info.plist +24 -24
- package/example/ios/Podfile +43 -43
- package/example/ios/Podfile.lock +590 -584
- package/example/metro.config.js +40 -40
- package/example/package.json +24 -21
- package/example/react-native.config.js +10 -10
- package/example/src/App.tsx +135 -89
- package/example/src/DemoApp.tsx +89 -0
- package/example/src/checks.ts +16 -0
- package/example/src/styles.ts +7 -0
- package/example/yarn.lock +4644 -4154
- package/freerasp-react-native.podspec +36 -36
- package/ios/Debug/TalsecRuntime.xcframework/Info.plist +40 -40
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -222
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -3029
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -77
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -123
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -50
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -456
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -68
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -504
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -125
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -51
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -17
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -3154
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -12
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -450
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -3029
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -77
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -123
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -50
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -456
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -68
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -504
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -125
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -51
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -51
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -17
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -344
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -3154
- package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -12
- package/ios/FreeraspReactNative-Bridging-Header.h +3 -3
- package/ios/FreeraspReactNative.m +14 -14
- package/ios/FreeraspReactNative.swift +57 -53
- package/ios/FreeraspReactNative.xcodeproj/xcshareddata/xcschemes/FreeraspReactNative.xcscheme +67 -67
- package/ios/Release/TalsecRuntime.xcframework/Info.plist +40 -40
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -222
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -3029
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -77
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -123
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -50
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -456
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -68
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -504
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -125
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -51
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -17
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -3154
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -12
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -450
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -3029
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -77
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -123
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -50
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -456
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -68
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -504
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -125
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -51
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -51
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -17
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -344
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -3154
- package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +35 -35
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +161 -161
- package/src/index.tsx +90 -90
- package/ios/TalsecRuntime.xcframework +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
#include <memory>
|
|
2
|
-
#include <string>
|
|
3
|
-
|
|
4
|
-
#include <ReactCommon/TurboModuleManagerDelegate.h>
|
|
5
|
-
#include <fbjni/fbjni.h>
|
|
6
|
-
|
|
7
|
-
namespace facebook {
|
|
8
|
-
namespace react {
|
|
9
|
-
|
|
10
|
-
class MainApplicationTurboModuleManagerDelegate
|
|
11
|
-
: public jni::HybridClass<
|
|
12
|
-
MainApplicationTurboModuleManagerDelegate,
|
|
13
|
-
TurboModuleManagerDelegate> {
|
|
14
|
-
public:
|
|
15
|
-
// Adapt it to the package you used for your Java class.
|
|
16
|
-
static constexpr auto kJavaDescriptor =
|
|
17
|
-
"Lcom/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
|
|
18
|
-
|
|
19
|
-
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject>);
|
|
20
|
-
|
|
21
|
-
static void registerNatives();
|
|
22
|
-
|
|
23
|
-
std::shared_ptr<TurboModule> getTurboModule(
|
|
24
|
-
const std::string &name,
|
|
25
|
-
const std::shared_ptr<CallInvoker> &jsInvoker) override;
|
|
26
|
-
std::shared_ptr<TurboModule> getTurboModule(
|
|
27
|
-
const std::string &name,
|
|
28
|
-
const JavaTurboModule::InitParams ¶ms) override;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Test-only method. Allows user to verify whether a TurboModule can be
|
|
32
|
-
* created by instances of this class.
|
|
33
|
-
*/
|
|
34
|
-
bool canCreateTurboModule(const std::string &name);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
} // namespace react
|
|
38
|
-
} // namespace facebook
|
|
1
|
+
#include <memory>
|
|
2
|
+
#include <string>
|
|
3
|
+
|
|
4
|
+
#include <ReactCommon/TurboModuleManagerDelegate.h>
|
|
5
|
+
#include <fbjni/fbjni.h>
|
|
6
|
+
|
|
7
|
+
namespace facebook {
|
|
8
|
+
namespace react {
|
|
9
|
+
|
|
10
|
+
class MainApplicationTurboModuleManagerDelegate
|
|
11
|
+
: public jni::HybridClass<
|
|
12
|
+
MainApplicationTurboModuleManagerDelegate,
|
|
13
|
+
TurboModuleManagerDelegate> {
|
|
14
|
+
public:
|
|
15
|
+
// Adapt it to the package you used for your Java class.
|
|
16
|
+
static constexpr auto kJavaDescriptor =
|
|
17
|
+
"Lcom/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
|
|
18
|
+
|
|
19
|
+
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject>);
|
|
20
|
+
|
|
21
|
+
static void registerNatives();
|
|
22
|
+
|
|
23
|
+
std::shared_ptr<TurboModule> getTurboModule(
|
|
24
|
+
const std::string &name,
|
|
25
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) override;
|
|
26
|
+
std::shared_ptr<TurboModule> getTurboModule(
|
|
27
|
+
const std::string &name,
|
|
28
|
+
const JavaTurboModule::InitParams ¶ms) override;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Test-only method. Allows user to verify whether a TurboModule can be
|
|
32
|
+
* created by instances of this class.
|
|
33
|
+
*/
|
|
34
|
+
bool canCreateTurboModule(const std::string &name);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
} // namespace react
|
|
38
|
+
} // namespace facebook
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
#include "MainComponentsRegistry.h"
|
|
2
|
-
|
|
3
|
-
#include <CoreComponentsRegistry.h>
|
|
4
|
-
#include <fbjni/fbjni.h>
|
|
5
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
6
|
-
#include <react/renderer/components/rncore/ComponentDescriptors.h>
|
|
7
|
-
#include <rncli.h>
|
|
8
|
-
|
|
9
|
-
namespace facebook {
|
|
10
|
-
namespace react {
|
|
11
|
-
|
|
12
|
-
MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {}
|
|
13
|
-
|
|
14
|
-
std::shared_ptr<ComponentDescriptorProviderRegistry const>
|
|
15
|
-
MainComponentsRegistry::sharedProviderRegistry() {
|
|
16
|
-
auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry();
|
|
17
|
-
|
|
18
|
-
// Autolinked providers registered by RN CLI
|
|
19
|
-
rncli_registerProviders(providerRegistry);
|
|
20
|
-
|
|
21
|
-
// Custom Fabric Components go here. You can register custom
|
|
22
|
-
// components coming from your App or from 3rd party libraries here.
|
|
23
|
-
//
|
|
24
|
-
// providerRegistry->add(concreteComponentDescriptorProvider<
|
|
25
|
-
// AocViewerComponentDescriptor>());
|
|
26
|
-
return providerRegistry;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
jni::local_ref<MainComponentsRegistry::jhybriddata>
|
|
30
|
-
MainComponentsRegistry::initHybrid(
|
|
31
|
-
jni::alias_ref<jclass>,
|
|
32
|
-
ComponentFactory *delegate) {
|
|
33
|
-
auto instance = makeCxxInstance(delegate);
|
|
34
|
-
|
|
35
|
-
auto buildRegistryFunction =
|
|
36
|
-
[](EventDispatcher::Weak const &eventDispatcher,
|
|
37
|
-
ContextContainer::Shared const &contextContainer)
|
|
38
|
-
-> ComponentDescriptorRegistry::Shared {
|
|
39
|
-
auto registry = MainComponentsRegistry::sharedProviderRegistry()
|
|
40
|
-
->createComponentDescriptorRegistry(
|
|
41
|
-
{eventDispatcher, contextContainer});
|
|
42
|
-
|
|
43
|
-
auto mutableRegistry =
|
|
44
|
-
std::const_pointer_cast<ComponentDescriptorRegistry>(registry);
|
|
45
|
-
|
|
46
|
-
mutableRegistry->setFallbackComponentDescriptor(
|
|
47
|
-
std::make_shared<UnimplementedNativeViewComponentDescriptor>(
|
|
48
|
-
ComponentDescriptorParameters{
|
|
49
|
-
eventDispatcher, contextContainer, nullptr}));
|
|
50
|
-
|
|
51
|
-
return registry;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
delegate->buildRegistryFunction = buildRegistryFunction;
|
|
55
|
-
return instance;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
void MainComponentsRegistry::registerNatives() {
|
|
59
|
-
registerHybrid({
|
|
60
|
-
makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid),
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
} // namespace react
|
|
65
|
-
} // namespace facebook
|
|
1
|
+
#include "MainComponentsRegistry.h"
|
|
2
|
+
|
|
3
|
+
#include <CoreComponentsRegistry.h>
|
|
4
|
+
#include <fbjni/fbjni.h>
|
|
5
|
+
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
6
|
+
#include <react/renderer/components/rncore/ComponentDescriptors.h>
|
|
7
|
+
#include <rncli.h>
|
|
8
|
+
|
|
9
|
+
namespace facebook {
|
|
10
|
+
namespace react {
|
|
11
|
+
|
|
12
|
+
MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {}
|
|
13
|
+
|
|
14
|
+
std::shared_ptr<ComponentDescriptorProviderRegistry const>
|
|
15
|
+
MainComponentsRegistry::sharedProviderRegistry() {
|
|
16
|
+
auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry();
|
|
17
|
+
|
|
18
|
+
// Autolinked providers registered by RN CLI
|
|
19
|
+
rncli_registerProviders(providerRegistry);
|
|
20
|
+
|
|
21
|
+
// Custom Fabric Components go here. You can register custom
|
|
22
|
+
// components coming from your App or from 3rd party libraries here.
|
|
23
|
+
//
|
|
24
|
+
// providerRegistry->add(concreteComponentDescriptorProvider<
|
|
25
|
+
// AocViewerComponentDescriptor>());
|
|
26
|
+
return providerRegistry;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
jni::local_ref<MainComponentsRegistry::jhybriddata>
|
|
30
|
+
MainComponentsRegistry::initHybrid(
|
|
31
|
+
jni::alias_ref<jclass>,
|
|
32
|
+
ComponentFactory *delegate) {
|
|
33
|
+
auto instance = makeCxxInstance(delegate);
|
|
34
|
+
|
|
35
|
+
auto buildRegistryFunction =
|
|
36
|
+
[](EventDispatcher::Weak const &eventDispatcher,
|
|
37
|
+
ContextContainer::Shared const &contextContainer)
|
|
38
|
+
-> ComponentDescriptorRegistry::Shared {
|
|
39
|
+
auto registry = MainComponentsRegistry::sharedProviderRegistry()
|
|
40
|
+
->createComponentDescriptorRegistry(
|
|
41
|
+
{eventDispatcher, contextContainer});
|
|
42
|
+
|
|
43
|
+
auto mutableRegistry =
|
|
44
|
+
std::const_pointer_cast<ComponentDescriptorRegistry>(registry);
|
|
45
|
+
|
|
46
|
+
mutableRegistry->setFallbackComponentDescriptor(
|
|
47
|
+
std::make_shared<UnimplementedNativeViewComponentDescriptor>(
|
|
48
|
+
ComponentDescriptorParameters{
|
|
49
|
+
eventDispatcher, contextContainer, nullptr}));
|
|
50
|
+
|
|
51
|
+
return registry;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
delegate->buildRegistryFunction = buildRegistryFunction;
|
|
55
|
+
return instance;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
void MainComponentsRegistry::registerNatives() {
|
|
59
|
+
registerHybrid({
|
|
60
|
+
makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
} // namespace react
|
|
65
|
+
} // namespace facebook
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
|
|
3
|
-
#include <ComponentFactory.h>
|
|
4
|
-
#include <fbjni/fbjni.h>
|
|
5
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
6
|
-
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
7
|
-
|
|
8
|
-
namespace facebook {
|
|
9
|
-
namespace react {
|
|
10
|
-
|
|
11
|
-
class MainComponentsRegistry
|
|
12
|
-
: public facebook::jni::HybridClass<MainComponentsRegistry> {
|
|
13
|
-
public:
|
|
14
|
-
// Adapt it to the package you used for your Java class.
|
|
15
|
-
constexpr static auto kJavaDescriptor =
|
|
16
|
-
"Lcom/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry;";
|
|
17
|
-
|
|
18
|
-
static void registerNatives();
|
|
19
|
-
|
|
20
|
-
MainComponentsRegistry(ComponentFactory *delegate);
|
|
21
|
-
|
|
22
|
-
private:
|
|
23
|
-
static std::shared_ptr<ComponentDescriptorProviderRegistry const>
|
|
24
|
-
sharedProviderRegistry();
|
|
25
|
-
|
|
26
|
-
static jni::local_ref<jhybriddata> initHybrid(
|
|
27
|
-
jni::alias_ref<jclass>,
|
|
28
|
-
ComponentFactory *delegate);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
} // namespace react
|
|
32
|
-
} // namespace facebook
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <ComponentFactory.h>
|
|
4
|
+
#include <fbjni/fbjni.h>
|
|
5
|
+
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
6
|
+
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
7
|
+
|
|
8
|
+
namespace facebook {
|
|
9
|
+
namespace react {
|
|
10
|
+
|
|
11
|
+
class MainComponentsRegistry
|
|
12
|
+
: public facebook::jni::HybridClass<MainComponentsRegistry> {
|
|
13
|
+
public:
|
|
14
|
+
// Adapt it to the package you used for your Java class.
|
|
15
|
+
constexpr static auto kJavaDescriptor =
|
|
16
|
+
"Lcom/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry;";
|
|
17
|
+
|
|
18
|
+
static void registerNatives();
|
|
19
|
+
|
|
20
|
+
MainComponentsRegistry(ComponentFactory *delegate);
|
|
21
|
+
|
|
22
|
+
private:
|
|
23
|
+
static std::shared_ptr<ComponentDescriptorProviderRegistry const>
|
|
24
|
+
sharedProviderRegistry();
|
|
25
|
+
|
|
26
|
+
static jni::local_ref<jhybriddata> initHybrid(
|
|
27
|
+
jni::alias_ref<jclass>,
|
|
28
|
+
ComponentFactory *delegate);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
} // namespace react
|
|
32
|
+
} // namespace facebook
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#include <fbjni/fbjni.h>
|
|
2
|
-
#include "MainApplicationTurboModuleManagerDelegate.h"
|
|
3
|
-
#include "MainComponentsRegistry.h"
|
|
4
|
-
|
|
5
|
-
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
|
|
6
|
-
return facebook::jni::initialize(vm, [] {
|
|
7
|
-
facebook::react::MainApplicationTurboModuleManagerDelegate::
|
|
8
|
-
registerNatives();
|
|
9
|
-
facebook::react::MainComponentsRegistry::registerNatives();
|
|
10
|
-
});
|
|
11
|
-
}
|
|
1
|
+
#include <fbjni/fbjni.h>
|
|
2
|
+
#include "MainApplicationTurboModuleManagerDelegate.h"
|
|
3
|
+
#include "MainComponentsRegistry.h"
|
|
4
|
+
|
|
5
|
+
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
|
|
6
|
+
return facebook::jni::initialize(vm, [] {
|
|
7
|
+
facebook::react::MainApplicationTurboModuleManagerDelegate::
|
|
8
|
+
registerNatives();
|
|
9
|
+
facebook::react::MainComponentsRegistry::registerNatives();
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
17
|
-
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
|
|
18
|
-
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
|
19
|
-
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
|
20
|
-
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
|
|
21
|
-
|
|
22
|
-
<selector>
|
|
23
|
-
<!--
|
|
24
|
-
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
|
25
|
-
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
|
26
|
-
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
|
27
|
-
|
|
28
|
-
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
29
|
-
|
|
30
|
-
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
|
31
|
-
-->
|
|
32
|
-
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
33
|
-
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
|
34
|
-
</selector>
|
|
35
|
-
|
|
36
|
-
</inset>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
17
|
+
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
|
|
18
|
+
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
|
19
|
+
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
|
20
|
+
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
|
|
21
|
+
|
|
22
|
+
<selector>
|
|
23
|
+
<!--
|
|
24
|
+
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
|
25
|
+
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
|
26
|
+
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
|
27
|
+
|
|
28
|
+
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
29
|
+
|
|
30
|
+
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
|
31
|
+
-->
|
|
32
|
+
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
33
|
+
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
|
34
|
+
</selector>
|
|
35
|
+
|
|
36
|
+
</inset>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<resources>
|
|
2
|
-
<string name="app_name">FreeraspReactNativeExample</string>
|
|
3
|
-
</resources>
|
|
1
|
+
<resources>
|
|
2
|
+
<string name="app_name">FreeraspReactNativeExample</string>
|
|
3
|
+
</resources>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<resources>
|
|
2
|
-
|
|
3
|
-
<!-- Base application theme. -->
|
|
4
|
-
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
5
|
-
<!-- Customize your theme here. -->
|
|
6
|
-
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
|
7
|
-
</style>
|
|
8
|
-
|
|
9
|
-
</resources>
|
|
1
|
+
<resources>
|
|
2
|
+
|
|
3
|
+
<!-- Base application theme. -->
|
|
4
|
+
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
5
|
+
<!-- Customize your theme here. -->
|
|
6
|
+
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
|
7
|
+
</style>
|
|
8
|
+
|
|
9
|
+
</resources>
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
|
-
|
|
3
|
-
buildscript {
|
|
4
|
-
ext {
|
|
5
|
-
buildToolsVersion = "31.0.0"
|
|
6
|
-
minSdkVersion = 21
|
|
7
|
-
compileSdkVersion = 31
|
|
8
|
-
targetSdkVersion = 31
|
|
9
|
-
|
|
10
|
-
if (System.properties['os.arch'] == "aarch64") {
|
|
11
|
-
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
12
|
-
ndkVersion = "24.0.8215888"
|
|
13
|
-
} else {
|
|
14
|
-
// Otherwise we default to the side-by-side NDK version from AGP.
|
|
15
|
-
ndkVersion = "21.4.7075529"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
repositories {
|
|
19
|
-
google()
|
|
20
|
-
mavenCentral()
|
|
21
|
-
}
|
|
22
|
-
dependencies {
|
|
23
|
-
classpath("com.android.tools.build:gradle:7.2.1")
|
|
24
|
-
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
25
|
-
classpath("de.undercouch:gradle-download-task:5.0.1")
|
|
26
|
-
// NOTE: Do not place your application dependencies here; they belong
|
|
27
|
-
// in the individual module build.gradle files
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
allprojects {
|
|
32
|
-
repositories {
|
|
33
|
-
maven {
|
|
34
|
-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
35
|
-
url("$rootDir/../node_modules/react-native/android")
|
|
36
|
-
}
|
|
37
|
-
maven {
|
|
38
|
-
// Android JSC is installed from npm
|
|
39
|
-
url("$rootDir/../node_modules/jsc-android/dist")
|
|
40
|
-
}
|
|
41
|
-
mavenCentral {
|
|
42
|
-
// We don't want to fetch react-native from Maven Central as there are
|
|
43
|
-
// older versions over there.
|
|
44
|
-
content {
|
|
45
|
-
excludeGroup "com.facebook.react"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
google()
|
|
49
|
-
maven { url 'https://www.jitpack.io' }
|
|
50
|
-
maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
|
|
51
|
-
maven{url = uri("https://developer.huawei.com/repo/")}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
|
+
|
|
3
|
+
buildscript {
|
|
4
|
+
ext {
|
|
5
|
+
buildToolsVersion = "31.0.0"
|
|
6
|
+
minSdkVersion = 21
|
|
7
|
+
compileSdkVersion = 31
|
|
8
|
+
targetSdkVersion = 31
|
|
9
|
+
|
|
10
|
+
if (System.properties['os.arch'] == "aarch64") {
|
|
11
|
+
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
12
|
+
ndkVersion = "24.0.8215888"
|
|
13
|
+
} else {
|
|
14
|
+
// Otherwise we default to the side-by-side NDK version from AGP.
|
|
15
|
+
ndkVersion = "21.4.7075529"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
repositories {
|
|
19
|
+
google()
|
|
20
|
+
mavenCentral()
|
|
21
|
+
}
|
|
22
|
+
dependencies {
|
|
23
|
+
classpath("com.android.tools.build:gradle:7.2.1")
|
|
24
|
+
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
25
|
+
classpath("de.undercouch:gradle-download-task:5.0.1")
|
|
26
|
+
// NOTE: Do not place your application dependencies here; they belong
|
|
27
|
+
// in the individual module build.gradle files
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
allprojects {
|
|
32
|
+
repositories {
|
|
33
|
+
maven {
|
|
34
|
+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
35
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
36
|
+
}
|
|
37
|
+
maven {
|
|
38
|
+
// Android JSC is installed from npm
|
|
39
|
+
url("$rootDir/../node_modules/jsc-android/dist")
|
|
40
|
+
}
|
|
41
|
+
mavenCentral {
|
|
42
|
+
// We don't want to fetch react-native from Maven Central as there are
|
|
43
|
+
// older versions over there.
|
|
44
|
+
content {
|
|
45
|
+
excludeGroup "com.facebook.react"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
google()
|
|
49
|
+
maven { url 'https://www.jitpack.io' }
|
|
50
|
+
maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
|
|
51
|
+
maven{url = uri("https://developer.huawei.com/repo/")}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
distributionBase=GRADLE_USER_HOME
|
|
2
|
-
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
|
|
4
|
-
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
-
zipStorePath=wrapper/dists
|
|
1
|
+
distributionBase=GRADLE_USER_HOME
|
|
2
|
+
distributionPath=wrapper/dists
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
|
|
4
|
+
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
+
zipStorePath=wrapper/dists
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
|
|
7
|
-
# For more details on how to configure your build environment visit
|
|
8
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
-
|
|
10
|
-
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
-
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
-
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
-
|
|
15
|
-
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
-
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
-
# org.gradle.parallel=true
|
|
19
|
-
|
|
20
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
-
# Android operating system, and which are packaged with your app's APK
|
|
22
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
-
android.useAndroidX=true
|
|
24
|
-
# Automatically convert third-party libraries to use AndroidX
|
|
25
|
-
android.enableJetifier=true
|
|
26
|
-
|
|
27
|
-
# Version of flipper SDK to use with React Native
|
|
28
|
-
FLIPPER_VERSION=0.125.0
|
|
29
|
-
|
|
30
|
-
# Use this property to specify which architecture you want to build.
|
|
31
|
-
# You can also override it from the CLI using
|
|
32
|
-
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
33
|
-
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
34
|
-
|
|
35
|
-
# Use this property to enable support to the new architecture.
|
|
36
|
-
# This will allow you to use TurboModules and the Fabric render in
|
|
37
|
-
# your application. You should enable this flag either if you want
|
|
38
|
-
# to write custom TurboModules/Fabric components OR use libraries that
|
|
39
|
-
# are providing them.
|
|
40
|
-
newArchEnabled=false
|
|
1
|
+
# Project-wide Gradle settings.
|
|
2
|
+
|
|
3
|
+
# IDE (e.g. Android Studio) users:
|
|
4
|
+
# Gradle settings configured through the IDE *will override*
|
|
5
|
+
# any settings specified in this file.
|
|
6
|
+
|
|
7
|
+
# For more details on how to configure your build environment visit
|
|
8
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
+
|
|
10
|
+
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
+
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
+
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
+
|
|
15
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
+
# org.gradle.parallel=true
|
|
19
|
+
|
|
20
|
+
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
+
# Android operating system, and which are packaged with your app's APK
|
|
22
|
+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
+
android.useAndroidX=true
|
|
24
|
+
# Automatically convert third-party libraries to use AndroidX
|
|
25
|
+
android.enableJetifier=true
|
|
26
|
+
|
|
27
|
+
# Version of flipper SDK to use with React Native
|
|
28
|
+
FLIPPER_VERSION=0.125.0
|
|
29
|
+
|
|
30
|
+
# Use this property to specify which architecture you want to build.
|
|
31
|
+
# You can also override it from the CLI using
|
|
32
|
+
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
33
|
+
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
34
|
+
|
|
35
|
+
# Use this property to enable support to the new architecture.
|
|
36
|
+
# This will allow you to use TurboModules and the Fabric render in
|
|
37
|
+
# your application. You should enable this flag either if you want
|
|
38
|
+
# to write custom TurboModules/Fabric components OR use libraries that
|
|
39
|
+
# are providing them.
|
|
40
|
+
newArchEnabled=false
|