From f21fb372d64869d08a95f536e603be0b47937257 Mon Sep 17 00:00:00 2001 From: maksymdeminbbc Date: Thu, 27 Oct 2022 11:28:34 +0300 Subject: [PATCH] chore: update android to sdk 31 --- android/build.gradle | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e4ae418..fa83872 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,11 +2,11 @@ apply plugin: 'com.android.library' buildscript { repositories { + google() mavenCentral() - jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.0' + classpath 'com.android.tools.build:gradle:4.2.0' } } @@ -14,16 +14,17 @@ repositories { mavenCentral() maven { url "https://repo.leanplum.com/" } maven { url "$rootDir/node_modules/react-native/android" } + maven { url "$rootDir/node_modules/jsc-android/dist" } maven { url 'https://jitpack.io' } } android { - compileSdkVersion 28 - buildToolsVersion '28.0.1' + compileSdkVersion 31 + buildToolsVersion '31.0.0' defaultConfig { minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 31 versionCode 1 versionName "1.0" ndk { @@ -31,15 +32,14 @@ android { } } lintOptions { - warning 'InvalidPackage' + warning 'InvalidPackage' } } - dependencies { compile "com.facebook.react:react-native:+" compile 'com.leanplum:leanplum-fcm:5.2.3' compile 'com.google.firebase:firebase-messaging:17.5.0' - + compile 'com.leanplum:leanplum-location:5.2.3' compile "com.google.android.gms:play-services-location:17.0.0" -} +} \ No newline at end of file diff --git a/package.json b/package.json index 255e7f7..9a20866 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brandingbrand/react-native-leanplum", - "version": "5.0.1", + "version": "6.0.0", "author": "Branding Brand LLC", "bugs": { "url": "https://github.com/brandingbrand/react-native-leanplum/issues"