Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Feb 15, 2022
1 parent 36f22d1 commit 0dc40cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Persistent History Tracking Kit

Helps you easily handle Core Data's Persistent History Tracking.
Helps you easily handle Core Data's Persistent History Tracking

[中文版说明](https://github.com/fatbobman/PersistentHistoryTrackingKit/blob/main/READMECN.md)

Expand Down Expand Up @@ -71,13 +71,13 @@ The author name of all members managed by the Persistent History Tracking Kit.

Persistent History Tracking Kit should only be used to manage transactions generated by developer-created applications, application extensions, and backend contexts; other system-generated transactions (e.g. Core Data with CloudKit) are handled by the system itself.

例如,您的应用程序 author 名称为:“appAuthor”,应用程序扩展 author 名称为:“extensionAuthor”,则:
For example, if your application author name is: "appAuthor" and your application extension author name is: "extensionAuthor", then.

```swift
allAuthors: ["appAuthor", "extensionAuthor"],
```

For example, if your application author name is: "appAuthor" and your application extension author name is: "extensionAuthor", then.
For transactions generated in the backend context, the backend context should also have a separate author name if it is not set to auto-merge.

```swift
allAuthors: ["appAuthor", "extensionAuthor", "appBatchAuthor"],
Expand Down Expand Up @@ -147,7 +147,7 @@ cleanStrategy: .byNotification(times: 1),
cleanStrategy: byDuration(seconds: 60),
```

当清理策略设置为 none 时,可以通过生成单独的清理实例,在合适的时机进行清理。
When the cleanup policy is set to none, cleanup can be performed at the right time by generating separate cleanup instances.

```swift
let kit = PersistentHistoryTrackingKit(
Expand Down Expand Up @@ -229,4 +229,3 @@ dependencies: [
## License

This library is released under the MIT license. See [LICENSE](https://github.com/fatbobman/persistentHistoryTrackingKit/blob/main/LICENSE) for details.

2 changes: 1 addition & 1 deletion READMECN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Persistent History Tracking Kit

帮助您轻松处理 Core Data 的持久性历史跟踪
帮助您轻松处理 Core Data 的持久性历史跟踪

## What's This?

Expand Down

0 comments on commit 0dc40cd

Please sign in to comment.