From c8f50a02222a606c47485c5b4169dc568e1d8570 Mon Sep 17 00:00:00 2001 From: biancalui-emarsys Date: Tue, 15 Oct 2024 17:15:05 +0800 Subject: [PATCH] chore: enabled desugaring --- android/build.gradle | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 51f920e..4fe6848 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,8 +22,8 @@ android { defaultConfig { minSdkVersion 24 targetSdkVersion 34 - versionCode 21 - versionName "1.21" + versionCode 22 + versionName "1.22" } lintOptions { abortOnError false @@ -32,6 +32,7 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 + coreLibraryDesugaringEnabled true } } @@ -47,4 +48,5 @@ repositories { dependencies { implementation "com.facebook.react:react-native:+" implementation "com.emarsys:emarsys-sdk:3.7.+" + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.2' } diff --git a/package.json b/package.json index 5ab2e16..3c81701 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-emarsys-wrapper", - "version": "1.21.0", + "version": "1.22.0", "description": "React Native wrapper for Emarsys SDK", "main": "index.js", "types": "typescript/index.d.ts",