Skip to content

Commit 5254753

Browse files
committed
Upgrade react native along with gradle and native classes.
1 parent 09434a0 commit 5254753

File tree

9 files changed

+6318
-71
lines changed

9 files changed

+6318
-71
lines changed

android/build.gradle

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
buildscript {
2-
repositories {
3-
jcenter()
4-
}
2+
repositories {
3+
google()
4+
jcenter()
5+
}
56

6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.1.0'
8-
}
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:3.1.4'
9+
}
910
}
1011

1112
apply plugin: 'com.android.library'
1213

1314
android {
14-
compileSdkVersion 23
15-
buildToolsVersion "23.0.1"
15+
compileSdkVersion 27
1616

17-
defaultConfig {
18-
minSdkVersion 16
19-
targetSdkVersion 22
20-
versionCode 1
21-
versionName "1.0"
22-
ndk {
23-
abiFilters "armeabi-v7a", "x86"
24-
}
17+
defaultConfig {
18+
minSdkVersion 16
19+
targetSdkVersion 27
20+
versionCode 1
21+
versionName "1.0"
22+
ndk {
23+
abiFilters "armeabi-v7a", "x86"
2524
}
25+
}
2626
}
2727

28-
repositories {
29-
mavenCentral()
28+
allprojects {
29+
repositories {
30+
google()
31+
jcenter()
3032
maven {
31-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
32-
url "$rootDir/../node_modules/react-native/android"
33+
// All of React Native (JS, Android binaries) is installed from npm
34+
url "$rootDir/../node_modules/react-native/android"
3335
}
36+
}
3437
}
3538

3639
dependencies {
37-
compile 'com.facebook.react:react-native:+'
40+
implementation "com.facebook.react:react-native:0.57.+"
3841
}
693 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon Dec 28 10:00:20 PST 2015
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip

android/gradlew

100644100755
Lines changed: 42 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/gradlew.bat

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialPackage.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.facebook.react.bridge.NativeModule;
99
import com.facebook.react.bridge.ReactApplicationContext;
1010
import com.facebook.react.uimanager.ViewManager;
11-
import com.facebook.react.bridge.JavaScriptModule;
1211

1312
public class RCTBluetoothSerialPackage implements ReactPackage {
1413
static final String TAG = "BluetoothSerial";
@@ -20,11 +19,6 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
2019
return modules;
2120
}
2221

23-
@Override
24-
public List<Class<? extends JavaScriptModule>> createJSModules() {
25-
return Collections.emptyList();
26-
}
27-
2822
@Override
2923
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
3024
return Collections.emptyList();

0 commit comments

Comments
 (0)