freerasp-react-native 3.13.0 → 3.14.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.
Files changed (124) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +4 -2
  3. package/android/build.gradle +1 -1
  4. package/android/gradle.properties +2 -2
  5. package/android/proguard-rules.pro +8 -0
  6. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +59 -10
  7. package/android/src/main/java/com/freeraspreactnative/FreeraspThreatHandler.kt +8 -0
  8. package/android/src/main/java/com/freeraspreactnative/ScreenProtector.kt +164 -0
  9. package/android/src/main/java/com/freeraspreactnative/Threat.kt +5 -1
  10. package/android/src/main/java/com/freeraspreactnative/utils/Extensions.kt +1 -1
  11. package/example/Gemfile +6 -2
  12. package/example/Gemfile.lock +121 -0
  13. package/example/android/app/build.gradle +64 -265
  14. package/example/android/app/src/debug/AndroidManifest.xml +1 -5
  15. package/example/android/app/src/main/AndroidManifest.xml +5 -3
  16. package/example/android/app/src/main/java/com/freerasp/rn/example/MainActivity.kt +22 -0
  17. package/example/android/app/src/main/java/com/freerasp/rn/example/MainApplication.kt +44 -0
  18. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +3 -2
  19. package/example/android/app/src/main/res/values/strings.xml +1 -1
  20. package/example/android/build.gradle +16 -45
  21. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  22. package/example/android/gradle/wrapper/gradle-wrapper.properties +3 -1
  23. package/example/android/gradle.properties +5 -6
  24. package/example/android/gradlew +30 -13
  25. package/example/android/gradlew.bat +21 -16
  26. package/example/android/settings.gradle +5 -10
  27. package/example/app.json +3 -3
  28. package/example/index.js +4 -0
  29. package/example/ios/FreeraspRNExample/AppDelegate.swift +30 -0
  30. package/example/ios/{FreeraspReactNativeExample → FreeraspRNExample}/Info.plist +8 -12
  31. package/example/ios/{FreeraspReactNativeExample → FreeraspRNExample}/LaunchScreen.storyboard +1 -1
  32. package/example/ios/FreeraspRNExample/PrivacyInfo.xcprivacy +37 -0
  33. package/example/ios/FreeraspRNExample.xcodeproj/project.pbxproj +488 -0
  34. package/example/ios/{FreeraspReactNativeExample.xcodeproj/xcshareddata/xcschemes/FreeraspReactNativeExample.xcscheme → FreeraspRNExample.xcodeproj/xcshareddata/xcschemes/FreeraspRNExample.xcscheme} +12 -12
  35. package/example/ios/{FreeraspReactNativeExample.xcworkspace → FreeraspRNExample.xcworkspace}/contents.xcworkspacedata +1 -1
  36. package/example/ios/Podfile +19 -32
  37. package/example/metro.config.js +13 -14
  38. package/example/package.json +23 -12
  39. package/example/src/App.tsx +18 -0
  40. package/example/src/DemoApp.tsx +181 -79
  41. package/example/src/MalwareModal.tsx +2 -12
  42. package/example/src/checks.ts +2 -0
  43. package/example/yarn.lock +2483 -1624
  44. package/ios/FreeraspReactNative.swift +6 -2
  45. package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
  46. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  47. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  48. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +87 -87
  49. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  50. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  51. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
  52. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +7 -7
  53. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +4 -4
  54. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  55. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  56. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  57. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +316 -178
  58. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -0
  59. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  60. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +2 -0
  61. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  62. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  63. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
  64. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +7 -7
  65. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +4 -4
  66. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  67. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  68. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  69. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +316 -178
  70. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -0
  71. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  72. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
  73. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +316 -178
  74. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -0
  75. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  76. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -0
  77. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  78. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +33 -33
  79. package/lib/commonjs/index.js +25 -3
  80. package/lib/commonjs/index.js.map +1 -1
  81. package/lib/commonjs/threat.js +3 -1
  82. package/lib/commonjs/threat.js.map +1 -1
  83. package/lib/module/index.js +19 -1
  84. package/lib/module/index.js.map +1 -1
  85. package/lib/module/threat.js +3 -1
  86. package/lib/module/threat.js.map +1 -1
  87. package/lib/typescript/src/index.d.ts +2 -0
  88. package/lib/typescript/src/index.d.ts.map +1 -1
  89. package/lib/typescript/src/threat.d.ts +2 -0
  90. package/lib/typescript/src/threat.d.ts.map +1 -1
  91. package/lib/typescript/src/types.d.ts +2 -0
  92. package/lib/typescript/src/types.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/plugin/build/index.d.ts +1 -0
  95. package/src/index.tsx +24 -0
  96. package/src/threat.ts +6 -0
  97. package/src/types.ts +2 -0
  98. package/example/android/app/_BUCK +0 -55
  99. package/example/android/app/build_defs.bzl +0 -19
  100. package/example/android/app/src/debug/java/com/freeraspreactnativeexample/ReactNativeFlipper.java +0 -73
  101. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainActivity.java +0 -48
  102. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainApplication.java +0 -91
  103. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/MainApplicationReactNativeHost.java +0 -116
  104. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry.java +0 -36
  105. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
  106. package/example/android/app/src/main/jni/CMakeLists.txt +0 -7
  107. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
  108. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
  109. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
  110. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
  111. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
  112. package/example/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
  113. package/example/android/app/src/main/jni/OnLoad.cpp +0 -11
  114. package/example/ios/File.swift +0 -6
  115. package/example/ios/FreeraspReactNativeExample/AppDelegate.h +0 -8
  116. package/example/ios/FreeraspReactNativeExample/AppDelegate.mm +0 -133
  117. package/example/ios/FreeraspReactNativeExample/main.m +0 -10
  118. package/example/ios/FreeraspReactNativeExample-Bridging-Header.h +0 -3
  119. package/example/ios/FreeraspReactNativeExample.xcodeproj/project.pbxproj +0 -729
  120. package/example/ios/FreeraspReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  121. package/example/ios/FreeraspReactNativeExampleTests/FreeraspReactNativeExampleTests.m +0 -66
  122. package/example/ios/FreeraspReactNativeExampleTests/Info.plist +0 -24
  123. /package/example/ios/{FreeraspReactNativeExample → FreeraspRNExample}/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
  124. /package/example/ios/{FreeraspReactNativeExample → FreeraspRNExample}/Images.xcassets/Contents.json +0 -0
@@ -0,0 +1,488 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 54;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 0C80B921A6F3F58F76C31292 /* libPods-FreeraspRNExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-FreeraspRNExample.a */; };
11
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12
+ 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
13
+ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14
+ B1EB9AB7744AD93A8B6158B0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
15
+ /* End PBXBuildFile section */
16
+
17
+ /* Begin PBXFileReference section */
18
+ 13B07F961A680F5B00A75B9A /* FreeraspRNExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FreeraspRNExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
19
+ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FreeraspRNExample/Images.xcassets; sourceTree = "<group>"; };
20
+ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = FreeraspRNExample/Info.plist; sourceTree = "<group>"; };
21
+ 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = FreeraspRNExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
22
+ 3B4392A12AC88292D35C810B /* Pods-FreeraspRNExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FreeraspRNExample.debug.xcconfig"; path = "Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample.debug.xcconfig"; sourceTree = "<group>"; };
23
+ 5709B34CF0A7D63546082F79 /* Pods-FreeraspRNExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FreeraspRNExample.release.xcconfig"; path = "Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample.release.xcconfig"; sourceTree = "<group>"; };
24
+ 5DCACB8F33CDC322A6C60F78 /* libPods-FreeraspRNExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-FreeraspRNExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
25
+ 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = FreeraspRNExample/AppDelegate.swift; sourceTree = "<group>"; };
26
+ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = FreeraspRNExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
27
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
28
+ /* End PBXFileReference section */
29
+
30
+ /* Begin PBXFrameworksBuildPhase section */
31
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
32
+ isa = PBXFrameworksBuildPhase;
33
+ buildActionMask = 2147483647;
34
+ files = (
35
+ 0C80B921A6F3F58F76C31292 /* libPods-FreeraspRNExample.a in Frameworks */,
36
+ );
37
+ runOnlyForDeploymentPostprocessing = 0;
38
+ };
39
+ /* End PBXFrameworksBuildPhase section */
40
+
41
+ /* Begin PBXGroup section */
42
+ 13B07FAE1A68108700A75B9A /* FreeraspRNExample */ = {
43
+ isa = PBXGroup;
44
+ children = (
45
+ 13B07FB51A68108700A75B9A /* Images.xcassets */,
46
+ 761780EC2CA45674006654EE /* AppDelegate.swift */,
47
+ 13B07FB61A68108700A75B9A /* Info.plist */,
48
+ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
49
+ 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
50
+ );
51
+ name = FreeraspRNExample;
52
+ sourceTree = "<group>";
53
+ };
54
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
55
+ isa = PBXGroup;
56
+ children = (
57
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
58
+ 5DCACB8F33CDC322A6C60F78 /* libPods-FreeraspRNExample.a */,
59
+ );
60
+ name = Frameworks;
61
+ sourceTree = "<group>";
62
+ };
63
+ 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
64
+ isa = PBXGroup;
65
+ children = (
66
+ );
67
+ name = Libraries;
68
+ sourceTree = "<group>";
69
+ };
70
+ 83CBB9F61A601CBA00E9B192 = {
71
+ isa = PBXGroup;
72
+ children = (
73
+ 13B07FAE1A68108700A75B9A /* FreeraspRNExample */,
74
+ 832341AE1AAA6A7D00B99B32 /* Libraries */,
75
+ 83CBBA001A601CBA00E9B192 /* Products */,
76
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */,
77
+ BBD78D7AC51CEA395F1C20DB /* Pods */,
78
+ );
79
+ indentWidth = 2;
80
+ sourceTree = "<group>";
81
+ tabWidth = 2;
82
+ usesTabs = 0;
83
+ };
84
+ 83CBBA001A601CBA00E9B192 /* Products */ = {
85
+ isa = PBXGroup;
86
+ children = (
87
+ 13B07F961A680F5B00A75B9A /* FreeraspRNExample.app */,
88
+ );
89
+ name = Products;
90
+ sourceTree = "<group>";
91
+ };
92
+ BBD78D7AC51CEA395F1C20DB /* Pods */ = {
93
+ isa = PBXGroup;
94
+ children = (
95
+ 3B4392A12AC88292D35C810B /* Pods-FreeraspRNExample.debug.xcconfig */,
96
+ 5709B34CF0A7D63546082F79 /* Pods-FreeraspRNExample.release.xcconfig */,
97
+ );
98
+ path = Pods;
99
+ sourceTree = "<group>";
100
+ };
101
+ /* End PBXGroup section */
102
+
103
+ /* Begin PBXNativeTarget section */
104
+ 13B07F861A680F5B00A75B9A /* FreeraspRNExample */ = {
105
+ isa = PBXNativeTarget;
106
+ buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FreeraspRNExample" */;
107
+ buildPhases = (
108
+ C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */,
109
+ 13B07F871A680F5B00A75B9A /* Sources */,
110
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */,
111
+ 13B07F8E1A680F5B00A75B9A /* Resources */,
112
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
113
+ 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */,
114
+ E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
115
+ );
116
+ buildRules = (
117
+ );
118
+ dependencies = (
119
+ );
120
+ name = FreeraspRNExample;
121
+ productName = FreeraspRNExample;
122
+ productReference = 13B07F961A680F5B00A75B9A /* FreeraspRNExample.app */;
123
+ productType = "com.apple.product-type.application";
124
+ };
125
+ /* End PBXNativeTarget section */
126
+
127
+ /* Begin PBXProject section */
128
+ 83CBB9F71A601CBA00E9B192 /* Project object */ = {
129
+ isa = PBXProject;
130
+ attributes = {
131
+ LastUpgradeCheck = 1210;
132
+ TargetAttributes = {
133
+ 13B07F861A680F5B00A75B9A = {
134
+ LastSwiftMigration = 1120;
135
+ };
136
+ };
137
+ };
138
+ buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FreeraspRNExample" */;
139
+ compatibilityVersion = "Xcode 12.0";
140
+ developmentRegion = en;
141
+ hasScannedForEncodings = 0;
142
+ knownRegions = (
143
+ en,
144
+ Base,
145
+ );
146
+ mainGroup = 83CBB9F61A601CBA00E9B192;
147
+ productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
148
+ projectDirPath = "";
149
+ projectRoot = "";
150
+ targets = (
151
+ 13B07F861A680F5B00A75B9A /* FreeraspRNExample */,
152
+ );
153
+ };
154
+ /* End PBXProject section */
155
+
156
+ /* Begin PBXResourcesBuildPhase section */
157
+ 13B07F8E1A680F5B00A75B9A /* Resources */ = {
158
+ isa = PBXResourcesBuildPhase;
159
+ buildActionMask = 2147483647;
160
+ files = (
161
+ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
162
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
163
+ B1EB9AB7744AD93A8B6158B0 /* PrivacyInfo.xcprivacy in Resources */,
164
+ );
165
+ runOnlyForDeploymentPostprocessing = 0;
166
+ };
167
+ /* End PBXResourcesBuildPhase section */
168
+
169
+ /* Begin PBXShellScriptBuildPhase section */
170
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
171
+ isa = PBXShellScriptBuildPhase;
172
+ buildActionMask = 2147483647;
173
+ files = (
174
+ );
175
+ inputPaths = (
176
+ "$(SRCROOT)/.xcode.env.local",
177
+ "$(SRCROOT)/.xcode.env",
178
+ );
179
+ name = "Bundle React Native code and images";
180
+ outputPaths = (
181
+ );
182
+ runOnlyForDeploymentPostprocessing = 0;
183
+ shellPath = /bin/sh;
184
+ shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
185
+ };
186
+ 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
187
+ isa = PBXShellScriptBuildPhase;
188
+ buildActionMask = 2147483647;
189
+ files = (
190
+ );
191
+ inputFileListPaths = (
192
+ "${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
193
+ );
194
+ name = "[CP] Embed Pods Frameworks";
195
+ outputFileListPaths = (
196
+ "${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
197
+ );
198
+ runOnlyForDeploymentPostprocessing = 0;
199
+ shellPath = /bin/sh;
200
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-frameworks.sh\"\n";
201
+ showEnvVarsInLog = 0;
202
+ };
203
+ C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
204
+ isa = PBXShellScriptBuildPhase;
205
+ buildActionMask = 2147483647;
206
+ files = (
207
+ );
208
+ inputFileListPaths = (
209
+ );
210
+ inputPaths = (
211
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
212
+ "${PODS_ROOT}/Manifest.lock",
213
+ );
214
+ name = "[CP] Check Pods Manifest.lock";
215
+ outputFileListPaths = (
216
+ );
217
+ outputPaths = (
218
+ "$(DERIVED_FILE_DIR)/Pods-FreeraspRNExample-checkManifestLockResult.txt",
219
+ );
220
+ runOnlyForDeploymentPostprocessing = 0;
221
+ shellPath = /bin/sh;
222
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
223
+ showEnvVarsInLog = 0;
224
+ };
225
+ E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
226
+ isa = PBXShellScriptBuildPhase;
227
+ buildActionMask = 2147483647;
228
+ files = (
229
+ );
230
+ inputFileListPaths = (
231
+ "${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-resources-${CONFIGURATION}-input-files.xcfilelist",
232
+ );
233
+ name = "[CP] Copy Pods Resources";
234
+ outputFileListPaths = (
235
+ "${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-resources-${CONFIGURATION}-output-files.xcfilelist",
236
+ );
237
+ runOnlyForDeploymentPostprocessing = 0;
238
+ shellPath = /bin/sh;
239
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FreeraspRNExample/Pods-FreeraspRNExample-resources.sh\"\n";
240
+ showEnvVarsInLog = 0;
241
+ };
242
+ /* End PBXShellScriptBuildPhase section */
243
+
244
+ /* Begin PBXSourcesBuildPhase section */
245
+ 13B07F871A680F5B00A75B9A /* Sources */ = {
246
+ isa = PBXSourcesBuildPhase;
247
+ buildActionMask = 2147483647;
248
+ files = (
249
+ 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */,
250
+ );
251
+ runOnlyForDeploymentPostprocessing = 0;
252
+ };
253
+ /* End PBXSourcesBuildPhase section */
254
+
255
+ /* Begin XCBuildConfiguration section */
256
+ 13B07F941A680F5B00A75B9A /* Debug */ = {
257
+ isa = XCBuildConfiguration;
258
+ baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-FreeraspRNExample.debug.xcconfig */;
259
+ buildSettings = {
260
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
261
+ CLANG_ENABLE_MODULES = YES;
262
+ CURRENT_PROJECT_VERSION = 1;
263
+ DEVELOPMENT_TEAM = PBDDS45LQS;
264
+ ENABLE_BITCODE = NO;
265
+ INFOPLIST_FILE = FreeraspRNExample/Info.plist;
266
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
267
+ LD_RUNPATH_SEARCH_PATHS = (
268
+ "$(inherited)",
269
+ "@executable_path/Frameworks",
270
+ );
271
+ MARKETING_VERSION = 1.0;
272
+ OTHER_LDFLAGS = (
273
+ "$(inherited)",
274
+ "-ObjC",
275
+ "-lc++",
276
+ );
277
+ PRODUCT_BUNDLE_IDENTIFIER = com.freerasp.rn.example;
278
+ PRODUCT_NAME = FreeraspRNExample;
279
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
280
+ SWIFT_VERSION = 5.0;
281
+ VERSIONING_SYSTEM = "apple-generic";
282
+ };
283
+ name = Debug;
284
+ };
285
+ 13B07F951A680F5B00A75B9A /* Release */ = {
286
+ isa = XCBuildConfiguration;
287
+ baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-FreeraspRNExample.release.xcconfig */;
288
+ buildSettings = {
289
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
290
+ CLANG_ENABLE_MODULES = YES;
291
+ CURRENT_PROJECT_VERSION = 1;
292
+ DEVELOPMENT_TEAM = PBDDS45LQS;
293
+ INFOPLIST_FILE = FreeraspRNExample/Info.plist;
294
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
295
+ LD_RUNPATH_SEARCH_PATHS = (
296
+ "$(inherited)",
297
+ "@executable_path/Frameworks",
298
+ );
299
+ MARKETING_VERSION = 1.0;
300
+ OTHER_LDFLAGS = (
301
+ "$(inherited)",
302
+ "-ObjC",
303
+ "-lc++",
304
+ );
305
+ PRODUCT_BUNDLE_IDENTIFIER = com.freerasp.rn.example;
306
+ PRODUCT_NAME = FreeraspRNExample;
307
+ SWIFT_VERSION = 5.0;
308
+ VERSIONING_SYSTEM = "apple-generic";
309
+ };
310
+ name = Release;
311
+ };
312
+ 83CBBA201A601CBA00E9B192 /* Debug */ = {
313
+ isa = XCBuildConfiguration;
314
+ buildSettings = {
315
+ ALWAYS_SEARCH_USER_PATHS = NO;
316
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
317
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
318
+ CLANG_CXX_LIBRARY = "libc++";
319
+ CLANG_ENABLE_MODULES = YES;
320
+ CLANG_ENABLE_OBJC_ARC = YES;
321
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
322
+ CLANG_WARN_BOOL_CONVERSION = YES;
323
+ CLANG_WARN_COMMA = YES;
324
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
325
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
326
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
327
+ CLANG_WARN_EMPTY_BODY = YES;
328
+ CLANG_WARN_ENUM_CONVERSION = YES;
329
+ CLANG_WARN_INFINITE_RECURSION = YES;
330
+ CLANG_WARN_INT_CONVERSION = YES;
331
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
332
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
333
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
334
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
335
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
336
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
337
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
338
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
339
+ CLANG_WARN_UNREACHABLE_CODE = YES;
340
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
341
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
342
+ COPY_PHASE_STRIP = NO;
343
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
344
+ ENABLE_TESTABILITY = YES;
345
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
346
+ GCC_C_LANGUAGE_STANDARD = gnu99;
347
+ GCC_DYNAMIC_NO_PIC = NO;
348
+ GCC_NO_COMMON_BLOCKS = YES;
349
+ GCC_OPTIMIZATION_LEVEL = 0;
350
+ GCC_PREPROCESSOR_DEFINITIONS = (
351
+ "DEBUG=1",
352
+ "$(inherited)",
353
+ );
354
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
355
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
356
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
357
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
358
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
359
+ GCC_WARN_UNUSED_FUNCTION = YES;
360
+ GCC_WARN_UNUSED_VARIABLE = YES;
361
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
362
+ LD_RUNPATH_SEARCH_PATHS = (
363
+ /usr/lib/swift,
364
+ "$(inherited)",
365
+ );
366
+ LIBRARY_SEARCH_PATHS = (
367
+ "\"$(SDKROOT)/usr/lib/swift\"",
368
+ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
369
+ "\"$(inherited)\"",
370
+ );
371
+ MTL_ENABLE_DEBUG_INFO = YES;
372
+ ONLY_ACTIVE_ARCH = YES;
373
+ OTHER_CPLUSPLUSFLAGS = (
374
+ "$(OTHER_CFLAGS)",
375
+ "-DFOLLY_NO_CONFIG",
376
+ "-DFOLLY_MOBILE=1",
377
+ "-DFOLLY_USE_LIBCPP=1",
378
+ "-DFOLLY_CFG_NO_COROUTINES=1",
379
+ "-DFOLLY_HAVE_CLOCK_GETTIME=1",
380
+ );
381
+ OTHER_LDFLAGS = (
382
+ "$(inherited)",
383
+ " ",
384
+ );
385
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
386
+ SDKROOT = iphoneos;
387
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
388
+ USE_HERMES = true;
389
+ };
390
+ name = Debug;
391
+ };
392
+ 83CBBA211A601CBA00E9B192 /* Release */ = {
393
+ isa = XCBuildConfiguration;
394
+ buildSettings = {
395
+ ALWAYS_SEARCH_USER_PATHS = NO;
396
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
397
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
398
+ CLANG_CXX_LIBRARY = "libc++";
399
+ CLANG_ENABLE_MODULES = YES;
400
+ CLANG_ENABLE_OBJC_ARC = YES;
401
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
402
+ CLANG_WARN_BOOL_CONVERSION = YES;
403
+ CLANG_WARN_COMMA = YES;
404
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
405
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
406
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
407
+ CLANG_WARN_EMPTY_BODY = YES;
408
+ CLANG_WARN_ENUM_CONVERSION = YES;
409
+ CLANG_WARN_INFINITE_RECURSION = YES;
410
+ CLANG_WARN_INT_CONVERSION = YES;
411
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
412
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
413
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
414
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
415
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
416
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
417
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
418
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
419
+ CLANG_WARN_UNREACHABLE_CODE = YES;
420
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
421
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
422
+ COPY_PHASE_STRIP = YES;
423
+ ENABLE_NS_ASSERTIONS = NO;
424
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
425
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
426
+ GCC_C_LANGUAGE_STANDARD = gnu99;
427
+ GCC_NO_COMMON_BLOCKS = YES;
428
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
429
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
430
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
431
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
432
+ GCC_WARN_UNUSED_FUNCTION = YES;
433
+ GCC_WARN_UNUSED_VARIABLE = YES;
434
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
435
+ LD_RUNPATH_SEARCH_PATHS = (
436
+ /usr/lib/swift,
437
+ "$(inherited)",
438
+ );
439
+ LIBRARY_SEARCH_PATHS = (
440
+ "\"$(SDKROOT)/usr/lib/swift\"",
441
+ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
442
+ "\"$(inherited)\"",
443
+ );
444
+ MTL_ENABLE_DEBUG_INFO = NO;
445
+ OTHER_CPLUSPLUSFLAGS = (
446
+ "$(OTHER_CFLAGS)",
447
+ "-DFOLLY_NO_CONFIG",
448
+ "-DFOLLY_MOBILE=1",
449
+ "-DFOLLY_USE_LIBCPP=1",
450
+ "-DFOLLY_CFG_NO_COROUTINES=1",
451
+ "-DFOLLY_HAVE_CLOCK_GETTIME=1",
452
+ );
453
+ OTHER_LDFLAGS = (
454
+ "$(inherited)",
455
+ " ",
456
+ );
457
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
458
+ SDKROOT = iphoneos;
459
+ USE_HERMES = true;
460
+ VALIDATE_PRODUCT = YES;
461
+ };
462
+ name = Release;
463
+ };
464
+ /* End XCBuildConfiguration section */
465
+
466
+ /* Begin XCConfigurationList section */
467
+ 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FreeraspRNExample" */ = {
468
+ isa = XCConfigurationList;
469
+ buildConfigurations = (
470
+ 13B07F941A680F5B00A75B9A /* Debug */,
471
+ 13B07F951A680F5B00A75B9A /* Release */,
472
+ );
473
+ defaultConfigurationIsVisible = 0;
474
+ defaultConfigurationName = Release;
475
+ };
476
+ 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FreeraspRNExample" */ = {
477
+ isa = XCConfigurationList;
478
+ buildConfigurations = (
479
+ 83CBBA201A601CBA00E9B192 /* Debug */,
480
+ 83CBBA211A601CBA00E9B192 /* Release */,
481
+ );
482
+ defaultConfigurationIsVisible = 0;
483
+ defaultConfigurationName = Release;
484
+ };
485
+ /* End XCConfigurationList section */
486
+ };
487
+ rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
488
+ }
@@ -15,9 +15,9 @@
15
15
  <BuildableReference
16
16
  BuildableIdentifier = "primary"
17
17
  BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "FreeraspReactNativeExample.app"
19
- BlueprintName = "FreeraspReactNativeExample"
20
- ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
18
+ BuildableName = "FreeraspRNExample.app"
19
+ BlueprintName = "FreeraspRNExample"
20
+ ReferencedContainer = "container:FreeraspRNExample.xcodeproj">
21
21
  </BuildableReference>
22
22
  </BuildActionEntry>
23
23
  </BuildActionEntries>
@@ -33,9 +33,9 @@
33
33
  <BuildableReference
34
34
  BuildableIdentifier = "primary"
35
35
  BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "FreeraspReactNativeExampleTests.xctest"
37
- BlueprintName = "FreeraspReactNativeExampleTests"
38
- ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
36
+ BuildableName = "FreeraspRNExampleTests.xctest"
37
+ BlueprintName = "FreeraspRNExampleTests"
38
+ ReferencedContainer = "container:FreeraspRNExample.xcodeproj">
39
39
  </BuildableReference>
40
40
  </TestableReference>
41
41
  </Testables>
@@ -55,9 +55,9 @@
55
55
  <BuildableReference
56
56
  BuildableIdentifier = "primary"
57
57
  BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "FreeraspReactNativeExample.app"
59
- BlueprintName = "FreeraspReactNativeExample"
60
- ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
58
+ BuildableName = "FreeraspRNExample.app"
59
+ BlueprintName = "FreeraspRNExample"
60
+ ReferencedContainer = "container:FreeraspRNExample.xcodeproj">
61
61
  </BuildableReference>
62
62
  </BuildableProductRunnable>
63
63
  </LaunchAction>
@@ -72,9 +72,9 @@
72
72
  <BuildableReference
73
73
  BuildableIdentifier = "primary"
74
74
  BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "FreeraspReactNativeExample.app"
76
- BlueprintName = "FreeraspReactNativeExample"
77
- ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
75
+ BuildableName = "FreeraspRNExample.app"
76
+ BlueprintName = "FreeraspRNExample"
77
+ ReferencedContainer = "container:FreeraspRNExample.xcodeproj">
78
78
  </BuildableReference>
79
79
  </BuildableProductRunnable>
80
80
  </ProfileAction>
@@ -2,7 +2,7 @@
2
2
  <Workspace
3
3
  version = "1.0">
4
4
  <FileRef
5
- location = "group:FreeraspReactNativeExample.xcodeproj">
5
+ location = "group:FreeraspRNExample.xcodeproj">
6
6
  </FileRef>
7
7
  <FileRef
8
8
  location = "group:Pods/Pods.xcodeproj">
@@ -1,48 +1,35 @@
1
- require_relative '../node_modules/react-native/scripts/react_native_pods'
2
- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
1
+ # Resolve react_native_pods.rb with node to allow for hoisting
2
+ require Pod::Executable.execute_command('node', ['-p',
3
+ 'require.resolve(
4
+ "react-native/scripts/react_native_pods.rb",
5
+ {paths: [process.argv[1]]},
6
+ )', __dir__]).strip
3
7
 
4
- platform :ios, '12.4'
5
- install! 'cocoapods', :deterministic_uuids => false
8
+ platform :ios, min_ios_version_supported
9
+ prepare_react_native_project!
6
10
 
7
- target 'FreeraspReactNativeExample' do
8
- config = use_native_modules!
11
+ linkage = ENV['USE_FRAMEWORKS']
12
+ if linkage != nil
13
+ Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
14
+ use_frameworks! :linkage => linkage.to_sym
15
+ end
9
16
 
10
- # Flags change depending on the env values.
11
- flags = get_default_flags()
17
+ target 'FreeraspRNExample' do
18
+ config = use_native_modules!
12
19
 
13
20
  use_react_native!(
14
21
  :path => config[:reactNativePath],
15
- # Hermes is now enabled by default. Disable by setting this flag to false.
16
- # Upcoming versions of React Native may rely on get_default_flags(), but
17
- # we make it explicit here to aid in the React Native upgrade process.
18
- :hermes_enabled => true,
19
- :fabric_enabled => flags[:fabric_enabled],
20
- # Enables Flipper.
21
- #
22
- # Note that if you have use_frameworks! enabled, Flipper will not work and
23
- # you should disable the next line.
24
- :flipper_configuration => FlipperConfiguration.enabled,
25
22
  # An absolute path to your application root.
26
23
  :app_path => "#{Pod::Config.instance.installation_root}/.."
27
24
  )
28
25
 
29
- target 'FreeraspReactNativeExampleTests' do
30
- inherit! :complete
31
- # Pods for testing
32
- end
33
-
34
26
  post_install do |installer|
27
+ # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
35
28
  react_native_post_install(
36
29
  installer,
37
- # Set `mac_catalyst_enabled` to `true` in order to apply patches
38
- # necessary for Mac Catalyst builds
39
- :mac_catalyst_enabled => false
30
+ config[:reactNativePath],
31
+ :mac_catalyst_enabled => false,
32
+ # :ccache_enabled => true
40
33
  )
41
- installer.pods_project.targets.each do |target|
42
- target.build_configurations.each do |config|
43
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
44
- end
45
- end
46
- __apply_Xcode_12_5_M1_post_install_workaround(installer)
47
34
  end
48
35
  end
@@ -1,6 +1,7 @@
1
+ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
1
2
  const path = require('path');
3
+ const blacklist = require('metro-config/src/defaults/exclusionList');
2
4
  const escape = require('escape-string-regexp');
3
- const exclusionList = require('metro-config/src/defaults/exclusionList');
4
5
  const pak = require('../package.json');
5
6
 
6
7
  const root = path.resolve(__dirname, '..');
@@ -9,14 +10,19 @@ const modules = Object.keys({
9
10
  ...pak.peerDependencies,
10
11
  });
11
12
 
12
- module.exports = {
13
- projectRoot: __dirname,
13
+ /**
14
+ * Metro configuration
15
+ * https://reactnative.dev/docs/metro
16
+ *
17
+ * @type {import('metro-config').MetroConfig}
18
+ */
19
+ const config = {
14
20
  watchFolders: [root],
15
21
 
16
22
  // We need to make sure that only one version is loaded for peerDependencies
17
- // So we block them at the root, and alias them to the versions in example's node_modules
23
+ // So we blacklist them at the root, and alias them to the versions in example's node_modules
18
24
  resolver: {
19
- blacklistRE: exclusionList(
25
+ blacklistRE: blacklist(
20
26
  modules.map(
21
27
  (m) =>
22
28
  new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
@@ -28,13 +34,6 @@ module.exports = {
28
34
  return acc;
29
35
  }, {}),
30
36
  },
31
-
32
- transformer: {
33
- getTransformOptions: async () => ({
34
- transform: {
35
- experimentalImportSupport: false,
36
- inlineRequires: true,
37
- },
38
- }),
39
- },
40
37
  };
38
+
39
+ module.exports = mergeConfig(getDefaultConfig(__dirname), config);