From de215eee9920734ddb650c2ef5f35543ef493a38 Mon Sep 17 00:00:00 2001 From: Bebnev Anton Date: Thu, 10 Feb 2022 15:35:02 +0300 Subject: [PATCH] fix android gradle build. Closes #12 --- android/build.gradle | 12 +++++++----- package.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index fcd8b2e..dd95114 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,23 +4,24 @@ def safeExtGet(prop, fallback) { buildscript { repositories { + google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.3.1' + classpath 'com.android.tools.build:gradle:3.5.3' } } apply plugin: 'com.android.library' android { - compileSdkVersion safeExtGet('compileSdkVersion', 27) - buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3') + compileSdkVersion safeExtGet('compileSdkVersion', 28) + buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) - targetSdkVersion safeExtGet('targetSdkVersion', 22) + targetSdkVersion safeExtGet('targetSdkVersion', 28) versionCode 1 versionName "1.0" } @@ -31,9 +32,10 @@ android { } repositories { + google() mavenCentral() } dependencies { - compile 'com.facebook.react:react-native:+' + implementation 'com.facebook.react:react-native:+' } diff --git a/package.json b/package.json index 8f25e08..674d16e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-user-agent", - "version": "2.1.0", + "version": "2.2.0", "description": "Library that helps you to get mobile application user agent and web view user agent strings.", "main": "index.js", "repository": {