Skip to content

Commit def2a79

Browse files
authored
Merge pull request #474 from Esri/v.next
[Release] 200.5.0
2 parents 62fea7a + 5463184 commit def2a79

File tree

290 files changed

+10769
-1980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+10769
-1980
lines changed

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ opt_in_rules:
6464
- redundant_nil_coalescing
6565
- redundant_type_annotation
6666
- sorted_first_last
67+
- sorted_imports
6768
- static_operator
6869
- toggle_bool
6970
- trailing_closure
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Configure App Secrets
22

3-
As a best-practice principle, the project conceals app secrets from source code by generating and compiling an `AppSecrets.swift` source code file at build time using a custom build rule.
3+
As a best-practice principle, our project conceals app secrets from source code by generating and compiling an `AppSecrets.swift` source code file at build time using a custom build rule. The same pattern can be applied to your app development as well.
44

55
This build rule looks for a secrets file stored in the project's root directory, `$(SRCROOT)/.secrets`.
66

7-
Note: License keys are not required for development. Without licensing or licensing with invalid keys do not throw an exception, but simply fail to license the app, falling back to Developer Mode (which will display a watermark on the map and scene views). Apply the license keys when the app is ready for deployment.
7+
Note: License strings are not required for development. Without licensing or licensing with invalid keys do not throw an exception, but simply fail to license the app, falling back to Developer Mode (which will display a watermark on the map and scene views). Apply the license strings when your app is ready for deployment.
88

9-
1. Create a hidden secrets file in the project's root directory.
9+
1. Create a hidden secrets file in your project's root directory.
1010

1111
```sh
1212
touch .secrets
1313
```
1414

15-
2. Add your **License Key** to the secrets file. Licensing the app will remove the 'Licensed for Developer Use Only' watermark. Licensing the app is optional in development but required for production. Add your **Extension License Key** and **API Key** to the secrets file if needed. Acquire license keys from your [dashboard](https://developers.arcgis.com/dashboard).
15+
2. Add your **License String** to the secrets file. Licensing the app will remove the 'Licensed for Developer Use Only' watermark. Licensing the app is optional in development but required for production. Add your **Extension License String** and **API Key** access token to the secrets file if needed. Learn more about how to [Get a license](https://developers.arcgis.com/swift/license-and-deployment/get-a-license/).
1616

1717
```sh
1818
echo ARCGIS_LICENSE_KEY=your-license-key >> .secrets
@@ -22,6 +22,6 @@ Note: License keys are not required for development. Without licensing or licens
2222

2323
> Replace 'your-license-key', 'your-extension-license-key' and 'your-api-key' with your keys.
2424
25-
Visit the developer's website to learn more about [Deployment](https://developers.arcgis.com/documentation/mapping-apis-and-services/deployment/) and [Security and authentication](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/).
25+
Visit the developer's website to learn more about [Deployment](https://developers.arcgis.com/swift/license-and-deployment/) and [Security and authentication](https://developers.arcgis.com/documentation/security-and-authentication/).
2626

2727
To learn more about `masquerade`, consult the [documentation](https://github.com/Esri/data-collection-ios/tree/main/docs#masquerade) of Esri's Data Collection app.

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# ArcGIS Maps SDK for Swift Samples
1+
# ArcGIS Maps SDK for Swift Samples [![](https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg)](https://apps.apple.com/us/app/arcgis-maps-swift-samples/id1630449018)
22

3-
This repository contains Swift sample code demonstrating the capabilities of the [ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) and how to use those capabilities in your own app. The project can be opened in Xcode and run on a simulator or a device.
3+
This repository contains Swift sample code demonstrating the capabilities of the [ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) and how to use those capabilities in your own app. The project can be opened in Xcode and run on a simulator or a device. Or you can [download the app from the App Store](https://apps.apple.com/us/app/arcgis-maps-swift-samples/id1630449018) on your iOS device.
44

55
## Features
66

@@ -18,11 +18,11 @@ This repository contains Swift sample code demonstrating the capabilities of the
1818

1919
## Requirements
2020

21-
* [ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) 200.4 (or newer)
22-
* [ArcGIS Maps SDK for Swift Toolkit](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit) 200.4 (or newer)
21+
* [ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) 200.5 (or newer)
22+
* [ArcGIS Maps SDK for Swift Toolkit](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit) 200.5 (or newer)
2323
* Xcode 15.0 (or newer)
2424

25-
The *ArcGIS Maps SDK for Swift Samples app* has a *Target SDK* version of *15.0*, meaning that it can run on devices with *iOS 15.0* or newer.
25+
The *ArcGIS Maps SDK for Swift Samples app* has a *Target SDK* version of *16.0*, meaning that it can run on devices with *iOS 16.0* or newer.
2626

2727
## Building Samples Using Swift Package Manager
2828

@@ -36,25 +36,29 @@ The *ArcGIS Maps SDK for Swift Samples app* has a *Target SDK* version of *15.0*
3636
## Configuring API Keys
3737

3838
> [!IMPORTANT]
39-
> Acquire the keys from your [dashboard](https://developers.arcgis.com/dashboard). Visit the developer's website to learn more about [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/).
39+
> To run this app and access ArcGIS Location Services, follow these steps to obtain an **API key** access token and store it in a secrets file stored in the project file's directory, `$(SRCROOT)/.secrets`.
4040
41-
To run this app and access specific, ready-to-use services such as basemap layer, follow the steps to add an API key to a secrets file stored in the project file's directory, `$(SRCROOT)/.secrets`.
41+
1. Go to the [Create an API key](https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/tutorials/create-an-api-key/) tutorial to obtain the API key access token. Ensure that the following privileges are enabled:
4242

43-
1. Create a hidden secrets file in the project file's directory.
43+
* Location services > Basemaps
44+
* Location services > Geocoding
45+
* Location services > Routing
46+
47+
2. Create a hidden secrets file in the project file's directory.
4448

4549
```sh
4650
touch .secrets
4751
```
4852

49-
2. Add your **API Key** to the aforementioned secrets file. Adding an API key allows you to access a set of ready-to-use services, including basemaps.
53+
3. Add your API key to the aforementioned secrets file. Adding an API key allows you to access ArcGIS location services, such as the basemap styles service.
5054

5155
```sh
5256
echo ARCGIS_API_KEY_IOS=your-api-key >> .secrets
5357
```
5458

55-
> Replace 'your-api-key' with your keys.
59+
> Replace 'your-api-key' with your API Key access token.
5660
57-
Please see [Configure App Secrets](Documentation/ConfigureAppSecrets.md) for adding license key and other details.
61+
Please see [Configure App Secrets](Documentation/ConfigureAppSecrets.md) for adding license string and other details.
5862

5963
## Additional Resources
6064

0 commit comments

Comments
 (0)