You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
5
+
This build rule looks for a secrets file stored in the project's root directory, `$(SRCROOT)/.secrets`.
6
+
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.
8
+
9
+
1. Create a hidden secrets file in the project's root directory.
10
+
11
+
```sh
12
+
touch .secrets
13
+
```
14
+
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).
> Replace 'your-license-key', 'your-extension-license-key' and 'your-api-key' with your keys.
24
+
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/).
26
+
27
+
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.
Copy file name to clipboardExpand all lines: README.md
+54-2Lines changed: 54 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,56 @@
1
-
# ArcGIS Runtime SDK for Swift Samples
1
+
# ArcGIS Maps SDK for Swift Samples
2
+
3
+
This repository contains Swift sample code demonstrating the capabilities of [ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) and how to use them in your own app. The project can be opened in Xcode and run on a simulator or a device.
4
+
5
+
## Requirements
6
+
7
+
*[ArcGIS Maps SDK for Swift](https://developers.arcgis.com/swift/) 200.0 (or newer)
8
+
*[ArcGIS Maps SDK for Swift Toolkit](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit) 200.0 (or newer)
9
+
* Xcode 14.0 (or newer)
10
+
11
+
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.
12
+
13
+
## Building Samples Using Swift Package Manager
14
+
15
+
1.**Fork** and then **clone** the repository
16
+
1.**Open** the `Samples.xcodeproj`**project** file
17
+
> The project has been configured to use the arcgis-maps-sdk-swift-toolkit package, which provides the ArcGISToolkit framework as well as the ArcGIS framework.
18
+
1.**Run** the `Samples` app target
19
+
20
+
> To add the Swift packages to your own projects, consult the documentation for the [ArcGIS Maps SDK for Swift Toolkit](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit#swift-package-manager) and [ArcGIS Maps SDK for Swift](https://github.com/Esri/arcgis-maps-sdk-swift#instructions).
21
+
22
+
## Configuring API Keys
23
+
24
+
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`.
25
+
26
+
1. Create a hidden secrets file in the project file's directory.
27
+
28
+
```sh
29
+
touch .secrets
30
+
```
31
+
32
+
2. Add your **API Key** to the secrets file aforementioned. Adding an API key allows you to access a set of ready-to-use services, including basemaps. 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/).
33
+
34
+
```sh
35
+
echo ARCGIS_API_KEY_IOS=your-api-key >> .secrets
36
+
```
37
+
38
+
> Replace 'your-api-key' with your keys.
39
+
40
+
Please see [Configure App Secrets](Documentation/ConfigureAppSecrets.md) for adding license key and other details.
41
+
42
+
## Additional Resources
43
+
44
+
* Unfamiliar with SwiftUI? Check out Apple's [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/).
45
+
* Want to start a new project? [Setup](https://developers.arcgis.com/swift/get-started) your development environment
46
+
* New to the API? Explore the documentation: [Guide](https://developers.arcgis.com/swift/) | [API Reference](https://developers.arcgis.com/swift/api-reference/documentation/arcgis/)
47
+
* Got a question? Ask the community on our [forum](https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/bd-p/arcgis-runtime-sdk-for-ios-questions)
48
+
49
+
## Contributing
50
+
51
+
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).
52
+
53
+
Find a bug or want to request a new feature? Please let us know by [creating an issue](https://github.com/Esri/arcgis-maps-sdk-swift-samples/issues/new).
2
54
3
55
## Licensing
4
56
@@ -16,4 +68,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
68
See the License for the specific language governing permissions and
17
69
limitations under the License.
18
70
19
-
A copy of the license is available in the repository's [LICENSE](https://github.com/Esri/arcgis-runtime-samples-swift/blob/main/LICENSE) file.
71
+
A copy of the license is available in the repository's [LICENSE](LICENSE?raw=1) file.
0 commit comments