Permalink
Browse files

Added some notes for running the iOS Demo project.

  • Loading branch information...
arturgrigor committed May 2, 2018
1 parent 8b54ccb commit da4cc8720c59f54b2188143b343e0c3a03a620dc
@@ -0,0 +1,14 @@
<?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>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.example.myexampleapp</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudKit</string>
</array>
</dict>
</plist>
@@ -17,11 +17,13 @@ extension GDPR {
// MARK: - Singleton -
static let defaultContainer = CKContainer(identifier: "iCloud.com.example.myexampleapp")
/// Singleton.
static let shared = GDPR(metadata: [
CKContainer.default(): ["someRecordType"],
defaultContainer: ["SomeRecordType"],
], containerNameMapping: [
CKContainer.default(): "default",
defaultContainer: "default",
])
}
@@ -64,6 +64,7 @@
FE865D1620990C4000AA9E41 /* CloudKitGDPR.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CloudKitGDPR.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FE865D1920990C4100AA9E41 /* CloudKitGDPR.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CloudKitGDPR.h; sourceTree = "<group>"; };
FE865D1A20990C4200AA9E41 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FED8BFCD2099D9F200D5FA28 /* Demo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Demo.entitlements; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -106,6 +107,7 @@
FE0EDBD52099197100CC16BF /* Assets.xcassets */,
FE0EDBD72099197100CC16BF /* LaunchScreen.storyboard */,
FE0EDBDA2099197100CC16BF /* Info.plist */,
FED8BFCD2099D9F200D5FA28 /* Demo.entitlements */,
FE0EDBE020991B5800CC16BF /* ZIPFoundation.xcodeproj */,
);
path = "CloudKitGDPR iOS Demo";
@@ -343,6 +345,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "CloudKitGDPR iOS Demo/Demo.entitlements";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "CloudKitGDPR iOS Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
@@ -363,6 +366,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "CloudKitGDPR iOS Demo/Demo.entitlements";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = "CloudKitGDPR iOS Demo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
View
@@ -181,6 +181,13 @@ gdpr.exportData(usingTransformer: JSONDataTransformer.default) { result in
}
```
## Notes
### iOS Demo Prerequisites
- Change the identifier for the `defaultContainer` in the `GDPR+App.swift` file to one that's accessible to you.
- Replace the `"SomeRecordType"` record type in the same file with one that's actually used in that container.
- Use the same container identifier for the `com.apple.developer.icloud-container-identifiers` key in the `Demo.entitlements` file.
# Contact
- [GitHub](https://github.com/arturgrigor)

0 comments on commit da4cc87

Please sign in to comment.