Skip to content

Commit

Permalink
Merge pull request #62 from SentulAsia/master
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
SentulAsia authored Jul 15, 2019
2 parents ca406cd + f8b140e commit 2eb726b
Show file tree
Hide file tree
Showing 22 changed files with 555 additions and 53 deletions.
2 changes: 1 addition & 1 deletion DataStoreManager.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "DataStoreManager"
s.version = "0.9.2"
s.version = "0.9.3"
s.summary = "This library allows you to easily manage persistent data in your iOS app."

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion DataStoreManager.xcodeproj/DataStoreManager_Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.2</string>
<string>0.9.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ for up to date installation instructions.

[carthage-installation]: https://github.com/Carthage/Carthage#adding-frameworks-to-an-application

#### <img src="https://raw.githubusercontent.com/zaidmsaid/DataStoreManager/master/resources/cocoapods.png" width="24" height="24"> [CocoaPods]
#### <img src="https://raw.githubusercontent.com/zaidmsaid/DataStoreManager/master/Resources/cocoapods.png" width="24" height="24"> [CocoaPods]

[CocoaPods]: http://cocoapods.org

Expand All @@ -169,23 +169,23 @@ use_frameworks!

Then run `pod install` with CocoaPods 1.6.0 or newer.

#### <img src="https://raw.githubusercontent.com/zaidmsaid/DataStoreManager/master/resources/swift.png" width="24" height="24"> [Swift Package Manager]
#### <img src="https://raw.githubusercontent.com/zaidmsaid/DataStoreManager/master/Resources/swift.png" width="24" height="24"> [Swift Package Manager]

[Swift Package Manager]: https://swift.org/package-manager/

To install it, simply add the following line to your **Package.swift**:

```swift
dependencies: [
.package(url: "https://github.com/zaidmsaid/DataStoreManager.git", .upToNextMinor(from: "0.9.2"))
.package(url: "https://github.com/zaidmsaid/DataStoreManager.git", .upToNextMinor(from: "0.9.3"))
]
```

or more strict:

```swift
dependencies: [
.package(url: "https://github.com/zaidmsaid/DataStoreManager.git", .exact("0.9.2"))
.package(url: "https://github.com/zaidmsaid/DataStoreManager.git", .exact("0.9.3"))
]
```

Expand Down
4 changes: 2 additions & 2 deletions Sources/DataStoreManager/CloudKitWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

import CloudKit

// MARK: - CKContainer
// MARK: - CloudKit

extension DataStoreManager {

/// An interface to the CKContainer.
/// An interface to the CloudKit.
@available(watchOSApplicationExtension 3.0, *)
class CloudKitWorker {

Expand Down
2 changes: 1 addition & 1 deletion Sources/DataStoreManager/DataStoreManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import Foundation
return worker
}()

/// An interface to the CKContainer.
/// An interface to the CloudKit.
@available(watchOSApplicationExtension 3.0, *)
lazy var cloudKitWorker: CloudKitWorker = {
let worker = CloudKitWorker()
Expand Down
24 changes: 12 additions & 12 deletions Sources/DataStoreManager/Models/StorageType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,22 @@ extension DataStoreStorageType : RawRepresentable {
public static let coreData = DataStoreStorageType("CoreData")

/// The storage type
/// [CKContainer](apple-reference-documentation://hsS7IJpn_8)
/// [CloudKit](https://developer.apple.com/documentation/cloudkit)
/// with
/// [privateCloudDatabase](apple-reference-documentation://hsl8OIqKuV).
public static let privateCloudDatabase = DataStoreStorageType("CKContainer.privateCloudDatabase")
public static let privateCloudDatabase = DataStoreStorageType("CloudKit.privateCloudDatabase")

/// The storage type
/// [CKContainer](apple-reference-documentation://hsS7IJpn_8)
/// [CloudKit](https://developer.apple.com/documentation/cloudkit)
/// with
/// [publicCloudDatabase](apple-reference-documentation://hsr3N4H2SH).
public static let publicCloudDatabase = DataStoreStorageType("CKContainer.publicCloudDatabase")
public static let publicCloudDatabase = DataStoreStorageType("CloudKit.publicCloudDatabase")

/// The storage type
/// [CKContainer](apple-reference-documentation://hsS7IJpn_8)
/// [CloudKit](https://developer.apple.com/documentation/cloudkit)
/// with
/// [sharedCloudDatabase](apple-reference-documentation://hse91QSrM6).
public static let sharedCloudDatabase = DataStoreStorageType("CKContainer.sharedCloudDatabase")
public static let sharedCloudDatabase = DataStoreStorageType("CloudKit.sharedCloudDatabase")

/// The storage type
/// [NSUbiquitousKeyValueStore](apple-reference-documentation://hskNNwzU6H).
Expand Down Expand Up @@ -215,13 +215,13 @@ extension DataStoreStorageType {
return "CoreData"

case .privateCloudDatabase:
return "CKContainer"
return "CloudKit"

case .publicCloudDatabase:
return "CKContainer"
return "CloudKit"

case .sharedCloudDatabase:
return "CKContainer"
return "CloudKit"

case .ubiquitousCloudStore:
return "NSUbiquitousKeyValueStore"
Expand Down Expand Up @@ -274,13 +274,13 @@ extension DataStoreStorageType {
return "CoreData"

case .privateCloudDatabase:
return "CKContainer"
return "CloudKit"

case .publicCloudDatabase:
return "CKContainer"
return "CloudKit"

case .sharedCloudDatabase:
return "CKContainer"
return "CloudKit"

case .ubiquitousCloudStore:
return "NSUbiquitousKeyValueStore"
Expand Down
4 changes: 2 additions & 2 deletions Sources/DataStoreManager/Protocols/DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ import CloudKit

// MARK: Cloud Kit Container

/// Asks the data source for the containerIdentifier for `CKContainer`
/// Asks the data source for the containerIdentifier for `CloudKit`
/// of the data store manager.
///
/// - Parameter manager: An object representing the data store manager
/// requesting this information.
/// - Returns: The `CKContainer` containerIdentifier for the data store
/// - Returns: The `CloudKit` containerIdentifier for the data store
/// manager.
@objc optional func cloudKitContainerIdentifier(for manager: DataStoreManager) -> String

Expand Down
12 changes: 6 additions & 6 deletions docs/Classes/DataStoreManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

</div>
<div class="declaration">
Expand Down Expand Up @@ -1899,10 +1899,10 @@ <h4>Declaration</h4>
</div>
<div class="task-group">
<div class="task-name-container">
<a name="/CKContainer"></a>
<a name="//apple_ref/swift/Section/CKContainer" class="dashAnchor"></a>
<a href="#/CKContainer">
<h3 class="section-name">CKContainer</h3>
<a name="/CloudKit"></a>
<a name="//apple_ref/swift/Section/CloudKit" class="dashAnchor"></a>
<a href="#/CloudKit">
<h3 class="section-name">CloudKit</h3>
</a>
</div>
<ul>
Expand All @@ -1919,7 +1919,7 @@ <h3 class="section-name">CKContainer</h3>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

<a href="../Classes/DataStoreManager/CloudKitWorker.html" class="slightly-smaller">See more</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/DataStoreManager/CloudKitWorker.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1>CloudKitWorker</h1>

</div>
</div>
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

</section>
<section class="section task-group-section">
Expand Down
6 changes: 3 additions & 3 deletions docs/Classes/DataStoreStorageType.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hsl8OIqKuV">privateCloudDatabase</a>.</p>

Expand Down Expand Up @@ -651,7 +651,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hsr3N4H2SH">publicCloudDatabase</a>.</p>

Expand Down Expand Up @@ -681,7 +681,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hse91QSrM6">sharedCloudDatabase</a>.</p>

Expand Down
4 changes: 2 additions & 2 deletions docs/Protocols/DataStoreManagerDataSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ <h3 class="section-name">Cloud Kit Container</h3>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Asks the data source for the containerIdentifier for <code>CKContainer</code>
<p>Asks the data source for the containerIdentifier for <code>CloudKit</code>
of the data store manager.</p>

</div>
Expand Down Expand Up @@ -1132,7 +1132,7 @@ <h4>Parameters</h4>
</div>
<div>
<h4>Return Value</h4>
<p>The <code>CKContainer</code> containerIdentifier for the data store
<p>The <code>CloudKit</code> containerIdentifier for the data store
manager.</p>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

</div>
<div class="declaration">
Expand Down Expand Up @@ -1899,10 +1899,10 @@ <h4>Declaration</h4>
</div>
<div class="task-group">
<div class="task-name-container">
<a name="/CKContainer"></a>
<a name="//apple_ref/swift/Section/CKContainer" class="dashAnchor"></a>
<a href="#/CKContainer">
<h3 class="section-name">CKContainer</h3>
<a name="/CloudKit"></a>
<a name="//apple_ref/swift/Section/CloudKit" class="dashAnchor"></a>
<a href="#/CloudKit">
<h3 class="section-name">CloudKit</h3>
</a>
</div>
<ul>
Expand All @@ -1919,7 +1919,7 @@ <h3 class="section-name">CKContainer</h3>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

<a href="../Classes/DataStoreManager/CloudKitWorker.html" class="slightly-smaller">See more</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1>CloudKitWorker</h1>

</div>
</div>
<p>An interface to the CKContainer.</p>
<p>An interface to the CloudKit.</p>

</section>
<section class="section task-group-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hsl8OIqKuV">privateCloudDatabase</a>.</p>

Expand Down Expand Up @@ -651,7 +651,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hsr3N4H2SH">publicCloudDatabase</a>.</p>

Expand Down Expand Up @@ -681,7 +681,7 @@ <h4>Declaration</h4>
<div class="pointer"></div>
<div class="abstract">
<p>The storage type
<a href="apple-reference-documentation://hsS7IJpn_8">CKContainer</a>
<a href="https://developer.apple.com/documentation/cloudkit">CloudKit</a>
with
<a href="apple-reference-documentation://hse91QSrM6">sharedCloudDatabase</a>.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ <h3 class="section-name">Cloud Kit Container</h3>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Asks the data source for the containerIdentifier for <code>CKContainer</code>
<p>Asks the data source for the containerIdentifier for <code>CloudKit</code>
of the data store manager.</p>

</div>
Expand Down Expand Up @@ -1132,7 +1132,7 @@ <h4>Parameters</h4>
</div>
<div>
<h4>Return Value</h4>
<p>The <code>CKContainer</code> containerIdentifier for the data store
<p>The <code>CloudKit</code> containerIdentifier for the data store
manager.</p>
</div>
</section>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ <h4 id='img-src-https-raw-githubusercontent-com-zaidmsaid-datastoremanager-maste

<p>To install it, simply add the following line to your <strong>Package.swift</strong>:</p>
<pre class="highlight swift"><code><span class="nv">dependencies</span><span class="p">:</span> <span class="p">[</span>
<span class="o">.</span><span class="nf">package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/zaidmsaid/DataStoreManager.git"</span><span class="p">,</span> <span class="o">.</span><span class="nf">upToNextMinor</span><span class="p">(</span><span class="nv">from</span><span class="p">:</span> <span class="s">"0.9.2"</span><span class="p">))</span>
<span class="o">.</span><span class="nf">package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/zaidmsaid/DataStoreManager.git"</span><span class="p">,</span> <span class="o">.</span><span class="nf">upToNextMinor</span><span class="p">(</span><span class="nv">from</span><span class="p">:</span> <span class="s">"0.9.3"</span><span class="p">))</span>
<span class="p">]</span>
</code></pre>

<p>or more strict:</p>
<pre class="highlight swift"><code><span class="nv">dependencies</span><span class="p">:</span> <span class="p">[</span>
<span class="o">.</span><span class="nf">package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/zaidmsaid/DataStoreManager.git"</span><span class="p">,</span> <span class="o">.</span><span class="nf">exact</span><span class="p">(</span><span class="s">"0.9.2"</span><span class="p">))</span>
<span class="o">.</span><span class="nf">package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/zaidmsaid/DataStoreManager.git"</span><span class="p">,</span> <span class="o">.</span><span class="nf">exact</span><span class="p">(</span><span class="s">"0.9.3"</span><span class="p">))</span>
<span class="p">]</span>
</code></pre>

Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 2eb726b

Please sign in to comment.