Skip to content

Commit e66a143

Browse files
authored
Merge pull request #92 from Ethenyl/release/release-0.3.3
Release 0.3.3
2 parents 95ebdfb + 165ddf3 commit e66a143

File tree

20 files changed

+159
-450
lines changed

20 files changed

+159
-450
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "JAMFKit"
3-
s.version = "0.3.2"
3+
s.version = "0.3.3"
44
s.summary = "A JSS communication framework written in Swift"
55
s.description = <<-DESC
66
JamfKit is an iOS / macOS / tvOS framework to communicate with the JSS API offered by any Jamf host.
@@ -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

+49-132
Large diffs are not rendered by default.

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

+2-2
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"
@@ -34,7 +34,7 @@
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
3636
BlueprintIdentifier = "52D6D9851BEFF229002C0205"
37-
BuildableName = "JamfKit-iOS Tests.xctest"
37+
BuildableName = "JamfKit Tests.xctest"
3838
BlueprintName = "JamfKit-iOS Tests"
3939
ReferencedContainer = "container:JamfKit.xcodeproj">
4040
</BuildableReference>

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

+2-2
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"
@@ -34,7 +34,7 @@
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
3636
BlueprintIdentifier = "DD7502791C68FCFC006590AF"
37-
BuildableName = "JamfKit-macOS Tests.xctest"
37+
BuildableName = "JamfKit Tests.xctest"
3838
BlueprintName = "JamfKit-macOS Tests"
3939
ReferencedContainer = "container:JamfKit.xcodeproj">
4040
</BuildableReference>

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

+2-2
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"
@@ -34,7 +34,7 @@
3434
<BuildableReference
3535
BuildableIdentifier = "primary"
3636
BlueprintIdentifier = "ED76B3EE204B0F7E0085C14C"
37-
BuildableName = "JamfKit-tvOS Tests.xctest"
37+
BuildableName = "JamfKit Tests.xctest"
3838
BlueprintName = "JamfKit-tvOS Tests"
3939
ReferencedContainer = "container:JamfKit.xcodeproj">
4040
</BuildableReference>

JamfKit/Sources/Models/Building.swift

+59
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,65 @@ public final class Building: BaseObject, Endpoint {
1010
// MARK: - Constants
1111

1212
public static let Endpoint = "buildings"
13+
14+
static let StreetAddress1Key = "streetAddress1"
15+
static let StreetAddress2Key = "streetAddress2"
16+
static let CityKey = "city"
17+
static let StateProvinceKey = "stateProvince"
18+
static let ZipPostalCodeKey = "zipPostalCode"
19+
static let CountryKey = "country"
20+
21+
// MARK: - Properties
22+
23+
@objc
24+
public var streetAddress1 = ""
25+
26+
@objc
27+
public var streetAddress2 = ""
28+
29+
@objc
30+
public var city = ""
31+
32+
@objc
33+
public var stateProvince = ""
34+
35+
@objc
36+
public var zipPostalCode = ""
37+
38+
@objc
39+
public var country = ""
40+
41+
// MARK: - Initialization
42+
43+
public required init?(json: [String: Any], node: String = "") {
44+
streetAddress1 = json[Building.StreetAddress1Key] as? String ?? ""
45+
streetAddress2 = json[Building.StreetAddress2Key] as? String ?? ""
46+
city = json[Building.CityKey] as? String ?? ""
47+
stateProvince = json[Building.StateProvinceKey] as? String ?? ""
48+
zipPostalCode = json[Building.ZipPostalCodeKey] as? String ?? ""
49+
country = json[Building.CountryKey] as? String ?? ""
50+
51+
super.init(json: json)
52+
}
53+
54+
public override init?(identifier: UInt, name: String) {
55+
super.init(identifier: identifier, name: name)
56+
}
57+
58+
// MARK: - Functions
59+
60+
public override func toJSON() -> [String: Any] {
61+
var json = super.toJSON()
62+
63+
json[Building.StreetAddress1Key] = streetAddress1
64+
json[Building.StreetAddress2Key] = streetAddress2
65+
json[Building.CityKey] = city
66+
json[Building.StateProvinceKey] = stateProvince
67+
json[Building.ZipPostalCodeKey] = zipPostalCode
68+
json[Building.CountryKey] = country
69+
70+
return json
71+
}
1372
}
1473

1574
// MARK: - Creatable

JamfKit/Test/AppDelegate.h

-17
This file was deleted.

JamfKit/Test/AppDelegate.m

-51
This file was deleted.

JamfKit/Test/Assets.xcassets/AppIcon.appiconset/Contents.json

-93
This file was deleted.

JamfKit/Test/Base.lproj/LaunchScreen.storyboard

-25
This file was deleted.

JamfKit/Test/Base.lproj/Main.storyboard

-24
This file was deleted.

0 commit comments

Comments
 (0)