freerasp-react-native 4.2.3 → 4.3.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 (194) hide show
  1. package/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Info.plist +20 -0
  2. package/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Resources/DWARF/TalsecRuntime +0 -0
  3. package/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/aarch64/TalsecRuntime.yml +4153 -0
  4. package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Info.plist +20 -0
  5. package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/DWARF/TalsecRuntime +0 -0
  6. package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/aarch64/TalsecRuntime.yml +4036 -0
  7. package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/x86_64/TalsecRuntime.yml +3951 -0
  8. package/CHANGELOG.md +69 -4
  9. package/android/build.gradle +1 -1
  10. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +45 -22
  11. package/android/src/main/java/com/freeraspreactnative/FreeraspThreatHandler.kt +39 -19
  12. package/android/src/main/java/com/freeraspreactnative/events/BaseRaspEvent.kt +7 -0
  13. package/android/src/main/java/com/freeraspreactnative/events/RaspExecutionStateEvent.kt +20 -0
  14. package/android/src/main/java/com/freeraspreactnative/events/ThreatEvent.kt +67 -0
  15. package/android/src/main/java/com/freeraspreactnative/models/RNSuspiciousAppInfo.kt +1 -0
  16. package/android/src/main/java/com/freeraspreactnative/utils/Extensions.kt +1 -0
  17. package/android/src/main/java/com/freeraspreactnative/utils/RandomGenerator.kt +18 -0
  18. package/android/src/main/java/com/freeraspreactnative/utils/Utils.kt +2 -5
  19. package/example/android/app/release/app-release.apk +0 -0
  20. package/example/android/app/release/baselineProfiles/0/app-release.dm +0 -0
  21. package/example/android/app/release/baselineProfiles/1/app-release.dm +0 -0
  22. package/example/android/app/release/output-metadata.json +37 -0
  23. package/example/android/app/src/main/AndroidManifest.xml +7 -0
  24. package/example/src/App.tsx +77 -3
  25. package/example/src/DemoApp.tsx +46 -1
  26. package/example/src/MalwareItem.tsx +4 -0
  27. package/example/src/checks.ts +3 -0
  28. package/example/src/styles.ts +2 -0
  29. package/freerasp-react-native.podspec +21 -16
  30. package/ios/FreeraspReactNative.m +4 -0
  31. package/ios/FreeraspReactNative.swift +37 -75
  32. package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
  33. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  34. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  35. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +144 -114
  36. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  37. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  38. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
  39. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +380 -281
  40. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +5 -6
  41. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +4 -4
  42. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +1 -1
  43. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  44. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +62 -22
  45. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +2 -2
  46. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +76 -164
  47. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  48. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  49. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +17 -3
  50. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  51. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +181 -146
  52. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  53. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  54. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  55. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  56. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
  57. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +380 -281
  58. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +5 -6
  59. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +4 -4
  60. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +1 -1
  61. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  62. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +62 -22
  63. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +2 -2
  64. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +76 -164
  65. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  66. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  67. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +17 -3
  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 +181 -146
  70. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  71. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  72. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +181 -146
  73. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  74. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  75. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  76. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +52 -41
  77. package/ios/models/RaspExecutionStates.swift +15 -0
  78. package/ios/models/SecurityThreat.swift +40 -0
  79. package/ios/utils/EventIdentifiers.swift +13 -0
  80. package/ios/utils/RandomGenerator.swift +12 -0
  81. package/ios/utils/Utils.swift +34 -0
  82. package/lib/commonjs/api/listeners/raspExecutionState.js +40 -0
  83. package/lib/commonjs/api/listeners/raspExecutionState.js.map +1 -0
  84. package/lib/commonjs/api/listeners/threat.js +102 -0
  85. package/lib/commonjs/api/listeners/threat.js.map +1 -0
  86. package/lib/commonjs/api/methods/native.js +43 -0
  87. package/lib/commonjs/api/methods/native.js.map +1 -0
  88. package/lib/commonjs/api/methods/reactNative.js +35 -0
  89. package/lib/commonjs/api/methods/reactNative.js.map +1 -0
  90. package/lib/commonjs/api/nativeModules.js +12 -0
  91. package/lib/commonjs/api/nativeModules.js.map +1 -0
  92. package/lib/commonjs/channels/raspExecutionState.js +36 -0
  93. package/lib/commonjs/channels/raspExecutionState.js.map +1 -0
  94. package/lib/commonjs/channels/threat.js +37 -0
  95. package/lib/commonjs/channels/threat.js.map +1 -0
  96. package/lib/commonjs/index.js +39 -188
  97. package/lib/commonjs/index.js.map +1 -1
  98. package/lib/commonjs/internal.js +6 -0
  99. package/lib/commonjs/internal.js.map +1 -0
  100. package/lib/commonjs/models/raspExecutionState.js +17 -0
  101. package/lib/commonjs/models/raspExecutionState.js.map +1 -0
  102. package/lib/commonjs/{threat.js → models/threat.js} +4 -1
  103. package/lib/commonjs/models/threat.js.map +1 -0
  104. package/lib/commonjs/types/types.js.map +1 -0
  105. package/lib/commonjs/utils/malware.js +28 -0
  106. package/lib/commonjs/utils/malware.js.map +1 -0
  107. package/lib/commonjs/utils/utils.js +21 -0
  108. package/lib/commonjs/utils/utils.js.map +1 -0
  109. package/lib/module/api/listeners/raspExecutionState.js +32 -0
  110. package/lib/module/api/listeners/raspExecutionState.js.map +1 -0
  111. package/lib/module/api/listeners/threat.js +94 -0
  112. package/lib/module/api/listeners/threat.js.map +1 -0
  113. package/lib/module/api/methods/native.js +30 -0
  114. package/lib/module/api/methods/native.js.map +1 -0
  115. package/lib/module/api/methods/reactNative.js +28 -0
  116. package/lib/module/api/methods/reactNative.js.map +1 -0
  117. package/lib/module/api/nativeModules.js +5 -0
  118. package/lib/module/api/nativeModules.js.map +1 -0
  119. package/lib/module/channels/raspExecutionState.js +27 -0
  120. package/lib/module/channels/raspExecutionState.js.map +1 -0
  121. package/lib/module/channels/threat.js +28 -0
  122. package/lib/module/channels/threat.js.map +1 -0
  123. package/lib/module/index.js +5 -172
  124. package/lib/module/index.js.map +1 -1
  125. package/lib/module/internal.js +3 -0
  126. package/lib/module/internal.js.map +1 -0
  127. package/lib/module/models/raspExecutionState.js +10 -0
  128. package/lib/module/models/raspExecutionState.js.map +1 -0
  129. package/lib/module/{threat.js → models/threat.js} +4 -1
  130. package/lib/module/models/threat.js.map +1 -0
  131. package/lib/module/types/types.js.map +1 -0
  132. package/lib/module/utils/malware.js +20 -0
  133. package/lib/module/utils/malware.js.map +1 -0
  134. package/lib/module/utils/utils.js +12 -0
  135. package/lib/module/utils/utils.js.map +1 -0
  136. package/lib/typescript/src/api/listeners/raspExecutionState.d.ts +4 -0
  137. package/lib/typescript/src/api/listeners/raspExecutionState.d.ts.map +1 -0
  138. package/lib/typescript/src/api/listeners/threat.d.ts +4 -0
  139. package/lib/typescript/src/api/listeners/threat.d.ts.map +1 -0
  140. package/lib/typescript/src/api/methods/native.d.ts +9 -0
  141. package/lib/typescript/src/api/methods/native.d.ts.map +1 -0
  142. package/lib/typescript/src/api/methods/reactNative.d.ts +3 -0
  143. package/lib/typescript/src/api/methods/reactNative.d.ts.map +1 -0
  144. package/lib/typescript/src/api/nativeModules.d.ts +2 -0
  145. package/lib/typescript/src/api/nativeModules.d.ts.map +1 -0
  146. package/lib/typescript/src/channels/raspExecutionState.d.ts +7 -0
  147. package/lib/typescript/src/channels/raspExecutionState.d.ts.map +1 -0
  148. package/lib/typescript/src/channels/threat.d.ts +8 -0
  149. package/lib/typescript/src/channels/threat.d.ts.map +1 -0
  150. package/lib/typescript/src/index.d.ts +5 -13
  151. package/lib/typescript/src/index.d.ts.map +1 -1
  152. package/lib/typescript/src/internal.d.ts +2 -0
  153. package/lib/typescript/src/internal.d.ts.map +1 -0
  154. package/lib/typescript/src/models/raspExecutionState.d.ts +7 -0
  155. package/lib/typescript/src/models/raspExecutionState.d.ts.map +1 -0
  156. package/lib/typescript/src/{threat.d.ts → models/threat.d.ts} +3 -0
  157. package/lib/typescript/src/models/threat.d.ts.map +1 -0
  158. package/lib/typescript/src/{types.d.ts → types/types.d.ts} +12 -1
  159. package/lib/typescript/src/types/types.d.ts.map +1 -0
  160. package/lib/typescript/src/utils/malware.d.ts +4 -0
  161. package/lib/typescript/src/utils/malware.d.ts.map +1 -0
  162. package/lib/typescript/src/{utils.d.ts → utils/utils.d.ts} +1 -0
  163. package/lib/typescript/src/utils/utils.d.ts.map +1 -0
  164. package/package.json +1 -1
  165. package/plugin/build/index.d.ts +0 -1
  166. package/src/api/listeners/raspExecutionState.ts +42 -0
  167. package/src/api/listeners/threat.ts +101 -0
  168. package/src/api/methods/native.ts +39 -0
  169. package/src/api/methods/reactNative.ts +42 -0
  170. package/src/api/nativeModules.ts +3 -0
  171. package/src/channels/raspExecutionState.ts +35 -0
  172. package/src/channels/threat.ts +35 -0
  173. package/src/index.tsx +5 -209
  174. package/src/internal.ts +2 -0
  175. package/src/models/raspExecutionState.ts +13 -0
  176. package/src/{threat.ts → models/threat.ts} +6 -0
  177. package/src/{types.ts → types/types.ts} +12 -1
  178. package/src/utils/malware.ts +24 -0
  179. package/src/utils/utils.ts +14 -0
  180. package/android/src/main/java/com/freeraspreactnative/Threat.kt +0 -57
  181. package/lib/commonjs/threat.js.map +0 -1
  182. package/lib/commonjs/types.js.map +0 -1
  183. package/lib/commonjs/utils.js +0 -16
  184. package/lib/commonjs/utils.js.map +0 -1
  185. package/lib/module/threat.js.map +0 -1
  186. package/lib/module/types.js.map +0 -1
  187. package/lib/module/utils.js +0 -8
  188. package/lib/module/utils.js.map +0 -1
  189. package/lib/typescript/src/threat.d.ts.map +0 -1
  190. package/lib/typescript/src/types.d.ts.map +0 -1
  191. package/lib/typescript/src/utils.d.ts.map +0 -1
  192. package/src/utils.ts +0 -9
  193. /package/lib/commonjs/{types.js → types/types.js} +0 -0
  194. /package/lib/module/{types.js → types/types.js} +0 -0
@@ -16,6 +16,9 @@ import zlib
16
16
  public protocol SecurityThreatHandler {
17
17
  func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
18
18
  }
19
+ public protocol RaspExecutionState {
20
+ func onAllChecksFinished()
21
+ }
19
22
  @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
20
23
  @objc deinit
21
24
  }
@@ -16,6 +16,9 @@ import zlib
16
16
  public protocol SecurityThreatHandler {
17
17
  func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
18
18
  }
19
+ public protocol RaspExecutionState {
20
+ func onAllChecksFinished()
21
+ }
19
22
  @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
20
23
  @objc deinit
21
24
  }
@@ -16,7 +16,7 @@
16
16
  #include <unistd.h>
17
17
  #include <string.h>
18
18
 
19
- struct eAjAaaVUOAox {
19
+ struct mYEvJMYWRCFP {
20
20
  char *memory;
21
21
  size_t size;
22
22
  CURLcode ret;
@@ -298,7 +298,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
298
298
 
299
299
  #if defined(__OBJC__)
300
300
 
301
- SWIFT_EXTERN void __vJQdQwsOGFApyVrAWGMwrjm(void);
301
+ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
302
302
 
303
303
  #endif
304
304
  #if __has_attribute(external_source_symbol)
@@ -608,7 +608,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
608
608
 
609
609
  #if defined(__OBJC__)
610
610
 
611
- SWIFT_EXTERN void __vJQdQwsOGFApyVrAWGMwrjm(void);
611
+ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
612
612
 
613
613
  #endif
614
614
  #if __has_attribute(external_source_symbol)