freerasp-react-native 3.6.1 → 3.7.1-1
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.
- package/CHANGELOG.md +187 -0
- package/README.md +34 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +10 -2
- package/app.plugin.js +1 -0
- package/bootstrap.js +29 -0
- package/example/package.json +1 -1
- package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +923 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +369 -165
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +9 -7
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +11 -9
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +74 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +32 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +27 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +6 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +72 -70
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +29 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +84 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +542 -696
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +369 -165
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +9 -7
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +11 -9
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +74 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +32 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +27 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +6 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +72 -70
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +29 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +84 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +536 -676
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +536 -676
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +72 -39
- package/lib/commonjs/definitions.js +11 -15
- package/lib/commonjs/definitions.js.map +1 -1
- package/lib/commonjs/index.js +12 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/definitions.js +11 -15
- package/lib/module/definitions.js.map +1 -1
- package/lib/module/index.js +11 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/plugin/src/index.d.ts +11 -0
- package/lib/typescript/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/plugin/src/pluginConfig.d.ts +21 -0
- package/lib/typescript/plugin/src/pluginConfig.d.ts.map +1 -0
- package/lib/typescript/src/definitions.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts.map +1 -0
- package/package.json +14 -25
- package/plugin/build/index.d.ts +10 -0
- package/plugin/build/index.js +63 -0
- package/plugin/build/pluginConfig.d.ts +20 -0
- package/plugin/build/pluginConfig.js +2 -0
- package/example/babel.config.js +0 -17
- package/lib/typescript/definitions.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/utils.d.ts.map +0 -1
- /package/lib/typescript/{definitions.d.ts → src/definitions.d.ts} +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{utils.d.ts → src/utils.d.ts} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# freeRASP 3.7.1
|
|
2
|
+
|
|
3
|
+
### Android
|
|
4
|
+
|
|
5
|
+
- ⚡ Updated freeRASP SDK artifact hosting ensuring better stability and availibility
|
|
6
|
+
- ⚡ Fixed compatibility issues with RN < 0.63
|
|
7
|
+
|
|
8
|
+
# freeRASP 3.7.0
|
|
9
|
+
|
|
10
|
+
- ⚡ Added support for apps built with Expo SDK
|
|
11
|
+
- 📄 Documentation updates
|
|
12
|
+
|
|
13
|
+
### Android
|
|
14
|
+
|
|
15
|
+
- ⚡ Shortened duration of threat evaluation
|
|
16
|
+
- ⚡ Fixed a native crash bug during one of the native root checks (detected after NDK upgrade)
|
|
17
|
+
- ⚡ Improved _appIntegrity_ check and its logging
|
|
18
|
+
- ⚡ Updated `CURL` to `8.5.0` and `OpenSSL` to `1.1.1w`
|
|
19
|
+
|
|
20
|
+
### iOS
|
|
21
|
+
|
|
22
|
+
- ❗ Added Privacy Manifest
|
|
23
|
+
- ❗ Added codesigning for the SDK, it is signed by:
|
|
24
|
+
- _Team ID_: `ASQC376HCN`
|
|
25
|
+
- _Team Name_: `AHEAD iTec, s.r.o.`
|
|
26
|
+
- ⚡ Improved obfuscation of Swift and C strings
|
|
27
|
+
- ⚡ Fixed memory leak ([freeRASP iOS issue #13](https://github.com/talsec/Free-RASP-iOS/issues/13))
|
|
28
|
+
- ⚡ Updated `CURL` to `8.5.0` and `OpenSSL` to `1.1.1w`
|
|
29
|
+
|
|
30
|
+
# freeRASP 3.6.1
|
|
31
|
+
|
|
32
|
+
- 📄 Documentation updates
|
|
33
|
+
|
|
34
|
+
### iOS
|
|
35
|
+
|
|
36
|
+
- ⚡ Fixed bug that caused app being killed in specific situations ([#42](https://github.com/talsec/Free-RASP-ReactNative/issues/42))
|
|
37
|
+
|
|
38
|
+
# freeRASP 3.6.0
|
|
39
|
+
|
|
40
|
+
- ⚡ Improved reaction obfuscation
|
|
41
|
+
- 📄 Documentation updates
|
|
42
|
+
|
|
43
|
+
### Android
|
|
44
|
+
|
|
45
|
+
- ⚡ Fixed ProviderException which could be occassionally triggered
|
|
46
|
+
- ⚡ Fixed bug causing incompatibility with some versions of React Native ([#38](https://github.com/talsec/Free-RASP-ReactNative/issues/38))
|
|
47
|
+
|
|
48
|
+
### iOS
|
|
49
|
+
|
|
50
|
+
- ❗ Raised supported Xcode version to 14.3.1
|
|
51
|
+
- ⚡ Improved SDK obfuscation
|
|
52
|
+
|
|
53
|
+
# freeRASP 3.5.0
|
|
54
|
+
|
|
55
|
+
- ⚠️ Updated the `talsecStart()` method to return `Promise<string>`. If freeRASP starts successfuly, the method will return `freeRASP started` string. There are not any changes of the interface if you are using the provided `useFreeRasp` hook.
|
|
56
|
+
- ⚡ Improved the message passing between native iOS/Android and React Native sides
|
|
57
|
+
- ✔️ Restricted message passing to valid callbacks only. If an invalid callback is received, the SDK will kill the app
|
|
58
|
+
|
|
59
|
+
# freeRASP 3.4.0
|
|
60
|
+
|
|
61
|
+
- 📄 Documentation updates and improvements
|
|
62
|
+
|
|
63
|
+
### Android
|
|
64
|
+
|
|
65
|
+
- ✔️ updated CA bundle for logging pinning
|
|
66
|
+
- ✔️ added error logging of network issues within the logging process
|
|
67
|
+
- ✔️ added retry politics for logging
|
|
68
|
+
- ⚡ fixed issue with DeadObjectException on Android 5 and 6 caused by excessive PackageManager.queryIntentActivities() usage
|
|
69
|
+
- ⚡ improved root detection capabilities
|
|
70
|
+
|
|
71
|
+
# freeRASP 3.3.1
|
|
72
|
+
|
|
73
|
+
### iOS
|
|
74
|
+
|
|
75
|
+
- ⚡ Fixed issue with duplicate headers that caused `Multiple commands produce ...` error ([#11](https://github.com/talsec/Free-RASP-ReactNative/issues/11), [#26](https://github.com/talsec/Free-RASP-ReactNative/issues/26))
|
|
76
|
+
|
|
77
|
+
# freeRASP 3.3.0
|
|
78
|
+
|
|
79
|
+
### Android
|
|
80
|
+
|
|
81
|
+
- ✔️ Removed PolarSSL native library
|
|
82
|
+
- ✔️ Fixed issue with denied USE_BIOMETRICS permission
|
|
83
|
+
|
|
84
|
+
# freeRASP 3.2.0
|
|
85
|
+
|
|
86
|
+
### Android
|
|
87
|
+
|
|
88
|
+
- ✔️ Added support for AGP 8.0
|
|
89
|
+
|
|
90
|
+
# freeRASP 3.1.0
|
|
91
|
+
|
|
92
|
+
### Android
|
|
93
|
+
|
|
94
|
+
- ⚡ Fixed issue with incorrect Keystore type detection on Android 11 and above (https://github.com/talsec/Free-RASP-Flutter/issues/77)
|
|
95
|
+
|
|
96
|
+
### iOS
|
|
97
|
+
|
|
98
|
+
- ⚡ Reduced timeout period for logging from 20 sec to 5 sec
|
|
99
|
+
- ⚡ Logging is now async in all calls
|
|
100
|
+
|
|
101
|
+
# freeRASP 3.0.0
|
|
102
|
+
|
|
103
|
+
### Android
|
|
104
|
+
|
|
105
|
+
- ❗ BREAKING CHANGE: Raised minimum supported Android version to 6.0 (API level 23)
|
|
106
|
+
- ✔️ Removed deprecated BouncyCastle dependency that could cause [errors in the build phase](https://github.com/talsec/Free-RASP-ReactNative/issues/13)
|
|
107
|
+
- ✔️ Fixed issue that could cause NullPointerException
|
|
108
|
+
- 🆕 Added new `obfuscationIssues` check, which is triggered when freeRASP doesn't detect any obfuscation of the source code
|
|
109
|
+
|
|
110
|
+
### iOS
|
|
111
|
+
|
|
112
|
+
- ⚠️ `passcodeChange` check has been deprecated
|
|
113
|
+
- 🛠️ Refactored the code base
|
|
114
|
+
|
|
115
|
+
# freeRASP 2.0.3
|
|
116
|
+
|
|
117
|
+
### iOS
|
|
118
|
+
|
|
119
|
+
- ✔️ Fixed issue with metadata in iOS framework
|
|
120
|
+
- 📄 Documentation updates and improvements
|
|
121
|
+
|
|
122
|
+
# freeRASP 2.0.2
|
|
123
|
+
|
|
124
|
+
- 📄 Documentation updates and improvements
|
|
125
|
+
|
|
126
|
+
# freeRASP 2.0.1
|
|
127
|
+
|
|
128
|
+
- 📄 Documentation updates and improvements
|
|
129
|
+
|
|
130
|
+
# freeRASP 2.0.0
|
|
131
|
+
|
|
132
|
+
## What's new?
|
|
133
|
+
|
|
134
|
+
Most of the changes relates to accomodating a new way of choosing between the dev and release version of the SDK. There are also some breaking changes in the API, such as renaming parameters and changing types of callbacks. Android has also removed the HMS dependencies and improved the root detection capabilities.
|
|
135
|
+
|
|
136
|
+
### JS/TS interface
|
|
137
|
+
|
|
138
|
+
- ❗ BREAKING API CHANGE: Renamed **'device binding'** to **deviceBinding**
|
|
139
|
+
- ❗ This allows us to remove apostrophes from other callbacks, too. E.g. **'privilegedAccess'** to **privilegedAccess**
|
|
140
|
+
- ❗ Added **isProd** boolean parameter, which now differentiates between the release (true) and dev (false) version of the SDK. By default set to **true**
|
|
141
|
+
- ❗ **androidConfig** and **iosConfig** are from now on optionals, you can omit a platform if you are not developing for it
|
|
142
|
+
|
|
143
|
+
### Android
|
|
144
|
+
|
|
145
|
+
- ❗ Removed the HMS dependencies
|
|
146
|
+
- ❗ Only one version of the SDK is used from now on, instead of two separate for dev and release
|
|
147
|
+
- ❗ The app's build.gradle does not have to be modified now
|
|
148
|
+
- ⚡ Improved root detection accuracy by moving the 'ro.debuggable' property state to an ignored group
|
|
149
|
+
- ⚡ Enhanced root detection capabilities by moving the selinux properties check to device state
|
|
150
|
+
- ⚡ Fine-tuning root evaluation strategy
|
|
151
|
+
|
|
152
|
+
### iOS
|
|
153
|
+
|
|
154
|
+
- ❗ Removed one of the xcframeworks
|
|
155
|
+
- ❗ Removed the dependency on the symlinks choosing the proper version (release/dev)
|
|
156
|
+
- ❗️ Removed pre-built script for changing the Debug and Release versions
|
|
157
|
+
|
|
158
|
+
### Other improvements
|
|
159
|
+
|
|
160
|
+
- 📄 Documentation updates and improvements
|
|
161
|
+
- ⚡ Updated demo app for new implementation
|
|
162
|
+
|
|
163
|
+
# freeRASP 1.1.0
|
|
164
|
+
|
|
165
|
+
We are proud to share with you the first batch of improvements of freeRASP!
|
|
166
|
+
|
|
167
|
+
## What's new?
|
|
168
|
+
|
|
169
|
+
Android devices now support device state listeners. What's more, we unified remaining Android and iOS interfaces for more convenient developer's experience.
|
|
170
|
+
|
|
171
|
+
### Android
|
|
172
|
+
|
|
173
|
+
- 🆕 Android now has support for device state callbacks:
|
|
174
|
+
- 📲 **`Secure Hardware Not Available`**: fires when hardware-backed KeyStore is not available
|
|
175
|
+
- 📲 **`Passcode`**: fires when freeRASP detects that device is not secured with any type of lock
|
|
176
|
+
|
|
177
|
+
### iOS
|
|
178
|
+
|
|
179
|
+
- ❗ BREAKING API CHANGE: Renamed `Missing Secure Enclave` to **`Secure Hardware Not Available`** to match the newly added Android callback. The functionality remains unchanged.
|
|
180
|
+
|
|
181
|
+
### Other improvements
|
|
182
|
+
|
|
183
|
+
- 📄 Documentation updates and improvements
|
|
184
|
+
|
|
185
|
+
# freeRASP 1.0.0
|
|
186
|
+
|
|
187
|
+
- Initial release of freeRASP.
|
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ freeRASP for React Native is a mobile in-app protection and security monitoring
|
|
|
22
22
|
- [Alternative: Initialize freeRASP in a Class component](#alternative-initialize-freerasp-in-a-class-component)
|
|
23
23
|
- [Step 5: Additional note about obfuscation](#step-5-additional-note-about-obfuscation)
|
|
24
24
|
- [Step 6: User Data Policies](#step-6-user-data-policies)
|
|
25
|
+
- [Using Expo SDK](#using-expo-sdk)
|
|
25
26
|
- [Troubleshooting](#troubleshooting)
|
|
26
27
|
- [Security Report](#security-report)
|
|
27
28
|
- [Talsec Commercial Subscriptions](#money_with_wings-talsec-commercial-subscriptions)
|
|
@@ -317,6 +318,39 @@ And you're done 🎉!
|
|
|
317
318
|
|
|
318
319
|
If you encounter any other issues, you can see the list of solved issues [here](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aclosed), or open up a [new one](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aopen).
|
|
319
320
|
|
|
321
|
+
# Using Expo SDK
|
|
322
|
+
freeRASP for React Native is bare React Native plugin. When installing freeRASP into a project that uses Expo SDK, there may be extra configuration needed. We provide plugin config that sets the dependencies automatically. It is recommended to use the plugin config. However, manual setup is also possible.
|
|
323
|
+
|
|
324
|
+
## Plugin config setup
|
|
325
|
+
Add the plugin config into your `app.json` and specify the `minSdkVersion` (use at least 23):
|
|
326
|
+
```json
|
|
327
|
+
"plugins": [
|
|
328
|
+
[
|
|
329
|
+
"freerasp-react-native/app.plugin.js",
|
|
330
|
+
{
|
|
331
|
+
"android": {
|
|
332
|
+
"minSdkVersion": "23"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
],
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## Manual setup
|
|
341
|
+
### 1. Increase minSdkVersion
|
|
342
|
+
|
|
343
|
+
This can be done in two ways:
|
|
344
|
+
- update the `minSdkVersion` property directly in __android/build.gradle__, or
|
|
345
|
+
- use `expo-build-properties` plugin, which updates the property in the prebuild phase. [Read more in the Expo docs](https://docs.expo.dev/versions/latest/sdk/build-properties/).
|
|
346
|
+
|
|
347
|
+
### 2. Add maven dependency
|
|
348
|
+
- open __android/build.gradle__ _(if you don't see the android folder, run `npx expo prebuild -p android` in terminal to create it)_
|
|
349
|
+
- add following dependency under __allprojects > repositories__:
|
|
350
|
+
`maven { url "https://europe-west3-maven.pkg.dev/talsec-artifact-repository/freerasp" }`
|
|
351
|
+
- if not already configured, add also
|
|
352
|
+
`maven { url 'https://www.jitpack.io' }`
|
|
353
|
+
|
|
320
354
|
# Troubleshooting
|
|
321
355
|
|
|
322
356
|
### Could not determine the dependencies of task `':freerasp-react-native:compileDebugAidl'`
|
package/android/build.gradle
CHANGED
|
@@ -72,7 +72,7 @@ repositories {
|
|
|
72
72
|
|
|
73
73
|
rootProject.allprojects {
|
|
74
74
|
repositories {
|
|
75
|
-
maven{url "https://
|
|
75
|
+
maven{url "https://europe-west3-maven.pkg.dev/talsec-artifact-repository/freerasp"}
|
|
76
76
|
maven{url "https://jitpack.io"}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -86,7 +86,7 @@ dependencies {
|
|
|
86
86
|
//noinspection GradleDynamicVersion
|
|
87
87
|
implementation "com.facebook.react:react-native:$react_native_version"
|
|
88
88
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
89
|
-
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:9.
|
|
89
|
+
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:9.1.0"
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
if (isNewArchitectureEnabled()) {
|
|
@@ -91,14 +91,22 @@ class FreeraspReactNativeModule(val reactContext: ReactApplicationContext) :
|
|
|
91
91
|
val certificateHashes = mutableListOf<String>()
|
|
92
92
|
val hashes = androidConfig.getArray("certificateHashes")!!
|
|
93
93
|
for (i in 0 until hashes.size()) {
|
|
94
|
-
|
|
94
|
+
// in RN versions < 0.63, getString is nullable
|
|
95
|
+
@Suppress("UNNECESSARY_SAFE_CALL")
|
|
96
|
+
hashes.getString(i)?.let {
|
|
97
|
+
certificateHashes.add(it)
|
|
98
|
+
}
|
|
95
99
|
}
|
|
96
100
|
val watcherMail = config.getString("watcherMail")
|
|
97
101
|
val alternativeStores = mutableListOf<String>()
|
|
98
102
|
if (androidConfig.hasKey("supportedAlternativeStores")) {
|
|
99
103
|
val stores = androidConfig.getArray("supportedAlternativeStores")!!
|
|
100
104
|
for (i in 0 until stores.size()) {
|
|
101
|
-
|
|
105
|
+
// in RN versions < 0.63, getString is nullable
|
|
106
|
+
@Suppress("UNNECESSARY_SAFE_CALL")
|
|
107
|
+
stores.getString(i)?.let {
|
|
108
|
+
alternativeStores.add(it)
|
|
109
|
+
}
|
|
102
110
|
}
|
|
103
111
|
}
|
|
104
112
|
var isProd = true
|
package/app.plugin.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./plugin/build');
|
package/bootstrap.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const child_process = require('child_process');
|
|
4
|
+
|
|
5
|
+
const root = path.resolve(__dirname, '..');
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
const options = {
|
|
8
|
+
cwd: process.cwd(),
|
|
9
|
+
env: process.env,
|
|
10
|
+
stdio: 'inherit',
|
|
11
|
+
encoding: 'utf-8',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
if (os.type() === 'Windows_NT') {
|
|
15
|
+
options.shell = true;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let result;
|
|
19
|
+
|
|
20
|
+
if (process.cwd() !== root || args.length) {
|
|
21
|
+
// We're not in the root of the project, or additional arguments were passed
|
|
22
|
+
// In this case, forward the command to `yarn`
|
|
23
|
+
result = child_process.spawnSync('yarn', args, options);
|
|
24
|
+
} else {
|
|
25
|
+
// If `yarn` is run without arguments, perform bootstrap
|
|
26
|
+
result = child_process.spawnSync('yarn', ['bootstrap'], options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
process.exitCode = result.status;
|
package/example/package.json
CHANGED
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>TalsecRuntime.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
+
<string>x86_64</string>
|
|
15
16
|
</array>
|
|
16
17
|
<key>SupportedPlatform</key>
|
|
17
18
|
<string>ios</string>
|
|
19
|
+
<key>SupportedPlatformVariant</key>
|
|
20
|
+
<string>simulator</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-
|
|
24
|
+
<string>ios-arm64</string>
|
|
22
25
|
<key>LibraryPath</key>
|
|
23
26
|
<string>TalsecRuntime.framework</string>
|
|
24
27
|
<key>SupportedArchitectures</key>
|
|
25
28
|
<array>
|
|
26
29
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
30
|
</array>
|
|
29
31
|
<key>SupportedPlatform</key>
|
|
30
32
|
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|