1
1
// swift-tools-version:5.6
2
2
3
- // MIT License
4
- //
5
- // Copyright (c) 2017-2022 MessageKit
6
- //
7
- // Permission is hereby granted, free of charge, to any person obtaining a copy
8
- // of this software and associated documentation files (the "Software"), to deal
9
- // in the Software without restriction, including without limitation the rights
10
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- // copies of the Software, and to permit persons to whom the Software is
12
- // furnished to do so, subject to the following conditions:
13
- // The above copyright notice and this permission notice shall be included in all
14
- // copies or substantial portions of the Software.
15
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- // SOFTWARE.
22
-
23
3
import PackageDescription
24
4
25
5
let package = Package (
26
6
name: " MessageKit " ,
27
7
platforms: [ . iOS( . v13) ] ,
28
8
products: [
29
9
. library( name: " MessageKit " , targets: [ " MessageKit " ] ) ,
30
- . plugin( name: " SwiftLintPlugin " , targets: [ " SwiftLintPlugin " ] ) ,
31
- . plugin( name: " SwiftFormatPlugin " , targets: [ " SwiftFormatPlugin " ] ) ,
32
10
] ,
33
11
dependencies: [
34
12
. package ( url: " https://github.com/nathantannar4/InputBarAccessoryView " , . upToNextMajor( from: " 6.3.0 " ) ) ,
@@ -44,45 +22,6 @@ let package = Package(
44
22
swiftSettings: [ SwiftSetting . define ( " IS_SPM " ) ]
45
23
) ,
46
24
. testTarget( name: " MessageKitTests " , dependencies: [ " MessageKit " ] ) ,
47
-
48
- // MARK: - Plugins
49
-
50
- . binaryTarget(
51
- name: " SwiftLintBinary " ,
52
- url: " https://github.com/realm/SwiftLint/releases/download/0.47.1/SwiftLintBinary-macos.artifactbundle.zip " ,
53
- checksum: " 82ef90b7d76b02e41edd73423687d9cedf0bb9849dcbedad8df3a461e5a7b555 "
54
- ) ,
55
- . plugin(
56
- name: " SwiftLintPlugin " ,
57
- capability: . buildTool( ) ,
58
- dependencies: [ " SwiftLintBinary " ]
59
- ) ,
60
- . plugin(
61
- name: " SwiftLintCommandPlugin " ,
62
- capability: . command(
63
- intent: . custom(
64
- verb: " lint " ,
65
- description: " Lint Swift source files "
66
- )
67
- ) ,
68
- dependencies: [ " SwiftLintBinary " ]
69
- ) ,
70
-
71
- . binaryTarget(
72
- name: " swiftformat " ,
73
- url: " https://github.com/nicklockwood/SwiftFormat/releases/download/0.49.13/swiftformat.artifactbundle.zip " ,
74
- checksum: " 5ce27780dceee8714b15d53141e6dce1a8d626e970eade3c511c9ef1a0c06f40 "
75
- ) ,
76
- . plugin(
77
- name: " SwiftFormatPlugin " ,
78
- capability: . command(
79
- intent: . sourceCodeFormatting( ) ,
80
- permissions: [
81
- . writeToPackageDirectory( reason: " Format Swift source files " ) ,
82
- ]
83
- ) ,
84
- dependencies: [ " swiftformat " ]
85
- ) ,
86
25
] ,
87
26
swiftLanguageVersions: [ . v5]
88
27
)
0 commit comments