Skip to content

Commit 76518b3

Browse files
authored
Add simulator to user agent string in case if it's present. (#218)
* Update dependencies. Start using xcframework versions of dependencies. Add simulator to user agent string in case if it's present. Fix build related warnings.
1 parent 9dcd38e commit 76518b3

14 files changed

+209
-251
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ step-library:
1717
run:
1818
name: Prepare
1919
command: |
20-
curl -L https://github.com/Carthage/Carthage/releases/download/0.33.0/Carthage.pkg >> Carthage.pkg
20+
curl -L https://github.com/Carthage/Carthage/releases/download/0.38.0/Carthage.pkg >> Carthage.pkg
2121
sudo installer -pkg Carthage.pkg -target /
2222
echo "foo" > ~/.mapbox
2323
@@ -77,10 +77,10 @@ jobs:
7777
- run:
7878
name: Dependencies
7979
command: |
80-
./scripts/wcarthage.sh bootstrap --platform ios --cache-builds --configuration Debug --no-use-binaries
81-
./scripts/wcarthage.sh bootstrap --platform tvos --cache-builds --configuration Debug --no-use-binaries
82-
./scripts/wcarthage.sh bootstrap --platform macos --cache-builds --configuration Debug --no-use-binaries
83-
./scripts/wcarthage.sh bootstrap --platform watchos --cache-builds --configuration Debug --no-use-binaries
80+
carthage bootstrap --platform ios --cache-builds --configuration Debug --no-use-binaries --use-xcframeworks
81+
carthage bootstrap --platform tvos --cache-builds --configuration Debug --no-use-binaries --use-xcframeworks
82+
carthage bootstrap --platform macos --cache-builds --configuration Debug --no-use-binaries --use-xcframeworks
83+
carthage bootstrap --platform watchos --cache-builds --configuration Debug --no-use-binaries --use-xcframeworks
8484
- *save-cache
8585
- run:
8686
name: iOS

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" "5.9.0"
2-
github "AliSoftware/OHHTTPStubs" "9.0.0"
3-
github "mapbox/mapbox-events-ios" "v0.10.8"
2+
github "AliSoftware/OHHTTPStubs" "9.1.0"
3+
github "mapbox/mapbox-events-ios" "v0.10.14"

MapboxGeocoder.xcodeproj/project.pbxproj

Lines changed: 130 additions & 140 deletions
Large diffs are not rendered by default.

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/Example (Objective-C).xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "DDC2472919A1C60E0054B0C0"
34+
BuildableName = "Geocoder (Objective-C).app"
35+
BlueprintName = "Example (Objective-C)"
36+
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -59,17 +68,6 @@
5968
</BuildableReference>
6069
</TestableReference>
6170
</Testables>
62-
<MacroExpansion>
63-
<BuildableReference
64-
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "DDC2472919A1C60E0054B0C0"
66-
BuildableName = "Geocoder (Objective-C).app"
67-
BlueprintName = "Example (Objective-C)"
68-
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
69-
</BuildableReference>
70-
</MacroExpansion>
71-
<AdditionalOptions>
72-
</AdditionalOptions>
7371
</TestAction>
7472
<LaunchAction
7573
buildConfiguration = "Debug"
@@ -91,8 +89,6 @@
9189
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
9290
</BuildableReference>
9391
</BuildableProductRunnable>
94-
<AdditionalOptions>
95-
</AdditionalOptions>
9692
</LaunchAction>
9793
<ProfileAction
9894
buildConfiguration = "Release"

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/Example (Swift).xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "DD342B4F19A140EE00219F77"
34+
BuildableName = "Geocoder (Swift).app"
35+
BlueprintName = "Example (Swift)"
36+
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -59,17 +68,6 @@
5968
</BuildableReference>
6069
</TestableReference>
6170
</Testables>
62-
<MacroExpansion>
63-
<BuildableReference
64-
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "DD342B4F19A140EE00219F77"
66-
BuildableName = "Geocoder (Swift).app"
67-
BlueprintName = "Example (Swift)"
68-
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
69-
</BuildableReference>
70-
</MacroExpansion>
71-
<AdditionalOptions>
72-
</AdditionalOptions>
7371
</TestAction>
7472
<LaunchAction
7573
buildConfiguration = "Debug"
@@ -91,8 +89,6 @@
9189
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
9290
</BuildableReference>
9391
</BuildableProductRunnable>
94-
<AdditionalOptions>
95-
</AdditionalOptions>
9692
</LaunchAction>
9793
<ProfileAction
9894
buildConfiguration = "Release"

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/MapboxGeocoder Mac.xcscheme

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,8 +26,17 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
codeCoverageEnabled = "YES"
30-
shouldUseLaunchSchemeArgsEnv = "YES">
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
31+
<MacroExpansion>
32+
<BuildableReference
33+
BuildableIdentifier = "primary"
34+
BlueprintIdentifier = "DA5170951CF1B18F00CD6DCF"
35+
BuildableName = "MapboxGeocoder.framework"
36+
BlueprintName = "MapboxGeocoderMac"
37+
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
38+
</BuildableReference>
39+
</MacroExpansion>
3140
<Testables>
3241
<TestableReference
3342
skipped = "NO">
@@ -40,17 +49,6 @@
4049
</BuildableReference>
4150
</TestableReference>
4251
</Testables>
43-
<MacroExpansion>
44-
<BuildableReference
45-
BuildableIdentifier = "primary"
46-
BlueprintIdentifier = "DA5170951CF1B18F00CD6DCF"
47-
BuildableName = "MapboxGeocoder.framework"
48-
BlueprintName = "MapboxGeocoderMac"
49-
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
50-
</BuildableReference>
51-
</MacroExpansion>
52-
<AdditionalOptions>
53-
</AdditionalOptions>
5452
</TestAction>
5553
<LaunchAction
5654
buildConfiguration = "Debug"
@@ -71,8 +69,6 @@
7169
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
7270
</BuildableReference>
7371
</MacroExpansion>
74-
<AdditionalOptions>
75-
</AdditionalOptions>
7672
</LaunchAction>
7773
<ProfileAction
7874
buildConfiguration = "Release"

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/MapboxGeocoder iOS.xcscheme

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,8 +26,17 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
codeCoverageEnabled = "YES"
30-
shouldUseLaunchSchemeArgsEnv = "YES">
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
31+
<MacroExpansion>
32+
<BuildableReference
33+
BuildableIdentifier = "primary"
34+
BlueprintIdentifier = "DDC2470319A1C3B40054B0C0"
35+
BuildableName = "MapboxGeocoder.framework"
36+
BlueprintName = "MapboxGeocoder"
37+
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
38+
</BuildableReference>
39+
</MacroExpansion>
3140
<Testables>
3241
<TestableReference
3342
skipped = "NO">
@@ -40,17 +49,6 @@
4049
</BuildableReference>
4150
</TestableReference>
4251
</Testables>
43-
<MacroExpansion>
44-
<BuildableReference
45-
BuildableIdentifier = "primary"
46-
BlueprintIdentifier = "DDC2470319A1C3B40054B0C0"
47-
BuildableName = "MapboxGeocoder.framework"
48-
BlueprintName = "MapboxGeocoder"
49-
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
50-
</BuildableReference>
51-
</MacroExpansion>
52-
<AdditionalOptions>
53-
</AdditionalOptions>
5452
</TestAction>
5553
<LaunchAction
5654
buildConfiguration = "Debug"
@@ -71,8 +69,6 @@
7169
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
7270
</BuildableReference>
7371
</MacroExpansion>
74-
<AdditionalOptions>
75-
</AdditionalOptions>
7672
</LaunchAction>
7773
<ProfileAction
7874
buildConfiguration = "Release"

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/MapboxGeocoder tvOS.xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "DA5170C01CF253EE00CD6DCF"
34+
BuildableName = "MapboxGeocoder.framework"
35+
BlueprintName = "MapboxGeocoderTV"
36+
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "DA5170C01CF253EE00CD6DCF"
46-
BuildableName = "MapboxGeocoder.framework"
47-
BlueprintName = "MapboxGeocoderTV"
48-
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

MapboxGeocoder.xcodeproj/xcshareddata/xcschemes/MapboxGeocoder watchOS.xcscheme

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1340"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -29,8 +29,6 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
3131
</Testables>
32-
<AdditionalOptions>
33-
</AdditionalOptions>
3432
</TestAction>
3533
<LaunchAction
3634
buildConfiguration = "Debug"
@@ -51,8 +49,6 @@
5149
ReferencedContainer = "container:MapboxGeocoder.xcodeproj">
5250
</BuildableReference>
5351
</MacroExpansion>
54-
<AdditionalOptions>
55-
</AdditionalOptions>
5652
</LaunchAction>
5753
<ProfileAction
5854
buildConfiguration = "Release"

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)