@@ -35,6 +35,16 @@ import PackageDescription
3535
3636let package = Package (
3737 name : " YOUR_PROJECT_NAME" ,
38+ platforms : [
39+ .iOS (.v13 ),
40+ .macCatalyst (.v13 ),
41+ .macOS (.v10_15 ),
42+ .tvOS (.v13 ),
43+ .watchOS (.v6 )
44+ ],
45+ products : [
46+ .library (name : " YOUR_PROJECT_NAME" , targets : [" YOUR_PROJECT_NAME" ])
47+ ],
3848 dependencies : [
3949 .package (url : " https://github.com/netreconlab/ParseServerSwift" , .upToNextMajor (from : " 0.7.0" )),
4050 ]
@@ -43,9 +53,23 @@ let package = Package(
4353 .target (
4454 name : " YOUR_PROJECT_NAME" ,
4555 dependencies : [
56+ .product (name : " Vapor" , package : " vapor" ),
57+ .product (name : " ParseSwift" , package : " Parse-Swift" ),
4658 .product (name : " ParseServerSwift" , package : " ParseServerSwift" ),
4759 ]
4860 ),
61+ .executableTarget (name : " App" ,
62+ dependencies : [.target (name : " YOUR_PROJECT_NAME" )],
63+ swiftSettings : [
64+ // Enable better optimizations when building in Release configuration. Despite the use of
65+ // the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
66+ // builds. See <https://github.com/swift-server/guides/blob/main/docs/building.md#building-for-production> for details.
67+ .unsafeFlags ([" -cross-module-optimization" ], .when (configuration : .release ))
68+ ]),
69+ .testTarget (name : " YOUR_PROJECT_NAMETests" , dependencies : [
70+ .target (name : " YOUR_PROJECT_NAME" ),
71+ .product (name : " XCTVapor" , package : " vapor" ),
72+ ])
4973 ]
5074)
5175```
0 commit comments