Commit Graph

130 Commits

Author SHA1 Message Date
John Firebaugh
e31f2ecb67 [build] Push binary size history to S3 (#12538) 2018-08-06 13:10:54 -07:00
Jason Wray
1a94eb47c0 [ios, build] Support prereleases in templated release notes 2018-08-06 12:31:21 -04:00
Jason Wray
37e680c66b [ios, build] Strip symbols before recording size metrics 2018-07-09 12:31:43 -04:00
John Firebaugh
840a5cf120 [build] Record binary size via GitHub check 2018-07-03 14:03:32 -07:00
Jason Wray
6fc0eb908b [ios, build] Postpone jazzy install for ios-release build 2018-07-03 15:47:49 -04:00
Jason Wray
b0beb8bfcb [ios, build] Remove broken/unused demo project 2018-07-03 13:31:58 -04:00
Jason Wray
614aab4ea2 [ios, build] Log raw xcodebuild output for package commands 2018-07-03 13:31:58 -04:00
Jason Wray
43efd61813 [ios, build] Install npm packages before deploying 2018-05-29 17:04:33 -04:00
Jason Wray
6e0d6ef44a [ios, build] Populate GitHub releases with templated notes
Replicates our existing release notes format as an EJS template and Node JS script, then uploads the formatted notes during the deployment process.
2018-05-24 13:27:26 -04:00
Jason Wray
3c74bbb9d0 [ios, build] Remove unused build scripts 2018-05-24 13:27:26 -04:00
Jason Wray
0d067e3925 [ios, build] Re-add support for 32-bit simulators (i386) 2018-05-11 16:38:31 -04:00
Jason Wray
d4e597eb94 [ios, macos] Convert various class methods to class properties
This improves the Swift interface while having no effect on Obj-C usage.
2018-04-16 18:42:34 -04:00
Jason Wray
6718887f0b [ios, build] Move iOS release builds to CircleCI 2018-03-14 15:46:52 -04:00
Jason Wray
7c2e8c5eb1 [ios] Remove support for 32-bit simulators (i386)
And restore some docs that got lost in a merge.
2018-01-19 10:25:17 -05:00
Jason Wray
c6169ab50c [ios] Re-add i386 slice to framework; strip from dSYM 2017-12-21 12:09:43 -08:00
Jason Wray
8e69a35d75 [ios, build] Stop packaging i386 simulator arch
Only builds and packages x86_64 architecture in our frameworks and dSYM. Removes support for 32-bit simulators, such as the iPhone 5 and iPad 2. This does not affect device support — 32-bit devices are still supported via the arm7 architecture.
2017-12-20 17:36:06 -08:00
Jesse Bounds
bcfe51c16c [ios] Add easy to use demo app for developers (#10524)
This updates the package script to include a pre-built iOS app in the published assets of the dynamic SDK. It symlinks the Mapbox.framework in that dynamic build to the demo app so the only real increase in size is the demo Xcode project itself.

The addtional step in the publish script checks that the Mapbox.framework that is symlinked in for building in the demo project can actually be built. If it cannot, then the step is skipped and the build will continue as it normally would. Since the demo app is currently not required for publishing it should not block publishing a build.
2017-11-22 10:28:43 -08:00
Jason Wray
50ee8daca1 [ios, build] Don't include docs for auto-installed jazzy 2017-10-10 11:45:12 -07:00
Jason Wray
20df5f3844 [ios, build] Use github-release to check if release has been published 2017-10-10 11:28:24 -07:00
Jason Wray
5cad92cc33 [ios] Print Xcode and SDK version during packaging 2017-08-25 16:12:00 -04:00
Jason Wray
82c2d4b3ca [build] Include bcsymbolmap files in iOS dynamic framework package 2017-07-26 15:49:23 -04:00
Jason Wray
612a1e8377 [build] Remove unused iOS 'self contained' static framework packaging
This was a faux framework once required by Fabric.
2017-07-25 14:31:40 -04:00
Jason Wray
6cba15f3a9 [ios] Remove old Fabric build infrastructure 2017-06-14 17:36:51 -04:00
Fabian Guerra
12b6fdbe3b Merge branch 'release-ios-v3.5.0-android-v5.0.0' into boundsj-merge-release-branch
# Conflicts:
#	cmake/core-files.cmake
#	mapbox-gl-js
#	platform/android/CHANGELOG.md
#	platform/ios/CHANGELOG.md
#	platform/macos/CHANGELOG.md
#	platform/qt/bitrise-qt5.yml
#	src/mbgl/gl/attribute.hpp
#	src/mbgl/gl/context.cpp
#	src/mbgl/gl/program.hpp
#	src/mbgl/map/map.cpp
#	src/mbgl/programs/program.hpp
#	src/mbgl/renderer/painter.cpp
2017-04-11 21:46:23 -04:00
Minh Nguyễn
8539d7092e [ios, macos] Preserve symlinks when zipping framework 2017-04-05 01:25:37 -07:00
Minh Nguyễn
fc382f7108 [macos] Fixed broken images in DDS guide 2017-04-03 15:36:07 -07:00
John Firebaugh
e488ca702e Merge branch 'release-ios-v3.5.0-android-v5.0.0' 2017-03-21 12:04:20 -07:00
Jason Wray
751fa3b8a2 [ios, build] Change version checker URL to ios-sdk site (#8468)
Decouple the version checker updating from the deploy process.
2017-03-19 01:29:25 -04:00
Jason Wray
bce352bd86 [ios] Add nightly build infrastructure 2017-03-10 19:19:59 -08:00
Jason Wray
a6bbf09fa6 [ios] Add version checker update to deploy script 2017-03-07 10:47:29 -08:00
Jesse Bounds
968bb369c9 [ios] Use curl to verify that a release is not published
The previous incantation is now failing due to redirects. Getting only
the headers from curl and checkin the first line works reliably.
2017-03-01 16:12:03 -08:00
Jesse Bounds
655b7c035c [ios] Search for ICU path using cmake cache 2017-02-16 10:59:54 -08:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Minh Nguyễn
7ef2843e6a Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7 2017-01-16 11:38:35 -08:00
Minh Nguyễn
4adcdac7b5 [macos] Upgrade macOS deployment and distribution (#7649)
* [macos] Updated deployment scripts

Ported fixes from #6581 and #6740.

* [macos] Acknowledge AppleScript support

* [macos] Prepared for published documentation

Also added link to Dash docset.

* [macos] Added CocoaPods podspecs

Ported from #5653.

* [macos] Rewrote readme; updated screenshot

* [macos] Include setup instructions in standalone docs
2017-01-15 13:18:21 -08:00
Minh Nguyễn
0fac9d5674 [ios, macos] Added guide for working with GeoJSON 2017-01-04 21:39:08 -08:00
Minh Nguyễn
50ae3eb3c0 [ios, macos] Insert example code in original headers (#7569)
* [ios, macos] Removed extraneous code fences

* [ios] Streamlined example delimiters

Use test method names as names of example blocks and test method documentation comments as front matter for examples. Set off example blocks using a syntax similar to playground markup syntax. Avoid hard-coding indentation levels. Trigger Xcode build error when an error occurs in the script.

* [ios] Removed platform-specific code from examples

* [ios] Fixed logic error

The comment said 200 while the code said 1,500.

* [ios] Formalize build phase input

* [ios] Insert examples into original source documentation

Rewrote the example code insertion script to work on the original source files and overwrite any existing code examples on the same symbols. The script uses SourceKitten to find the documentation comment for the symbol named by the test method.

Replaced the Run Script build phase that runs the example code insertion script with a make rule that runs the same script. Inlined skeleton examples minus the contents of the code blocks.

* [ios] Fixed syntax error

* [ios] Ran ios-add-examples-to-docs

* [ios] Avoid touching unchanged headers

* [ios] Refactored example insertion script

* [ios] Point jazzy at original sources

* [ios] Invoke SourceKitten only once

* [ios] Look for methods as well as properties

* [ios] Thoroughly search for code blocks in doc comments

Refactored the example code insertion script to index test methods by their names, then recursively search the SourceKitten output for documentation comments that contain Swift code blocks, replacing each code block with the associated test method body.

* [ios, macos] Enabled example insertion for macOS

The example code insertion script is now platform-agnostic.

* [ios, macos] Fixed documentation example tests

Set the map view’s style to a minimal local JSON file. Wait for the style to finish loading before running each test. Corrected CGVector type.

* [ios, macos] Dry run mode

The output of this mode isn’t a good indicator of whether any files would’ve needed to be changed, because the presence of a conditional compilation block in one of the test methods means this script would always change and revert the corresponding comment.

* [ios] Fixed test failure

The iOS implementation of MGLMapView tries to show the Streets style by default even if no access token has been set. Avoid a race condition and frequent test failure by specifying the minimal style on initialization.

* [ios, macos] Ensure SourceKitten is installed before inserting example code

* [ios, macos] Tear down map view after each test

Keep map views from previous tests from hanging around, potentially obscuring the result of a subsequent test. Set the access token to a bogus token upfront for all style layer tests. Unified MGLStyle usage within MGLStyleTests.

* [ios, macos] Reinsert examples after generating runtime styling headers
2017-01-04 12:19:31 -08:00
Eric Wolfe
01717af59f [ios] Adds guides to documentation sidebar (#7488)
Initial set of guides focused on runtime styling
2017-01-03 14:40:14 -08:00
Eric Wolfe
9faa4af1c3 [ios] Add inline examples in documentation (#7337) 2016-12-21 10:22:13 -08:00
Minh Nguyễn
a6b1773a44 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
Maya Gao
7f67a2926d iOS jazzy theme improvements (#7422)
some small improvements to the theme
2016-12-16 16:11:47 -08:00
Tom MacWright
74f39c0120 [ios] [osx] Make theme configurable (#7420)
* Make theme configurable

* [ios][osx] Make jazzy theme configurable
2016-12-15 10:30:45 -08:00
Konstantin Käfer
df8c467056 [build] add binary size logging to iOS nightlies 2016-11-15 10:07:47 -08:00
Justin R. Miller
8ffd1f6925 [ios, macos] document custom API URL & add Info.plist guide (#6833)
Also support base URL nullability in order to use default value.
2016-11-01 10:29:33 -07:00
Jason Wray
f2ca03005b [ios] Fix deploy script temp directory creation (#6740)
Also:
 - Ignore stdout from github-release uploads.
 - Add execution time to finished message.
2016-10-18 16:43:37 -04:00
Jason Wray
8d221cafe0 [ios] Deploy script enhancements (#6581)
* Add `make ideploy` command for publishing iOS releases.
* Get release version from latest ios git tag.
* Use caffeinate to prevent the system from sleeping during the deploy process.
* Checkout tag to ensure correct commit is used
* Fail if release has already been published (not a draft) on GitHub
* Add publish step logging and colorize it.
* Allow s3 upload to show progress.
* Use build/ios/deploy directory for downloaded release zips; always overwrite via -O flag.
* Add zip filename to s3 step.
* Auto-install github-release command
2016-10-05 20:29:17 -04:00
Jason Wray
9a92a3a5dd [ios][build] Validate dSYM and framework UUIDs 2016-09-30 18:49:05 -04:00
Jason Wray
c72deacdcf [ios][build] Generate debug symbols for all builds
Fixes the issue where our stripped dynamic build did not have a valid dSYM.

Disabling GCC_GENERATE_DEBUGGING_SYMBOLS for SYMBOLS=NO builds meant
that those builds had no debug symbols to strip or add to a dSYM.
2016-09-30 18:49:05 -04:00
Jason Wray
23eaf6fb86 [ios] Don't specify Swift version for jazzy doc generation (#6377) 2016-09-19 15:43:45 -04:00
Jesse Bounds
9450323f9e [ios] Automate upload of build output to Fabric
This adds a script that automates the process of uploading the
required build output to Fabric. It requires the `FABRIC_KIT_API_KEY`
env variable and another new script called `validate-fabric-zip.sh`.
2016-08-19 16:22:42 -07:00