freerasp-react-native 4.3.2 → 4.5.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 (100) hide show
  1. package/CHANGELOG.md +99 -1
  2. package/android/build.gradle +8 -2
  3. package/android/gradle.properties +2 -2
  4. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +87 -43
  5. package/android/src/main/java/com/freeraspreactnative/PluginThreatHandler.kt +126 -0
  6. package/android/src/main/java/com/freeraspreactnative/dispatchers/ExecutionStateDispatcher.kt +53 -0
  7. package/android/src/main/java/com/freeraspreactnative/dispatchers/ThreatDispatcher.kt +75 -0
  8. package/android/src/main/java/com/freeraspreactnative/events/ThreatEvent.kt +3 -1
  9. package/android/src/main/java/com/freeraspreactnative/interfaces/PluginExecutionStateListener.kt +7 -0
  10. package/android/src/main/java/com/freeraspreactnative/interfaces/PluginThreatListener.kt +9 -0
  11. package/example/src/App.tsx +11 -1
  12. package/example/src/DemoApp.tsx +32 -0
  13. package/example/src/checks.ts +2 -1
  14. package/freerasp-react-native.podspec +5 -1
  15. package/ios/FreeraspReactNative.m +5 -0
  16. package/ios/FreeraspReactNative.swift +39 -10
  17. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  18. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +82 -288
  19. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  20. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  21. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +7 -2
  22. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +7 -7
  23. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +4 -4
  24. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  25. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  26. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  27. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +474 -547
  28. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +6 -3
  29. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  30. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +6 -3
  31. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/PrivacyInfo.xcprivacy +8 -0
  32. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  33. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  34. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +14 -4
  35. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +7 -7
  36. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +4 -4
  37. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  38. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  39. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  40. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +475 -548
  41. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +6 -3
  42. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  43. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -3
  44. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +475 -548
  45. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +6 -3
  46. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  47. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +6 -3
  48. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/PrivacyInfo.xcprivacy +8 -0
  49. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  50. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +46 -35
  51. package/ios/dispatchers/ExecutionStateDispatcher.swift +35 -0
  52. package/ios/dispatchers/ThreatDispatcher.swift +36 -0
  53. package/ios/models/SecurityThreat.swift +2 -0
  54. package/ios/utils/EventIdentifiers.swift +2 -2
  55. package/lib/commonjs/api/listeners/raspExecutionState.js +28 -8
  56. package/lib/commonjs/api/listeners/raspExecutionState.js.map +1 -1
  57. package/lib/commonjs/api/listeners/threat.js +34 -10
  58. package/lib/commonjs/api/listeners/threat.js.map +1 -1
  59. package/lib/commonjs/api/methods/native.js +9 -1
  60. package/lib/commonjs/api/methods/native.js.map +1 -1
  61. package/lib/commonjs/api/methods/reactNative.js +13 -8
  62. package/lib/commonjs/api/methods/reactNative.js.map +1 -1
  63. package/lib/commonjs/channels/threat.js +1 -3
  64. package/lib/commonjs/channels/threat.js.map +1 -1
  65. package/lib/commonjs/models/threat.js +2 -1
  66. package/lib/commonjs/models/threat.js.map +1 -1
  67. package/lib/module/api/listeners/raspExecutionState.js +29 -9
  68. package/lib/module/api/listeners/raspExecutionState.js.map +1 -1
  69. package/lib/module/api/listeners/threat.js +35 -11
  70. package/lib/module/api/listeners/threat.js.map +1 -1
  71. package/lib/module/api/methods/native.js +6 -0
  72. package/lib/module/api/methods/native.js.map +1 -1
  73. package/lib/module/api/methods/reactNative.js +13 -7
  74. package/lib/module/api/methods/reactNative.js.map +1 -1
  75. package/lib/module/channels/threat.js +1 -3
  76. package/lib/module/channels/threat.js.map +1 -1
  77. package/lib/module/models/threat.js +2 -1
  78. package/lib/module/models/threat.js.map +1 -1
  79. package/lib/typescript/src/api/listeners/raspExecutionState.d.ts +1 -1
  80. package/lib/typescript/src/api/listeners/raspExecutionState.d.ts.map +1 -1
  81. package/lib/typescript/src/api/listeners/threat.d.ts +1 -1
  82. package/lib/typescript/src/api/listeners/threat.d.ts.map +1 -1
  83. package/lib/typescript/src/api/methods/native.d.ts +2 -0
  84. package/lib/typescript/src/api/methods/native.d.ts.map +1 -1
  85. package/lib/typescript/src/api/methods/reactNative.d.ts.map +1 -1
  86. package/lib/typescript/src/channels/threat.d.ts.map +1 -1
  87. package/lib/typescript/src/models/threat.d.ts +1 -0
  88. package/lib/typescript/src/models/threat.d.ts.map +1 -1
  89. package/lib/typescript/src/types/types.d.ts +1 -0
  90. package/lib/typescript/src/types/types.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/src/api/listeners/raspExecutionState.ts +39 -11
  93. package/src/api/listeners/threat.ts +41 -10
  94. package/src/api/methods/native.ts +8 -0
  95. package/src/api/methods/reactNative.ts +17 -8
  96. package/src/channels/threat.ts +1 -3
  97. package/src/models/threat.ts +3 -0
  98. package/src/types/types.ts +1 -0
  99. package/android/src/main/java/com/freeraspreactnative/FreeraspThreatHandler.kt +0 -103
  100. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
@@ -1,9 +1,11 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
3
- // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name TalsecRuntime
2
+ // swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
3
+ // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name TalsecRuntime
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
4
5
  import CryptoKit
5
6
  import Foundation
6
7
  import LocalAuthentication
8
+ import Network
7
9
  import TalsecRuntime.Private
8
10
  import Security
9
11
  import Swift
@@ -51,10 +53,11 @@ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Sw
51
53
  case unofficialStore
52
54
  case screenshot
53
55
  case screenRecording
56
+ case timeSpoofing
54
57
  public init?(rawValue: Swift.String)
55
58
  public typealias AllCases = [TalsecRuntime.SecurityThreat]
56
59
  public typealias RawValue = Swift.String
57
- public static var allCases: [TalsecRuntime.SecurityThreat] {
60
+ nonisolated public static var allCases: [TalsecRuntime.SecurityThreat] {
58
61
  get
59
62
  }
60
63
  public var rawValue: Swift.String {
@@ -1,9 +1,11 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
3
- // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name TalsecRuntime
2
+ // swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
3
+ // swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name TalsecRuntime
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
4
5
  import CryptoKit
5
6
  import Foundation
6
7
  import LocalAuthentication
8
+ import Network
7
9
  import TalsecRuntime.Private
8
10
  import Security
9
11
  import Swift
@@ -51,10 +53,11 @@ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Sw
51
53
  case unofficialStore
52
54
  case screenshot
53
55
  case screenRecording
56
+ case timeSpoofing
54
57
  public init?(rawValue: Swift.String)
55
58
  public typealias AllCases = [TalsecRuntime.SecurityThreat]
56
59
  public typealias RawValue = Swift.String
57
- public static var allCases: [TalsecRuntime.SecurityThreat] {
60
+ nonisolated public static var allCases: [TalsecRuntime.SecurityThreat] {
58
61
  get
59
62
  }
60
63
  public var rawValue: Swift.String {