Skip to content

Commit 629983b

Browse files
committed
feat(Android): resolve react native version automatically
1 parent 44d8d0d commit 629983b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ rootProject.allprojects {
7878
}
7979

8080
def kotlin_version = getExtOrDefault("kotlinVersion")
81+
def react_native_version = getExtOrDefault("reactNativeVersion")
8182

8283
dependencies {
8384
// For < 0.71, this will be from the local maven repo
8485
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
8586
//noinspection GradleDynamicVersion
86-
implementation "com.facebook.react:react-native"
87+
implementation "com.facebook.react:react-native:$react_native_version"
8788
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
8889
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:8.3.0"
8990
}

android/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ FreeraspReactNative_kotlinVersion=1.7.0
22
FreeraspReactNative_minSdkVersion=23
33
FreeraspReactNative_targetSdkVersion=31
44
FreeraspReactNative_compileSdkVersion=33
5-
FreeraspReactNative_ndkversion=21.4.7075529
5+
FreeraspReactNative_ndkversion=21.4.7075529
6+
FreeraspReactNative_reactNativeVersion=+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freerasp-react-native",
3-
"version": "3.5.0",
3+
"version": "3.6.0-rc1",
44
"description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)