Skip to content

Commit e001c30

Browse files
committed
Upgrade project version
1 parent e960173 commit e001c30

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

Samples.xcodeproj/project.pbxproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 55;
6+
objectVersion = 60;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -2844,7 +2844,7 @@
28442844
StyleSymbolsFromMobileStyleFile,
28452845
);
28462846
LastSwiftUpdateCheck = 1330;
2847-
LastUpgradeCheck = 1530;
2847+
LastUpgradeCheck = 1500;
28482848
ORGANIZATIONNAME = Esri;
28492849
TargetAttributes = {
28502850
00E5401227F3CCA200CF66D5 = {
@@ -2853,7 +2853,7 @@
28532853
};
28542854
};
28552855
buildConfigurationList = 00E5400A27F3CCA100CF66D5 /* Build configuration list for PBXProject "Samples" */;
2856-
compatibilityVersion = "Xcode 13.0";
2856+
compatibilityVersion = "Xcode 15.0";
28572857
developmentRegion = en;
28582858
hasScannedForEncodings = 0;
28592859
knownRegions = (
@@ -3236,6 +3236,7 @@
32363236
isa = XCBuildConfiguration;
32373237
buildSettings = {
32383238
ALWAYS_SEARCH_USER_PATHS = NO;
3239+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
32393240
CLANG_ANALYZER_NONNULL = YES;
32403241
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
32413242
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
@@ -3269,6 +3270,7 @@
32693270
DEBUG_INFORMATION_FORMAT = dwarf;
32703271
ENABLE_STRICT_OBJC_MSGSEND = YES;
32713272
ENABLE_TESTABILITY = YES;
3273+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
32723274
GCC_C_LANGUAGE_STANDARD = gnu11;
32733275
GCC_DYNAMIC_NO_PIC = NO;
32743276
GCC_NO_COMMON_BLOCKS = YES;
@@ -3295,6 +3297,7 @@
32953297
isa = XCBuildConfiguration;
32963298
buildSettings = {
32973299
ALWAYS_SEARCH_USER_PATHS = NO;
3300+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
32983301
CLANG_ANALYZER_NONNULL = YES;
32993302
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
33003303
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
@@ -3328,6 +3331,7 @@
33283331
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
33293332
ENABLE_NS_ASSERTIONS = NO;
33303333
ENABLE_STRICT_OBJC_MSGSEND = YES;
3334+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
33313335
GCC_C_LANGUAGE_STANDARD = gnu11;
33323336
GCC_NO_COMMON_BLOCKS = YES;
33333337
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

Samples.xcodeproj/xcshareddata/xcschemes/Samples.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1540"
3+
LastUpgradeVersion = "1500"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Shared/Samples/Augment reality to navigate route/AugmentRealityToNavigateRouteView.RoutePlannerView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ private extension AugmentRealityToNavigateRouteView.RoutePlannerView {
156156
/// A point representing the start of navigation.
157157
var startPoint: Point? {
158158
didSet {
159-
let stopSymbol = PictureMarkerSymbol(image: UIImage(named: "StopA")!)
159+
let stopSymbol = PictureMarkerSymbol(image: .stopA)
160160
let startStopGraphic = Graphic(geometry: startPoint, symbol: stopSymbol)
161161
stopGraphicsOverlay.addGraphic(startStopGraphic)
162162
}
163163
}
164164
/// A point representing the destination of navigation.
165165
var endPoint: Point? {
166166
didSet {
167-
let stopSymbol = PictureMarkerSymbol(image: UIImage(named: "StopB")!)
167+
let stopSymbol = PictureMarkerSymbol(image: .stopB)
168168
let endStopGraphic = Graphic(geometry: endPoint, symbol: stopSymbol)
169169
stopGraphicsOverlay.addGraphic(endStopGraphic)
170170
}

Shared/Samples/Edit feature attachments/EditFeatureAttachmentsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private extension EditFeatureAttachmentsView {
112112
AddAttachmentView(onAdd: {
113113
Task {
114114
do {
115-
guard let pngData = UIImage(named: "PinBlueStar")?.pngData() else { return }
115+
guard let pngData = UIImage.pinBlueStar.pngData() else { return }
116116
try await model.addAttachment(
117117
named: "Attachment",
118118
type: "png",

Shared/Samples/Find address with reverse geocode/FindAddressWithReverseGeocodeView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ private extension FindAddressWithReverseGeocodeView {
121121
/// The red map marker graphic used to indicate a tap location on the map.
122122
let markerGraphic = {
123123
// Create a symbol using the image from the project assets.
124-
guard let markerImage = UIImage(named: "RedMarker") else { return Graphic() }
125-
let markerSymbol = PictureMarkerSymbol(image: markerImage)
124+
let markerImage = UIImage.redMarker
125+
let markerSymbol = PictureMarkerSymbol(image: .redMarker)
126126

127127
// Change the symbol's offsets, so it aligns properly to a given point.
128128
markerSymbol.leaderOffsetY = markerImage.size.height / 2

Shared/Samples/Find route around barriers/FindRouteAroundBarriersView.Model.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension FindRouteAroundBarriersView {
4545

4646
/// The blue marker symbol for the stop graphics.
4747
private let stopSymbol = {
48-
let markerImage = UIImage(named: "BlueMarker")!
48+
let markerImage = UIImage.blueMarker
4949
let markerSymbol = PictureMarkerSymbol(image: markerImage)
5050
markerSymbol.offsetY = markerImage.size.height / 2
5151
return markerSymbol

Shared/Samples/Find route in mobile map package/FindRouteInMobileMapPackageView.Models.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extension FindRouteInMobileMapPackageView.MobileMapView {
8888
/// The blue marker symbol for creating a marker graphic.
8989
private let markerSymbol = {
9090
// Create a symbol using the Blue Marker image from the project's assets.
91-
let markerImage = UIImage(named: "BlueMarker")!
91+
let markerImage = UIImage.blueMarker
9292
let markerSymbol = PictureMarkerSymbol(image: markerImage)
9393

9494
// Change the symbol's offsets, so it aligns properly to a given point.

Shared/Samples/Find route in transport network/FindRouteInTransportNetworkView.Model.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extension FindRouteInTransportNetworkView {
5454

5555
/// The blue marker symbol for the stop graphics.
5656
private let markerSymbol = {
57-
let markerImage = UIImage(named: "BlueMarker")!
57+
let markerImage = UIImage.blueMarker
5858
let markerSymbol = PictureMarkerSymbol(image: markerImage)
5959
markerSymbol.offsetY = markerImage.size.height / 2
6060
return markerSymbol

Shared/Samples/Geocode offline/GeocodeOfflineView.Model.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension GeocodeOfflineView {
3737
/// The red map marker graphic used to indicate a given location on the map.
3838
private let markerGraphic = {
3939
// Create a symbol using the image from the project assets.
40-
guard let markerImage = UIImage(named: "RedMarker") else { return Graphic() }
40+
let markerImage = UIImage.redMarker
4141
let markerSymbol = PictureMarkerSymbol(image: markerImage)
4242

4343
// Change the symbol's offsets, so it aligns properly to a given point.

Shared/Samples/Render multilayer symbols/RenderMultilayerSymbolsView.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,10 @@ private extension RenderMultilayerSymbolsView {
149149
)
150150

151151
// Create a pin graphic using an image in the project assets.
152-
if let pinImage = UIImage(named: "PinBlueStar") {
153-
let pinLayer = PictureMarkerSymbolLayer(image: pinImage)
154-
graphics.append(
155-
makeGraphicFromPictureMarkerSymbol(layer: pinLayer, offset: 40)
156-
)
157-
}
152+
let pinLayer = PictureMarkerSymbolLayer(image: .pinBlueStar)
153+
graphics.append(
154+
makeGraphicFromPictureMarkerSymbol(layer: pinLayer, offset: 40)
155+
)
158156

159157
return graphics
160158
}

0 commit comments

Comments
 (0)