diff --git a/.gitignore b/.gitignore index 37cf9d1..11b7e87 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ Pods/ **/Flutter/flutter_assets/ ServiceDefinitions.json xcuserdata/ +.swiftpm/ .last_build_id # Android diff --git a/example/.gitignore b/example/.gitignore index 24476c5..6c31954 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -5,9 +5,11 @@ *.swp .DS_Store .atom/ +.build/ .buildlog/ .history .svn/ +.swiftpm/ migrate_working_dir/ # IntelliJ related diff --git a/ios/google_navigation_flutter/Package.swift b/ios/google_navigation_flutter/Package.swift index 83f2083..7411b7d 100644 --- a/ios/google_navigation_flutter/Package.swift +++ b/ios/google_navigation_flutter/Package.swift @@ -1,3 +1,6 @@ +// swift-tools-version: 5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + // Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,9 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// swift-tools-version: 5.9 -// The swift-tools-version declares the minimum version of Swift required to build this package. - import PackageDescription let package = Package( diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageRegistry.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageRegistry.swift index c3c6590..33a2e2a 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageRegistry.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageRegistry.swift @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Foundation import UIKit enum GoogleMapsImageRegistryError: Error { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageResizer.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageResizer.swift index 89ef7d1..e0e7b8c 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageResizer.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/ImageResizer.swift @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Foundation import UIKit enum ImageResizer { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/RegisteredImage.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/RegisteredImage.swift index 91c8b18..3cef2bd 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/RegisteredImage.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/RegisteredImage.swift @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Foundation import UIKit struct RegisteredImage { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/Utilities.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/Utilities.swift index 46b641b..92be6d1 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/Utilities.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/Utilities.swift @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Foundation import UIKit extension String { diff --git a/melos.yaml b/melos.yaml index 6e3b0bc..b7c9b57 100644 --- a/melos.yaml +++ b/melos.yaml @@ -177,6 +177,7 @@ scripts: --ignore "build/**" \ --ignore "**/GeneratedPluginRegistrant.*" \ --ignore "**/flutter_export_environment.sh" \ + --ignore "**/FlutterGeneratedPluginSwiftPackage/**" \ . description: Add a license header to all necessary files. @@ -193,5 +194,6 @@ scripts: --ignore "build/**" \ --ignore "**/GeneratedPluginRegistrant.*" \ --ignore "**/flutter_export_environment.sh" \ + --ignore "**/FlutterGeneratedPluginSwiftPackage/**" \ . description: Add a license header to all necessary files.