capacitor-freerasp 2.2.1 → 2.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 (119) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/CapacitorFreerasp.podspec +1 -1
  3. package/README.md +8 -8
  4. package/android/build.gradle +1 -1
  5. package/android/proguard-rules.pro +23 -0
  6. package/android/src/main/java/com/aheaditec/freerasp/FreeraspPlugin.kt +39 -18
  7. package/android/src/main/java/com/aheaditec/freerasp/ScreenProtector.kt +24 -2
  8. package/android/src/main/java/com/aheaditec/freerasp/ThreatHandler.kt +36 -18
  9. package/android/src/main/java/com/aheaditec/freerasp/events/BaseRaspEvent.kt +7 -0
  10. package/android/src/main/java/com/aheaditec/freerasp/events/RaspExecutionStateEvent.kt +22 -0
  11. package/android/src/main/java/com/aheaditec/freerasp/events/ThreatEvent.kt +69 -0
  12. package/android/src/main/java/com/aheaditec/freerasp/models/CapSuspiciousAppInfo.kt +1 -0
  13. package/android/src/main/java/com/aheaditec/freerasp/utils/Extensions.kt +1 -0
  14. package/android/src/main/java/com/aheaditec/freerasp/utils/RandomGenerator.kt +24 -0
  15. package/android/src/main/java/com/aheaditec/freerasp/utils/Utils.kt +3 -5
  16. package/dist/esm/api/listeners/raspExecutionState.d.ts +2 -0
  17. package/dist/esm/api/listeners/raspExecutionState.js +23 -0
  18. package/dist/esm/api/listeners/raspExecutionState.js.map +1 -0
  19. package/dist/esm/api/listeners/threat.d.ts +2 -0
  20. package/dist/esm/api/listeners/threat.js +84 -0
  21. package/dist/esm/api/listeners/threat.js.map +1 -0
  22. package/dist/esm/api/methods/capacitor.d.ts +4 -0
  23. package/dist/esm/api/methods/capacitor.js +11 -0
  24. package/dist/esm/api/methods/capacitor.js.map +1 -0
  25. package/dist/esm/api/methods/native.d.ts +6 -0
  26. package/dist/esm/api/methods/native.js +32 -0
  27. package/dist/esm/api/methods/native.js.map +1 -0
  28. package/dist/esm/api/nativeModules.d.ts +2 -0
  29. package/dist/esm/api/nativeModules.js +3 -0
  30. package/dist/esm/api/nativeModules.js.map +1 -0
  31. package/dist/esm/channels/raspExecutionState.d.ts +3 -0
  32. package/dist/esm/channels/raspExecutionState.js +27 -0
  33. package/dist/esm/channels/raspExecutionState.js.map +1 -0
  34. package/dist/esm/channels/threat.d.ts +3 -0
  35. package/dist/esm/channels/threat.js +34 -0
  36. package/dist/esm/channels/threat.js.map +1 -0
  37. package/dist/esm/index.d.ts +7 -12
  38. package/dist/esm/index.js +7 -158
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/models/raspExecutionState.d.ts +6 -0
  41. package/dist/esm/models/raspExecutionState.js +10 -0
  42. package/dist/esm/models/raspExecutionState.js.map +1 -0
  43. package/dist/esm/models/threat.d.ts +26 -0
  44. package/dist/esm/{definitions.js → models/threat.js} +7 -3
  45. package/dist/esm/models/threat.js.map +1 -0
  46. package/dist/esm/{definitions.d.ts → types/types.d.ts} +37 -44
  47. package/dist/esm/types/types.js +2 -0
  48. package/dist/esm/types/types.js.map +1 -0
  49. package/dist/esm/utils/malware.d.ts +3 -0
  50. package/dist/esm/utils/malware.js +22 -0
  51. package/dist/esm/utils/malware.js.map +1 -0
  52. package/dist/esm/utils/utils.d.ts +3 -0
  53. package/dist/esm/utils/utils.js +12 -0
  54. package/dist/esm/utils/utils.js.map +1 -0
  55. package/dist/plugin.cjs.js +153 -78
  56. package/dist/plugin.cjs.js.map +1 -1
  57. package/dist/plugin.js +153 -78
  58. package/dist/plugin.js.map +1 -1
  59. package/ios/Plugin/FreeraspPlugin.m +2 -0
  60. package/ios/Plugin/FreeraspPlugin.swift +50 -75
  61. package/ios/Plugin/Info.plist +1 -1
  62. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  63. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeResources +100 -298
  64. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  65. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  66. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +7 -2
  67. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +380 -281
  68. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +5 -6
  69. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +4 -4
  70. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +1 -1
  71. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  72. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +62 -22
  73. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +2 -2
  74. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +76 -164
  75. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  76. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  77. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +17 -3
  78. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  79. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +233 -528
  80. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +7 -3
  81. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  82. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +7 -3
  83. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  84. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  85. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +14 -4
  86. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +380 -281
  87. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +5 -6
  88. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +4 -4
  89. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +1 -1
  90. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  91. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +62 -22
  92. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +2 -2
  93. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +76 -164
  94. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  95. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  96. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +17 -3
  97. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  98. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +233 -528
  99. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +7 -3
  100. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  101. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -3
  102. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +233 -528
  103. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +7 -3
  104. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  105. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +7 -3
  106. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  107. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +56 -45
  108. package/ios/Plugin/models/RaspExecutionStates.swift +15 -0
  109. package/ios/Plugin/models/SecurityThreat.swift +40 -0
  110. package/ios/Plugin/utils/EventIdentifiers.swift +17 -0
  111. package/ios/Plugin/utils/RandomGenerator.swift +23 -0
  112. package/ios/Plugin/utils/Utils.swift +32 -0
  113. package/package.json +15 -10
  114. package/android/src/main/java/com/aheaditec/freerasp/Threat.kt +0 -58
  115. package/dist/esm/definitions.js.map +0 -1
  116. package/dist/esm/utils.d.ts +0 -2
  117. package/dist/esm/utils.js +0 -8
  118. package/dist/esm/utils.js.map +0 -1
  119. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
@@ -1,6 +1,7 @@
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
@@ -16,6 +17,9 @@ import zlib
16
17
  public protocol SecurityThreatHandler {
17
18
  func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
18
19
  }
20
+ public protocol RaspExecutionState {
21
+ func onAllChecksFinished()
22
+ }
19
23
  @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
20
24
  @objc deinit
21
25
  }
@@ -51,7 +55,7 @@ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Sw
51
55
  public init?(rawValue: Swift.String)
52
56
  public typealias AllCases = [TalsecRuntime.SecurityThreat]
53
57
  public typealias RawValue = Swift.String
54
- public static var allCases: [TalsecRuntime.SecurityThreat] {
58
+ nonisolated public static var allCases: [TalsecRuntime.SecurityThreat] {
55
59
  get
56
60
  }
57
61
  public var rawValue: Swift.String {
@@ -1,6 +1,7 @@
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
@@ -16,6 +17,9 @@ import zlib
16
17
  public protocol SecurityThreatHandler {
17
18
  func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
18
19
  }
20
+ public protocol RaspExecutionState {
21
+ func onAllChecksFinished()
22
+ }
19
23
  @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
20
24
  @objc deinit
21
25
  }
@@ -51,7 +55,7 @@ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Sw
51
55
  public init?(rawValue: Swift.String)
52
56
  public typealias AllCases = [TalsecRuntime.SecurityThreat]
53
57
  public typealias RawValue = Swift.String
54
- public static var allCases: [TalsecRuntime.SecurityThreat] {
58
+ nonisolated public static var allCases: [TalsecRuntime.SecurityThreat] {
55
59
  get
56
60
  }
57
61
  public var rawValue: Swift.String {