Skip to content

Commit 6eacbfc

Browse files
committed
Migrates Core Data model from v10 to v11
1 parent b8e1360 commit 6eacbfc

File tree

6 files changed

+837
-17
lines changed

6 files changed

+837
-17
lines changed

AltStore.xcodeproj/project.pbxproj

+7-1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@
349349
BFF7C920257844FA00E55F36 /* ALTPluginService.m in Sources */ = {isa = PBXBuildFile; fileRef = BF5C5FCE237DF69100EDD0C6 /* ALTPluginService.m */; };
350350
BFF7C9342578492100E55F36 /* ALTAnisetteData.m in Sources */ = {isa = PBXBuildFile; fileRef = BFB49AA823834CF900D542D9 /* ALTAnisetteData.m */; };
351351
D504F42628AD72C50014BB5D /* ProgressRing.swift in Sources */ = {isa = PBXBuildFile; fileRef = D504F42528AD72C50014BB5D /* ProgressRing.swift */; };
352+
D51A66CD28D2918900976BAF /* AltStore10ToAltStore11.xcmappingmodel in Sources */ = {isa = PBXBuildFile; fileRef = D51A66CC28D2918900976BAF /* AltStore10ToAltStore11.xcmappingmodel */; };
352353
D533E8B72727841800A9B5DD /* libAppleArchive.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D533E8B62727841800A9B5DD /* libAppleArchive.tbd */; settings = {ATTRIBUTES = (Weak, ); }; };
353354
D533E8BC2727BBEE00A9B5DD /* libfragmentzip.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D533E8BB2727BBEE00A9B5DD /* libfragmentzip.a */; };
354355
D533E8BE2727BBF800A9B5DD /* libcurl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D533E8BD2727BBF800A9B5DD /* libcurl.a */; };
@@ -817,6 +818,8 @@
817818
BFFCFA45248835530077BFCE /* AltDaemon.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = AltDaemon.entitlements; sourceTree = "<group>"; };
818819
C9EEAA842DA87A88A870053B /* Pods_AltStore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AltStore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
819820
D504F42528AD72C50014BB5D /* ProgressRing.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgressRing.swift; sourceTree = "<group>"; };
821+
D51A66CB28D2908300976BAF /* AltStore 11.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "AltStore 11.xcdatamodel"; sourceTree = "<group>"; };
822+
D51A66CC28D2918900976BAF /* AltStore10ToAltStore11.xcmappingmodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcmappingmodel; path = AltStore10ToAltStore11.xcmappingmodel; sourceTree = "<group>"; };
820823
D533E8B62727841800A9B5DD /* libAppleArchive.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libAppleArchive.tbd; path = usr/lib/libAppleArchive.tbd; sourceTree = SDKROOT; };
821824
D533E8B82727B61400A9B5DD /* fragmentzip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fragmentzip.h; sourceTree = "<group>"; };
822825
D533E8BB2727BBEE00A9B5DD /* libfragmentzip.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfragmentzip.a; path = Dependencies/fragmentzip/libfragmentzip.a; sourceTree = SOURCE_ROOT; };
@@ -1323,6 +1326,7 @@
13231326
BF66EEB62501AECA007EE018 /* AltStore5ToAltStore6.xcmappingmodel */,
13241327
BFBF331A2526762200B7B8C9 /* AltStore8ToAltStore9.xcmappingmodel */,
13251328
D5CA0C4D280E249E00469595 /* AltStore9ToAltStore10.xcmappingmodel */,
1329+
D51A66CC28D2918900976BAF /* AltStore10ToAltStore11.xcmappingmodel */,
13261330
);
13271331
path = "Mapping Models";
13281332
sourceTree = "<group>";
@@ -2536,6 +2540,7 @@
25362540
BF66EED92501AECA007EE018 /* Team.swift in Sources */,
25372541
BF66EED12501AECA007EE018 /* AltStore3ToAltStore4.xcmappingmodel in Sources */,
25382542
BFAECC5C2501B0A400528F27 /* CFNotificationName+AltStore.m in Sources */,
2543+
D51A66CD28D2918900976BAF /* AltStore10ToAltStore11.xcmappingmodel in Sources */,
25392544
BF66EED82501AECA007EE018 /* SecureValueTransformer.swift in Sources */,
25402545
BF8B17EB250AC40000F8157F /* FileManager+SharedDirectories.swift in Sources */,
25412546
BF66EEE02501AECA007EE018 /* Account.swift in Sources */,
@@ -3631,6 +3636,7 @@
36313636
BF66EEB72501AECA007EE018 /* AltStore.xcdatamodeld */ = {
36323637
isa = XCVersionGroup;
36333638
children = (
3639+
D51A66CB28D2908300976BAF /* AltStore 11.xcdatamodel */,
36343640
D5CA0C4C280E242500469595 /* AltStore 10.xcdatamodel */,
36353641
BFBF33142526754700B7B8C9 /* AltStore 9.xcdatamodel */,
36363642
BFF7EC4C25081E9300BDE521 /* AltStore 8.xcdatamodel */,
@@ -3642,7 +3648,7 @@
36423648
BF66EEBD2501AECA007EE018 /* AltStore 2.xcdatamodel */,
36433649
BF66EEBE2501AECA007EE018 /* AltStore 4.xcdatamodel */,
36443650
);
3645-
currentVersion = D5CA0C4C280E242500469595 /* AltStore 10.xcdatamodel */;
3651+
currentVersion = D51A66CB28D2908300976BAF /* AltStore 11.xcdatamodel */;
36463652
path = AltStore.xcdatamodeld;
36473653
sourceTree = "<group>";
36483654
versionGroupType = wrapper.xcdatamodel;

AltStoreCore/Model/AltStore.xcdatamodeld/.xccurrentversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<plist version="1.0">
44
<dict>
55
<key>_XCCurrentVersionName</key>
6-
<string>AltStore 10.xcdatamodel</string>
6+
<string>AltStore 11.xcdatamodel</string>
77
</dict>
88
</plist>

AltStoreCore/Model/AltStore.xcdatamodeld/AltStore 10.xcdatamodel/contents

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="21279" systemVersion="21G83" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
2+
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="20086" systemVersion="21E230" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
33
<entity name="Account" representedClassName="Account" syncable="YES">
44
<attribute name="appleID" attributeType="String"/>
55
<attribute name="firstName" attributeType="String"/>
@@ -45,7 +45,6 @@
4545
<attribute name="resignedBundleIdentifier" attributeType="String"/>
4646
<attribute name="version" attributeType="String"/>
4747
<relationship name="appExtensions" toMany="YES" deletionRule="Cascade" destinationEntity="InstalledExtension" inverseName="parentApp" inverseEntity="InstalledExtension"/>
48-
<relationship name="loggedErrors" toMany="YES" deletionRule="Nullify" destinationEntity="LoggedError" inverseName="installedApp" inverseEntity="LoggedError"/>
4948
<relationship name="storeApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="installedApp" inverseEntity="StoreApp"/>
5049
<relationship name="team" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Team" inverseName="installedApps" inverseEntity="Team"/>
5150
<uniquenessConstraints>
@@ -64,17 +63,6 @@
6463
<attribute name="version" attributeType="String"/>
6564
<relationship name="parentApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="InstalledApp" inverseName="appExtensions" inverseEntity="InstalledApp"/>
6665
</entity>
67-
<entity name="LoggedError" representedClassName="LoggedError" syncable="YES">
68-
<attribute name="appBundleID" attributeType="String"/>
69-
<attribute name="appName" attributeType="String"/>
70-
<attribute name="code" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
71-
<attribute name="date" attributeType="Date" usesScalarValueType="NO"/>
72-
<attribute name="domain" attributeType="String"/>
73-
<attribute name="operation" optional="YES" attributeType="String"/>
74-
<attribute name="userInfo" attributeType="Transformable" valueTransformerName="ALTSecureValueTransformer"/>
75-
<relationship name="installedApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="InstalledApp" inverseName="loggedErrors" inverseEntity="InstalledApp"/>
76-
<relationship name="storeApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="loggedErrors" inverseEntity="StoreApp"/>
77-
</entity>
7866
<entity name="NewsItem" representedClassName="NewsItem" syncable="YES">
7967
<attribute name="appID" optional="YES" attributeType="String"/>
8068
<attribute name="caption" attributeType="String"/>
@@ -158,7 +146,6 @@
158146
<attribute name="versionDate" attributeType="Date" usesScalarValueType="NO"/>
159147
<attribute name="versionDescription" optional="YES" attributeType="String"/>
160148
<relationship name="installedApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="InstalledApp" inverseName="storeApp" inverseEntity="InstalledApp"/>
161-
<relationship name="loggedErrors" toMany="YES" deletionRule="Nullify" destinationEntity="LoggedError" inverseName="storeApp" inverseEntity="LoggedError"/>
162149
<relationship name="newsItems" toMany="YES" deletionRule="Nullify" destinationEntity="NewsItem" inverseName="storeApp" inverseEntity="NewsItem"/>
163150
<relationship name="permissions" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppPermission" inverseName="app" inverseEntity="AppPermission"/>
164151
<relationship name="source" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Source" inverseName="apps" inverseEntity="Source"/>
@@ -183,4 +170,18 @@
183170
</uniquenessConstraint>
184171
</uniquenessConstraints>
185172
</entity>
173+
<elements>
174+
<element name="Account" positionX="-36" positionY="90" width="128" height="135"/>
175+
<element name="AppID" positionX="-27" positionY="153" width="128" height="133"/>
176+
<element name="AppPermission" positionX="-45" positionY="90" width="128" height="90"/>
177+
<element name="InstalledApp" positionX="-63" positionY="0" width="128" height="268"/>
178+
<element name="InstalledExtension" positionX="-45" positionY="135" width="128" height="163"/>
179+
<element name="NewsItem" positionX="-45" positionY="126" width="128" height="238"/>
180+
<element name="PatreonAccount" positionX="-45" positionY="117" width="128" height="89"/>
181+
<element name="Patron" positionX="-36" positionY="153" width="128" height="59"/>
182+
<element name="RefreshAttempt" positionX="-45" positionY="117" width="128" height="105"/>
183+
<element name="Source" positionX="-45" positionY="99" width="128" height="133"/>
184+
<element name="StoreApp" positionX="-63" positionY="-18" width="128" height="343"/>
185+
<element name="Team" positionX="-45" positionY="81" width="128" height="148"/>
186+
</elements>
186187
</model>

0 commit comments

Comments
 (0)