Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Consumer/GMTCEmpty.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Trigger auto-linking if GoogleRidesharingConsumer is never imported in the app.
@import GoogleRidesharingConsumer;
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCrashData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherDataTypes</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePerformanceData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
<string>C56D.1</string>
<string>CA92.1</string>
</array>
</dict>
</array>
</dict>
</plist>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
17 changes: 17 additions & 0 deletions Consumer/Sources/GMTCEmpty.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Swift Package Manager requires that every target has a header file.
@import GoogleRidesharingConsumer;
32 changes: 15 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,43 @@
import PackageDescription

let package = Package(
name: "GoogleRidesharingDriver", platforms: [.iOS(.v16)],
products: [.library(name: "GoogleRidesharingDriver", targets: ["GoogleRidesharingDriverTarget"])],
dependencies: [
.package(url: "https://github.com/googlemaps/ios-navigation-sdk", from: "10.10.0")
],
name: "GoogleRidesharingConsumer", platforms: [.iOS(.v16)],
products: [
.library(name: "GoogleRidesharingConsumer", targets: ["GoogleRidesharingConsumerTarget"])
], dependencies: [.package(url: "https://github.com/googlemaps/ios-maps-sdk", from: "10.10.0")],
targets: [
.binaryTarget(
name: "GoogleRidesharingDriver",
name: "GoogleRidesharingConsumer",
url:
"https://dl.google.com/geosdk/swiftpm/10.10.1/GoogleRidesharingDriver_3p.xcframework.zip",
checksum: "f67143e916a68f0e0f861ad5f5603f0fc9a0e91582bf6ba04e91e6ca980d4b72"
"https://dl.google.com/geosdk/swiftpm/11.1.0/GoogleRidesharingConsumer_3p.xcframework.zip",
checksum: "81dc4ca446738debc66de7811d643a0f11e90e43bb9f4539c703d98ec670e08c"
),
.target(
name: "GoogleRidesharingDriverTarget",
name: "GoogleRidesharingConsumerTarget",
dependencies: [
"GoogleRidesharingDriver",
.product(name: "GoogleNavigation", package: "ios-navigation-sdk"),
"GoogleRidesharingConsumer",
.product(name: "GoogleMaps", package: "ios-maps-sdk"),
],
path: "Driver",
sources: ["GMTDEmpty.m"],
resources: [.copy("Resources/GoogleRidesharingDriver/GoogleRidesharingDriver.bundle")],
path: "Consumer",
sources: ["GMTCEmpty.m"],
resources: [.copy("Resources/GoogleRidesharingConsumer/GoogleRidesharingConsumer.bundle")],
publicHeadersPath: "Sources",
linkerSettings: [
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedFramework("Accelerate"),
.linkedFramework("AVFoundation"),
.linkedFramework("AudioToolbox"),
.linkedFramework("CoreData"),
.linkedFramework("CoreGraphics"),
.linkedFramework("CoreImage"),
.linkedFramework("CoreLocation"),
.linkedFramework("CoreTelephony"),
.linkedFramework("CoreText"),
.linkedFramework("GLKit"),
.linkedFramework("ImageIO"),
.linkedFramework("OpenGLES"),
.linkedFramework("QuartzCore"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("LocalAuthentication"),
.linkedFramework("UIKit"),
]
),
]
Expand Down
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Google Driver SDK for iOS Swift package
# Google Consumer SDK for iOS Swift package

## Description

This repository contains the Swift package for the
[Driver SDK for iOS](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/driver-sdk/driver_sdk_quickstart_ios).
For additional methods of installing the Driver SDK for iOS including
CocoaPods, see the Driver SDK for iOS
[documentation](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/driver-sdk/driver_sdk_quickstart_ios).
[Consumer SDK for iOS](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/consumer-sdk/consumer_sdk_quickstart_ios).
For additional methods of installing the Consumer SDK for iOS including
CocoaPods, see the Consumer SDK for iOS
[documentation](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/consumer-sdk/consumer_sdk_quickstart_ios).

## Requirements

- [Xcode](https://developer.apple.com/xcode/) version 16.0 or later.
- An app targeting iOS 16 or later.
- A Google Maps Platform
[project](https://developers.google.com/maps/documentation/navigation/ios-sdk/config)
with the Driver SDK for iOS enabled.
[project](https://developers.google.com/maps/documentation/ios-sdk/cloud-setup)
with the Maps SDK for iOS enabled.
- An
[API key](https://developers.google.com/maps/documentation/ios-sdk/get-api-key)
associated with the project above.

## Installation

Expand All @@ -24,17 +27,17 @@ CocoaPods, see the Driver SDK for iOS
2. In the "Enter Package URL" field, enter this GitHub repository:

```
https://github.com/googlemaps/ios-driver-sdk
https://github.com/googlemaps/ios-consumer-sdk
```

3. Select the version of the Driver SDK for iOS that you want to use. For new
3. Select the version of the Consumer SDK for iOS that you want to use. For new
projects, we recommend specifying the
[latest version](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/support/relnotes_driver_sdk_ios)
[latest version](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/support/relnotes_consumer_sdk_ios)
and using the "Exact Version" option.

4. Follow the
[instructions](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/driver-sdk/driver_sdk_quickstart_ios#implement_authorization_and_authentication)
to authorize and authenticate requests from your app.
[instructions](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/consumer-sdk/consumer_sdk_quickstart_ios#application_integration)
to add your API key to your app.

## Sample App

Expand All @@ -43,15 +46,15 @@ See samples demonstrating use of the Consumer SDK for iOS on

## Documentation

Documentation for the Driver SDK for iOS is available as
[guides](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/driver-sdk/driver_sdk_quickstart_ios)
Documentation for the Consumer SDK for iOS is available as
[guides](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/trip-order-progress/consumer-sdk/consumer_sdk_quickstart_ios)
and
[reference documentation](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/reference).

## Contributing

External contributions are not accepted for this repository, per the
[Contributing guide](https://github.com/googlemaps/ios-driver-sdk/blob/main/CONTRIBUTING.md).
[Contributing guide](https://github.com/googlemaps/ios-consumer-sdk/blob/main/CONTRIBUTING.md).

## Terms of Service

Expand All @@ -72,15 +75,14 @@ Maps Platform Terms of Service).
This repositiory adheres to [semantic versioning](https://semver.org/) to
indicate when backwards-incompatible changes are introduced.

- For issues with the Driver SDK for iOS, please
- For issues with the Consumer SDK for iOS, please
[open a support case](https://developers.google.com/maps/documentation/transportation-logistics/on-demand-rides-deliveries-solution/support/support#contact-maps-support).
- If you find a bug with the Swift package, please
[file an issue](https://github.com/googlemaps/ios-driver-sdk/issues) on
[file an issue](https://github.com/googlemaps/ios-consumer-sdk/issues) on
GitHub.

If you would like to get answers to technical questions from other Google Maps
Platform developers, ask through one of our
[developer community channels](https://developers.google.com/maps/developer-community).
You can also discuss this library on the Google Maps Platform
[Discord server](https://discord.gg/hYsWbmk).

Loading