capacitor-freerasp 2.0.0 → 2.2.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 (48) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/aheaditec/freerasp/FreeraspPlugin.kt +19 -0
  4. package/android/src/main/java/com/aheaditec/freerasp/Threat.kt +3 -1
  5. package/android/src/main/java/com/aheaditec/freerasp/ThreatHandler.kt +3 -0
  6. package/dist/esm/definitions.d.ts +7 -0
  7. package/dist/esm/definitions.js +2 -0
  8. package/dist/esm/definitions.js.map +1 -1
  9. package/dist/esm/index.d.ts +4 -3
  10. package/dist/esm/index.js +9 -8
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/plugin.cjs.js +11 -7
  13. package/dist/plugin.cjs.js.map +1 -1
  14. package/dist/plugin.js +11 -7
  15. package/dist/plugin.js.map +1 -1
  16. package/ios/Plugin/FreeraspPlugin.m +3 -0
  17. package/ios/Plugin/FreeraspPlugin.swift +52 -0
  18. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  19. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  20. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeResources +78 -78
  21. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  22. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  23. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
  24. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +7 -7
  25. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +4 -4
  26. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  27. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  28. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  29. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +323 -207
  30. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  31. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  32. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  33. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  34. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
  35. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +7 -7
  36. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +4 -4
  37. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  38. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  39. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  40. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +323 -207
  41. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  42. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  43. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +323 -207
  44. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  45. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  46. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  47. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +29 -29
  48. package/package.json +1 -1
@@ -28,6 +28,9 @@ public struct TalsecConfig {
28
28
  }
29
29
  @_hasMissingDesignatedInitializers public class Talsec {
30
30
  public static func start(config: TalsecRuntime.TalsecConfig)
31
+ public static func blockScreenCapture(enable: Swift.Bool, window: UIKit.UIWindow)
32
+ public static func isScreenCaptureBlocked(in window: UIKit.UIWindow) -> Swift.Bool
33
+ public static func storeExternalId(externalId: Swift.String)
31
34
  @objc deinit
32
35
  }
33
36
  public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
@@ -28,6 +28,9 @@ public struct TalsecConfig {
28
28
  }
29
29
  @_hasMissingDesignatedInitializers public class Talsec {
30
30
  public static func start(config: TalsecRuntime.TalsecConfig)
31
+ public static func blockScreenCapture(enable: Swift.Bool, window: UIKit.UIWindow)
32
+ public static func isScreenCaptureBlocked(in window: UIKit.UIWindow) -> Swift.Bool
33
+ public static func storeExternalId(externalId: Swift.String)
31
34
  @objc deinit
32
35
  }
33
36
  public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
@@ -16,7 +16,7 @@
16
16
  #include <unistd.h>
17
17
  #include <string.h>
18
18
 
19
- struct xlZeKkAdpcid {
19
+ struct fCFUmHbNCPGZ {
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 __hzaYmjcCuaaHoTsygzQwDee(void);
301
+ SWIFT_EXTERN void __IdlUXOmIQWkLsMvLwWRJQGH(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 __hzaYmjcCuaaHoTsygzQwDee(void);
611
+ SWIFT_EXTERN void __IdlUXOmIQWkLsMvLwWRJQGH(void);
612
612
 
613
613
  #endif
614
614
  #if __has_attribute(external_source_symbol)
@@ -789,11 +789,11 @@ typedef enum {
789
789
  *
790
790
  * CURLAUTH_NONE - No HTTP authentication
791
791
  * CURLAUTH_BASIC - HTTP Basic authentication (default)
792
- * CURLAUTH_DIGEST - HTTP DifZst authentication
792
+ * CURLAUTH_DIGEST - HTTP DizsWt authentication
793
793
  * CURLAUTH_NEGOTIATE - HTTP Negotiate (SPNEGO) authentication
794
794
  * CURLAUTH_GSSNEGOTIATE - Alias for CURLAUTH_NEGOTIATE (deprecated)
795
795
  * CURLAUTH_NTLM - HTTP NTLM authentication
796
- * CURLAUTH_DIGEST_IE - HTTP DifZst authentication with IE flavour
796
+ * CURLAUTH_DIGEST_IE - HTTP DizsWt authentication with IE flavour
797
797
  * CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
798
798
  * CURLAUTH_BEARER - HTTP Bearer token authentication
799
799
  * CURLAUTH_ONLY - Use together with a single other type to force no
@@ -1125,7 +1125,7 @@ typedef enum {
1125
1125
  /* Specified file stream to upload from (use as input): */
1126
1126
  CURLOPT(CURLOPT_READDATA, CURLOPTTYPE_CBPOINT, 9),
1127
1127
 
1128
- /* Buffer to receive error messafZs in, must be at least CURL_ERROR_SIZE
1128
+ /* Buffer to receive error messazsW in, must be at least CURL_ERROR_SIZE
1129
1129
  * bytes big. */
1130
1130
  CURLOPT(CURLOPT_ERRORBUFFER, CURLOPTTYPE_OBJECTPOINT, 10),
1131
1131
 
@@ -1505,7 +1505,7 @@ typedef enum {
1505
1505
  Note that setting multiple bits may cause extra network round-trips. */
1506
1506
  CURLOPT(CURLOPT_PROXYAUTH, CURLOPTTYPE_VALUES, 111),
1507
1507
 
1508
- /* Option that chanfZs the timeout, in seconds, associated with getting a
1508
+ /* Option that chanzsW the timeout, in seconds, associated with getting a
1509
1509
  response. This is different from transfer timeout time and essentially
1510
1510
  places a demand on the server to acknowledge commands in a timely
1511
1511
  manner. For FTP, SMTP, IMAP and POP3. */
@@ -3056,7 +3056,7 @@ typedef enum {
3056
3056
  /* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
3057
3057
  basically all programs ever that want to get version information. It is
3058
3058
  meant to be a built-in version number for what kind of struct the caller
3059
- expects. If the struct ever chanfZs, we redefine the NOW to another enum
3059
+ expects. If the struct ever chanzsW, we redefine the NOW to another enum
3060
3060
  from above. */
3061
3061
  #define CURLVERSION_NOW CURLVERSION_TWELFTH
3062
3062
 
@@ -3178,7 +3178,7 @@ CURL_EXTERN curl_version_info_data *curl_version_info(CURLversion);
3178
3178
  *
3179
3179
  * The curl_easy_strerror function may be used to turn a CURLcode value
3180
3180
  * into the equivalent human readable error string. This is useful
3181
- * for printing meaningful error messafZs.
3181
+ * for printing meaningful error messazsW.
3182
3182
  */
3183
3183
  CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3184
3184
 
@@ -3189,7 +3189,7 @@ CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3189
3189
  *
3190
3190
  * The curl_share_strerror function may be used to turn a CURLSHcode value
3191
3191
  * into the equivalent human readable error string. This is useful
3192
- * for printing meaningful error messafZs.
3192
+ * for printing meaningful error messazsW.
3193
3193
  */
3194
3194
  CURL_EXTERN const char *curl_share_strerror(CURLSHcode);
3195
3195
 
@@ -236,8 +236,8 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
236
236
  /*
237
237
  * Name: curl_multi_info_read()
238
238
  *
239
- * Desc: Ask the multi handle if there's any messafZs/informationals from
240
- * the individual transfers. MessafZs include informationals such as
239
+ * Desc: Ask the multi handle if there's any messazsW/informationals from
240
+ * the individual transfers. MessazsW include informationals such as
241
241
  * error code from the transfer or just the fact that a transfer is
242
242
  * completed. More details on these should be written down as well.
243
243
  *
@@ -257,7 +257,7 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
257
257
  * undoubtably get backwards compatibility problems in the future.
258
258
  *
259
259
  * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
260
- * of structs. It also writes the number of messafZs left in the
260
+ * of structs. It also writes the number of messazsW left in the
261
261
  * queue (after this read) in the integer the second argument points
262
262
  * to.
263
263
  */
@@ -269,7 +269,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
269
269
  *
270
270
  * Desc: The curl_multi_strerror function may be used to turn a CURLMcode
271
271
  * value into the equivalent human readable error string. This is
272
- * useful for printing meaningful error messafZs.
272
+ * useful for printing meaningful error messazsW.
273
273
  *
274
274
  * Returns: A pointer to a null-terminated error message.
275
275
  */
@@ -46,7 +46,7 @@ typedef enum {
46
46
  we prefer another name */
47
47
  #define CURLOT_FLAG_ALIAS (1<<0)
48
48
 
49
- /* The CURLOPTTYPE_* id ranfZs can still be used to figure out what type/size
49
+ /* The CURLOPTTYPE_* id ranzsW can still be used to figure out what type/size
50
50
  to use for curl_easy_setopt() for the given id */
51
51
  struct curl_easyoption {
52
52
  const char *name;
@@ -143,7 +143,7 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
143
143
  /*
144
144
  * curl_url_strerror() turns a CURLUcode value into the equivalent human
145
145
  * readable error string. This is useful for printing meaningful error
146
- * messafZs.
146
+ * messazsW.
147
147
  */
148
148
  CURL_EXTERN const char *curl_url_strerror(CURLUcode);
149
149