Skip to content

Commit abff3a1

Browse files
committed
feat: set kotlin version properly
1 parent ae13714 commit abff3a1

3 files changed

Lines changed: 29 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,29 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [3.14.2] - 2024-03-25
8+
## [4.0.0] - 2024-03-25
99

1010
- iOS SDK version: 6.9.0
11-
- Android SDK version: 14.0.1
11+
- Android SDK version: 15.0.0
12+
13+
### React Native
14+
15+
#### Changed
16+
17+
- Android SDK requires `kotlinVersion` >= `2.0.0`
18+
- Set Java verison to 17
19+
20+
### Android
21+
22+
#### Changed
23+
24+
- Compile API increased to 35, dependencies updated
25+
- Internal library obfuscation reworked
26+
- Root detection divided into 2 parts (quick initial checks, and time-demanding asynchronous post checks)
27+
28+
#### Fixed
1229

30+
- ANR issues bug-fixing
1331
### iOS
1432

1533
#### Added

android/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
3-
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["FreeraspReactNative_kotlinVersion"]
3+
def kotlin_version = "2.1.0"
44

55
repositories {
66
google()
@@ -59,8 +59,12 @@ android {
5959
}
6060

6161
compileOptions {
62-
sourceCompatibility JavaVersion.VERSION_1_8
63-
targetCompatibility JavaVersion.VERSION_1_8
62+
sourceCompatibility JavaVersion.VERSION_17
63+
targetCompatibility JavaVersion.VERSION_17
64+
}
65+
66+
kotlinOptions {
67+
jvmTarget = "17"
6468
}
6569

6670
if (project.android.hasProperty("namespace")) {
@@ -80,7 +84,7 @@ rootProject.allprojects {
8084
}
8185
}
8286

83-
def kotlin_version = getExtOrDefault("kotlinVersion")
87+
def kotlin_version = "2.1.0"
8488
def react_native_version = getExtOrDefault("reactNativeVersion")
8589

8690
dependencies {

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.14.2",
3+
"version": "4.0.0",
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)