Repository navigation
Look inside MapboxGL.bundle when present - #1012
Conversation
There was a problem hiding this comment.
We did used to have something like this before, a fallback for our own test app. We should probably do something really drastic here to warn the user, since frequently we will see support around people not having included the bundle properly. But we need to strike a balance between this and not hampering our test app, either.
Basically, "when present" should be 100% of the time when used as a third-party library, and we should scream about it a little more when this is not the case.
|
There's nearly identical logic in |
This has been my thought in the past, but the demo app has other exceptions such as linking against component libraries of GL and not @kkaefer Do you have any thoughts on this? I say don't let the demo app be an exception to the rule because of this need for logic branching to handle resources differently. |
|
Ideally the demo app should follow the same logic as end user apps if possible. |
We're doing this to get faster builds so we don't have to create the massive libMapboxGL.a library first and then statically link it into the app again. As far as using MapboxGL.bundle goes, I'm all for it. |
|
I started to look at making the iOS and OS X demo apps use MapboxGL.bundle as well but ran into problems with gyp’s project generator. Per offline discussion w/ @incanus, we’re going to punt on making the demo apps use the bundle, which means this PR is good to go as soon as the build finishes. |
👍 I knew there was something.
Cool, will review. |
|
Just got tests to pass; merging. |
Look inside MapboxGL.bundle when present
Fixes the use of bundled styles when incorporating the library into a project according to the README. Fixes #1011.