mirror of
https://github.com/TermiT/Flycut.git
synced 2024-09-20 07:16:07 +08:00
Switch to MJCloudKitUserDefaults.framework.
This commit is contained in:
parent
64643088f5
commit
6a307b7200
|
@ -19,7 +19,7 @@
|
|||
#import "UKLoginItemRegistry.h"
|
||||
#import "NSWindow+TrueCenter.h"
|
||||
#import "NSWindow+ULIZoomEffect.h"
|
||||
#import "MJCloudKitUserDefaultsSync.h"
|
||||
#import "MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.h"
|
||||
|
||||
@implementation AppController
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
#import "FlycutOperator.h"
|
||||
#import "MGSwipeTableCell/MGSwipeTableCell/MGSwipeTableCell.h"
|
||||
#import "MGSwipeTableCell/MGSwipeTableCell/MGSwipeButton.h"
|
||||
#import "MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.h"
|
||||
#import "MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.h"
|
||||
#import "IASKAppSettingsViewController.h"
|
||||
|
|
|
@ -73,13 +73,11 @@
|
|||
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
|
||||
8D151CC21FAC2B38005132F0 /* acknowledgements.txt in Resources */ = {isa = PBXBuildFile; fileRef = 8D151CC11FAC2B38005132F0 /* acknowledgements.txt */; };
|
||||
8D151CC51FAC2F25005132F0 /* acknowledgements.txt in Resources */ = {isa = PBXBuildFile; fileRef = 8D151CC11FAC2B38005132F0 /* acknowledgements.txt */; };
|
||||
8D153A0B1F54CD0C006A5815 /* MJCloudKitUserDefaultsSync.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D153A081F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.m */; };
|
||||
8D180DFE1F9CD0580001F912 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8D180DFD1F9CD0580001F912 /* Settings.bundle */; };
|
||||
8D180E221F9FD3D70001F912 /* InAppSettingsKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D180E211F9FD3320001F912 /* InAppSettingsKit.framework */; };
|
||||
8D180E231F9FD3D70001F912 /* InAppSettingsKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8D180E211F9FD3320001F912 /* InAppSettingsKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
8D180E271F9FD4B70001F912 /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D180E261F9FD4B70001F912 /* SettingsViewController.swift */; };
|
||||
8D180E291FA8CECD0001F912 /* 20-gear2.png in Resources */ = {isa = PBXBuildFile; fileRef = 8D180E281FA8CECD0001F912 /* 20-gear2.png */; };
|
||||
8D1817F71F72D35400F80B7A /* MJCloudKitUserDefaultsSync.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D153A081F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.m */; };
|
||||
8D2E28861B0669F500AE62C8 /* com.generalarcade.flycut.black.16.png in Resources */ = {isa = PBXBuildFile; fileRef = 8D2E28821B0669F500AE62C8 /* com.generalarcade.flycut.black.16.png */; };
|
||||
8D2E28871B0669F500AE62C8 /* com.generalarcade.flycut.black.32.png in Resources */ = {isa = PBXBuildFile; fileRef = 8D2E28831B0669F500AE62C8 /* com.generalarcade.flycut.black.32.png */; };
|
||||
8D2E28881B0669F500AE62C8 /* com.generalarcade.flycut.xout.16.png in Resources */ = {isa = PBXBuildFile; fileRef = 8D2E28841B0669F500AE62C8 /* com.generalarcade.flycut.xout.16.png */; };
|
||||
|
@ -88,6 +86,9 @@
|
|||
8DC9C99C1F742115003BE8B5 /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC9C99B1F742115003BE8B5 /* CloudKit.framework */; };
|
||||
8DCE82681F4550AA00124117 /* MGSwipeTableCell.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D0DC8571F3D682800A2A8AF /* MGSwipeTableCell.framework */; };
|
||||
8DCE82691F4550AA00124117 /* MGSwipeTableCell.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8D0DC8571F3D682800A2A8AF /* MGSwipeTableCell.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
8DF82B3E2098FA4F00E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DF82B3B2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.framework */; };
|
||||
8DF82B3F2098FA4F00E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8DF82B3B2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
8DF82B422098FA6900E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DF82B3B2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.framework */; };
|
||||
AABE497C09FF9CD000A6A239 /* AppController.m in Sources */ = {isa = PBXBuildFile; fileRef = AABE497B09FF9CD000A6A239 /* AppController.m */; };
|
||||
AAFAC85F0A1BD9DD00DC6025 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AAFAC84A0A1BD9DD00DC6025 /* Carbon.framework */; };
|
||||
DBEB0C9C1442F2AE0080D24E /* NSWindow+ULIZoomEffect.h in Headers */ = {isa = PBXBuildFile; fileRef = DBEB0C9A1442F2AE0080D24E /* NSWindow+ULIZoomEffect.h */; };
|
||||
|
@ -158,6 +159,27 @@
|
|||
remoteGlobalIDString = C63EE56A1BBA07ED008F46BB;
|
||||
remoteInfo = MGSwipeTableCell;
|
||||
};
|
||||
8DF82B3A2098F9CA00E2A1B9 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */;
|
||||
proxyType = 2;
|
||||
remoteGlobalIDString = 8DF82B0D2098EBB000E2A1B9;
|
||||
remoteInfo = MJCloudKitUserDefaultsSync;
|
||||
};
|
||||
8DF82B3C2098F9CA00E2A1B9 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */;
|
||||
proxyType = 2;
|
||||
remoteGlobalIDString = 8DF82B162098EBB000E2A1B9;
|
||||
remoteInfo = MJCloudKitUserDefaultsSyncTests;
|
||||
};
|
||||
8DF82B402098FA4F00E2A1B9 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 8DF82B0C2098EBB000E2A1B9;
|
||||
remoteInfo = MJCloudKitUserDefaultsSync;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
|
@ -169,6 +191,7 @@
|
|||
files = (
|
||||
8DCE82691F4550AA00124117 /* MGSwipeTableCell.framework in Embed Frameworks */,
|
||||
8D180E231F9FD3D70001F912 /* InAppSettingsKit.framework in Embed Frameworks */,
|
||||
8DF82B3F2098FA4F00E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -254,8 +277,6 @@
|
|||
8D0DC8391F3D4B6A00A2A8AF /* MGSwipeTableCell.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MGSwipeTableCell.xcodeproj; path = MGSwipeTableCell/MGSwipeTableCell.xcodeproj; sourceTree = "<group>"; };
|
||||
8D1107320486CEB800E47090 /* Flycut.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Flycut.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8D151CC11FAC2B38005132F0 /* acknowledgements.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = acknowledgements.txt; sourceTree = "<group>"; };
|
||||
8D153A071F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MJCloudKitUserDefaultsSync.h; path = MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.h; sourceTree = "<group>"; };
|
||||
8D153A081F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MJCloudKitUserDefaultsSync.m; path = MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.m; sourceTree = "<group>"; };
|
||||
8D153A0C1F5BB249006A5815 /* Flycut-iOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Flycut-iOS.entitlements"; sourceTree = "<group>"; };
|
||||
8D180DFD1F9CD0580001F912 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
|
||||
8D180E161F9FD3320001F912 /* InAppSettingsKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = InAppSettingsKit.xcodeproj; path = InAppSettingsKit/InAppSettingsKit.xcodeproj; sourceTree = "<group>"; };
|
||||
|
@ -269,6 +290,7 @@
|
|||
8D84B6361F72FBA900DB58F9 /* Flycut.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Flycut.entitlements; sourceTree = "<group>"; };
|
||||
8D84B63A1F7412E600DB58F9 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks/CloudKit.framework; sourceTree = DEVELOPER_DIR; };
|
||||
8DC9C99B1F742115003BE8B5 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; };
|
||||
8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MJCloudKitUserDefaultsSync.xcodeproj; path = MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.xcodeproj; sourceTree = "<group>"; };
|
||||
AABE497A09FF9CD000A6A239 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = "<group>"; };
|
||||
AABE497B09FF9CD000A6A239 /* AppController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = AppController.m; sourceTree = "<group>"; };
|
||||
AAFAC84A0A1BD9DD00DC6025 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
|
||||
|
@ -285,6 +307,7 @@
|
|||
8DCE82681F4550AA00124117 /* MGSwipeTableCell.framework in Frameworks */,
|
||||
8D0DC85A1F3D697000A2A8AF /* MGSwipeTableCell.framework in Frameworks */,
|
||||
8D180E221F9FD3D70001F912 /* InAppSettingsKit.framework in Frameworks */,
|
||||
8DF82B3E2098FA4F00E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -306,6 +329,7 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8DF82B422098FA6900E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */,
|
||||
8DC9C99C1F742115003BE8B5 /* CloudKit.framework in Frameworks */,
|
||||
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
|
||||
AAFAC85F0A1BD9DD00DC6025 /* Carbon.framework in Frameworks */,
|
||||
|
@ -318,6 +342,7 @@
|
|||
080E96DDFE201D6D7F000001 /* Classes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */,
|
||||
AABE497A09FF9CD000A6A239 /* AppController.h */,
|
||||
AABE497B09FF9CD000A6A239 /* AppController.m */,
|
||||
8D0C11A01F147E3C0046FAA0 /* FlycutOperator.h */,
|
||||
|
@ -330,7 +355,6 @@
|
|||
7761C877139BDE7F000FB3AB /* FlycutEngine */,
|
||||
77A4F3A4139BD72300F39666 /* SGHotKeysLib */,
|
||||
8D180E161F9FD3320001F912 /* InAppSettingsKit.xcodeproj */,
|
||||
8D153A061F54CCD8006A5815 /* MJCloudKitUserDefaultsSync */,
|
||||
8D0DC8391F3D4B6A00A2A8AF /* MGSwipeTableCell.xcodeproj */,
|
||||
);
|
||||
name = Classes;
|
||||
|
@ -556,15 +580,6 @@
|
|||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8D153A061F54CCD8006A5815 /* MJCloudKitUserDefaultsSync */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D153A071F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.h */,
|
||||
8D153A081F54CCF7006A5815 /* MJCloudKitUserDefaultsSync.m */,
|
||||
);
|
||||
name = MJCloudKitUserDefaultsSync;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8D180E171F9FD3320001F912 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -575,6 +590,15 @@
|
|||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8DF82B342098F9CA00E2A1B9 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B3B2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.framework */,
|
||||
8DF82B3D2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSyncTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
|
@ -622,6 +646,7 @@
|
|||
8D0DC8591F3D696B00A2A8AF /* PBXTargetDependency */,
|
||||
8DCE826B1F4550AA00124117 /* PBXTargetDependency */,
|
||||
8D180E251F9FD3D70001F912 /* PBXTargetDependency */,
|
||||
8DF82B412098FA4F00E2A1B9 /* PBXTargetDependency */,
|
||||
);
|
||||
name = "Flycut-iOS";
|
||||
productName = "Flycut-iOS";
|
||||
|
@ -772,6 +797,10 @@
|
|||
ProductGroup = 8D0DC8531F3D682800A2A8AF /* Products */;
|
||||
ProjectRef = 8D0DC8391F3D4B6A00A2A8AF /* MGSwipeTableCell.xcodeproj */;
|
||||
},
|
||||
{
|
||||
ProductGroup = 8DF82B342098F9CA00E2A1B9 /* Products */;
|
||||
ProjectRef = 8DF82B332098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.xcodeproj */;
|
||||
},
|
||||
);
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
|
@ -813,6 +842,20 @@
|
|||
remoteRef = 8D180E201F9FD3320001F912 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
8DF82B3B2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSync.framework */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = wrapper.framework;
|
||||
path = MJCloudKitUserDefaultsSync.framework;
|
||||
remoteRef = 8DF82B3A2098F9CA00E2A1B9 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
8DF82B3D2098F9CA00E2A1B9 /* MJCloudKitUserDefaultsSyncTests.xctest */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = wrapper.cfbundle;
|
||||
path = MJCloudKitUserDefaultsSyncTests.xctest;
|
||||
remoteRef = 8DF82B3C2098F9CA00E2A1B9 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
/* End PBXReferenceProxy section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
|
@ -897,7 +940,6 @@
|
|||
8D0C11AA1F171B140046FAA0 /* ViewController.swift in Sources */,
|
||||
8D0C11D71F1883620046FAA0 /* FlycutClipping.m in Sources */,
|
||||
8D0C11A81F171B140046FAA0 /* AppDelegate.swift in Sources */,
|
||||
8D153A0B1F54CD0C006A5815 /* MJCloudKitUserDefaultsSync.m in Sources */,
|
||||
8D0C11D31F171B240046FAA0 /* FlycutOperator.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -922,7 +964,6 @@
|
|||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8D1817F71F72D35400F80B7A /* MJCloudKitUserDefaultsSync.m in Sources */,
|
||||
8D11072D0486CEB800E47090 /* main.m in Sources */,
|
||||
AABE497C09FF9CD000A6A239 /* AppController.m in Sources */,
|
||||
77A4F3AE139BD72300F39666 /* SGHotKey.m in Sources */,
|
||||
|
@ -983,6 +1024,11 @@
|
|||
name = MGSwipeTableCell;
|
||||
targetProxy = 8DCE826A1F4550AA00124117 /* PBXContainerItemProxy */;
|
||||
};
|
||||
8DF82B412098FA4F00E2A1B9 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
name = MJCloudKitUserDefaultsSync;
|
||||
targetProxy = 8DF82B402098FA4F00E2A1B9 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "FlycutOperator.h"
|
||||
#import "MJCloudKitUserDefaultsSync.h"
|
||||
#import "MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync/MJCloudKitUserDefaultsSync.h"
|
||||
|
||||
@implementation FlycutOperator
|
||||
|
||||
|
|
|
@ -0,0 +1,438 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 48;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
8DF82B172098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DF82B0D2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework */; };
|
||||
8DF82B1C2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DF82B1B2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.m */; };
|
||||
8DF82B1E2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.h in Headers */ = {isa = PBXBuildFile; fileRef = 8DF82B102098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
8DF82B282098ECFE00E2A1B9 /* MJCloudKitUserDefaultsSync.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DF82B272098ECFE00E2A1B9 /* MJCloudKitUserDefaultsSync.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
8DF82B182098EBB000E2A1B9 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 8DF82B042098EBB000E2A1B9 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 8DF82B0C2098EBB000E2A1B9;
|
||||
remoteInfo = MJCloudKitUserDefaultsSync;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
8DF82B0D2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MJCloudKitUserDefaultsSync.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8DF82B102098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJCloudKitUserDefaultsSync.h; sourceTree = "<group>"; };
|
||||
8DF82B112098EBB000E2A1B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
8DF82B162098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MJCloudKitUserDefaultsSyncTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8DF82B1B2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJCloudKitUserDefaultsSyncTests.m; sourceTree = "<group>"; };
|
||||
8DF82B1D2098EBB000E2A1B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
8DF82B272098ECFE00E2A1B9 /* MJCloudKitUserDefaultsSync.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MJCloudKitUserDefaultsSync.m; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8DF82B092098EBB000E2A1B9 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
8DF82B132098EBB000E2A1B9 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8DF82B172098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
8DF82B032098EBB000E2A1B9 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B0F2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync */,
|
||||
8DF82B1A2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests */,
|
||||
8DF82B0E2098EBB000E2A1B9 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8DF82B0E2098EBB000E2A1B9 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B0D2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework */,
|
||||
8DF82B162098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8DF82B0F2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B272098ECFE00E2A1B9 /* MJCloudKitUserDefaultsSync.m */,
|
||||
8DF82B102098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.h */,
|
||||
8DF82B112098EBB000E2A1B9 /* Info.plist */,
|
||||
);
|
||||
path = MJCloudKitUserDefaultsSync;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8DF82B1A2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DF82B1B2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.m */,
|
||||
8DF82B1D2098EBB000E2A1B9 /* Info.plist */,
|
||||
);
|
||||
path = MJCloudKitUserDefaultsSyncTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
8DF82B0A2098EBB000E2A1B9 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8DF82B1E2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8DF82B0C2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8DF82B212098EBB000E2A1B9 /* Build configuration list for PBXNativeTarget "MJCloudKitUserDefaultsSync" */;
|
||||
buildPhases = (
|
||||
8DF82B082098EBB000E2A1B9 /* Sources */,
|
||||
8DF82B092098EBB000E2A1B9 /* Frameworks */,
|
||||
8DF82B0A2098EBB000E2A1B9 /* Headers */,
|
||||
8DF82B0B2098EBB000E2A1B9 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = MJCloudKitUserDefaultsSync;
|
||||
productName = MJCloudKitUserDefaultsSync;
|
||||
productReference = 8DF82B0D2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync.framework */;
|
||||
productType = "com.apple.product-type.framework";
|
||||
};
|
||||
8DF82B152098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8DF82B242098EBB000E2A1B9 /* Build configuration list for PBXNativeTarget "MJCloudKitUserDefaultsSyncTests" */;
|
||||
buildPhases = (
|
||||
8DF82B122098EBB000E2A1B9 /* Sources */,
|
||||
8DF82B132098EBB000E2A1B9 /* Frameworks */,
|
||||
8DF82B142098EBB000E2A1B9 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
8DF82B192098EBB000E2A1B9 /* PBXTargetDependency */,
|
||||
);
|
||||
name = MJCloudKitUserDefaultsSyncTests;
|
||||
productName = MJCloudKitUserDefaultsSyncTests;
|
||||
productReference = 8DF82B162098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
8DF82B042098EBB000E2A1B9 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0920;
|
||||
ORGANIZATIONNAME = "Mark Jerde";
|
||||
TargetAttributes = {
|
||||
8DF82B0C2098EBB000E2A1B9 = {
|
||||
CreatedOnToolsVersion = 9.2;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
8DF82B152098EBB000E2A1B9 = {
|
||||
CreatedOnToolsVersion = 9.2;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 8DF82B072098EBB000E2A1B9 /* Build configuration list for PBXProject "MJCloudKitUserDefaultsSync" */;
|
||||
compatibilityVersion = "Xcode 8.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 8DF82B032098EBB000E2A1B9;
|
||||
productRefGroup = 8DF82B0E2098EBB000E2A1B9 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8DF82B0C2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync */,
|
||||
8DF82B152098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8DF82B0B2098EBB000E2A1B9 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
8DF82B142098EBB000E2A1B9 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8DF82B082098EBB000E2A1B9 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8DF82B282098ECFE00E2A1B9 /* MJCloudKitUserDefaultsSync.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
8DF82B122098EBB000E2A1B9 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8DF82B1C2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSyncTests.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
8DF82B192098EBB000E2A1B9 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 8DF82B0C2098EBB000E2A1B9 /* MJCloudKitUserDefaultsSync */;
|
||||
targetProxy = 8DF82B182098EBB000E2A1B9 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
8DF82B1F2098EBB000E2A1B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8DF82B202098EBB000E2A1B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = macosx;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
8DF82B222098EBB000E2A1B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = 66X95R6W2D;
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
FRAMEWORK_VERSION = A;
|
||||
INFOPLIST_FILE = MJCloudKitUserDefaultsSync/Info.plist;
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mark-a-jerde.MJCloudKitUserDefaultsSync";
|
||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||
SKIP_INSTALL = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8DF82B232098EBB000E2A1B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = 66X95R6W2D;
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
FRAMEWORK_VERSION = A;
|
||||
INFOPLIST_FILE = MJCloudKitUserDefaultsSync/Info.plist;
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mark-a-jerde.MJCloudKitUserDefaultsSync";
|
||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||
SKIP_INSTALL = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
8DF82B252098EBB000E2A1B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEVELOPMENT_TEAM = 66X95R6W2D;
|
||||
INFOPLIST_FILE = MJCloudKitUserDefaultsSyncTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mark-a-jerde.MJCloudKitUserDefaultsSyncTests";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8DF82B262098EBB000E2A1B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEVELOPMENT_TEAM = 66X95R6W2D;
|
||||
INFOPLIST_FILE = MJCloudKitUserDefaultsSyncTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mark-a-jerde.MJCloudKitUserDefaultsSyncTests";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
8DF82B072098EBB000E2A1B9 /* Build configuration list for PBXProject "MJCloudKitUserDefaultsSync" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8DF82B1F2098EBB000E2A1B9 /* Debug */,
|
||||
8DF82B202098EBB000E2A1B9 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
8DF82B212098EBB000E2A1B9 /* Build configuration list for PBXNativeTarget "MJCloudKitUserDefaultsSync" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8DF82B222098EBB000E2A1B9 /* Debug */,
|
||||
8DF82B232098EBB000E2A1B9 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
8DF82B242098EBB000E2A1B9 /* Build configuration list for PBXNativeTarget "MJCloudKitUserDefaultsSyncTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8DF82B252098EBB000E2A1B9 /* Debug */,
|
||||
8DF82B262098EBB000E2A1B9 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 8DF82B042098EBB000E2A1B9 /* Project object */;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:MJCloudKitUserDefaultsSync.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2018 Mark Jerde. All rights reserved.</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -42,6 +42,15 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
//! Project version number for MJCloudKitUserDefaultsSync.
|
||||
FOUNDATION_EXPORT double MJCloudKitUserDefaultsSyncVersionNumber;
|
||||
|
||||
//! Project version string for MJCloudKitUserDefaultsSync.
|
||||
FOUNDATION_EXPORT const unsigned char MJCloudKitUserDefaultsSyncVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <MJCloudKitUserDefaultsSync/PublicHeader.h>
|
||||
|
||||
|
||||
@protocol MJCloudKitUserDefaultsSyncDelegate <NSObject>
|
||||
@optional
|
||||
// notifyCKAccountStatusNoAccount is called when:
|
||||
|
@ -63,15 +72,15 @@ static inline MJSyncNotificationType MJSyncNotificationTypeLast() { return MJSyn
|
|||
|
||||
+ (nullable instancetype)sharedSync;
|
||||
|
||||
- (nullable instancetype)init;
|
||||
- (nonnull instancetype)init;
|
||||
|
||||
- (void)setDelegate:(nonnull id<MJCloudKitUserDefaultsSyncDelegate>)newDelegate;
|
||||
- (void)setRemoteNotificationsEnabled:(bool)enabled;
|
||||
- (void)startWithPrefix:(nonnull NSString *)prefixToSync
|
||||
withContainerIdentifier:(nonnull NSString *)containerIdentifier;
|
||||
- (void)startWithKeyMatchList:(nonnull NSArray *)keyMatchList
|
||||
withContainerIdentifier:(nonnull NSString *)containerIdentifier;
|
||||
- (void)stopForKeyMatchList:(nonnull NSArray *)keyMatchList;
|
||||
- (void)addNotificationFor:(MJSyncNotificationType)type;
|
||||
|
||||
-(void) setDelegate:(id<MJCloudKitUserDefaultsSyncDelegate>) aDelegate;
|
||||
-(void) setRemoteNotificationsEnabled:(bool) enabled;
|
||||
-(void) startWithPrefix:(NSString*) prefixToSync withContainerIdentifier:(NSString*) containerIdentifier;
|
||||
-(void) startWithKeyMatchList:(NSArray*) keyMatchList withContainerIdentifier:(NSString*) containerIdentifier;
|
||||
-(void) stopForKeyMatchList:(NSArray*) keyMatchList;
|
||||
-(void) addNotificationFor:(MJSyncNotificationType)type withSelector:(SEL)aSelector withTarget:(nullable id)aTarget;
|
||||
-(void) removeNotificationsFor:(MJSyncNotificationType)type forTarget:(nullable id) aTargetadd;
|
||||
-(void) checkCloudKitUpdates;
|
||||
-(NSString *) diagnosticData;
|
||||
@end
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,90 @@
|
|||
//
|
||||
// MJCloudKitUserDefaultsSyncTests.m
|
||||
// MJCloudKitUserDefaultsSyncTests
|
||||
//
|
||||
// Created by Mark Jerde on 5/1/18.
|
||||
// Copyright © 2018 Mark Jerde. All rights reserved.
|
||||
//
|
||||
|
||||
#import <XCTest/XCTest.h>
|
||||
#import "MJCloudKitUserDefaultsSync.h"
|
||||
|
||||
@interface MJCloudKitUserDefaultsSyncTests : XCTestCase
|
||||
|
||||
@end
|
||||
|
||||
@implementation MJCloudKitUserDefaultsSyncTests
|
||||
|
||||
- (void)setUp {
|
||||
[super setUp];
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
[super tearDown];
|
||||
}
|
||||
|
||||
- (void)testSetAndRestoreValueThroughCloudKit {
|
||||
|
||||
// Ensure the key is removed from defaults and verify it is gone.
|
||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"ckSyncFiveFourThree"];
|
||||
|
||||
XCTAssertEqual(0, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not cleared from NSUserDefaults");
|
||||
|
||||
// Create a sync, add a key to defaults, quit sync.
|
||||
{
|
||||
MJCloudKitUserDefaultsSync *ckSync = [[MJCloudKitUserDefaultsSync alloc] init];
|
||||
|
||||
[ckSync startWithPrefix:@"ckSync"
|
||||
withContainerIdentifier:@"iCloud.com.MJCloudKitUserDefaultsSync.tests"];
|
||||
|
||||
// Should sync within two seconds.
|
||||
[NSThread sleepForTimeInterval:2.0f];
|
||||
|
||||
XCTAssertEqual(0, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not absent in CloudKit.");
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setInteger:(NSInteger)543 forKey:@"ckSyncFiveFourThree"];
|
||||
|
||||
XCTAssertEqual(543, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not set in NSUserDefaults");
|
||||
|
||||
[ckSync release];
|
||||
ckSync = nil;
|
||||
}
|
||||
|
||||
// Remove the key from defaults and verify it is gone.
|
||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"ckSyncFiveFourThree"];
|
||||
|
||||
XCTAssertEqual(0, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not cleared from NSUserDefaults");
|
||||
|
||||
// Create a sync, check for key in defaults, quit sync.
|
||||
{
|
||||
MJCloudKitUserDefaultsSync *ckSync = [[MJCloudKitUserDefaultsSync alloc] init];
|
||||
|
||||
[ckSync startWithPrefix:@"ckSync"
|
||||
withContainerIdentifier:@"iCloud.com.MJCloudKitUserDefaultsSync.tests"];
|
||||
|
||||
// Should sync within two seconds.
|
||||
[NSThread sleepForTimeInterval:2.0f];
|
||||
|
||||
XCTAssertEqual(543, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not loaded from CloudKit.");
|
||||
|
||||
[ckSync release];
|
||||
ckSync = nil;
|
||||
}
|
||||
|
||||
XCTAssertEqual(543, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not persisted after CloudKit.");
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"ckSyncFiveFourThree"];
|
||||
|
||||
XCTAssertEqual(0, [[NSUserDefaults standardUserDefaults] integerForKey:@"ckSyncFiveFourThree"], @"Value not absent in CloudKit.");
|
||||
}
|
||||
|
||||
- (void)testPerformanceExample {
|
||||
// This is an example of a performance test case.
|
||||
[self measureBlock:^{
|
||||
// Put the code you want to measure the time of here.
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
|
@ -9,7 +9,7 @@ MJCloudKitUserDefaultsSync was recently converted to not be a mess of static mem
|
|||
|
||||
### How to use?
|
||||
1. Drag the two classes and #import the header file in your Application Delegate
|
||||
2. Call `[[MJCloudKitUserDefaultsSync sharedSync] startWithPrefix:@"sync" withContainerIdentifier@"iCloud.com.yourCompany.yourProduct"];`
|
||||
2. Call `[[MJCloudKitUserDefaultsSync sharedSync] startWithPrefix:@"sync" withContainerIdentifier:@"iCloud.com.yourCompany.yourProduct"];`
|
||||
3. Register for Remote Notifications in your applicationDidFinishLaunching.
|
||||
|
||||
// macOS
|
||||
|
@ -54,7 +54,7 @@ Objective-C
|
|||
`[MJCloudKitUserDefaultsSync checkCloudKitUpdates];`
|
||||
to
|
||||
`[[MJCloudKitUserDefaultsSync sharedSync] checkCloudKitUpdates];`
|
||||
(sharedSync is nullable, so beware and pick your comfort level.)
|
||||
(sharedSync is nullable but Objective-C doesn't mind messages sent to nil, so if sharedSync failed to allocate it would run like that line wasn't there.)
|
||||
|
||||
Swift
|
||||
`MJCloudKitUserDefaultsSync.checkCloudKitUpdates()`
|
||||
|
|
Loading…
Reference in a new issue