-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
Example/Example.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict/> | ||
<dict> | ||
<key>PreviewsEnabled</key> | ||
<false/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// swift-tools-version:5.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
// swift-tools-version:5.3 | ||
// | ||
// Package.swift | ||
// swift-tools-version:5.0 | ||
// Created by Adrian Bobrowski on 30.04.2017. | ||
// Copyright © 2017 Adrian Bobrowski (Decybel07), [email protected]. All rights reserved. | ||
// | ||
|
@@ -11,6 +9,7 @@ import PackageDescription | |
|
||
let package = Package( | ||
name: "L10n-swift", | ||
defaultLocalization: "en", | ||
platforms: [ | ||
.macOS(.v10_10), .iOS(.v9), .tvOS(.v9), .watchOS(.v2) | ||
], | ||
|
@@ -20,24 +19,25 @@ let package = Package( | |
targets: [ | ||
.target( | ||
name: "L10n-swift", | ||
path: "Source", | ||
path: "./Source", | ||
exclude: { | ||
var paths: [String] = [] | ||
#if !canImport(WatchKit) | ||
paths.append("IBInspectables/WatchKit") | ||
var paths: [String] = ["Info.plist", "L10n_swift.h"] | ||
#if !os(watchOS) | ||
paths.append("./IBInspectables/WatchKit") | ||
#endif | ||
|
||
#if canImport(UIKit) | ||
#if os(iOS) | ||
paths.append("IBInspectables/UIKit/tvOS") | ||
#elseif os(tvOS) | ||
paths.append("IBInspectables/UIKit/iOS") | ||
#endif | ||
#else | ||
paths.append("IBInspectables/UIKit") | ||
#endif | ||
if #available(iOS 9.0, *) { | ||
paths.append("./IBInspectables/UIKit/tvOS") | ||
} else if #available(tvOS 9.0, *) { | ||
paths.append("./IBInspectables/UIKit/iOS") | ||
} else { | ||
paths.append("./IBInspectables/UIKit") | ||
} | ||
return paths | ||
}() | ||
}(), | ||
resources: [ | ||
.process("./Core/Plural/Plural.stringsdict", localization: .default) | ||
] | ||
), | ||
], | ||
swiftLanguageVersions: [.v4, .v4_2, .v5] | ||
|