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

Fix path to react-native when developing outside of the example app #527

Merged
merged 1 commit into from
Sep 2, 2016
Merged
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
18 changes: 17 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ buildscript {
mavenLocal()
jcenter()
maven {
// For developing the library outside the context of the example app, expect `react-native`
// to be installed at `./android/node_modules`.
url "$projectDir/../node_modules/react-native/android"
}
maven {
// For developing the example app, expect this library to be installed as a node module
// inside of the example app. So traverse from `./android/example/node_modules/react-native-maps/android`
// to `./android/example/node_modules/react-native/android`.
// react-native should be installed since it's a peer dependency
url "$projectDir/../../react-native/android"
}
}
Expand All @@ -20,8 +29,15 @@ allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// For developing the library outside the context of the example app, expect `react-native`
// to be installed at `./android/node_modules`.
url "$projectDir/../node_modules/react-native/android"
}
maven {
// Refer to the local install of react-native in the node_modules folder
// For developing the example app, expect this library to be installed as a node module
// inside of the example app. So traverse from `./android/example/node_modules/react-native-maps/android`
// to `./android/example/node_modules/react-native/android`.
// react-native should be installed since it's a peer dependency
url "$projectDir/../../react-native/android"
}
Expand Down