Skip to content

Commit 2f13df8

Browse files
Merge pull request #47 from klassen-software-solutions/development/v3
Development/v3
2 parents c1edf47 + ab1fe8c commit 2f13df8

35 files changed

+236
-19
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Contributing to KSSCore
2+
3+
If you are going to contribute to this project, please make yourself familiar with our standards and
4+
procedures:
5+
6+
* [Git Procedures](https://www.kss.cc/standards-git.html)
7+
* [Swift Coding Standards](https://www.kss.cc/standards-swift.html)
8+
9+
Note that the iOS version is not currently included in the CI. That may change as we work on
10+
more iOS projects, but for now the iOS version of the tests must be run manually within Xcode.

Dependencies/prereqs-licenses.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"generated": {
44
"process": "license-scanner",
55
"project": "KSSCore",
6-
"time": "2020-08-19T19:24:38.888284-06:00"
6+
"time": "2020-08-26T17:58:21.473334-06:00"
77
}
88
}

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import PackageDescription
66
let package = Package(
77
name: "KSSCore",
88
platforms: [
9-
.macOS(.v10_11)
9+
.macOS(.v10_11),
10+
.iOS(.v13),
1011
],
1112
products: {
1213
var products: [Product] = [

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ The modules provided by this package are the following:
1818

1919
[API Documentation](https://www.kss.cc/apis/KSSCore/docs/index.html)
2020

21-
## Contributing
21+
## Module Availability
2222

23-
If you are going to contribute to this project, please make yourself familiar with our standards and
24-
procedures:
25-
26-
* [Git Procedures](https://www.kss.cc/standards-git.html)
27-
* [Swift Coding Standards](https://www.kss.cc/standards-swift.html)
23+
Not all modules are currently available on all architechtures. Presently we support the following:
24+
25+
* _macOS_ - All modules are available
26+
* _iOS_ - All modules are available, except for `KSSCocoa` and `KSSWeb`.
27+
* _Linux_ - Only `KSSFoundation` and `KSSTest` are available

Sources/KSSCocoa/NSApplicationExtension.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2020 Klassen Software Solutions. All rights reserved.
77
//
88

9+
#if canImport(Cocoa)
10+
911
import Cocoa
1012

1113

@@ -78,3 +80,4 @@ public extension NSApplication {
7880
}
7981
}
8082
}
83+
#endif

Sources/KSSCocoa/NSColorExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// Released under the MIT license.
88
//
99

10+
#if canImport(Cocoa)
11+
1012
import Cocoa
1113
import Foundation
1214

@@ -17,3 +19,5 @@ public extension NSColor {
1719
/// it stand out better.
1820
class var errorHighlightColor: NSColor { NSColor.systemYellow.withAlphaComponent(0.50) }
1921
}
22+
23+
#endif

Sources/KSSCocoa/NSFontExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2020 Klassen Software Solutions. All rights reserved.
77
//
88

9+
#if canImport(Cocoa)
10+
911
import Cocoa
1012

1113
public extension NSFont {
@@ -35,3 +37,5 @@ public extension NSFont {
3537
return withTraits(traits: .italic)!
3638
}
3739
}
40+
41+
#endif

Sources/KSSCocoa/NSImageExtension.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
// Copyright © 2020 Klassen Software Solutions. All rights reserved.
66
//
77

8+
#if canImport(Cocoa)
9+
810
import os
911
import AppKit
12+
import Cocoa
1013
import Foundation
1114

1215
public extension NSImage {
@@ -89,3 +92,5 @@ fileprivate extension CIImage {
8992
return nil
9093
}
9194
}
95+
96+
#endif

Sources/KSSCocoa/NSMenuExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// Released under the MIT license.
88
//
99

10+
#if canImport(Cocoa)
11+
1012
import Cocoa
1113

1214
public extension NSMenu {
@@ -34,3 +36,5 @@ public extension NSMenu {
3436
return nil
3537
}
3638
}
39+
40+
#endif

Sources/KSSCocoa/NSViewControllerExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2017 Klassen Software Solutions. All rights reserved.
77
//
88

9+
#if canImport(Cocoa)
10+
911
import Foundation
1012
import Cocoa
1113
import KSSFoundation
@@ -44,3 +46,5 @@ public extension NSViewController {
4446
return applicationDirectoryURL
4547
}
4648
}
49+
50+
#endif

0 commit comments

Comments
 (0)