Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Look inside MapboxGL.bundle when present - #1012

Merged
incanus merged 1 commit into
masterfrom
1011-bundle
Mar 18, 2015
Merged

incanus merged 1 commit into
masterfrom
1011-bundle

Conversation

@1ec5

@1ec5 1ec5 commented Mar 16, 2015

Copy link
Copy Markdown
Contributor

Fixes the use of bundled styles when incorporating the library into a project according to the README. Fixes #1011.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@1ec5

1ec5 commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

There's nearly identical logic in MGLMapView, which we should probably fold into here. How should we distinguish between the demo app and other apps? A cleaner solution would be to make the demo app put styles/ in MapboxGL.bundle too.

@incanus

incanus commented Mar 17, 2015

Copy link
Copy Markdown
Contributor

A cleaner solution would be to make the demo app put styles/ in MapboxGL.bundle too.

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 libMapboxGL.a.

@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.

@ljbade

ljbade commented Mar 17, 2015

Copy link
Copy Markdown
Contributor

Ideally the demo app should follow the same logic as end user apps if possible.

@kkaefer

kkaefer commented Mar 17, 2015

Copy link
Copy Markdown
Member

but the demo app has other exceptions such as linking against component libraries of GL and not libMapboxGL.a.

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.

@1ec5

1ec5 commented Mar 17, 2015

Copy link
Copy Markdown
Contributor Author

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.

@incanus

incanus commented Mar 17, 2015

Copy link
Copy Markdown
Contributor

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.

👍 I knew there was something.

this PR is good to go as soon as the build finishes

Cool, will review.

@incanus

incanus commented Mar 18, 2015

Copy link
Copy Markdown
Contributor

Just got tests to pass; merging.

incanus added a commit that referenced this pull request Mar 18, 2015
Look inside MapboxGL.bundle when present
@incanus
incanus merged commit 7b99601 into master Mar 18, 2015
@incanus
incanus deleted the 1011-bundle branch March 18, 2015 03:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MGLMapView looks for bundled styles inside styles/ instead of MapboxGL.bundle

5 participants