Create new model version

This commit is contained in:
Chris Li 2016-09-06 14:41:26 -04:00
parent 92094df4c6
commit 443d0261fe
5 changed files with 68 additions and 4 deletions

View File

@ -49,7 +49,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.7.1718</string>
<string>1.7.1719</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View File

@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.7.2213</string>
<string>1.7.2223</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>

View File

@ -212,6 +212,7 @@
69E75DFE2EF83272AC5B02BA /* Pods-Kiwix-OSX.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Kiwix-OSX.release.xcconfig"; path = "Pods/Target Support Files/Pods-Kiwix-OSX/Pods-Kiwix-OSX.release.xcconfig"; sourceTree = "<group>"; };
6DCB0E958A1083CA248C5A12 /* Pods-Kiwix-OSX.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Kiwix-OSX.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Kiwix-OSX/Pods-Kiwix-OSX.debug.xcconfig"; sourceTree = "<group>"; };
970722A91D6B4D1700A45620 /* LanguageFilterController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LanguageFilterController.swift; sourceTree = "<group>"; };
970912551D7F452C00BBD5A1 /* 1.8.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = 1.8.xcdatamodel; sourceTree = "<group>"; };
970C654F1D398D5A007032F8 /* BookmarkControllerAnimator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BookmarkControllerAnimator.swift; path = "Kiwix-iOS/Controller/Bookmark/BookmarkControllerAnimator.swift"; sourceTree = SOURCE_ROOT; };
970E68B11D37E1DD001E8514 /* SettingSearchTuneController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SettingSearchTuneController.swift; path = "Kiwix-iOS/Controller/Setting/SettingSearchTuneController.swift"; sourceTree = SOURCE_ROOT; };
970E68B51D37E224001E8514 /* SettingSearchHistoryTBVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SettingSearchHistoryTBVC.swift; path = "Kiwix-iOS/Controller/Setting/SettingSearchHistoryTBVC.swift"; sourceTree = SOURCE_ROOT; };
@ -2099,11 +2100,12 @@
97D6812A1D6F70DE00E5FA99 /* Kiwix.xcdatamodeld */ = {
isa = XCVersionGroup;
children = (
970912551D7F452C00BBD5A1 /* 1.8.xcdatamodel */,
97D6812B1D6F70DE00E5FA99 /* 1.5.xcdatamodel */,
97D6812C1D6F70DE00E5FA99 /* 1.7.xcdatamodel */,
97D6812D1D6F70DE00E5FA99 /* Kiwix.xcdatamodel */,
);
currentVersion = 97D6812C1D6F70DE00E5FA99 /* 1.7.xcdatamodel */;
currentVersion = 970912551D7F452C00BBD5A1 /* 1.8.xcdatamodel */;
path = Kiwix.xcdatamodeld;
sourceTree = "<group>";
versionGroupType = wrapper.xcdatamodel;

View File

@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>_XCCurrentVersionName</key>
<string>1.7.xcdatamodel</string>
<string>1.8.xcdatamodel</string>
</dict>
</plist>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="1.5" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10174" systemVersion="15F34" minimumToolsVersion="Automatic">
<entity name="Article" representedClassName=".Article" syncable="YES">
<attribute name="bookmarkDate" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="isBookmarked" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="isMainPage" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="lastPosition" optional="YES" attributeType="Double" syncable="YES"/>
<attribute name="lastReadDate" optional="YES" attributeType="Date" indexed="YES" syncable="YES"/>
<attribute name="snippet" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="thumbImageURL" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="title" attributeType="String" syncable="YES"/>
<attribute name="urlString" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="book" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Book" inverseName="articles" inverseEntity="Book" syncable="YES"/>
<relationship name="tags" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Tag" inverseName="articles" inverseEntity="Tag" syncable="YES"/>
</entity>
<entity name="Book" representedClassName=".Book" syncable="YES">
<attribute name="articleCount" optional="YES" attributeType="Integer 64" minValueString="0" defaultValueString="0" syncable="YES"/>
<attribute name="creator" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="date" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="desc" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="favIcon" optional="YES" attributeType="Binary" syncable="YES"/>
<attribute name="fileSize" optional="YES" attributeType="Integer 64" minValueString="0" defaultValueString="0" syncable="YES"/>
<attribute name="globalCount" optional="YES" attributeType="Integer 64" minValueString="0" defaultValueString="0" syncable="YES"/>
<attribute name="hasIndex" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="hasPic" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="id" attributeType="String" defaultValueString="Unknown" syncable="YES"/>
<attribute name="includeInSearch" optional="YES" attributeType="Boolean" defaultValueString="YES" syncable="YES"/>
<attribute name="isLocal" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="mediaCount" optional="YES" attributeType="Integer 64" minValueString="0" defaultValueString="0" syncable="YES"/>
<attribute name="meta4URL" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="publisher" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="title" optional="YES" attributeType="String" indexed="YES" syncable="YES"/>
<relationship name="articles" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Article" inverseName="book" inverseEntity="Article" syncable="YES"/>
<relationship name="downloadTask" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="DownloadTask" inverseName="book" inverseEntity="DownloadTask" syncable="YES"/>
<relationship name="language" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Language" inverseName="books" inverseEntity="Language" syncable="YES"/>
</entity>
<entity name="DownloadTask" representedClassName=".DownloadTask" syncable="YES">
<attribute name="creationTime" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="stateRaw" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
<attribute name="totalBytesWritten" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
<relationship name="book" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Book" inverseName="downloadTask" inverseEntity="Book" syncable="YES"/>
</entity>
<entity name="Language" representedClassName=".Language" syncable="YES">
<attribute name="code" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="isDisplayed" optional="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="books" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Book" inverseName="language" inverseEntity="Book" syncable="YES"/>
</entity>
<entity name="Tag" representedClassName=".Tag" syncable="YES">
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="articles" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Article" inverseName="tags" inverseEntity="Article" syncable="YES"/>
</entity>
<fetchRequest name="AllArticles" entity="Article" predicateString="book.downloadStateRaw == 1"/>
<fetchRequest name="AllArticlesBookmarked" entity="Article" predicateString="isBookmarked == 1 AND book.downloadStateRaw == 1"/>
<elements>
<element name="Article" positionX="-108" positionY="-136" width="128" height="210"/>
<element name="Book" positionX="-405" positionY="-129" width="128" height="330"/>
<element name="DownloadTask" positionX="-108" positionY="54" width="128" height="105"/>
<element name="Language" positionX="-110" positionY="199" width="128" height="103"/>
<element name="Tag" positionX="124" positionY="-126" width="128" height="73"/>
</elements>
</model>