Skip to content

Commit

Permalink
fix: Rhythm not Ryhthm πŸ™„ (#2)
Browse files Browse the repository at this point in the history
* fix: typo

* feat: update libraries
  • Loading branch information
reddavis authored Aug 3, 2022
1 parent 198c2a2 commit c1b5dc1
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
24 changes: 12 additions & 12 deletions Nanoleaf.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
A48DD4F127427C7000104C4E /* Layout.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F027427C7000104C4E /* Layout.swift */; };
A48DD4F327427CBD00104C4E /* ShapeType.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F227427CBD00104C4E /* ShapeType.swift */; };
A48DD4F52742823C00104C4E /* EffectList.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F42742823C00104C4E /* EffectList.swift */; };
A48DD4F82742A84700104C4E /* Ryhthm.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F72742A84700104C4E /* Ryhthm.swift */; };
A48DD4FA2742A87B00104C4E /* RyhthmPosition.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F92742A87B00104C4E /* RyhthmPosition.swift */; };
A48DD4FC2742A8A200104C4E /* RyhthmMode.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4FB2742A8A200104C4E /* RyhthmMode.swift */; };
A48DD4F82742A84700104C4E /* Rhythm.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F72742A84700104C4E /* Rhythm.swift */; };
A48DD4FA2742A87B00104C4E /* RhythmPosition.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4F92742A87B00104C4E /* RhythmPosition.swift */; };
A48DD4FC2742A8A200104C4E /* RhythmMode.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4FB2742A8A200104C4E /* RhythmMode.swift */; };
A48DD4FF2742C3BF00104C4E /* Details.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD4FE2742C3BF00104C4E /* Details.swift */; };
A48DD5012742C3E600104C4E /* PanelPosition.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD5002742C3E600104C4E /* PanelPosition.swift */; };
A48DD5062742CC1100104C4E /* FetchDeviceRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = A48DD5052742CC1100104C4E /* FetchDeviceRequest.swift */; };
Expand Down Expand Up @@ -189,9 +189,9 @@
A48DD4F027427C7000104C4E /* Layout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Layout.swift; sourceTree = "<group>"; };
A48DD4F227427CBD00104C4E /* ShapeType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShapeType.swift; sourceTree = "<group>"; };
A48DD4F42742823C00104C4E /* EffectList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EffectList.swift; sourceTree = "<group>"; };
A48DD4F72742A84700104C4E /* Ryhthm.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Ryhthm.swift; sourceTree = "<group>"; };
A48DD4F92742A87B00104C4E /* RyhthmPosition.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RyhthmPosition.swift; sourceTree = "<group>"; };
A48DD4FB2742A8A200104C4E /* RyhthmMode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RyhthmMode.swift; sourceTree = "<group>"; };
A48DD4F72742A84700104C4E /* Rhythm.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Rhythm.swift; sourceTree = "<group>"; };
A48DD4F92742A87B00104C4E /* RhythmPosition.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RhythmPosition.swift; sourceTree = "<group>"; };
A48DD4FB2742A8A200104C4E /* RhythmMode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RhythmMode.swift; sourceTree = "<group>"; };
A48DD4FE2742C3BF00104C4E /* Details.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Details.swift; sourceTree = "<group>"; };
A48DD5002742C3E600104C4E /* PanelPosition.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PanelPosition.swift; sourceTree = "<group>"; };
A48DD5052742CC1100104C4E /* FetchDeviceRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetchDeviceRequest.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -547,9 +547,9 @@
A48DD4F62742A83200104C4E /* Ryhthm */ = {
isa = PBXGroup;
children = (
A48DD4F72742A84700104C4E /* Ryhthm.swift */,
A48DD4FB2742A8A200104C4E /* RyhthmMode.swift */,
A48DD4F92742A87B00104C4E /* RyhthmPosition.swift */,
A48DD4F72742A84700104C4E /* Rhythm.swift */,
A48DD4FB2742A8A200104C4E /* RhythmMode.swift */,
A48DD4F92742A87B00104C4E /* RhythmPosition.swift */,
);
path = Ryhthm;
sourceTree = "<group>";
Expand Down Expand Up @@ -1098,7 +1098,7 @@
A4EE8C4E274C040700BE7F55 /* PluginConfiguration.swift in Sources */,
A4EE8CB32755247E00BE7F55 /* DeviceAddressResolver.swift in Sources */,
A4EE8C6B275013F700BE7F55 /* Color.swift in Sources */,
A48DD4F82742A84700104C4E /* Ryhthm.swift in Sources */,
A48DD4F82742A84700104C4E /* Rhythm.swift in Sources */,
A4DDF862274933300042274B /* FetchOnOffStateRequest.swift in Sources */,
A4EE8C772752623600BE7F55 /* AnimationData.swift in Sources */,
A4DDF87727493C260042274B /* FetchHueRequest.swift in Sources */,
Expand Down Expand Up @@ -1127,7 +1127,7 @@
A4DDF88127493DE00042274B /* FetchSaturationRequest.swift in Sources */,
A48DD443273ECA3100104C4E /* URLSession+HTTPSession.swift in Sources */,
A4EE8C36274BAE0700BE7F55 /* UpdatePanelLayoutRequest.swift in Sources */,
A48DD4FA2742A87B00104C4E /* RyhthmPosition.swift in Sources */,
A48DD4FA2742A87B00104C4E /* RhythmPosition.swift in Sources */,
A4EE8C2B274BAA2700BE7F55 /* FetchGlobalOrientationRequest.swift in Sources */,
A48DD4BF27400B3600104C4E /* DeviceIdentifier.swift in Sources */,
A4EE8C72275260E100BE7F55 /* Sequence+Extension.swift in Sources */,
Expand All @@ -1139,7 +1139,7 @@
A48DD4E927425B3400104C4E /* ColorMode.swift in Sources */,
A4EE8C20274BA76600BE7F55 /* FetchEffectsRequest.swift in Sources */,
A48DD4E62740249800104C4E /* Device.swift in Sources */,
A48DD4FC2742A8A200104C4E /* RyhthmMode.swift in Sources */,
A48DD4FC2742A8A200104C4E /* RhythmMode.swift in Sources */,
A4FDBE5327480FA200012206 /* UpdateStateRequest.swift in Sources */,
A4EE8C4B274BF6A000BE7F55 /* Plugin.swift in Sources */,
A4EE8CB52755445600BE7F55 /* DeviceAddress.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{
"identity" : "asynchrone",
"kind" : "remoteSourceControl",
"location" : "https://github.com/reddavis/Asynchrone",
"location" : "https://github.com/reddavis/Asynchrone.git",
"state" : {
"revision" : "27d0f57fa2e4da15bd2811dfab509d68422ea594",
"version" : "0.17.0"
"revision" : "657bfed52f2cad2e4697f1e3548796f563b20308",
"version" : "0.20.0"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import Foundation

public struct Ryhthm {
public struct Rhythm {
public var id: Int
public var isConnected: Bool
public var isActive: Bool
public var hardwareVersion: String
public var firmwareVersion: String
public var isAuxAvailable: Bool
public var mode: RyhthmMode
public var position: RyhthmPosition
public var mode: RhythmMode
public var position: RhythmPosition
}

extension Ryhthm: Codable {}
extension Rhythm: Codable {}

// MARK: Coding keys

extension Ryhthm {
extension Rhythm {
enum CodingKeys: String, CodingKey {
case id = "rhythmId"
case isConnected = "rhythmConnected"
Expand All @@ -30,9 +30,9 @@ extension Ryhthm {

// MARK: Fixture

extension Ryhthm: Fixture {
extension Rhythm: Fixture {
public static func fixture(_ configure: ((inout Self) -> Void)? = nil) -> Self {
var fixture = Ryhthm(
var fixture = Rhythm(
id: 1,
isConnected: true,
isActive: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Foundation

public enum RyhthmMode: Int {
public enum RhythmMode: Int {
case microphone = 0
case aux = 1
}

extension RyhthmMode: Codable {}
extension RhythmMode: Codable {}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Foundation

public struct RyhthmPosition {
public struct RhythmPosition {
public var x: Int
public var y: Int
public var orientation: Int
}

extension RyhthmPosition: Codable {}
extension RhythmPosition: Codable {}

// MARK: Coding keys

extension RyhthmPosition {
extension RhythmPosition {
enum CodingKeys: String, CodingKey {
case x
case y
Expand All @@ -20,9 +20,9 @@ extension RyhthmPosition {

// MARK: Fixture

extension RyhthmPosition: Fixture {
extension RhythmPosition: Fixture {
public static func fixture(_ configure: ((inout Self) -> Void)? = nil) -> Self {
var fixture = RyhthmPosition(
var fixture = RhythmPosition(
x: 0,
y: 0,
orientation: 0
Expand Down

0 comments on commit c1b5dc1

Please sign in to comment.