Skip to content

Commit 6c9342a

Browse files
committed
Upgrade project to Swift 5
Applied minor upgrades. Signed-off-by: Ethenyl <[email protected]>
1 parent e11e188 commit 6c9342a

File tree

9 files changed

+74
-156
lines changed

9 files changed

+74
-156
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
os: osx
22
language: objective-c
3-
osx_image: xcode10
3+
osx_image: xcode10.2
44

55
env:
66
global:

JAMFKit.podspec

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Pod::Spec.new do |s|
1212

1313
s.ios.deployment_target = "9.0"
1414
s.osx.deployment_target = "10.10"
15+
s.tvos.deployment_target = "9.0"
1516

1617
s.source = { :git => "https://github.com/Ethenyl/JamfKit.git", :tag => s.version.to_s }
1718
s.source_files = "JamfKit/Sources/**/*.swift"
File renamed without changes.
File renamed without changes.

JamfKit/JamfKit.xcodeproj/project.pbxproj

+47-130
Large diffs are not rendered by default.

JamfKit/JamfKit.xcodeproj/xcshareddata/xcschemes/JamfKit iOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

JamfKit/JamfKit.xcodeproj/xcshareddata/xcschemes/JamfKit macOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

JamfKit/JamfKit.xcodeproj/xcshareddata/xcschemes/JamfKit tvOS.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# JamfKit #
1+
# JamfKit
22

33
<p align="center"><img src="Assets/JamfKit_256.png" alt="JamfKit"></p>
44

5-
![Swift](https://img.shields.io/badge/Swift-4.1+-lightgrey.svg?style=flat-square)
5+
![Swift](https://img.shields.io/badge/Swift-5.0+-f05138.svg?style=flat-square)
66
![iOS](https://img.shields.io/badge/iOS-9+-lightgrey.svg?style=flat-square)
77
![macOS](https://img.shields.io/badge/macOS-10.10+-lightgrey.svg?style=flat-square)
88
![tvOS](https://img.shields.io/badge/tvOS-9.0+-lightgrey.svg?style=flat-square)
@@ -15,7 +15,7 @@
1515

1616
`JamfKit` is an iOS / macOS / tvOS framework to communicate with the JSS API offered by any Jamf host.
1717

18-
## Summary ##
18+
## Summary
1919

2020
- [Features](#features)
2121
- [Installation](#installation)
@@ -32,17 +32,17 @@
3232
- [Credits](#credits)
3333
- [License](#license)
3434

35-
## Features ##
35+
## Features
3636

3737
- [x] Includes JSON encoding / decoding support for most of the JSS objects
3838
- [x] Includes Objective-C support
39-
- [x] Includes Swift 4+ support
39+
- [x] Includes Swift 5+ support
4040
- [x] Includes ready-for-consumption CRUD `URLRequest` for JSS endpoints
4141
- [x] Includes demonstration playgrounds for class handling or request generation
4242

43-
## Installation ##
43+
## Installation
4444

45-
### Carthage ###
45+
### Carthage
4646

4747
To integrate `JamfKit` into your project, add the following line in your `Cartfile`:
4848

@@ -54,7 +54,7 @@ Then run the following command:
5454

5555
`$ carthage update`
5656

57-
### Cocoapods ###
57+
### Cocoapods
5858

5959
To integrate `JamfKit` into your project, add the following line in your `Podfile`:
6060

@@ -72,9 +72,9 @@ Then run the following command:
7272

7373
`$ pod install`
7474

75-
## Architecture ##
75+
## Architecture
7676

77-
### Protocols ###
77+
### Protocols
7878

7979
|Protocol|Description|
8080
|-----|-----|
@@ -83,14 +83,14 @@ Then run the following command:
8383
|`Requestable`|Represents an object that can be used to perform requests with any JSS endpoint.|
8484
|`Subset`|Represents any JSS object that contains a general object that can identify it.|
8585

86-
#### Requestable conformance ####
86+
#### Requestable conformance
8787

8888
The class that conform to `Requestable` exposes the following elements:
8989

9090
- An failable initializer that takes a JSON payload and return the instantiated object
9191
- A function to return the JSON payload that represents the instance of the object
9292

93-
### Classes ###
93+
### Classes
9494

9595
|Class|Desscription|
9696
|-----|-----|
@@ -117,21 +117,21 @@ Then run the following command:
117117
|`SMTPServer`|Represents the physical SMTP server configuration.|
118118
|`User`|Represents a Jamf user and contains the identification properties that are required to contact the actual user and identify the hardware devices assigned to him / her.|
119119

120-
## Usage ##
120+
## Usage
121121

122-
### Getting started ###
122+
### Getting started
123123

124-
#### Playgrounds ####
124+
#### Playgrounds
125125

126126
To get a quick look on how you can use `JamfKit` in your `Jamf` related features, you can check the `Playgrounds` included within the workspace.
127127

128128
Also check the unit tests, they should cover most of your needs.
129129

130-
#### Models ####
130+
#### Models
131131

132132
Most of the classes can be initialized with the bare minimul values, all the properties are then available for modification.
133133

134-
#### Requests ####
134+
#### Requests
135135

136136
By adhering to the different CRUD protocols (`Creatable`, `Readable`, `Updatable` & `Deletable`), most of the JSS objects listed above are capable of supplying varying `URLRequest` that should fit any needs.
137137

@@ -149,30 +149,30 @@ You'll find below the basic functions to get `URLRequest`:
149149

150150
Some objects will offer variants of those requests, like `MobileDevice` with `readRequestWithName()` or `deleteRequestWithSerialNumber()` (with both `static` and `instance` variants).
151151

152-
## Contributing ##
152+
## Contributing
153153

154154
So, you want to help improve `JamfKit`? That's great! Any useful contribution is welcome!
155155

156156
Check [CONTRIBUTING](https://github.com/Ethenyl/JamfKit/blob/master/CONTRIBUTING.md) for more details on how you can contribute to `JamfKit`.
157157

158-
## Code of conduct ##
158+
## Code of conduct
159159

160160
Any contributions (issues, pull requests, comments, etc.) to `JamfKit` are more than welcome.
161161

162162
But before making any contribution, please make sure that you follow the [CODE OF CONDUCT](https://github.com/Ethenyl/JamfKit/blob/master/CODE_OF_CONDUCT.md).
163163

164164
Otherwise, there's a great chance that your contribution will be removed / blocked / hidden.
165165

166-
## FAQ ##
166+
## FAQ
167167

168168
None for the moment.
169169

170-
## Credits ##
170+
## Credits
171171

172172
`JamfKit` is owned and maintained by [Ethenyl](https://github.com/Ethenyl).
173173

174174
You can join the list by contributing to the repository.
175175

176-
## License ##
176+
## License
177177

178178
`JamfKit` is released under the MIT license. See [LICENSE](https://github.com/Ethenyl/JamfKit/blob/master/LICENSE) for more details.

0 commit comments

Comments
 (0)