Skip to content

Commit de215ee

Browse files
committed
fix android gradle build. Closes #12
1 parent 5e7f9f5 commit de215ee

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

android/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ def safeExtGet(prop, fallback) {
44

55
buildscript {
66
repositories {
7+
google()
78
jcenter()
89
}
910

1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:1.3.1'
12+
classpath 'com.android.tools.build:gradle:3.5.3'
1213
}
1314
}
1415

1516
apply plugin: 'com.android.library'
1617

1718
android {
18-
compileSdkVersion safeExtGet('compileSdkVersion', 27)
19-
buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3')
19+
compileSdkVersion safeExtGet('compileSdkVersion', 28)
20+
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
2021

2122
defaultConfig {
2223
minSdkVersion safeExtGet('minSdkVersion', 16)
23-
targetSdkVersion safeExtGet('targetSdkVersion', 22)
24+
targetSdkVersion safeExtGet('targetSdkVersion', 28)
2425
versionCode 1
2526
versionName "1.0"
2627
}
@@ -31,9 +32,10 @@ android {
3132
}
3233

3334
repositories {
35+
google()
3436
mavenCentral()
3537
}
3638

3739
dependencies {
38-
compile 'com.facebook.react:react-native:+'
40+
implementation 'com.facebook.react:react-native:+'
3941
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-user-agent",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Library that helps you to get mobile application user agent and web view user agent strings.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)