Commit Graph

97 Commits

Author SHA1 Message Date
Nathan Van Fleet
35c86172e4 Add Bazel build file implementation (#419) 2022-09-06 20:32:43 -07:00
Rob Labs
901ab18689 Fix for "NSExpression function is forbidden" (#411)
* For iOS 15.5, refactor how MGL Expressions are defined. Fix for "NSExpression function is forbidden" #331

* Convert CI Scheme to TestPlan. Add CI-Expressions TestPlan (which skips tests unrelated to `NSExpression`)

* Update Swift & Objective-C sample Code for MGL Expressions.  Use these patterns for fixing unit tests.

* Update Swift sample code & documentation for MGL expressions.  Update API docs (.h) & online docs (HTML) with:  `make darwin-style-code && make idocument`

* Refresh developer documentation for:  build dependencies, running unit tests from the command line, and logging in C++.

* Mark certain unit tests as "Expected Failures":  Awaiting unit test refactoring for https://github.com/maplibre/maplibre-gl-native/issues/331

* Update to latest Xcode & iOS SDK. Update GitHub Action Runner Images from https://github.com/actions/runner-images

* For iOS 15.5, add "Expected Failure" for tests

* Skip failing test unrelated to NSExpressions

* Convert macOS project to use Test Plans

* Exclude previously failing Offline Storage test

* Refactor MGL Match expressions for macOS & iOS 15.5

* Refactor Unit Tests so that "Excluded Failures" work for both macOS 12 & iOS 15.5

* Refresh documentation on how to test for macOS from the command line
2022-09-03 22:32:15 +02:00
Nathan Van Fleet
b159c991da Move mapview experiment file (#381)
* Move mapview experiment file

The implementation of this file appears to be that it's used in the demo app and is not public, but it's still in the path and compiled into the SDK itself. This seems unecessary.

* add missing

Co-authored-by: Rob Labs <roblabs@users.noreply.github.com>
2022-08-24 00:50:25 +02:00
Nathan Van Fleet
da49607f97 Remove duplicate files from ios-darwin and darwin (#384)
* Remove duplicate files from platform/ios/platform/darwin and platform/darwin

There are duplicated files between platform/iOS/platform/darwin/src and platform/darwin/src

```
src/headless_backend_cgl.mm
src/image.mm
src/string_nsstring.mm
src/headless_backend_eagl.mm
src/number_format.mm
src/local_glyph_rasterizer.mm
src/logging_nslog.mm
src/nsthread.mm
src/collator.mm
src/CFHandle.hpp
include/mbgl/util/image+MGLAdditions.hpp
src/timer.cpp
src/run_loop.cpp
src/async_task.cpp
src/gl_functions.cpp
```

There are three files which are not the exact same diff even

```
src/local_glyph_rasterizer.mm
src/nsthread.mm
src/collator.mm
```

Uniformly it seems like all platform/iOS/platform/darwin/src files should be removed keeping the platform/darwin/src versions.

I believe these files should have been deleted with a previous change of some kind and are otherwise not referenced.

* update
2022-08-15 17:10:56 +02:00
Nathan Van Fleet
6335d04ca9 Remove observation of key-path (#380)
This was previously used in an assert when hiding the info view, but that implemenatation was removed but this wasn't.
2022-08-13 15:41:08 +02:00
Nathan Van Fleet
b67b5a4a27 Remove account from xcconfig (#382)
This was previously used to support the compiled in Mapbox account code. It's not longer in the project but this search path does remain.
2022-08-13 15:40:23 +02:00
Tadej Novak
1341f33ba4 Add ClientOptions to be able to pass around client name and version (#365)
* ClientOptions and Qt user agent

* Update CHANGELOG.md

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
2022-08-13 15:36:50 +02:00
Tadej Novak
af36ed3456 Only override CMAKE_OSX_ARCHITECTURES for XCode (#352) 2022-08-06 17:27:47 +02:00
Oliver Wipfli
acdce04a22 Use maplibre docs for more links (#354) 2022-07-05 18:25:53 +02:00
Oliver Wipfli
6bbeb9fd91 Use the MapLibre style spec docs website (#353) 2022-07-05 18:25:11 +02:00
RobLabs.com
ca5810f61f Remove an unused static library (savings of 97 KB from iOS binary). 2022-06-20 14:17:46 -07:00
Oliver Wipfli
4e2a314dd3 Remove unneeeded iOS repo files (#307) 2022-06-18 09:27:44 +02:00
Oliver Wipfli
9b009cf9d3 Add iOS API docs workflow (#319) 2022-06-13 07:20:02 +02:00
Oliver Wipfli
fd58de940f Remove iOS cloudformation config (#308) 2022-06-08 13:46:30 +02:00
Oliver Wipfli
6907787d06 Link MapLibre org code of conduct (#306) 2022-06-08 13:45:54 +02:00
Oliver Wipfli
eca80dbc05 Replace Mapbox with MapLibre in README titles (#297) 2022-06-06 11:42:17 +02:00
Nathan Van Fleet
c762d231ea fix(darwin): logging - potential crash due to mishandled string formats (#286) 2022-05-20 10:22:33 -04:00
Tadej Novak
32ed70c95d [msvc] Fix warnings, mainly casting to smaller types (#270)
If the checks by GitHub Actions checks are met, then it seems good to go.  Thanks for supporting FOSS4G!
2022-04-22 11:40:55 -07:00
Nathan Van Fleet
b3a4f1686d fix(ios): logging format strings (#266) 2022-04-06 20:16:19 -04:00
Oleksandr Stepanov
6db27f50ad Implement map projection functionality (#254)
* Implement map projection functionality

* Add missing MGL_EXPORT

* Remove the automatic copyright header
2022-03-14 07:03:05 -07:00
Ian Saultz
ea234edf67 chore: rename master -> main in CI and scripts (#246)
Thanks for contributing to FOSS4G!
2022-03-07 11:40:06 -08:00
Ian Saultz
2025cf0933 [ios] fix missing attribution (#236) 2022-02-15 09:26:31 -08:00
Tadej Novak
b7a42e9974 Remove obsolete CI configurations (#219) 2022-01-28 12:01:43 -08:00
Mateusz Konieczny
334a2401ae [ios] mapbox -> maplibre, fix broken links (#189) 2022-01-20 19:06:23 +01:00
petr
381e43fe36 Updating changelogs for release ios-v5.12.2 and android-v9.5.2 2021-12-02 16:48:50 +01:00
Oleksandr Stepanov
ba1ec44061 [ios] Fix camera paddings reset on map view gestures performing. (#188)
* Fix camera paddings reset on map view gestures performing.

* Asymmetrical paddings fix demo app.

* Remove the demo for the PR branch.
2021-12-02 15:39:58 +01:00
Tadej Novak
66f32106a9 [qt] Improve CMake setup (#159) 2021-10-19 08:51:14 -07:00
Petr Pokorny
79cb2811ae macOS release notes 2021-09-06 19:44:52 +02:00
Petr Pokorny
aff2aaf18c Updated changelogs 2021-09-06 19:39:11 +02:00
Rob Labs
206bca766c update Unit Tests for Xcode 13 (#153)
* Update notes for Xcode Configuration Settings

* Fix Tests for CI Scheme in Xcode 13
2021-09-05 13:31:13 -07:00
Dan Paulat
8b804a1903 maplibre support for Qt6 and MSVC 2019 (#125)
* [qt] Updating CMake project files for Qt6

* [qt] Updating non-test projects for Qt6 and msvc2019

* [qt] Test fixes for Qt6 and msvc2019

* [qt] Link whole test archive for Qt and msvc2019

* [qt] Fixing Qt6 headless backend renderer

* [qt] Fixes for test failures

* [qt] Expression and style parser test fixes

* [qt] Backwards compatibility with Qt5 and Qt6

Minimum version is Qt 5.4 due to use of QOpenGLWidget

* [qt] LLVM is no longer required for a Windows build

* [msvc] msvc2019 fixes for maplibre

* Update test/storage/offline_database.test.cpp

Co-authored-by: Tadej Novak <tadej@tano.si>

* Vector + const is not standard C++

Co-authored-by: Tadej Novak <tadej@tano.si>
2021-08-07 11:10:45 -04:00
Florian Herzog
1eee73bdce [ios] Fix for #131 (#132) 2021-08-05 14:41:24 +02:00
RobLabs.com
19b86f750d Fix build for Xcode 12.5 & 13-beta. See https://github.com/maplibre/maplibre-gl-native/issues/14 2021-07-21 19:23:23 -07:00
Nic Hubbard
758ea28de6 Fixes for locales and using decimals or commas as seperator. (#121) 2021-07-10 16:39:40 -07:00
Nic Hubbard
d28e4a040f Fix for annotations stuttering and drifting when panning (#113)
* Fix frame-delay bug affect UIViews

* Fixed stuttering and drifting issue with annotations

* Removed processPendingBlocks method that should not have been there.
2021-07-08 06:56:32 -07:00
Nic Hubbard
b35b328f50 scaleBar enhancements (#120)
* Updated scaleBar to allow setting dark label styles which show up much better when using dark map styles.

* Allows user to set if the scaleBar uses metric or not, rather than the system locale forcing this. This allows user flexability.

* Add methods to mapView to access new scaleBar properties
2021-07-07 18:14:56 -07:00
Nic Hubbard
cfa3015d32 Address crash when localFontFamilyName is nil (#109) 2021-07-06 17:40:15 -07:00
Petr Pokorny
d62ff400c6 Replacing hardcoded configuration with configurable API and removing Mapbox assets (#90)
* Refactoring online file source so that tile server configuration is not hardcoded - part 1

* Added default templates

* Update from master

* Renaming MGLAccountManager to MGLSettings. Passing ResourceOptions and TileServerOptions to relevant classes and method in order to remove mapbox hardocded configuration

* Fixing build

* Addedm missing theme

* Unit tests fixes

* Fixing unit tests, adding factory methods for creating predefined configuration.

* Fixing mapbox unit tests

* Additional unit test fixes

* Making MapboxConfiguration default

* Making get/set resource options available in all classes that inherits from FileSource

* Making get/set resource options available in all classes that inherits from FileSource - part 2

* Fixes for Android

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Disable test coverage reports

* Removing hardcoded configuration in iOS project - part 1

* Fixing wrong file extension, making use of tile server options.

* Use apiKey and MGL_API_KEY everywhere

* Just a rename

* Re-enabling tests and improving MGLSettings init

* Removing mapbox hardcoded configuration, using api key everywhere, implementing JNI conversion for TileServerOptions

* Lint issues.

* Integrating configurable tile server properties into Android SDK - part 2

* Removing mabox accounts

* Exposing multiple configurations to Android SDK - bug fixes

* Removing TileServerOptions from public interface - native methods dont work before mapbox-gl library is loaded

* Adding support for configurable predefined styles

* Migrating predefined styles in test app + cleanup

* Parameter fix

* Bug fixes

* Fixing render test build

* Fixing offline tester

* Fixing benchmark tool

* Fix: typo in method name

* Adding code for public access to TileServerOptions

* Bug fixes and debug code removal

* Fixes for macOS, adding unit tests from MapLibre, removing redundant members from OnlineFileSource

* Unit test fixes

* MacOS test app - migrating to configurable tile server options, part 1

* Fixing offline maps

* Migrating macOS test app to MapTiler

* Minor improvements

* Putting back apiKey test

* Added unit tests for MapTiler configuration

* Migrating test resources to MapTiler

* minor fix

* A few fixes

* Fixing macOS tests, removing feedback functionality

* Migrating ios test app to MapTiler

* Migrating ui tests

* UI tests fix

* Benchmarking app fix

* Cleanup and strings updates

* Migrating benchmark app to maptiler

* API key injection in benchmark app

* Putting back release configuration

* Additional tests and fixing issues identified by thread sanitizer.

* Removing test filters

* Fixes and addressing lint issues

* More Maptiler tests + minro fix

* Android instrumentation test migration to MapTiler. Exposing missing TileServerOptions in Android SDK. Minor fixes.

* No requirements on API key format.

* Fixing offline cache test tool

* Adding configurable domain name for sources, adding source domain int MapTiler configuration, cleanup

* Migrating tests to MapTiler, adding code for canonicalizing URLs, removing mapbox stuff from comments, cleanup

* More tests

* Updated database size

* Lint issues

* Fixed test

* Updating developer config API key

* Fixes for Android, propagaing updated tileServerOptions to native file sources, more tests

* Just a few more fixes

* Propagating updated settings to file sources + additional unit test

* Lint issues

* Removing test filter and fixing incorrect uri

* Release preparation

* macos release notes
2021-06-29 12:44:51 +02:00
Jukka Hietanen
7567eaf152 [ios] Disable map snapshots by default. This fixes following issues: (#83)
* Map can flash another map style when brought to foreground
* Map can jump when brought to foreground
* Fixed "zoomed in" flash issue with Metal branch (https://github.com/maplibre/maplibre-gl-native/issues/76)
2021-05-28 22:36:15 +02:00
Jukka Hietanen
1ebaff3378 Fixed testSetCenterCoordinatePauseRendering broken in PR https://github.com/maplibre/maplibre-gl-native/pull/68 (#88) 2021-05-21 00:37:28 +02:00
Christian Sturm
00f3af3ac2 Use DisplayLink to prevent crashes in willResignActive (#68)
* Use DisplayLink to prevent crashes in willResignActive

* Fixed screen freeze issue in the DisplayLink PR when bringing app back to foreground. Includes relevant changes from Mapbox PR (https://github.com/mapbox/mapbox-gl-native-ios/pull/432).

Co-authored-by: Jukka Hietanen <jukka.hietanen@accelbit.com>
2021-05-10 16:25:34 +02:00
Christian Sturm
a2db858090 Ignore sizing and positioning for hidden elements in assertions (#80) 2021-05-07 08:35:45 +02:00
RobLabs.com
babf093ad1 Merge branch 'ios-build-improvements' into upstream/master 2021-05-06 09:07:52 -07:00
Christian Sturm
6fe231dd16 Dispatch to main queue, rather than global, fixes #59 (#64)
Need to follow up as to why `ios-test` unit test is failing.  But its not due to reezer's change
2021-04-15 13:23:07 -07:00
RobLabs.com
09d3d949b4 Improve output for make iproj by making it less verbose 2021-04-08 10:52:22 -07:00
Rob Labs
dba5d968b2 Automated UI Tests for iOS (#47)
* initial UITests template from Xcode add new Test Target

* Set deployment target for the UITests to match the iosapp

* Bundle versions match iosapp

* Save a PNG screenshot to the UITest results

* Turn on Debug tile boundaries, tile info and FPS ornaments

* First iteration of bench scheme UITests

* Enable bench UITests while in the `iosapp` scheme

* Add flag to `make iproj CI=1` to run in headless mode (for GitHub Actions & Xcode Server Bots)

* Write the Benchmark log to the Documents Directory

* Add Zero Configuration (Zeroconf) Styles to facilitate automated testing without an access token nor secrets

* Add `make ios-test`

* Add UI Tests to CI for iOS

* Ignore prompts for *precise or reduced accuracy for GPS*
2021-04-06 21:02:11 +02:00
Jukka Hietanen
a231fcbdeb [ios] Cherry pick changes from https://github.com/mapbox/mapbox-gl-native-ios/pull/268/files (#62)
add allowScrollGesturesDuringRotateOrZoom
2021-04-06 20:49:38 +02:00
Jukka Hietanen
ee94520bff [ios] Cherry pick relevant changes from from https://github.com/mapbox/mapbox-gl-native-ios/pull/411/files (#60)
Co-authored-by: Jukka Hietanen <jukka.hietanen@accelbit.com>
2021-03-29 20:52:57 +02:00
Petr Pokorny
9cf8e32426 Adding script which allows to update swift package manually (use only if automated deploy fails) 2021-03-12 18:35:49 +01:00
Petr Pokorny
eb2850029a Release scripts fixes 2021-03-12 18:02:57 +01:00