freerasp-react-native 4.4.0 → 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 (52) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +37 -32
  4. package/android/src/main/java/com/freeraspreactnative/PluginThreatHandler.kt +9 -4
  5. package/android/src/main/java/com/freeraspreactnative/dispatchers/ExecutionStateDispatcher.kt +29 -14
  6. package/android/src/main/java/com/freeraspreactnative/dispatchers/ThreatDispatcher.kt +35 -21
  7. package/example/src/App.tsx +1 -1
  8. package/example/src/checks.ts +1 -1
  9. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  10. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +82 -288
  11. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  12. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  13. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +7 -2
  14. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +7 -7
  15. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +4 -4
  16. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  17. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  18. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  19. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +474 -547
  20. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +6 -3
  21. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  22. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +6 -3
  23. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/PrivacyInfo.xcprivacy +8 -0
  24. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  25. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  26. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +14 -4
  27. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +7 -7
  28. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +4 -4
  29. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  30. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  31. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  32. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +475 -548
  33. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +6 -3
  34. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -3
  36. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +475 -548
  37. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +6 -3
  38. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  39. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +6 -3
  40. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/PrivacyInfo.xcprivacy +8 -0
  41. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  42. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +46 -35
  43. package/ios/models/SecurityThreat.swift +2 -0
  44. package/ios/utils/EventIdentifiers.swift +2 -2
  45. package/lib/commonjs/models/threat.js +1 -1
  46. package/lib/commonjs/models/threat.js.map +1 -1
  47. package/lib/module/models/threat.js +1 -1
  48. package/lib/module/models/threat.js.map +1 -1
  49. package/lib/typescript/src/models/threat.d.ts.map +1 -1
  50. package/package.json +1 -1
  51. package/src/models/threat.ts +1 -0
  52. 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 -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 -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 -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 -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 {
@@ -4,6 +4,14 @@
4
4
  <dict>
5
5
  <key>NSPrivacyAccessedAPITypes</key>
6
6
  <array>
7
+ <dict>
8
+ <key>NSPrivacyAccessedAPIType</key>
9
+ <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
10
+ <key>NSPrivacyAccessedAPITypeReasons</key>
11
+ <array>
12
+ <string>35F9.1</string>
13
+ </array>
14
+ </dict>
7
15
  <dict>
8
16
  <key>NSPrivacyAccessedAPIType</key>
9
17
  <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
@@ -16,7 +16,7 @@
16
16
  #include <unistd.h>
17
17
  #include <string.h>
18
18
 
19
- struct mYEvJMYWRCFP {
19
+ struct HcpymwDaYqUd {
20
20
  char *memory;
21
21
  size_t size;
22
22
  CURLcode ret;
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
3
+ // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
4
4
  #ifndef TALSECRUNTIME_SWIFT_H
5
5
  #define TALSECRUNTIME_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -42,6 +42,8 @@
42
42
  #include <string.h>
43
43
  #endif
44
44
  #if defined(__cplusplus)
45
+ #pragma clang diagnostic push
46
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
45
47
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
48
  # include <ptrauth.h>
47
49
  #else
@@ -55,6 +57,7 @@
55
57
  # endif
56
58
  #pragma clang diagnostic pop
57
59
  #endif
60
+ #pragma clang diagnostic pop
58
61
  #endif
59
62
 
60
63
  #if !defined(SWIFT_TYPEDEFS)
@@ -62,6 +65,7 @@
62
65
  # if __has_include(<uchar.h>)
63
66
  # include <uchar.h>
64
67
  # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
65
69
  typedef uint_least16_t char16_t;
66
70
  typedef uint_least32_t char32_t;
67
71
  # endif
@@ -288,6 +292,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
288
292
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
289
293
  #pragma clang diagnostic ignored "-Wnullability"
290
294
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
295
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
291
296
 
292
297
  #if __has_attribute(external_source_symbol)
293
298
  # pragma push_macro("any")
@@ -298,7 +303,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
298
303
 
299
304
  #if defined(__OBJC__)
300
305
 
301
- SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
306
+ SWIFT_EXTERN void __vQzmiGNiFGUkoMGehquMvcU(void) SWIFT_NOEXCEPT;
302
307
 
303
308
  #endif
304
309
  #if __has_attribute(external_source_symbol)
@@ -310,7 +315,7 @@ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
310
315
  #endif
311
316
 
312
317
  #elif defined(__x86_64__) && __x86_64__
313
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
318
+ // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
314
319
  #ifndef TALSECRUNTIME_SWIFT_H
315
320
  #define TALSECRUNTIME_SWIFT_H
316
321
  #pragma clang diagnostic push
@@ -352,6 +357,8 @@ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
352
357
  #include <string.h>
353
358
  #endif
354
359
  #if defined(__cplusplus)
360
+ #pragma clang diagnostic push
361
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
355
362
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
356
363
  # include <ptrauth.h>
357
364
  #else
@@ -365,6 +372,7 @@ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
365
372
  # endif
366
373
  #pragma clang diagnostic pop
367
374
  #endif
375
+ #pragma clang diagnostic pop
368
376
  #endif
369
377
 
370
378
  #if !defined(SWIFT_TYPEDEFS)
@@ -372,6 +380,7 @@ SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
372
380
  # if __has_include(<uchar.h>)
373
381
  # include <uchar.h>
374
382
  # elif !defined(__cplusplus)
383
+ typedef unsigned char char8_t;
375
384
  typedef uint_least16_t char16_t;
376
385
  typedef uint_least32_t char32_t;
377
386
  # endif
@@ -598,6 +607,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
598
607
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
599
608
  #pragma clang diagnostic ignored "-Wnullability"
600
609
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
610
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
601
611
 
602
612
  #if __has_attribute(external_source_symbol)
603
613
  # pragma push_macro("any")
@@ -608,7 +618,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
608
618
 
609
619
  #if defined(__OBJC__)
610
620
 
611
- SWIFT_EXTERN void __hGWxcGGLriEICbmzmVReXyc(void);
621
+ SWIFT_EXTERN void __vQzmiGNiFGUkoMGehquMvcU(void) SWIFT_NOEXCEPT;
612
622
 
613
623
  #endif
614
624
  #if __has_attribute(external_source_symbol)
@@ -813,11 +813,11 @@ typedef enum {
813
813
  *
814
814
  * CURLAUTH_NONE - No HTTP authentication
815
815
  * CURLAUTH_BASIC - HTTP Basic authentication (default)
816
- * CURLAUTH_DIGEST - HTTP Dijxat authentication
816
+ * CURLAUTH_DIGEST - HTTP DisDUt authentication
817
817
  * CURLAUTH_NEGOTIATE - HTTP Negotiate (SPNEGO) authentication
818
818
  * CURLAUTH_GSSNEGOTIATE - Alias for CURLAUTH_NEGOTIATE (deprecated)
819
819
  * CURLAUTH_NTLM - HTTP NTLM authentication
820
- * CURLAUTH_DIGEST_IE - HTTP Dijxat authentication with IE flavour
820
+ * CURLAUTH_DIGEST_IE - HTTP DisDUt authentication with IE flavour
821
821
  * CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
822
822
  * CURLAUTH_BEARER - HTTP Bearer token authentication
823
823
  * CURLAUTH_ONLY - Use together with a single other type to force no
@@ -1164,7 +1164,7 @@ typedef enum {
1164
1164
  /* Specified file stream to upload from (use as input): */
1165
1165
  CURLOPT(CURLOPT_READDATA, CURLOPTTYPE_CBPOINT, 9),
1166
1166
 
1167
- /* Buffer to receive error messajxa in, must be at least CURL_ERROR_SIZE
1167
+ /* Buffer to receive error messasDU in, must be at least CURL_ERROR_SIZE
1168
1168
  * bytes big. */
1169
1169
  CURLOPT(CURLOPT_ERRORBUFFER, CURLOPTTYPE_OBJECTPOINT, 10),
1170
1170
 
@@ -1541,7 +1541,7 @@ typedef enum {
1541
1541
  Note that setting multiple bits may cause extra network round-trips. */
1542
1542
  CURLOPT(CURLOPT_PROXYAUTH, CURLOPTTYPE_VALUES, 111),
1543
1543
 
1544
- /* Option that chanjxa the timeout, in seconds, associated with getting a
1544
+ /* Option that chansDU the timeout, in seconds, associated with getting a
1545
1545
  response. This is different from transfer timeout time and essentially
1546
1546
  places a demand on the server to acknowledge commands in a timely
1547
1547
  manner. For FTP, SMTP, IMAP and POP3. */
@@ -3110,7 +3110,7 @@ typedef enum {
3110
3110
  /* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
3111
3111
  basically all programs ever that want to get version information. It is
3112
3112
  meant to be a built-in version number for what kind of struct the caller
3113
- expects. If the struct ever chanjxa, we redefine the NOW to another enum
3113
+ expects. If the struct ever chansDU, we redefine the NOW to another enum
3114
3114
  from above. */
3115
3115
  #define CURLVERSION_NOW CURLVERSION_TWELFTH
3116
3116
 
@@ -3232,7 +3232,7 @@ CURL_EXTERN curl_version_info_data *curl_version_info(CURLversion);
3232
3232
  *
3233
3233
  * The curl_easy_strerror function may be used to turn a CURLcode value
3234
3234
  * into the equivalent human readable error string. This is useful
3235
- * for printing meaningful error messajxa.
3235
+ * for printing meaningful error messasDU.
3236
3236
  */
3237
3237
  CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3238
3238
 
@@ -3243,7 +3243,7 @@ CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3243
3243
  *
3244
3244
  * The curl_share_strerror function may be used to turn a CURLSHcode value
3245
3245
  * into the equivalent human readable error string. This is useful
3246
- * for printing meaningful error messajxa.
3246
+ * for printing meaningful error messasDU.
3247
3247
  */
3248
3248
  CURL_EXTERN const char *curl_share_strerror(CURLSHcode);
3249
3249
 
@@ -232,8 +232,8 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
232
232
  /*
233
233
  * Name: curl_multi_info_read()
234
234
  *
235
- * Desc: Ask the multi handle if there is any messajxa/informationals from
236
- * the individual transfers. Messajxa include informationals such as
235
+ * Desc: Ask the multi handle if there is any messasDU/informationals from
236
+ * the individual transfers. MessasDU include informationals such as
237
237
  * error code from the transfer or just the fact that a transfer is
238
238
  * completed. More details on these should be written down as well.
239
239
  *
@@ -253,7 +253,7 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
253
253
  * compatibility problems in the future.
254
254
  *
255
255
  * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
256
- * of structs. It also writes the number of messajxa left in the
256
+ * of structs. It also writes the number of messasDU left in the
257
257
  * queue (after this read) in the integer the second argument points
258
258
  * to.
259
259
  */
@@ -265,7 +265,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
265
265
  *
266
266
  * Desc: The curl_multi_strerror function may be used to turn a CURLMcode
267
267
  * value into the equivalent human readable error string. This is
268
- * useful for printing meaningful error messajxa.
268
+ * useful for printing meaningful error messasDU.
269
269
  *
270
270
  * Returns: A pointer to a null-terminated error message.
271
271
  */
@@ -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 ranjxa can still be used to figure out what type/size
49
+ /* The CURLOPTTYPE_* id ransDU 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;
@@ -144,7 +144,7 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
144
144
  /*
145
145
  * curl_url_strerror() turns a CURLUcode value into the equivalent human
146
146
  * readable error string. This is useful for printing meaningful error
147
- * messajxa.
147
+ * messasDU.
148
148
  */
149
149
  CURL_EXTERN const char *curl_url_strerror(CURLUcode);
150
150