Skip to content

Commit

Permalink
feat: implement ObjectLifecycleController with a corresponding test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zet committed Nov 12, 2020
1 parent 3253b69 commit 9af8ca8
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 13 deletions.
38 changes: 34 additions & 4 deletions CoatySwift.xcodeproj/project.pbxproj
Expand Up @@ -9,8 +9,12 @@
/* Begin PBXBuildFile section */
5C413D29C3C51314A825292F /* Pods_CoatySwiftExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55A45E87FD5E136E3F76DDFC /* Pods_CoatySwiftExample.framework */; };
6462F5723286A036D41440BB /* Pods_CoatySwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C697987018DB42B4AC29FBE /* Pods_CoatySwift.framework */; };
9E03A7A0255AF85900AC43C2 /* IoNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E03A79E255AF85900AC43C2 /* IoNode.swift */; };
9E03A7A1255AF85900AC43C2 /* IoContext.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E03A79F255AF85900AC43C2 /* IoContext.swift */; };
9E3033F3255D490500021821 /* ObjectLifecycleControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E3033F2255D490500021821 /* ObjectLifecycleControllerTests.swift */; };
9E3C8FC124B488EC002159AA /* IoStateEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E3C8FC024B488EC002159AA /* IoStateEvent.swift */; };
9E3C8FC324B488F7002159AA /* IoValueEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E3C8FC224B488F7002159AA /* IoValueEvent.swift */; };
9E55CDA4255AA3BD00F411DA /* ObjectLifecycleController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E55CDA3255AA3BD00F411DA /* ObjectLifecycleController.swift */; };
9E73C8FF24A4CCE70010AA20 /* AssociateEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E73C8FE24A4CCE70010AA20 /* AssociateEvent.swift */; };
9E73C91024A4DE640010AA20 /* BasicIoRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E73C90F24A4DE640010AA20 /* BasicIoRouter.swift */; };
9E73C91224A4DE740010AA20 /* IoActorController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E73C91124A4DE740010AA20 /* IoActorController.swift */; };
Expand Down Expand Up @@ -101,8 +105,12 @@
7636EE82655C81F0D35299C0 /* Pods-CoatySwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CoatySwift.release.xcconfig"; path = "Target Support Files/Pods-CoatySwift/Pods-CoatySwift.release.xcconfig"; sourceTree = "<group>"; };
7C697987018DB42B4AC29FBE /* Pods_CoatySwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CoatySwift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
96A39A5460A0A922D5AEEA51 /* Pods-CoatySwiftTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CoatySwiftTests.debug.xcconfig"; path = "Target Support Files/Pods-CoatySwiftTests/Pods-CoatySwiftTests.debug.xcconfig"; sourceTree = "<group>"; };
9E03A79E255AF85900AC43C2 /* IoNode.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IoNode.swift; sourceTree = "<group>"; };
9E03A79F255AF85900AC43C2 /* IoContext.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IoContext.swift; sourceTree = "<group>"; };
9E3033F2255D490500021821 /* ObjectLifecycleControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObjectLifecycleControllerTests.swift; sourceTree = "<group>"; };
9E3C8FC024B488EC002159AA /* IoStateEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IoStateEvent.swift; sourceTree = "<group>"; };
9E3C8FC224B488F7002159AA /* IoValueEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IoValueEvent.swift; sourceTree = "<group>"; };
9E55CDA3255AA3BD00F411DA /* ObjectLifecycleController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObjectLifecycleController.swift; sourceTree = "<group>"; };
9E73C8FE24A4CCE70010AA20 /* AssociateEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AssociateEvent.swift; sourceTree = "<group>"; };
9E73C90F24A4DE640010AA20 /* BasicIoRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicIoRouter.swift; sourceTree = "<group>"; };
9E73C91124A4DE740010AA20 /* IoActorController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IoActorController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -235,6 +243,14 @@
path = Pods;
sourceTree = "<group>";
};
9E55CDA1255AA38D00F411DA /* Controller */ = {
isa = PBXGroup;
children = (
9E55CDA3255AA3BD00F411DA /* ObjectLifecycleController.swift */,
);
path = Controller;
sourceTree = "<group>";
};
9E73C90024A4CE720010AA20 /* IORouting */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -301,6 +317,7 @@
children = (
9E774E28249B75B500EF888A /* CoatySwiftTests.swift */,
9E774EC2249B9D6200EF888A /* ObjectMatcherTests.swift */,
9E3033F2255D490500021821 /* ObjectLifecycleControllerTests.swift */,
9E774E2A249B75B500EF888A /* Info.plist */,
);
path = CoatySwiftTests;
Expand All @@ -309,6 +326,7 @@
9E774E31249B770300EF888A /* Classes */ = {
isa = PBXGroup;
children = (
9E55CDA1255AA38D00F411DA /* Controller */,
9E73C90024A4CE720010AA20 /* IORouting */,
9E774E5D249B772B00EF888A /* Common */,
9E774E34249B772A00EF888A /* Communication */,
Expand Down Expand Up @@ -459,6 +477,8 @@
9E774E6E249B772B00EF888A /* Core Types */ = {
isa = PBXGroup;
children = (
9E03A79F255AF85900AC43C2 /* IoContext.swift */,
9E03A79E255AF85900AC43C2 /* IoNode.swift */,
9E774E6F249B772B00EF888A /* Location.swift */,
9E774E70249B772B00EF888A /* CoatyObject.swift */,
9E774E71249B772B00EF888A /* Identity.swift */,
Expand Down Expand Up @@ -739,6 +759,7 @@
9E774E8C249B772B00EF888A /* CompleteEvent.swift in Sources */,
9E774E94249B772B00EF888A /* Startable.swift in Sources */,
9E774E9F249B772B00EF888A /* AnyDecodable.swift in Sources */,
9E55CDA4255AA3BD00F411DA /* ObjectLifecycleController.swift in Sources */,
9E774E86249B772B00EF888A /* UpdateEvent.swift in Sources */,
9E774E8E249B772B00EF888A /* ResolveEvent.swift in Sources */,
9E774EA0249B772B00EF888A /* _AnyDecodable.swift in Sources */,
Expand All @@ -760,6 +781,7 @@
9E774EAE249B772B00EF888A /* Identity.swift in Sources */,
9E3C8FC124B488EC002159AA /* IoStateEvent.swift in Sources */,
9E774E93249B772B00EF888A /* BonjourResolver.swift in Sources */,
9E03A7A0255AF85900AC43C2 /* IoNode.swift in Sources */,
9E774E85249B772B00EF888A /* ChannelEvent.swift in Sources */,
9E774E98249B772B00EF888A /* Controller.swift in Sources */,
9E774E83249B772B00EF888A /* CM+Publish.swift in Sources */,
Expand Down Expand Up @@ -788,6 +810,7 @@
9E774E87249B772B00EF888A /* DeadvertiseEvent.swift in Sources */,
9E774EB1249B772B00EF888A /* User.swift in Sources */,
9E774EB6249B772B00EF888A /* Annotation.swift in Sources */,
9E03A7A1255AF85900AC43C2 /* IoContext.swift in Sources */,
9E774EA4249B772B00EF888A /* Codable+JSON.swift in Sources */,
9E774E99249B772B00EF888A /* Container.swift in Sources */,
9E73C91224A4DE740010AA20 /* IoActorController.swift in Sources */,
Expand Down Expand Up @@ -822,6 +845,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9E3033F3255D490500021821 /* ObjectLifecycleControllerTests.swift in Sources */,
9E774E29249B75B500EF888A /* CoatySwiftTests.swift in Sources */,
9E774EC3249B9D6200EF888A /* ObjectMatcherTests.swift in Sources */,
);
Expand Down Expand Up @@ -973,8 +997,10 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 3FDD64CF850D324EA2D2CFDB /* Pods-CoatySwift.debug.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = H45RLDQQ8T;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -985,7 +1011,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwift;
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftaaa;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -997,8 +1023,10 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7636EE82655C81F0D35299C0 /* Pods-CoatySwift.release.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = H45RLDQQ8T;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -1009,7 +1037,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwift;
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftaaa;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -1023,12 +1051,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = H45RLDQQ8T;
INFOPLIST_FILE = CoatySwiftExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftExample;
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftExampleaaaa;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -1041,12 +1070,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = H45RLDQQ8T;
INFOPLIST_FILE = CoatySwiftExample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftExample;
PRODUCT_BUNDLE_IDENTIFIER = io.coaty.CoatySwiftExampleaaaa;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down

0 comments on commit 9af8ca8

Please sign in to comment.