Skip to content

Commit

Permalink
fix android gradle build. Closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
bebnev committed Feb 10, 2022
1 parent 5e7f9f5 commit de215ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -31,9 +32,10 @@ android {
}

repositories {
google()
mavenCentral()
}

dependencies {
compile 'com.facebook.react:react-native:+'
implementation 'com.facebook.react:react-native:+'
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit de215ee

Please sign in to comment.