Commit Graph

58 Commits

Author SHA1 Message Date
zmiao
6989ee6e03 [build] Use found code sign identities 2020-03-19 10:20:44 +02:00
Juha Alanen
4b148dc202 [build][ios] Refactor iOS test runner CI job configs 2020-02-27 10:09:35 +02:00
Juha Alanen
a5ec862a2a [test-runner] Share common code between test runners
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Juha Alanen
6d815401b1 [test-runner] Share common code between iOS test runners 2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c [test] Add iOS unit test runner 2020-02-14 12:01:52 +02:00
John Firebaugh
13e2acbc75 [ios, osx] Consolidate remaining files in platform/{ios,osx} 2016-02-12 14:53:52 -08:00
Minh Nguyễn
9350d3f78c [ios] Converted iOS SDK into dynamic framework
make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework.

The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework.

Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks.

Fixes #828.
2016-01-22 14:45:56 -08:00
Minh Nguyễn
874ff24d8c [ios] Removed testDelegateRegionDidChange
Also failing randomly on Bitrise.

/ref #3555
2016-01-21 14:09:36 -08:00
Jason Wray
75ed155f4f [ios] remove testCompassTap test
Fails on CI because KIF is unstable. Refs
61615a44fd, #2769, #2734
2016-01-14 17:58:09 -05:00
Minh Nguyễn
61615a44fd [ios] Removed -testCenterSet
This test is causing frequent failures on Bitrise; the failure doesn’t appear to reflect a real-world problem.
2016-01-13 13:17:43 -08:00
Minh Nguyễn
1a501d4ec4 Happy new year! 2016-01-05 14:01:58 -08:00
Minh Nguyễn
e3992c41c3 [iOS] Wait for didChange notifications instead of timer 2015-11-25 14:39:32 -08:00
Bruno de Oliveira Abinader
cb9b397985 [core] Fix LatLngBounds default coordinates
LatLngBounds southwest and northeast coordinate points were inverted, so
they could be extended via LatLngBounds::extend(). However, this looks
confusing and error-prone.

A static LatLngBounds::getExtendable() is added to address cases when we
want to extend LatLngBounds.
2015-11-18 09:37:27 +02:00
Minh Nguyễn
4956c05042 [iOS] Wait for style loading, then rotation, then compass fading
Fixes #2920.
2015-11-04 13:02:32 -08:00
Mike Morris
79a5a96037 [core] mason geojsonvt-2.1.6.3
- [osx] set -fvisibility-inlines-hidden in gyp/common.gypi to silence
  mismatched visibility linker warnings
- [linux] set cxx_host in GYP_FLAGS to set -fabi-version=0 on gcc builds
  to use clang-built mason binaries
- [ios] update symbol visibility for iOS tests
- [ios] link libgeojsonvt.a in iOS tests xcodeproj
  - add libgeojsonvt.a to General -> Linked Frameworks and Libraries
  - add mason_packages (recursive) to Build Settings -> Library Search Path
- [ios] add libuv and geojsonvt first in iOS libtool smush to ensure symbols
  are found by later compilation units where they are undefined
2015-11-02 18:41:34 -05:00
Justin R. Miller
1421755434 remove metrics tests 2015-10-27 10:45:10 -07:00
Justin R. Miller
48d6d039ed remove heading tests as unreliable 2015-10-27 10:43:20 -07:00
Justin R. Miller
1c57039365 adjust enabled tests 2015-10-27 10:40:52 -07:00
Justin R. Miller
56ede35c0f test in Debug 2015-10-27 10:36:31 -07:00
Justin R. Miller
7d8655baf3 tighten up non-location tests 2015-10-27 10:36:31 -07:00
Minh Nguyễn
21c40f41e8 Test metrics on staging endpoint 2015-10-20 14:48:11 -07:00
Justin R. Miller
6eee72e677 fixes #2419: adapt iOS tests for Bitrise CI 2015-10-20 11:32:39 -07:00
Jason Wray
28be82c1c1 [ios] remove CoreTelephony dependency
Cellular carrier name and connectivity level will now only be sent if
the developer independently chooses to link the CoreTelephony framework
in their app.
2015-10-19 13:52:28 -04:00
Minh Nguyễn
8e8a341e28 [iOS] Dismiss authorization prompt before testing Location Services delegate methods 2015-10-16 14:58:57 -07:00
Minh Nguyễn
c71416377f [iOS] Revert 'Use modular headers everywhere'
This commit rolls back AliSoftware/OHHTTPStubs@806ba99fb7 so that we can keep using OHHTTPStubs in the same project without creating a separate framework target.
2015-10-16 14:58:54 -07:00
Minh Nguyễn
ebf81a1e27 [iOS] Upgraded to AliSoftware/OHHTTPStubs@4.3.0 2015-10-16 14:58:48 -07:00
Justin R. Miller
6e1b1836f4 fixes #2611: iOS test app long press drops debug marker 2015-10-15 11:33:58 -07:00
Jason Wray
394c1be038 [ios][tests] disable non-null warning 2015-10-06 13:55:08 -04:00
Jason Wray
2762f53cdf [iOS] disable perfectly good tests so they stop flapping on Travis
Travis is inconsistently failing the following tests, so let's
temporarily disable them.

- `testDirectionSet`
- `testCompassTap`
- `testDirectionReset`
- `testCenterSet`
- `testDelegateRegionDidChange`

It bears repeating that these tests _only_ fail on Travis, running them
locally has always passed.

Fixes #2347
2015-09-21 13:16:30 -07:00
Adam Hunter
620e554f67 Fixes the test for setting center canceling animations. A good submit to look at for writing asynchronous tests. 2015-09-15 17:45:22 -07:00
Adam Hunter
c9b14125d8 Add test that setting the center coordinate cancels animations 2015-09-15 17:45:22 -07:00
Minh Nguyễn
c1d2292809 Increased timeout for rotation animation 2015-09-15 11:05:46 -07:00
Minh Nguyễn
6ec8b2805d Upgraded to iOS Simulator 9.0, KIF 3.3.0
Upgraded the test project. Rolled back part of 69cf6ed3d2 to work around facebook/xctool#528.
2015-09-15 11:05:46 -07:00
Minh Nguyễn
831df11ec4 Disabled iOS metrics tests
ref #1887
2015-08-31 15:45:14 -07:00
Jason Wray
3643053cb4 Bump metrics tests timeouts EVERYWHERE 2015-08-25 16:00:44 -07:00
Jason Wray
4977858f4d Fix testUserTrackingModeFollow test to accept location permissions ask
I thought that the tests were bypassing the permissions dialog, but it turns out that was only half correct: we were not actually asking for `always` location permission in MBGL.
2015-08-25 14:59:17 -07:00
Justin R. Miller
3f99f5e712 GL is the library, SDK is the product 2015-08-21 11:01:07 -07:00
Minh Nguyễn
6d1c10dc18 Increased timeouts for failing metrics tests
ref #1887
2015-08-21 09:36:23 -04:00
Minh Nguyễn
ac2ad993a5 Fit to coordinates
Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
2015-06-26 21:46:15 -07:00
Minh Nguyễn
1d11624efd Test fit to bounds; added MGLCoordinateBounds functions
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
fc209e31c5 Reversed direction to be clockwise
For consistency with MapKit, the Google Maps SDK, and these methods’ own documentation.

Fixes #1780.
2015-06-25 10:20:48 -07:00
John Firebaugh
4ba78b6bcf Transform needs only a single TransformState 2015-06-24 13:08:36 -07:00
Jason Wray
e75e538ddb Add location tests for iOS
- Adds testDelegatesStartStopLocatingUser: Tests mapViewWillStartLocatingUser and mapViewDidStopLocatingUser delegate methods
- Adds testUserTrackingModeFollow
- Adds testUserTrackingModeFollowWithHeading (disabled because of library bug)

Fakes user location via swizzled CLLocationManager and hard-coded mock coordinates and heading.
2015-06-15 16:42:32 -07:00
Jason Wray
10990475b9 Adapt metrics tests to constant flush timer
Disables three tests:

- testTimerFiresFlush: passes but takes 60 seconds (full MGLFlushInterval)
- testFlushPostsEvents: fails
- testPostEventsNetworkRequest: fails
2015-05-28 17:08:18 -07:00
Jason Wray
a898ec02b0 Change LaunchScreen text to © because unicode is awesome 2015-05-21 15:10:54 -07:00
Jason Wray
9c309808bd Add iOS test project launch images for older devices, too 2015-05-21 14:59:43 -07:00
Jason Wray
ddc8d63730 Add iOS tests support for iPhone 6/6+ screen sizes 2015-05-21 14:34:04 -07:00
Jason Wray
dfd6ff00a2 Update tests for access token changes 2015-05-21 03:13:55 -07:00
Minh Nguyễn
2c7d0567fa Privatized MGLMapboxEvents
`-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
2015-05-18 11:55:54 -07:00
Justin R. Miller
1c8d3c5e42 patch up test project 2015-05-12 17:14:29 -07:00