Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复react native 0.59.x android 构建失败 #381

Open
wants to merge 3 commits into
base: 1.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ buildscript {
mavenLocal()
google()
jcenter()
maven() {
url 'http://repo.lovebing.net/repository/maven-public/'
}
// maven() {
// url 'http://repo.lovebing.net/repository/maven-public/'
// }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
Expand All @@ -22,9 +22,9 @@ repositories {
mavenLocal()
google()
jcenter()
maven {
url 'http://repo.lovebing.net/repository/maven-public/'
}
// maven {
// url 'http://repo.lovebing.net/repository/maven-public/'
// }
}

android {
Expand All @@ -51,10 +51,11 @@ android {
}

dependencies {
compileOnly 'com.facebook.react:react-native:0.60.6'
compileOnly 'com.facebook.react:react-native:+'
//noinspection GradleCompatible
compileOnly 'com.android.support:appcompat-v7:28.0.0'
implementation files('libs/BaiduLBS_Android.jar')
implementation'androidx.annotation:annotation:+'
compileOnly files('src/main/assets')
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import android.os.Build;
import android.os.Looper;
import android.support.annotation.MainThread;
import android.support.annotation.RequiresApi
import android.support.annotation.RequiresApi;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public boolean onMarkerClick(Marker marker) {
reactContext
.getJSModule(RCTEventEmitter.class)
.receiveEvent(overlayMarker.getId(),
"topClick", writableMap.copy());
"topClick", writableMap);
}
sendEvent(mapView, "onMarkerClick", writableMap);
return true;
Expand Down