Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 5b18524

Browse files
DomenicBianchi01material-automation
authored andcommitted
Adding SPM Support
- Added SPM support. Once added to a project, the package can be imported the same way as you would with Cocoapods (`import MDFTextAccessibility`) - There are no changes to the file structure or Cocoapods related files. Closes #37 COPYBARA_INTEGRATE_REVIEW=#37 from oncallhealth:db/swiftpackagemanager bd0382d PiperOrigin-RevId: 359779079
1 parent 191c0f3 commit 5b18524

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

Package.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.3
2+
3+
// Copyright 2020-present the Material Text Accessibility for iOS authors. All Rights Reserved.
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "MDFTextAccessibility",
21+
platforms: [
22+
.iOS("8.0"), .tvOS("9.0")
23+
],
24+
products: [
25+
.library(name: "MDFTextAccessibility", targets: ["MDFTextAccessibility"])
26+
],
27+
targets: [
28+
.target(
29+
name: "MDFTextAccessibility",
30+
path: "src",
31+
publicHeadersPath: ".")
32+
]
33+
)

src/module.modulemap

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)