Skip to content

Commit feff239

Browse files
committed
Update Android default sdk and NDK versions
1 parent 1876fd1 commit feff239

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

Sample/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ PODS:
337337
- React-jsi (= 0.66.3)
338338
- React-logger (= 0.66.3)
339339
- React-perflogger (= 0.66.3)
340-
- ReactNativeGetLocation (2.1.2):
340+
- ReactNativeGetLocation (2.2.1):
341341
- React-Core
342342
- Yoga (1.14.0)
343343
- YogaKit (1.18.1):
@@ -523,7 +523,7 @@ SPEC CHECKSUMS:
523523
React-RCTVibration: 50cfe7049167cfc7e83ac5542c6fff0c76791a9b
524524
React-runtimeexecutor: bbbdb3d8fcf327c6e2249ee71b6ef1764b7dc266
525525
ReactCommon: 9bac022ab71596f2b0fde1268272543184c63971
526-
ReactNativeGetLocation: 3bc33ae8cbe026ed49d4cdac6a1d3e9691394e64
526+
ReactNativeGetLocation: d6b15cb2a2023ab7703f756501bad86d3ecf6fea
527527
Yoga: 32a18c0e845e185f4a2a66ec76e1fd1f958f22fa
528528
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
529529

android/build.gradle

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,50 @@ buildscript {
99
if (project == rootProject) {
1010
repositories {
1111
google()
12-
jcenter()
12+
mavenCentral()
1313
}
1414

1515
dependencies {
1616
//noinspection GradleDependency
17-
classpath("com.android.tools.build:gradle:3.5.1")
17+
classpath("com.android.tools.build:gradle:4.2.2")
1818
}
1919
}
2020
}
2121

2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion safeExtGet('compileSdkVersion', 28)
25+
ndkVersion safeExtGet('ndkVersion', '21.4.7075529')
26+
27+
compileSdkVersion safeExtGet('compileSdkVersion', 30)
2628
//noinspection GradleDependency
27-
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
29+
buildToolsVersion safeExtGet('buildToolsVersion', '30.0.2')
2830

2931
defaultConfig {
30-
minSdkVersion safeExtGet('minSdkVersion', 16)
32+
minSdkVersion safeExtGet('minSdkVersion', 21)
3133
//noinspection OldTargetApi
32-
targetSdkVersion safeExtGet('targetSdkVersion', 28)
34+
targetSdkVersion safeExtGet('targetSdkVersion', 30)
3335
}
3436
lintOptions {
3537
abortOnError false
3638
}
3739
}
3840

3941
repositories {
40-
mavenLocal()
41-
google()
42-
jcenter()
43-
maven {
44-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
45-
url "$rootDir/../node_modules/react-native/android"
42+
repositories {
43+
mavenCentral()
44+
mavenLocal()
45+
maven {
46+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
47+
url("$rootDir/../node_modules/react-native/android")
48+
}
49+
maven {
50+
// Android JSC is installed from npm
51+
url("$rootDir/../node_modules/jsc-android/dist")
52+
}
53+
54+
google()
55+
maven { url 'https://www.jitpack.io' }
4656
}
4757
}
4858

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-get-location",
33
"displayName": "React-Native Get Location",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"description": "⚛ Simple to use React Native library to get device location for Android and iOS.",
66
"main": "index.js",
77
"types": "index.d.ts",

0 commit comments

Comments
 (0)