Skip to content

Commit b63fc55

Browse files
committed
feat: Add support to Swift Package Manager
1 parent 1a78fb2 commit b63fc55

23 files changed

Lines changed: 650 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ example/android/app/google-services.json
7575
xcuserdata/
7676
**/.flutter-plugins-dependencies
7777

78+
# Swift Package Manager
79+
.build/
80+
.swiftpm/
81+
7882
# Exceptions to above rules.
7983
!**/ios/**/default.mode1v3
8084
!**/ios/**/default.mode2v3
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_barcode_scanning",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-barcode-scanning",
12+
targets: ["google_mlkit_barcode_scanning"]
13+
),
14+
],
15+
dependencies: [
16+
.package(path: "../google_mlkit_commons"),
17+
],
18+
targets: [
19+
.target(
20+
name: "google_mlkit_barcode_scanning",
21+
dependencies: [
22+
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
23+
],
24+
path: "Classes",
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
]
31+
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_commons",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-commons",
12+
targets: ["google_mlkit_commons"]
13+
),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "google_mlkit_commons",
19+
dependencies: [],
20+
path: "Classes",
21+
publicHeadersPath: ".",
22+
cSettings: [
23+
.headerSearchPath(".")
24+
]
25+
),
26+
]
27+
)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_digital_ink_recognition",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-digital-ink-recognition",
12+
targets: ["google_mlkit_digital_ink_recognition"]
13+
),
14+
],
15+
dependencies: [
16+
.package(path: "../google_mlkit_commons"),
17+
],
18+
targets: [
19+
.target(
20+
name: "google_mlkit_digital_ink_recognition",
21+
dependencies: [
22+
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
23+
],
24+
path: "Classes",
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
]
31+
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_document_scanner",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-document-scanner",
12+
targets: ["google_mlkit_document_scanner"]
13+
),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "google_mlkit_document_scanner",
19+
dependencies: [],
20+
path: "Classes",
21+
publicHeadersPath: ".",
22+
cSettings: [
23+
.headerSearchPath(".")
24+
]
25+
),
26+
]
27+
)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_entity_extraction",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-entity-extraction",
12+
targets: ["google_mlkit_entity_extraction"]
13+
),
14+
],
15+
dependencies: [
16+
.package(path: "../google_mlkit_commons"),
17+
],
18+
targets: [
19+
.target(
20+
name: "google_mlkit_entity_extraction",
21+
dependencies: [
22+
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
23+
],
24+
path: "Classes",
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
]
31+
)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_face_detection",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-face-detection",
12+
targets: ["google_mlkit_face_detection"]
13+
),
14+
],
15+
dependencies: [
16+
.package(path: "../google_mlkit_commons"),
17+
],
18+
targets: [
19+
.target(
20+
name: "google_mlkit_face_detection",
21+
dependencies: [
22+
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
23+
],
24+
path: "Classes",
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
]
31+
)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_face_mesh_detection",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-face-mesh-detection",
12+
targets: ["google_mlkit_face_mesh_detection"]
13+
),
14+
],
15+
dependencies: [
16+
.package(path: "../google_mlkit_commons"),
17+
],
18+
targets: [
19+
.target(
20+
name: "google_mlkit_face_mesh_detection",
21+
dependencies: [
22+
.product(name: "google-mlkit-commons", package: "google_mlkit_commons"),
23+
],
24+
path: "Classes",
25+
publicHeadersPath: ".",
26+
cSettings: [
27+
.headerSearchPath(".")
28+
]
29+
),
30+
]
31+
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_genai_image_description",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-genai-image-description",
12+
targets: ["google_mlkit_genai_image_description"]
13+
),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "google_mlkit_genai_image_description",
19+
dependencies: [],
20+
path: "Classes",
21+
publicHeadersPath: ".",
22+
cSettings: [
23+
.headerSearchPath(".")
24+
]
25+
),
26+
]
27+
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version:5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "google_mlkit_genai_prompt",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "google-mlkit-genai-prompt",
12+
targets: ["google_mlkit_genai_prompt"]
13+
),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "google_mlkit_genai_prompt",
19+
dependencies: [],
20+
path: "Classes",
21+
publicHeadersPath: ".",
22+
cSettings: [
23+
.headerSearchPath(".")
24+
]
25+
),
26+
]
27+
)

0 commit comments

Comments
 (0)