freerasp-react-native 3.7.0 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  # freeRASP 3.7.0
2
9
 
3
10
  - ⚡ Added support for apps built with Expo SDK
package/README.md CHANGED
@@ -347,7 +347,7 @@ This can be done in two ways:
347
347
  ### 2. Add maven dependency
348
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
349
  - add following dependency under __allprojects > repositories__:
350
- `maven { url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp" }`
350
+ `maven { url "https://europe-west3-maven.pkg.dev/talsec-artifact-repository/freerasp" }`
351
351
  - if not already configured, add also
352
352
  `maven { url 'https://www.jitpack.io' }`
353
353
 
@@ -72,7 +72,7 @@ repositories {
72
72
 
73
73
  rootProject.allprojects {
74
74
  repositories {
75
- maven{url "https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp"}
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.0.2"
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
- certificateHashes.add(hashes.getString(i))
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
- alternativeStores.add(stores.getString(i))
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freerasp-react-native",
3
- "version": "3.7.0",
3
+ "version": "3.7.1-1",
4
4
  "description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,7 +16,6 @@
16
16
  "bootstrap": "yarn example && yarn install && yarn example pods",
17
17
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
18
18
  "build:plugin": "tsc --build plugin"
19
-
20
19
  },
21
20
  "keywords": [
22
21
  "react-native",
@@ -80,7 +79,6 @@
80
79
  "engines": {
81
80
  "node": ">= 16.0.0"
82
81
  },
83
- "packageManager": "^yarn@1.22.15",
84
82
  "jest": {
85
83
  "preset": "react-native",
86
84
  "modulePathIgnorePatterns": [