freerasp-react-native 1.0.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 (177) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +413 -0
  3. package/android/build.gradle +87 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +4 -0
  6. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +108 -0
  7. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativePackage.kt +17 -0
  8. package/example/Gemfile +6 -0
  9. package/example/android/app/_BUCK +55 -0
  10. package/example/android/app/build.gradle +313 -0
  11. package/example/android/app/build_defs.bzl +19 -0
  12. package/example/android/app/debug.keystore +0 -0
  13. package/example/android/app/proguard-rules.pro +10 -0
  14. package/example/android/app/src/debug/AndroidManifest.xml +13 -0
  15. package/example/android/app/src/debug/java/com/freeraspreactnativeexample/ReactNativeFlipper.java +73 -0
  16. package/example/android/app/src/main/AndroidManifest.xml +26 -0
  17. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainActivity.java +48 -0
  18. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainApplication.java +91 -0
  19. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/MainApplicationReactNativeHost.java +116 -0
  20. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry.java +36 -0
  21. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
  22. package/example/android/app/src/main/jni/CMakeLists.txt +7 -0
  23. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -0
  24. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
  25. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
  26. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
  27. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -0
  28. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
  29. package/example/android/app/src/main/jni/OnLoad.cpp +11 -0
  30. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  31. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  32. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  33. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  34. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  35. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  36. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  37. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  38. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  39. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  40. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  41. package/example/android/app/src/main/res/values/strings.xml +3 -0
  42. package/example/android/app/src/main/res/values/styles.xml +9 -0
  43. package/example/android/build.gradle +53 -0
  44. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  45. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  46. package/example/android/gradle.properties +40 -0
  47. package/example/android/gradlew +234 -0
  48. package/example/android/gradlew.bat +89 -0
  49. package/example/android/settings.gradle +11 -0
  50. package/example/app.json +4 -0
  51. package/example/babel.config.js +17 -0
  52. package/example/index.js +5 -0
  53. package/example/ios/File.swift +6 -0
  54. package/example/ios/FreeraspReactNativeExample/AppDelegate.h +8 -0
  55. package/example/ios/FreeraspReactNativeExample/AppDelegate.mm +133 -0
  56. package/example/ios/FreeraspReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  57. package/example/ios/FreeraspReactNativeExample/Images.xcassets/Contents.json +6 -0
  58. package/example/ios/FreeraspReactNativeExample/Info.plist +55 -0
  59. package/example/ios/FreeraspReactNativeExample/LaunchScreen.storyboard +47 -0
  60. package/example/ios/FreeraspReactNativeExample/main.m +10 -0
  61. package/example/ios/FreeraspReactNativeExample-Bridging-Header.h +3 -0
  62. package/example/ios/FreeraspReactNativeExample.xcodeproj/project.pbxproj +712 -0
  63. package/example/ios/FreeraspReactNativeExample.xcodeproj/xcshareddata/xcschemes/FreeraspReactNativeExample.xcscheme +106 -0
  64. package/example/ios/FreeraspReactNativeExample.xcworkspace/contents.xcworkspacedata +10 -0
  65. package/example/ios/FreeraspReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  66. package/example/ios/FreeraspReactNativeExampleTests/FreeraspReactNativeExampleTests.m +66 -0
  67. package/example/ios/FreeraspReactNativeExampleTests/Info.plist +24 -0
  68. package/example/ios/Podfile +43 -0
  69. package/example/ios/Podfile.lock +584 -0
  70. package/example/metro.config.js +40 -0
  71. package/example/package.json +21 -0
  72. package/example/react-native.config.js +10 -0
  73. package/example/src/App.tsx +89 -0
  74. package/example/yarn.lock +4154 -0
  75. package/freerasp-react-native.podspec +36 -0
  76. package/ios/Debug/TalsecRuntime.xcframework/Info.plist +40 -0
  77. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  78. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  79. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -0
  80. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  81. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -0
  82. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -0
  83. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -0
  84. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  85. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -0
  86. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -0
  87. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  88. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -0
  89. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  90. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  91. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  92. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -0
  93. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  94. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  95. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -0
  96. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -0
  97. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  98. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  99. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -0
  100. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  101. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -0
  102. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -0
  103. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -0
  104. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  105. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -0
  106. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -0
  107. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  108. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -0
  109. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  110. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  111. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  112. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
  113. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  114. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -0
  115. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  116. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  117. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -0
  118. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -0
  119. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -0
  120. package/ios/FreeraspReactNative-Bridging-Header.h +3 -0
  121. package/ios/FreeraspReactNative.m +14 -0
  122. package/ios/FreeraspReactNative.swift +53 -0
  123. package/ios/FreeraspReactNative.xcodeproj/project.pbxproj +291 -0
  124. package/ios/FreeraspReactNative.xcodeproj/xcshareddata/xcschemes/FreeraspReactNative.xcscheme +67 -0
  125. package/ios/Release/TalsecRuntime.xcframework/Info.plist +40 -0
  126. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  127. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  128. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -0
  129. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  130. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -0
  131. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -0
  132. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -0
  133. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  134. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -0
  135. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -0
  136. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  137. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -0
  138. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  139. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  140. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  141. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -0
  142. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  143. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  144. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -0
  145. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -0
  146. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  147. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  148. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -0
  149. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  150. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -0
  151. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -0
  152. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -0
  153. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  154. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -0
  155. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -0
  156. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  157. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -0
  158. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  159. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  160. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  161. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
  162. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  163. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -0
  164. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  165. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  166. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -0
  167. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -0
  168. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -0
  169. package/ios/TalsecRuntime.xcframework +1 -0
  170. package/lib/commonjs/index.js +47 -0
  171. package/lib/commonjs/index.js.map +1 -0
  172. package/lib/module/index.js +36 -0
  173. package/lib/module/index.js.map +1 -0
  174. package/lib/typescript/index.d.ts +36 -0
  175. package/lib/typescript/index.d.ts.map +1 -0
  176. package/package.json +161 -0
  177. package/src/index.tsx +90 -0
@@ -0,0 +1,106 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "1210"
4
+ version = "1.7">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <PreActions>
9
+ <ExecutionAction
10
+ ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
11
+ <ActionContent
12
+ title = "Run Script"
13
+ scriptText = "cd &quot;${SRCROOT}/../../ios&quot;&#10;if [ &quot;${CONFIGURATION}&quot; = &quot;Release&quot; ]; then&#10; rm -rf ./TalsecRuntime.xcframework&#10; ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework&#10;else&#10; rm -rf ./TalsecRuntime.xcframework&#10; ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework&#10;fi &#10;">
14
+ <EnvironmentBuildable>
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+ BuildableName = "FreeraspReactNativeExample.app"
19
+ BlueprintName = "FreeraspReactNativeExample"
20
+ ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
21
+ </BuildableReference>
22
+ </EnvironmentBuildable>
23
+ </ActionContent>
24
+ </ExecutionAction>
25
+ </PreActions>
26
+ <BuildActionEntries>
27
+ <BuildActionEntry
28
+ buildForTesting = "YES"
29
+ buildForRunning = "YES"
30
+ buildForProfiling = "YES"
31
+ buildForArchiving = "YES"
32
+ buildForAnalyzing = "YES">
33
+ <BuildableReference
34
+ BuildableIdentifier = "primary"
35
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
36
+ BuildableName = "FreeraspReactNativeExample.app"
37
+ BlueprintName = "FreeraspReactNativeExample"
38
+ ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
39
+ </BuildableReference>
40
+ </BuildActionEntry>
41
+ </BuildActionEntries>
42
+ </BuildAction>
43
+ <TestAction
44
+ buildConfiguration = "Debug"
45
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
+ shouldUseLaunchSchemeArgsEnv = "YES">
48
+ <Testables>
49
+ <TestableReference
50
+ skipped = "NO">
51
+ <BuildableReference
52
+ BuildableIdentifier = "primary"
53
+ BlueprintIdentifier = "00E356ED1AD99517003FC87E"
54
+ BuildableName = "FreeraspReactNativeExampleTests.xctest"
55
+ BlueprintName = "FreeraspReactNativeExampleTests"
56
+ ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
57
+ </BuildableReference>
58
+ </TestableReference>
59
+ </Testables>
60
+ </TestAction>
61
+ <LaunchAction
62
+ buildConfiguration = "Debug"
63
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
64
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
65
+ launchStyle = "0"
66
+ useCustomWorkingDirectory = "NO"
67
+ ignoresPersistentStateOnLaunch = "NO"
68
+ debugDocumentVersioning = "YES"
69
+ debugServiceExtension = "internal"
70
+ allowLocationSimulation = "YES">
71
+ <BuildableProductRunnable
72
+ runnableDebuggingMode = "0">
73
+ <BuildableReference
74
+ BuildableIdentifier = "primary"
75
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
76
+ BuildableName = "FreeraspReactNativeExample.app"
77
+ BlueprintName = "FreeraspReactNativeExample"
78
+ ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
79
+ </BuildableReference>
80
+ </BuildableProductRunnable>
81
+ </LaunchAction>
82
+ <ProfileAction
83
+ buildConfiguration = "Release"
84
+ shouldUseLaunchSchemeArgsEnv = "YES"
85
+ savedToolIdentifier = ""
86
+ useCustomWorkingDirectory = "NO"
87
+ debugDocumentVersioning = "YES">
88
+ <BuildableProductRunnable
89
+ runnableDebuggingMode = "0">
90
+ <BuildableReference
91
+ BuildableIdentifier = "primary"
92
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
93
+ BuildableName = "FreeraspReactNativeExample.app"
94
+ BlueprintName = "FreeraspReactNativeExample"
95
+ ReferencedContainer = "container:FreeraspReactNativeExample.xcodeproj">
96
+ </BuildableReference>
97
+ </BuildableProductRunnable>
98
+ </ProfileAction>
99
+ <AnalyzeAction
100
+ buildConfiguration = "Debug">
101
+ </AnalyzeAction>
102
+ <ArchiveAction
103
+ buildConfiguration = "Release"
104
+ revealArchiveInOrganizer = "YES">
105
+ </ArchiveAction>
106
+ </Scheme>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "group:FreeraspReactNativeExample.xcodeproj">
6
+ </FileRef>
7
+ <FileRef
8
+ location = "group:Pods/Pods.xcodeproj">
9
+ </FileRef>
10
+ </Workspace>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,66 @@
1
+ #import <UIKit/UIKit.h>
2
+ #import <XCTest/XCTest.h>
3
+
4
+ #import <React/RCTLog.h>
5
+ #import <React/RCTRootView.h>
6
+
7
+ #define TIMEOUT_SECONDS 600
8
+ #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
+
10
+ @interface FreeraspReactNativeExampleTests : XCTestCase
11
+
12
+ @end
13
+
14
+ @implementation FreeraspReactNativeExampleTests
15
+
16
+ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17
+ {
18
+ if (test(view)) {
19
+ return YES;
20
+ }
21
+ for (UIView *subview in [view subviews]) {
22
+ if ([self findSubviewInView:subview matching:test]) {
23
+ return YES;
24
+ }
25
+ }
26
+ return NO;
27
+ }
28
+
29
+ - (void)testRendersWelcomeScreen
30
+ {
31
+ UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
+ NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
+ BOOL foundElement = NO;
34
+
35
+ __block NSString *redboxError = nil;
36
+ #ifdef DEBUG
37
+ RCTSetLogFunction(
38
+ ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39
+ if (level >= RCTLogLevelError) {
40
+ redboxError = message;
41
+ }
42
+ });
43
+ #endif
44
+
45
+ while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46
+ [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
+ [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48
+
49
+ foundElement = [self findSubviewInView:vc.view
50
+ matching:^BOOL(UIView *view) {
51
+ if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52
+ return YES;
53
+ }
54
+ return NO;
55
+ }];
56
+ }
57
+
58
+ #ifdef DEBUG
59
+ RCTSetLogFunction(RCTDefaultLogFunction);
60
+ #endif
61
+
62
+ XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63
+ XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64
+ }
65
+
66
+ @end
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1,43 @@
1
+ require_relative '../node_modules/react-native/scripts/react_native_pods'
2
+ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
+
4
+ platform :ios, '12.4'
5
+ install! 'cocoapods', :deterministic_uuids => false
6
+
7
+ target 'FreeraspReactNativeExample' do
8
+ config = use_native_modules!
9
+
10
+ # Flags change depending on the env values.
11
+ flags = get_default_flags()
12
+
13
+ use_react_native!(
14
+ :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
+ # An absolute path to your application root.
26
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
27
+ )
28
+
29
+ target 'FreeraspReactNativeExampleTests' do
30
+ inherit! :complete
31
+ # Pods for testing
32
+ end
33
+
34
+ post_install do |installer|
35
+ react_native_post_install(
36
+ installer,
37
+ # Set `mac_catalyst_enabled` to `true` in order to apply patches
38
+ # necessary for Mac Catalyst builds
39
+ :mac_catalyst_enabled => false
40
+ )
41
+ __apply_Xcode_12_5_M1_post_install_workaround(installer)
42
+ end
43
+ end