Skip to content

Commit

Permalink
Merge pull request #9 from mapbox/traffic-plugin
Browse files Browse the repository at this point in the history
Adds Traffic plugin
  • Loading branch information
jmkiley authored Sep 19, 2017
2 parents 247ccf1 + e5f966d commit 0c60b57
Show file tree
Hide file tree
Showing 31 changed files with 741 additions and 269 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.DS_Store

*.framework
*.build/*
xcuserdata
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint
mapbox_access_token

Carthage/
Pods
*.xcworkspace
1 change: 0 additions & 1 deletion Cartfile

This file was deleted.

1 change: 0 additions & 1 deletion Cartfile.resolved

This file was deleted.

12 changes: 12 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing

We welcome contributions to Mapbox Plugins for iOS. In order to add a plugin, please open an issue outlining the plugin. This allow contributors to discuss the proposal and also ensure that there isn't already work being done on that feature.

If you are interested in reporting a bug, please open an issue that includes steps to reproduce the issue. Suggestions for how to improve existing plugins are also welcome.


# Code of conduct

Everyone is invited to participate in Mapbox’s open source projects and public discussions: we want to create a welcoming and friendly environment. Harassment of participants or other unethical and unprofessional behavior will not be tolerated in our spaces. The [Contributor Covenant](http://contributor-covenant.org) applies to all projects under the Mapbox organization and we ask that you please read [the full text](http://contributor-covenant.org/version/1/2/0/).

You can learn more about our open source philosophy on [mapbox.com](https://www.mapbox.com/about/open/).
2 changes: 1 addition & 1 deletion LocalizationPlugin/Info.plist → Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Localization</string>
<string>Traffic</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
13 changes: 13 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright © 2017, Mapbox

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
9 changes: 0 additions & 9 deletions LocalizationPlugin/LocalizationPlugin.h

This file was deleted.

6 changes: 0 additions & 6 deletions LocalizationPlugin/MBXLocalizationPlugin.h

This file was deleted.

63 changes: 0 additions & 63 deletions LocalizationPlugin/MBXLocalizationPlugin.m

This file was deleted.

15 changes: 0 additions & 15 deletions LocalizationPlugin/MGLVectorSource+MBXAdditions.h

This file was deleted.

53 changes: 0 additions & 53 deletions LocalizationPlugin/MGLVectorSource+MBXAdditions.m

This file was deleted.

47 changes: 47 additions & 0 deletions MapboxPlugins.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

Pod::Spec.new do |s|

# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#

s.name = "MapboxPlugins"
s.version = "0.0.1"
s.summary = "Experimental plugins to supercharge your maps."

# This description is used to generate tags and improve search results.
s.description = "Add plugins to your Mapbox basemaps. Each plugin is packaged as a subspec. At the moment, the following plugin is available:
* “Traffic” adds traffic congestion layers to a map view.
Mapbox Plugins require version 3.6 of the Mapbox iOS SDK or higher."
s.homepage = "https://github.com/mapbox/mapbox-plugins-ios/"
s.screenshot = 'https://raw.githubusercontent.com/mapbox/mapbox-plugins-ios/master/TrafficPlugin/trafficplugin.gif'
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.license = { :type => "ISC", :file => "LICENSE.md" }

# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.author = { "Mapbox" => "[email protected]" }
s.social_media_url = "https://twitter.com/mapbox"

# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#

s.platform = :ios, "8.0"

# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.source = { :git => "https://github.com/mapbox/mapbox-plugins-ios.git", :branch => "traffic-plugin" }

s.module_name = 'MapboxPlugins'

s.subspec 'PluginKit' do |core|
core.source_files = 'PluginKit/*.h'
core.dependency 'Mapbox-iOS-SDK', '~> 3.6.0'
end

s.subspec 'Traffic' do |traffic|
traffic.source_files = 'TrafficPlugin/*.{h,m}'
traffic.dependency 'MapboxPlugins/PluginKit'
end

end
Loading

0 comments on commit 0c60b57

Please sign in to comment.