@@ -226,9 +226,8 @@ BOOL isValidMapboxEndpoint(NSURL *url) {
|
||||
MLN_APPLE_EXPORT
|
||||
NSURL *resourceURL(const Resource& resource) {
|
||||
|
||||
NSString *encodedUrlString = [@(resource.url.c_str()) stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet];
|
||||
NSURL *url = [NSURL URLWithString:encodedUrlString];
|
||||
|
||||
NSURL *url = [NSURL URLWithString:@(resource.url.c_str())];
|
||||
|
||||
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
|
||||
if (isValidMapboxEndpoint(url)) {
|
||||
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
|
||||
|
||||
@@ -86,15 +86,4 @@ namespace mbgl {
|
||||
[self internalTestOfflineQueryParameterIsAddedForOfflineResource:testURL];
|
||||
}
|
||||
|
||||
- (void)testResourceURL {
|
||||
using namespace mbgl;
|
||||
|
||||
// Test URL with characters requiring encoding
|
||||
Resource resource(Resource::Kind::Unknown, "https://example.com/test?param1=a|b¶m2=c|d");
|
||||
NSURL *url = resourceURL(resource);
|
||||
|
||||
XCTAssertNotNil(url);
|
||||
XCTAssertEqualObjects(url.absoluteString, @"https://example.com/test?param1=a%7Cb¶m2=c%7Cd");
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -4,6 +4,13 @@ MapLibre welcomes participation and contributions from everyone. Please read [`C
|
||||
|
||||
## main
|
||||
|
||||
## 6.8.1
|
||||
|
||||
- Update Bazel dependencies ([#3000](https://github.com/maplibre/maplibre-native/pull/3000)).
|
||||
- Reuse allocated descriptor sets ([#3002](https://github.com/maplibre/maplibre-native/pull/3002)).
|
||||
- Line SDF shader fix ([#3010](https://github.com/maplibre/maplibre-native/pull/3010)).
|
||||
- Revert "Encode the style URL in iOS. This change was causing several regressions with styles not loading ([#3024](https://github.com/maplibre/maplibre-native/pull/3024)).
|
||||
|
||||
## 6.8.0
|
||||
|
||||
### Features
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.8.0
|
||||
6.8.1
|
||||
Reference in New Issue
Block a user