Skip to content

Commit 9699350

Browse files
committed
fix: restore mandatory package: arg with comment explaining dir-name identity
1 parent eabf328 commit 9699350

13 files changed

Lines changed: 39 additions & 0 deletions

File tree

  • packages
    • google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning
    • google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition
    • google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction
    • google_mlkit_face_detection/ios/google_mlkit_face_detection
    • google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection
    • google_mlkit_image_labeling/ios/google_mlkit_image_labeling
    • google_mlkit_language_id/ios/google_mlkit_language_id
    • google_mlkit_object_detection/ios/google_mlkit_object_detection
    • google_mlkit_pose_detection/ios/google_mlkit_pose_detection
    • google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation
    • google_mlkit_smart_reply/ios/google_mlkit_smart_reply
    • google_mlkit_text_recognition/ios/google_mlkit_text_recognition
    • google_mlkit_translation/ios/google_mlkit_translation

packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ let package = Package(
2424
name: "google_mlkit_barcode_scanning",
2525
dependencies: [
2626
.product(name: "MLKitBarcodeScanning", package: "google-mlkit-swiftpm"),
27+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
28+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
29+
// derives the package identity from the directory name, not the `name` field.
2730
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2831
],
2932
path: "Sources/google_mlkit_barcode_scanning"

packages/google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ let package = Package(
1919
.target(
2020
name: "google_mlkit_digital_ink_recognition",
2121
dependencies: [
22+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
23+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
24+
// derives the package identity from the directory name, not the `name` field.
2225
.product(name: "google-mlkit-commons", package: "google_mlkit_commons")
2326
],
2427
path: "Sources/google_mlkit_digital_ink_recognition"

packages/google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ let package = Package(
1919
.target(
2020
name: "google_mlkit_entity_extraction",
2121
dependencies: [
22+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
23+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
24+
// derives the package identity from the directory name, not the `name` field.
2225
.product(name: "google-mlkit-commons", package: "google_mlkit_commons")
2326
],
2427
path: "Sources/google_mlkit_entity_extraction"

packages/google_mlkit_face_detection/ios/google_mlkit_face_detection/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ let package = Package(
2424
name: "google_mlkit_face_detection",
2525
dependencies: [
2626
.product(name: "MLKitFaceDetection", package: "google-mlkit-swiftpm"),
27+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
28+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
29+
// derives the package identity from the directory name, not the `name` field.
2730
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2831
],
2932
path: "Sources/google_mlkit_face_detection"

packages/google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ let package = Package(
1919
.target(
2020
name: "google_mlkit_face_mesh_detection",
2121
dependencies: [
22+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
23+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
24+
// derives the package identity from the directory name, not the `name` field.
2225
.product(name: "google-mlkit-commons", package: "google_mlkit_commons")
2326
],
2427
path: "Sources/google_mlkit_face_mesh_detection"

packages/google_mlkit_image_labeling/ios/google_mlkit_image_labeling/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ let package = Package(
2525
dependencies: [
2626
.product(name: "MLKitImageLabeling", package: "google-mlkit-swiftpm"),
2727
.product(name: "MLKitImageLabelingCustom", package: "google-mlkit-swiftpm"),
28+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
29+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
30+
// derives the package identity from the directory name, not the `name` field.
2831
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2932
],
3033
path: "Sources/google_mlkit_image_labeling"

packages/google_mlkit_language_id/ios/google_mlkit_language_id/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ let package = Package(
2424
name: "google_mlkit_language_id",
2525
dependencies: [
2626
.product(name: "MLKitLanguageID", package: "google-mlkit-swiftpm"),
27+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
28+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
29+
// derives the package identity from the directory name, not the `name` field.
2730
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2831
],
2932
path: "Sources/google_mlkit_language_id"

packages/google_mlkit_object_detection/ios/google_mlkit_object_detection/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ let package = Package(
2525
dependencies: [
2626
.product(name: "MLKitObjectDetection", package: "google-mlkit-swiftpm"),
2727
.product(name: "MLKitObjectDetectionCustom", package: "google-mlkit-swiftpm"),
28+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
29+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
30+
// derives the package identity from the directory name, not the `name` field.
2831
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2932
],
3033
path: "Sources/google_mlkit_object_detection"

packages/google_mlkit_pose_detection/ios/google_mlkit_pose_detection/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ let package = Package(
2525
dependencies: [
2626
.product(name: "MLKitPoseDetection", package: "google-mlkit-swiftpm"),
2727
.product(name: "MLKitPoseDetectionAccurate", package: "google-mlkit-swiftpm"),
28+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
29+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
30+
// derives the package identity from the directory name, not the `name` field.
2831
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2932
],
3033
path: "Sources/google_mlkit_pose_detection"

packages/google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation/Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ let package = Package(
2424
name: "google_mlkit_selfie_segmentation",
2525
dependencies: [
2626
.product(name: "MLKitSegmentationSelfie", package: "google-mlkit-swiftpm"),
27+
// Note: The `package` value uses the DIRECTORY name ("google_mlkit_commons"), not the
28+
// Package.swift `name` field ("google-mlkit-commons"). For local path dependencies, SPM
29+
// derives the package identity from the directory name, not the `name` field.
2730
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
2831
],
2932
path: "Sources/google_mlkit_selfie_segmentation"

0 commit comments

Comments
 (0)