mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
- ReleaseTracks: Added in-app ReleaseTracks switching support
This commit is contained in:
5
.github/workflows/alpha.yml
vendored
5
.github/workflows/alpha.yml
vendored
@@ -13,8 +13,9 @@ jobs:
|
|||||||
Reuseable-build:
|
Reuseable-build:
|
||||||
uses: ./.github/workflows/reusable-build-workflow.yml
|
uses: ./.github/workflows/reusable-build-workflow.yml
|
||||||
with:
|
with:
|
||||||
bundle_id: "com.SideStore.SideStore.Alpha"
|
# bundle_id: "com.SideStore.SideStore.Alpha"
|
||||||
bundle_id_suffix: ".Alpha"
|
bundle_id: "com.SideStore.SideStore"
|
||||||
|
# bundle_id_suffix: ".Alpha"
|
||||||
is_beta: true
|
is_beta: true
|
||||||
publish: true
|
publish: true
|
||||||
is_shared_build_num: false
|
is_shared_build_num: false
|
||||||
|
|||||||
5
.github/workflows/nightly.yml
vendored
5
.github/workflows/nightly.yml
vendored
@@ -66,8 +66,9 @@ jobs:
|
|||||||
needs: check-changes
|
needs: check-changes
|
||||||
uses: ./.github/workflows/reusable-build-workflow.yml
|
uses: ./.github/workflows/reusable-build-workflow.yml
|
||||||
with:
|
with:
|
||||||
bundle_id: "com.SideStore.SideStore.Nightly"
|
# bundle_id: "com.SideStore.SideStore.Nightly"
|
||||||
bundle_id_suffix: ".Nightly"
|
bundle_id: "com.SideStore.SideStore"
|
||||||
|
# bundle_id_suffix: ".Nightly"
|
||||||
is_beta: true
|
is_beta: true
|
||||||
publish: true
|
publish: true
|
||||||
is_shared_build_num: false
|
is_shared_build_num: false
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
A809F69F2D04D7B300F0F0F3 /* libem_proxy_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A809F6942D04D71200F0F0F3 /* libem_proxy_static.a */; };
|
A809F69F2D04D7B300F0F0F3 /* libem_proxy_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A809F6942D04D71200F0F0F3 /* libem_proxy_static.a */; };
|
||||||
A809F6A82D04DA1900F0F0F3 /* minimuxer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A809F6A32D04DA1900F0F0F3 /* minimuxer.swift */; };
|
A809F6A82D04DA1900F0F0F3 /* minimuxer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A809F6A32D04DA1900F0F0F3 /* minimuxer.swift */; };
|
||||||
A809F6A92D04DA1900F0F0F3 /* SwiftBridgeCore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A809F6A72D04DA1900F0F0F3 /* SwiftBridgeCore.swift */; };
|
A809F6A92D04DA1900F0F0F3 /* SwiftBridgeCore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A809F6A72D04DA1900F0F0F3 /* SwiftBridgeCore.swift */; };
|
||||||
|
A80D60D32D3DD85100CEF65D /* ReleaseTrack.swift in Sources */ = {isa = PBXBuildFile; fileRef = A80D60D12D3D705F00CEF65D /* ReleaseTrack.swift */; };
|
||||||
A80D790D2D2F20AF00A40F40 /* PaginationIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = A80D790C2D2F20AF00A40F40 /* PaginationIntent.swift */; };
|
A80D790D2D2F20AF00A40F40 /* PaginationIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = A80D790C2D2F20AF00A40F40 /* PaginationIntent.swift */; };
|
||||||
A80D790F2D2F217000A40F40 /* PaginationDataHolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A80D790E2D2F217000A40F40 /* PaginationDataHolder.swift */; };
|
A80D790F2D2F217000A40F40 /* PaginationDataHolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A80D790E2D2F217000A40F40 /* PaginationDataHolder.swift */; };
|
||||||
A82067842D03DC0600645C0D /* OperatingSystemVersion+Comparable.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5708416292448DA00D42D34 /* OperatingSystemVersion+Comparable.swift */; };
|
A82067842D03DC0600645C0D /* OperatingSystemVersion+Comparable.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5708416292448DA00D42D34 /* OperatingSystemVersion+Comparable.swift */; };
|
||||||
@@ -636,6 +637,7 @@
|
|||||||
A809F6A52D04DA1900F0F0F3 /* minimuxer-helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "minimuxer-helpers.swift"; sourceTree = "<group>"; };
|
A809F6A52D04DA1900F0F0F3 /* minimuxer-helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "minimuxer-helpers.swift"; sourceTree = "<group>"; };
|
||||||
A809F6A62D04DA1900F0F0F3 /* SwiftBridgeCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftBridgeCore.h; sourceTree = "<group>"; };
|
A809F6A62D04DA1900F0F0F3 /* SwiftBridgeCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftBridgeCore.h; sourceTree = "<group>"; };
|
||||||
A809F6A72D04DA1900F0F0F3 /* SwiftBridgeCore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftBridgeCore.swift; sourceTree = "<group>"; };
|
A809F6A72D04DA1900F0F0F3 /* SwiftBridgeCore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftBridgeCore.swift; sourceTree = "<group>"; };
|
||||||
|
A80D60D12D3D705F00CEF65D /* ReleaseTrack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseTrack.swift; sourceTree = "<group>"; };
|
||||||
A80D790C2D2F20AF00A40F40 /* PaginationIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaginationIntent.swift; sourceTree = "<group>"; };
|
A80D790C2D2F20AF00A40F40 /* PaginationIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaginationIntent.swift; sourceTree = "<group>"; };
|
||||||
A80D790E2D2F217000A40F40 /* PaginationDataHolder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaginationDataHolder.swift; sourceTree = "<group>"; };
|
A80D790E2D2F217000A40F40 /* PaginationDataHolder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaginationDataHolder.swift; sourceTree = "<group>"; };
|
||||||
A859ED5B2D1EE80D003DCC58 /* OpenSSL.xcframework */ = {isa = PBXFileReference; expectedSignature = "AppleDeveloperProgram:67RAULRX93:Marcin Krzyzanowski"; lastKnownFileType = wrapper.xcframework; name = OpenSSL.xcframework; path = SideStore/AltSign/Dependencies/OpenSSL/Frameworks/OpenSSL.xcframework; sourceTree = "<group>"; };
|
A859ED5B2D1EE80D003DCC58 /* OpenSSL.xcframework */ = {isa = PBXFileReference; expectedSignature = "AppleDeveloperProgram:67RAULRX93:Marcin Krzyzanowski"; lastKnownFileType = wrapper.xcframework; name = OpenSSL.xcframework; path = SideStore/AltSign/Dependencies/OpenSSL/Frameworks/OpenSSL.xcframework; sourceTree = "<group>"; };
|
||||||
@@ -1697,6 +1699,7 @@
|
|||||||
D58916FD28C7C55C00E39C8B /* LoggedError.swift */,
|
D58916FD28C7C55C00E39C8B /* LoggedError.swift */,
|
||||||
BF66EEBF2501AECA007EE018 /* NewsItem.swift */,
|
BF66EEBF2501AECA007EE018 /* NewsItem.swift */,
|
||||||
BF66EEC32501AECA007EE018 /* RefreshAttempt.swift */,
|
BF66EEC32501AECA007EE018 /* RefreshAttempt.swift */,
|
||||||
|
A80D60D12D3D705F00CEF65D /* ReleaseTrack.swift */,
|
||||||
BF66EEAB2501AECA007EE018 /* Source.swift */,
|
BF66EEAB2501AECA007EE018 /* Source.swift */,
|
||||||
BF66EEC42501AECA007EE018 /* StoreApp.swift */,
|
BF66EEC42501AECA007EE018 /* StoreApp.swift */,
|
||||||
BF66EEC22501AECA007EE018 /* Team.swift */,
|
BF66EEC22501AECA007EE018 /* Team.swift */,
|
||||||
@@ -2975,6 +2978,7 @@
|
|||||||
D5F99A1A28D12B1400476A16 /* StoreApp10ToStoreApp11Policy.swift in Sources */,
|
D5F99A1A28D12B1400476A16 /* StoreApp10ToStoreApp11Policy.swift in Sources */,
|
||||||
D5177B0D2A26944600270065 /* AltStore12ToAltStore13.xcmappingmodel in Sources */,
|
D5177B0D2A26944600270065 /* AltStore12ToAltStore13.xcmappingmodel in Sources */,
|
||||||
BFAECC562501B0A400528F27 /* ALTServerError+Conveniences.swift in Sources */,
|
BFAECC562501B0A400528F27 /* ALTServerError+Conveniences.swift in Sources */,
|
||||||
|
A80D60D32D3DD85100CEF65D /* ReleaseTrack.swift in Sources */,
|
||||||
D56915072AD5E91B00A2B747 /* Regex+Permissions.swift in Sources */,
|
D56915072AD5E91B00A2B747 /* Regex+Permissions.swift in Sources */,
|
||||||
BFAECC592501B0A400528F27 /* Result+Conveniences.swift in Sources */,
|
BFAECC592501B0A400528F27 /* Result+Conveniences.swift in Sources */,
|
||||||
D571ADD02A02FC7200B24B63 /* ALTAppPermission.swift in Sources */,
|
D571ADD02A02FC7200B24B63 /* ALTAppPermission.swift in Sources */,
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ extension AppBannerView
|
|||||||
guard let storeApp = (app as? StoreApp) ?? (app as? InstalledApp)?.storeApp else { return }
|
guard let storeApp = (app as? StoreApp) ?? (app as? InstalledApp)?.storeApp else { return }
|
||||||
self.developerName = storeApp.developerName
|
self.developerName = storeApp.developerName
|
||||||
|
|
||||||
if storeApp.isBeta
|
if let track = storeApp.latestSupportedVersion?.channel,
|
||||||
|
ReleaseTracks.betaTracks.contains(track)
|
||||||
{
|
{
|
||||||
self.name = String(format: NSLocalizedString("%@ beta", comment: ""), app.name)
|
self.name = String(format: NSLocalizedString("%@ beta", comment: ""), app.name)
|
||||||
self.isBeta = true
|
self.isBeta = true
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ private extension MyAppsViewController
|
|||||||
|
|
||||||
let appName: String
|
let appName: String
|
||||||
|
|
||||||
if app.isBeta
|
if ReleaseTracks.betaTracks.contains(latestSupportedVersion.channel)
|
||||||
{
|
{
|
||||||
appName = String(format: NSLocalizedString("%@ beta", comment: ""), app.name)
|
appName = String(format: NSLocalizedString("%@ beta", comment: ""), app.name)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<color key="separatorColor" white="1" alpha="0.25" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="separatorColor" white="1" alpha="0.25" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<stackView key="tableFooterView" opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalCentering" alignment="center" spacing="15" id="48g-cT-stR">
|
<stackView key="tableFooterView" opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="equalCentering" alignment="center" spacing="15" id="48g-cT-stR">
|
||||||
<rect key="frame" x="0.0" y="1790.6666698455811" width="402" height="125"/>
|
<rect key="frame" x="0.0" y="1986.3333377838135" width="402" height="125"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="900" text="Follow SideStore for updates" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XFa-MY-7cV">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="900" text="Follow SideStore for updates" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XFa-MY-7cV">
|
||||||
@@ -500,13 +500,13 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="View Error Log" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vH6-7i-tCE">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="View Error Log" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vH6-7i-tCE">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="119" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="119" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="AeT-qF-bwB">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AeT-qF-bwB">
|
||||||
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
@@ -537,7 +537,7 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Clear Cache…" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="j4e-Mz-DlL">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Clear Cache…" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="j4e-Mz-DlL">
|
||||||
<rect key="frame" x="29.999999999999993" y="15.333333333333334" width="114.33333333333331" height="20.333333333333329"/>
|
<rect key="frame" x="29.999999999999993" y="15.333333333333334" width="114.33333333333331" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
@@ -569,22 +569,22 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Developers" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hRA-OK-Vjw">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Developers" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hRA-OK-Vjw">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="86" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="86" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="lx9-35-OSk">
|
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="lx9-35-OSk">
|
||||||
<rect key="frame" x="217" y="15.333333333333334" width="155" height="20.333333333333329"/>
|
<rect key="frame" x="217" y="15.333333333333336" width="155" height="20.333333333333329"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SideStore Team" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JAA-iZ-VGb">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="SideStore Team" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JAA-iZ-VGb">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="125.33333333333333" height="20.333333333333332"/>
|
<rect key="frame" x="0.0" y="0.0" width="125.33333333333333" height="20.333333333333332"/>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Mmj-3V-fTb">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Mmj-3V-fTb">
|
||||||
<rect key="frame" x="139.33333333333331" y="-1" width="15.666666666666657" height="22.333333333333332"/>
|
<rect key="frame" x="139.33333333333331" y="-1" width="15.666666666666657" height="22.333333333333332"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
@@ -614,23 +614,23 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="UI Designer" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oqY-wY-1Vf">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="UI Designer" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oqY-wY-1Vf">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="89" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="89" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="gUq-6Q-t5X">
|
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="gUq-6Q-t5X">
|
||||||
<rect key="frame" x="227.33333333333337" y="15.333333333333334" width="144.66666666666663" height="20.333333333333329"/>
|
<rect key="frame" x="227.33333333333337" y="15.333333333333336" width="144.66666666666663" height="20.333333333333329"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Fabian (thdev)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ylE-VL-7Fq">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Fabian (thdev)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ylE-VL-7Fq">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="115" height="20.333333333333332"/>
|
<rect key="frame" x="0.0" y="0.0" width="115" height="20.333333333333332"/>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="e3L-vR-Jae">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="e3L-vR-Jae">
|
||||||
<rect key="frame" x="128.99999999999997" y="-1" width="15.666666666666657" height="22.333333333333332"/>
|
<rect key="frame" x="129" y="-1" width="15.666666666666657" height="22.333333333333332"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -659,23 +659,23 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Asset Designer" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Fp-XgM">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Asset Designer" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Fp-XgM">
|
||||||
<rect key="frame" x="29.999999999999993" y="15.333333333333334" width="115.33333333333331" height="20.333333333333329"/>
|
<rect key="frame" x="29.999999999999993" y="15.333333333333334" width="115.33333333333331" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<stackView opaque="NO" contentMode="scaleToFill" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="R8B-DW-7mY">
|
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" spacing="14" translatesAutoresizingMaskIntoConstraints="NO" id="R8B-DW-7mY">
|
||||||
<rect key="frame" x="235.33333333333337" y="15.333333333333334" width="136.66666666666663" height="20.333333333333329"/>
|
<rect key="frame" x="235.33333333333337" y="15.333333333333336" width="136.66666666666663" height="20.333333333333329"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Chris (LitRitt)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hId-3P-41T">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Chris (LitRitt)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hId-3P-41T">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="107" height="20.333333333333332"/>
|
<rect key="frame" x="0.0" y="0.0" width="107" height="20.333333333333332"/>
|
||||||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="baq-cE-fMY">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="baq-cE-fMY">
|
||||||
<rect key="frame" x="120.99999999999999" y="-1" width="15.666666666666671" height="22.333333333333332"/>
|
<rect key="frame" x="121" y="-1" width="15.666666666666629" height="22.333333333333332"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -698,19 +698,19 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="O5R-Al-lGj" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="O5R-Al-lGj" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1107.6666698455811" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1071.6666698455811" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="O5R-Al-lGj" id="CrG-Mr-xQq">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="O5R-Al-lGj" id="CrG-Mr-xQq">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Licenses" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D6b-cd-pVK">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Licenses" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="D6b-cd-pVK">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="67.333333333333329" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="67.333333333333329" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="s79-GQ-khr">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="s79-GQ-khr">
|
||||||
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
@@ -739,7 +739,7 @@
|
|||||||
<tableViewSection headerTitle="" id="OMa-EK-hRI">
|
<tableViewSection headerTitle="" id="OMa-EK-hRI">
|
||||||
<cells>
|
<cells>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="FMZ-as-Ljo" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="FMZ-as-Ljo" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1199.0000038146973" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1163.0000038146973" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="FMZ-as-Ljo" id="JzL-Of-A3T">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="FMZ-as-Ljo" id="JzL-Of-A3T">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -773,7 +773,7 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="Qca-pU-sJh" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="Qca-pU-sJh" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1250.0000038146973" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1214.0000038146973" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="Qca-pU-sJh" id="QtU-8J-VQN">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="Qca-pU-sJh" id="QtU-8J-VQN">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -810,7 +810,7 @@
|
|||||||
</connections>
|
</connections>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="VrV-qI-zXF" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="VrV-qI-zXF" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1301.0000038146973" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1265.0000038146973" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="VrV-qI-zXF" id="w1r-uY-4pD">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="VrV-qI-zXF" id="w1r-uY-4pD">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -844,7 +844,7 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="VNn-u4-cN8" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="VNn-u4-cN8" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1352.0000038146973" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1316.0000038146973" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="VNn-u4-cN8" id="4bh-qe-l2N">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="VNn-u4-cN8" id="4bh-qe-l2N">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -878,7 +878,7 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="e7s-hL-kv9" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="e7s-hL-kv9" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1403.0000038146973" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1367.0000038146973" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="e7s-hL-kv9" id="yjL-Mu-HTk">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="e7s-hL-kv9" id="yjL-Mu-HTk">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -906,17 +906,89 @@
|
|||||||
<edgeInsets key="layoutMargins" top="8" left="30" bottom="8" right="30"/>
|
<edgeInsets key="layoutMargins" top="8" left="30" bottom="8" right="30"/>
|
||||||
<userDefinedRuntimeAttributes>
|
<userDefinedRuntimeAttributes>
|
||||||
<userDefinedRuntimeAttribute type="number" keyPath="style">
|
<userDefinedRuntimeAttribute type="number" keyPath="style">
|
||||||
<integer key="value" value="3"/>
|
<integer key="value" value="2"/>
|
||||||
</userDefinedRuntimeAttribute>
|
</userDefinedRuntimeAttribute>
|
||||||
<userDefinedRuntimeAttribute type="boolean" keyPath="isSelectable" value="YES"/>
|
<userDefinedRuntimeAttribute type="boolean" keyPath="isSelectable" value="YES"/>
|
||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="XW5-Zc-nXH" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
|
<rect key="frame" x="0.0" y="1418.0000038146973" width="402" height="51"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="XW5-Zc-nXH" id="AtM-bL-8pS">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enable Beta Updates" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2px-HD-0UT">
|
||||||
|
<rect key="frame" x="30" y="15.333333333333334" width="169" height="20.333333333333329"/>
|
||||||
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="e32-w4-5fk">
|
||||||
|
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="toggleEnableBetaUpdates:" destination="aMk-Xp-UL8" eventType="valueChanged" id="uxG-df-7GK"/>
|
||||||
|
</connections>
|
||||||
|
</switch>
|
||||||
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="2px-HD-0UT" firstAttribute="centerY" secondItem="AtM-bL-8pS" secondAttribute="centerY" id="07r-jt-3rz"/>
|
||||||
|
<constraint firstItem="2px-HD-0UT" firstAttribute="leading" secondItem="AtM-bL-8pS" secondAttribute="leadingMargin" id="K2i-9G-bG8"/>
|
||||||
|
<constraint firstAttribute="trailingMargin" secondItem="e32-w4-5fk" secondAttribute="trailing" id="Wa7-m6-lcl"/>
|
||||||
|
<constraint firstItem="e32-w4-5fk" firstAttribute="centerY" secondItem="AtM-bL-8pS" secondAttribute="centerY" id="n7R-av-FBX"/>
|
||||||
|
</constraints>
|
||||||
|
</tableViewCellContentView>
|
||||||
|
<color key="backgroundColor" white="1" alpha="0.14999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<edgeInsets key="layoutMargins" top="8" left="30" bottom="8" right="30"/>
|
||||||
|
<userDefinedRuntimeAttributes>
|
||||||
|
<userDefinedRuntimeAttribute type="number" keyPath="style">
|
||||||
|
<integer key="value" value="2"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
|
</userDefinedRuntimeAttributes>
|
||||||
|
</tableViewCell>
|
||||||
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="qbY-8c-LYT" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
|
<rect key="frame" x="0.0" y="1469.0000038146973" width="402" height="51"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="qbY-8c-LYT" id="NxK-qB-w7Q">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Beta Updates Track" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5J9-vR-vhX" userLabel="Beta Track Label">
|
||||||
|
<rect key="frame" x="30" y="15.333333333333334" width="159.66666666666666" height="20.333333333333329"/>
|
||||||
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" showsMenuAsPrimaryAction="YES" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" changesSelectionAsPrimaryAction="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Oct-iT-NwP" userLabel="Beta Track Drop Down Button">
|
||||||
|
<rect key="frame" x="301.66666666666669" y="8.3333333333333321" width="70.333333333333314" height="34.333333333333343"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="50" id="new-width-constraint"/>
|
||||||
|
</constraints>
|
||||||
|
<buttonConfiguration key="configuration" style="plain" title="stable" titleAlignment="trailing"/>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="5J9-vR-vhX" firstAttribute="centerY" secondItem="NxK-qB-w7Q" secondAttribute="centerY" id="5gk-uR-bun"/>
|
||||||
|
<constraint firstAttribute="trailingMargin" secondItem="Oct-iT-NwP" secondAttribute="trailing" id="Wa8-m6-lcl"/>
|
||||||
|
<constraint firstItem="5J9-vR-vhX" firstAttribute="leading" secondItem="NxK-qB-w7Q" secondAttribute="leadingMargin" id="af8-XD-RSn"/>
|
||||||
|
<constraint firstItem="Oct-iT-NwP" firstAttribute="centerY" secondItem="NxK-qB-w7Q" secondAttribute="centerY" id="n7t-av-FBX"/>
|
||||||
|
<constraint firstItem="Oct-iT-NwP" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="5J9-vR-vhX" secondAttribute="trailing" constant="16" id="new-spacing-constraint"/>
|
||||||
|
</constraints>
|
||||||
|
</tableViewCellContentView>
|
||||||
|
<color key="backgroundColor" white="1" alpha="0.14999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<edgeInsets key="layoutMargins" top="8" left="30" bottom="8" right="30"/>
|
||||||
|
<userDefinedRuntimeAttributes>
|
||||||
|
<userDefinedRuntimeAttribute type="number" keyPath="style">
|
||||||
|
<integer key="value" value="3"/>
|
||||||
|
</userDefinedRuntimeAttribute>
|
||||||
|
</userDefinedRuntimeAttributes>
|
||||||
|
</tableViewCell>
|
||||||
</cells>
|
</cells>
|
||||||
</tableViewSection>
|
</tableViewSection>
|
||||||
<tableViewSection headerTitle="" id="lLQ-K0-XSb">
|
<tableViewSection headerTitle="" id="lLQ-K0-XSb">
|
||||||
<cells>
|
<cells>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="daQ-mk-yqC" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="daQ-mk-yqC" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1494.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1560.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="daQ-mk-yqC" id="ZkW-ZR-twy">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="daQ-mk-yqC" id="ZkW-ZR-twy">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -951,7 +1023,7 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="hRP-jU-2hd" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="hRP-jU-2hd" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1545.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1611.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="hRP-jU-2hd" id="JhE-O4-pRg">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="hRP-jU-2hd" id="JhE-O4-pRg">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
@@ -986,19 +1058,19 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="JoN-Aj-XtZ" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="JoN-Aj-XtZ" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1596.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1662.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="JoN-Aj-XtZ" id="v8Q-VQ-Q1h">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="JoN-Aj-XtZ" id="v8Q-VQ-Q1h">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Enable Verbose Ops Logging" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7bz-tI-tLY">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Enable Verbose Ops Logging" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7bz-tI-tLY">
|
||||||
<rect key="frame" x="29.999999999999986" y="15.333333333333334" width="232.66666666666663" height="20.333333333333329"/>
|
<rect key="frame" x="29.999999999999986" y="15.333333333333334" width="232.66666666666663" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q5X-Mo-KpE">
|
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q5X-Mo-KpE">
|
||||||
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="toggleVerboseOperationsLogging:" destination="aMk-Xp-UL8" eventType="valueChanged" id="n9N-Gt-OY2"/>
|
<action selector="toggleVerboseOperationsLogging:" destination="aMk-Xp-UL8" eventType="valueChanged" id="n9N-Gt-OY2"/>
|
||||||
@@ -1021,13 +1093,13 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="QOO-bO-4M5" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="QOO-bO-4M5" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1647.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1713.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="QOO-bO-4M5" id="VTT-z5-C89">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="QOO-bO-4M5" id="VTT-z5-C89">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Export Database..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ho1-To-wve" userLabel="Export Database">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Export Database..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ho1-To-wve" userLabel="Export Database">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="151.66666666666666" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="151.66666666666666" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
@@ -1049,13 +1121,13 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="ToB-H7-2lR" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="ToB-H7-2lR" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1698.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1764.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ToB-H7-2lR" id="Acf-xV-Isn">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ToB-H7-2lR" id="Acf-xV-Isn">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Delete Database..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CcF-9x-Eu8" userLabel="Delete Database Label">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Delete Database..." textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CcF-9x-Eu8" userLabel="Delete Database Label">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="150.33333333333334" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="150.33333333333334" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
@@ -1077,19 +1149,19 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="xtI-eU-LFb" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="xtI-eU-LFb" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1749.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1815.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="xtI-eU-LFb" id="bc9-41-6mE">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="xtI-eU-LFb" id="bc9-41-6mE">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Operations Logging Control" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LW3-gm-lj5">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Operations Logging Control" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LW3-gm-lj5">
|
||||||
<rect key="frame" x="30.000000000000014" y="15.333333333333334" width="224.33333333333337" height="20.333333333333329"/>
|
<rect key="frame" x="30.000000000000014" y="15.333333333333334" width="224.33333333333337" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="zl4-ti-HTW">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="zl4-ti-HTW">
|
||||||
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
<rect key="frame" x="356.33333333333331" y="14.333333333333334" width="15.666666666666686" height="22.333333333333329"/>
|
||||||
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
<imageReference key="image" image="chevron.right" catalog="system" symbolScale="large"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
@@ -1111,19 +1183,19 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="pvu-IV-Poa" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="pvu-IV-Poa" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1800.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1866.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="pvu-IV-Poa" id="zck-an-8cK">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="pvu-IV-Poa" id="zck-an-8cK">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Recreate Database on Next Start" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZRk-8S-kBQ" userLabel="Recreate Database Label">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Recreate Database on Next Start" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZRk-8S-kBQ" userLabel="Recreate Database Label">
|
||||||
<rect key="frame" x="30" y="15.333333333333334" width="265.33333333333331" height="20.333333333333329"/>
|
<rect key="frame" x="30" y="15.333333333333334" width="265.33333333333331" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uGv-Lb-Ita" userLabel="Recreate DB switch">
|
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uGv-Lb-Ita" userLabel="Recreate DB switch">
|
||||||
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="toggleRecreateDatabaseSwitch:" destination="aMk-Xp-UL8" eventType="valueChanged" id="vlf-Iz-kWr"/>
|
<action selector="toggleRecreateDatabaseSwitch:" destination="aMk-Xp-UL8" eventType="valueChanged" id="vlf-Iz-kWr"/>
|
||||||
@@ -1146,19 +1218,19 @@
|
|||||||
</userDefinedRuntimeAttributes>
|
</userDefinedRuntimeAttributes>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="9By-QW-Jw9" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="51" id="9By-QW-Jw9" customClass="InsetGroupTableViewCell" customModule="SideStore" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="1851.3333377838135" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="1917.3333377838135" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="9By-QW-Jw9" id="Dzq-gE-zyT">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="9By-QW-Jw9" id="Dzq-gE-zyT">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
<rect key="frame" x="0.0" y="0.0" width="402" height="51"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Minimuxer Console Logging" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jW6-pb-xdP">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Minimuxer Console Logging" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jW6-pb-xdP">
|
||||||
<rect key="frame" x="30.000000000000014" y="15.333333333333334" width="225.33333333333337" height="20.333333333333329"/>
|
<rect key="frame" x="30.000000000000014" y="15.333333333333334" width="225.33333333333337" height="20.333333333333329"/>
|
||||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="os8-7F-rSm" userLabel="Minimuxer logging Switch">
|
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="os8-7F-rSm" userLabel="Minimuxer logging Switch">
|
||||||
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
<rect key="frame" x="323" y="10" width="51" height="31"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="toggleMinimuxerConsoleLogging:" destination="aMk-Xp-UL8" eventType="valueChanged" id="d0C-kx-aFV"/>
|
<action selector="toggleMinimuxerConsoleLogging:" destination="aMk-Xp-UL8" eventType="valueChanged" id="d0C-kx-aFV"/>
|
||||||
@@ -1194,6 +1266,9 @@
|
|||||||
<outlet property="accountNameLabel" destination="CnN-M1-AYK" id="Ldc-Py-Bix"/>
|
<outlet property="accountNameLabel" destination="CnN-M1-AYK" id="Ldc-Py-Bix"/>
|
||||||
<outlet property="accountTypeLabel" destination="434-MW-Den" id="mNB-QE-4Jg"/>
|
<outlet property="accountTypeLabel" destination="434-MW-Den" id="mNB-QE-4Jg"/>
|
||||||
<outlet property="backgroundRefreshSwitch" destination="DPu-zD-Als" id="eiG-Hv-Vko"/>
|
<outlet property="backgroundRefreshSwitch" destination="DPu-zD-Als" id="eiG-Hv-Vko"/>
|
||||||
|
<outlet property="betaTrackLabel" destination="5J9-vR-vhX" id="x2k-X7-pUr"/>
|
||||||
|
<outlet property="betaTrackPopupButton" destination="Oct-iT-NwP" id="sOR-cc-IWC"/>
|
||||||
|
<outlet property="betaUpdatesSwitch" destination="e32-w4-5fk" id="kdn-ZR-cNU"/>
|
||||||
<outlet property="disableAppLimitSwitch" destination="1aa-og-ZXD" id="oVL-Md-yZ8"/>
|
<outlet property="disableAppLimitSwitch" destination="1aa-og-ZXD" id="oVL-Md-yZ8"/>
|
||||||
<outlet property="disableResponseCachingSwitch" destination="AAh-cu-qw8" id="aVT-Md-yZ8"/>
|
<outlet property="disableResponseCachingSwitch" destination="AAh-cu-qw8" id="aVT-Md-yZ8"/>
|
||||||
<outlet property="exportResignedAppsSwitch" destination="GYP-qn-wzh" id="aVL-Md-yZ8"/>
|
<outlet property="exportResignedAppsSwitch" destination="GYP-qn-wzh" id="aVL-Md-yZ8"/>
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ extension SettingsViewController
|
|||||||
case refreshSideJITServer
|
case refreshSideJITServer
|
||||||
case resetPairingFile
|
case resetPairingFile
|
||||||
case anisetteServers
|
case anisetteServers
|
||||||
|
case betaUpdates
|
||||||
|
case betaTrack
|
||||||
// case hiddenSettings
|
// case hiddenSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +99,10 @@ final class SettingsViewController: UITableViewController
|
|||||||
|
|
||||||
private var prototypeHeaderFooterView: SettingsHeaderFooterView!
|
private var prototypeHeaderFooterView: SettingsHeaderFooterView!
|
||||||
|
|
||||||
|
// Add outlet
|
||||||
|
@IBOutlet private var betaTrackLabel: UILabel!
|
||||||
|
@IBOutlet private var betaTrackPopupButton: UIButton!
|
||||||
|
|
||||||
private var debugGestureCounter = 0
|
private var debugGestureCounter = 0
|
||||||
private weak var debugGestureTimer: Timer?
|
private weak var debugGestureTimer: Timer?
|
||||||
|
|
||||||
@@ -107,6 +113,7 @@ final class SettingsViewController: UITableViewController
|
|||||||
@IBOutlet private var backgroundRefreshSwitch: UISwitch!
|
@IBOutlet private var backgroundRefreshSwitch: UISwitch!
|
||||||
@IBOutlet private var noIdleTimeoutSwitch: UISwitch!
|
@IBOutlet private var noIdleTimeoutSwitch: UISwitch!
|
||||||
@IBOutlet private var disableAppLimitSwitch: UISwitch!
|
@IBOutlet private var disableAppLimitSwitch: UISwitch!
|
||||||
|
@IBOutlet private var betaUpdatesSwitch: UISwitch!
|
||||||
@IBOutlet private var exportResignedAppsSwitch: UISwitch!
|
@IBOutlet private var exportResignedAppsSwitch: UISwitch!
|
||||||
@IBOutlet private var verboseOperationsLoggingSwitch: UISwitch!
|
@IBOutlet private var verboseOperationsLoggingSwitch: UISwitch!
|
||||||
@IBOutlet private var minimuxerConsoleLoggingSwitch: UISwitch!
|
@IBOutlet private var minimuxerConsoleLoggingSwitch: UISwitch!
|
||||||
@@ -138,6 +145,48 @@ private static var deleteDBInProgress = false
|
|||||||
NotificationCenter.default.addObserver(self, selector: #selector(SettingsViewController.openErrorLog(_:)), name: ToastView.openErrorLogNotification, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(SettingsViewController.openErrorLog(_:)), name: ToastView.openErrorLogNotification, object: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private func handleReleaseChannelSelection(_ channel: String) {
|
||||||
|
// Update your model/preferences
|
||||||
|
UserDefaults.standard.betaUdpatesTrack = channel
|
||||||
|
updateReleaseChannelButtonTitle()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func updateReleaseChannelButtonTitle() {
|
||||||
|
let channel = UserDefaults.standard.betaUdpatesTrack ?? UserDefaults.defaultBetaUpdatesTrack
|
||||||
|
betaTrackPopupButton.setTitle(channel, for: .normal)
|
||||||
|
}
|
||||||
|
|
||||||
|
private func configureReleaseChannelButton() {
|
||||||
|
let currentTrack = UserDefaults.standard.betaUdpatesTrack
|
||||||
|
|
||||||
|
// get all tracks as string available except .stable and .unknown
|
||||||
|
var trackOptions: [String] = ReleaseTracks.betaTracks.map {$0.rawValue}
|
||||||
|
|
||||||
|
if let currentTrack{
|
||||||
|
// prepend currently selected beta track from the user defaults
|
||||||
|
trackOptions = [currentTrack] + trackOptions.filter { $0 != currentTrack }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create menu items with proper styling
|
||||||
|
let items = trackOptions.map{ channel in
|
||||||
|
UIAction(title: channel, handler: { [weak self] _ in
|
||||||
|
self?.handleReleaseChannelSelection(channel)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create menu with proper styling
|
||||||
|
let menu = UIMenu(title: "",
|
||||||
|
options: [.singleSelection, .displayInline], // Add displayInline
|
||||||
|
children: items
|
||||||
|
)
|
||||||
|
betaTrackPopupButton.menu = menu
|
||||||
|
|
||||||
|
// Set initial state
|
||||||
|
updateReleaseChannelButtonTitle()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
override func viewDidLoad()
|
override func viewDidLoad()
|
||||||
{
|
{
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
@@ -185,6 +234,8 @@ private static var deleteDBInProgress = false
|
|||||||
button.imageView?.contentMode = .scaleAspectFit
|
button.imageView?.contentMode = .scaleAspectFit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configureReleaseChannelButton()
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewWillAppear(_ animated: Bool)
|
override func viewWillAppear(_ animated: Bool)
|
||||||
@@ -332,6 +383,9 @@ private extension SettingsViewController
|
|||||||
self.disableAppLimitSwitch.isOn = UserDefaults.standard.isAppLimitDisabled
|
self.disableAppLimitSwitch.isOn = UserDefaults.standard.isAppLimitDisabled
|
||||||
|
|
||||||
// AdvancedSettingsRow
|
// AdvancedSettingsRow
|
||||||
|
self.betaUpdatesSwitch.isOn = UserDefaults.standard.isBetaUpdatesEnabled
|
||||||
|
self.betaTrackLabel.isEnabled = UserDefaults.standard.isBetaUpdatesEnabled
|
||||||
|
self.betaTrackPopupButton.isEnabled = UserDefaults.standard.isBetaUpdatesEnabled
|
||||||
|
|
||||||
// DiagnosticsRow
|
// DiagnosticsRow
|
||||||
self.disableResponseCachingSwitch.isOn = UserDefaults.standard.responseCachingDisabled
|
self.disableResponseCachingSwitch.isOn = UserDefaults.standard.responseCachingDisabled
|
||||||
@@ -573,6 +627,13 @@ private extension SettingsViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@IBAction func toggleEnableBetaUpdates(_ sender: UISwitch) {
|
||||||
|
betaTrackLabel.isEnabled = sender.isOn
|
||||||
|
betaTrackPopupButton.isEnabled = sender.isOn
|
||||||
|
// update it in database
|
||||||
|
UserDefaults.standard.isBetaUpdatesEnabled = sender.isOn
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func toggleIsBackgroundRefreshEnabled(_ sender: UISwitch)
|
@IBAction func toggleIsBackgroundRefreshEnabled(_ sender: UISwitch)
|
||||||
{
|
{
|
||||||
UserDefaults.standard.isBackgroundRefreshEnabled = sender.isOn
|
UserDefaults.standard.isBackgroundRefreshEnabled = sender.isOn
|
||||||
@@ -1134,7 +1195,7 @@ extension SettingsViewController
|
|||||||
// } else {
|
// } else {
|
||||||
// ELOG("UIApplication.openSettingsURLString invalid")
|
// ELOG("UIApplication.openSettingsURLString invalid")
|
||||||
// }
|
// }
|
||||||
case .refreshAttempts : break
|
case .refreshAttempts, .betaUpdates, .betaTrack: break
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ public extension UserDefaults
|
|||||||
@NSManaged var isBackgroundRefreshEnabled: Bool
|
@NSManaged var isBackgroundRefreshEnabled: Bool
|
||||||
@NSManaged var isIdleTimeoutDisableEnabled: Bool
|
@NSManaged var isIdleTimeoutDisableEnabled: Bool
|
||||||
@NSManaged var isAppLimitDisabled: Bool
|
@NSManaged var isAppLimitDisabled: Bool
|
||||||
|
@NSManaged var isBetaUpdatesEnabled: Bool
|
||||||
@NSManaged var isExportResignedAppEnabled: Bool
|
@NSManaged var isExportResignedAppEnabled: Bool
|
||||||
@NSManaged var isVerboseOperationsLoggingEnabled: Bool
|
@NSManaged var isVerboseOperationsLoggingEnabled: Bool
|
||||||
@NSManaged var isMinimuxerConsoleLoggingEnabled: Bool
|
@NSManaged var isMinimuxerConsoleLoggingEnabled: Bool
|
||||||
@@ -55,6 +56,8 @@ public extension UserDefaults
|
|||||||
@NSManaged var trustedServerURL: String?
|
@NSManaged var trustedServerURL: String?
|
||||||
@NSManaged var skipPatreonDownloads: Bool
|
@NSManaged var skipPatreonDownloads: Bool
|
||||||
|
|
||||||
|
@NSManaged var betaUdpatesTrack: String?
|
||||||
|
|
||||||
@nonobjc var preferredAppSorting: AppSorting {
|
@nonobjc var preferredAppSorting: AppSorting {
|
||||||
get {
|
get {
|
||||||
let sorting = _preferredAppSorting.flatMap { AppSorting(rawValue: $0) } ?? .default
|
let sorting = _preferredAppSorting.flatMap { AppSorting(rawValue: $0) } ?? .default
|
||||||
@@ -90,6 +93,9 @@ public extension UserDefaults
|
|||||||
@NSManaged var permissionCheckingDisabled: Bool
|
@NSManaged var permissionCheckingDisabled: Bool
|
||||||
@NSManaged var responseCachingDisabled: Bool
|
@NSManaged var responseCachingDisabled: Bool
|
||||||
|
|
||||||
|
// Default track for beta updates when beta-updates are enabled
|
||||||
|
static let defaultBetaUpdatesTrack: String = ReleaseTracks.beta.rawValue
|
||||||
|
|
||||||
class func registerDefaults()
|
class func registerDefaults()
|
||||||
{
|
{
|
||||||
let ios13_5 = OperatingSystemVersion(majorVersion: 13, minorVersion: 5, patchVersion: 0)
|
let ios13_5 = OperatingSystemVersion(majorVersion: 13, minorVersion: 5, patchVersion: 0)
|
||||||
@@ -121,6 +127,7 @@ public extension UserDefaults
|
|||||||
|
|
||||||
let defaults = [
|
let defaults = [
|
||||||
#keyPath(UserDefaults.isAppLimitDisabled): false,
|
#keyPath(UserDefaults.isAppLimitDisabled): false,
|
||||||
|
#keyPath(UserDefaults.isBetaUpdatesEnabled): false,
|
||||||
#keyPath(UserDefaults.isExportResignedAppEnabled): false,
|
#keyPath(UserDefaults.isExportResignedAppEnabled): false,
|
||||||
#keyPath(UserDefaults.isDebugModeEnabled): false,
|
#keyPath(UserDefaults.isDebugModeEnabled): false,
|
||||||
#keyPath(UserDefaults.isVerboseOperationsLoggingEnabled): false,
|
#keyPath(UserDefaults.isVerboseOperationsLoggingEnabled): false,
|
||||||
@@ -138,6 +145,7 @@ public extension UserDefaults
|
|||||||
#keyPath(UserDefaults.isCowExploitSupported): isMacDirtyCowSupported,
|
#keyPath(UserDefaults.isCowExploitSupported): isMacDirtyCowSupported,
|
||||||
#keyPath(UserDefaults.permissionCheckingDisabled): permissionCheckingDisabled,
|
#keyPath(UserDefaults.permissionCheckingDisabled): permissionCheckingDisabled,
|
||||||
#keyPath(UserDefaults._preferredAppSorting): preferredAppSorting.rawValue,
|
#keyPath(UserDefaults._preferredAppSorting): preferredAppSorting.rawValue,
|
||||||
|
#keyPath(UserDefaults.betaUdpatesTrack): defaultBetaUpdatesTrack,
|
||||||
] as [String: Any]
|
] as [String: Any]
|
||||||
|
|
||||||
UserDefaults.standard.register(defaults: defaults)
|
UserDefaults.standard.register(defaults: defaults)
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
<entity name="AppVersion" representedClassName="AppVersion" syncable="YES">
|
<entity name="AppVersion" representedClassName="AppVersion" syncable="YES">
|
||||||
<attribute name="appBundleID" attributeType="String"/>
|
<attribute name="appBundleID" attributeType="String"/>
|
||||||
<attribute name="buildVersion" optional="YES" attributeType="String"/>
|
<attribute name="buildVersion" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="channel" optional="YES" attributeType="String"/>
|
||||||
<attribute name="date" attributeType="Date" usesScalarValueType="NO"/>
|
<attribute name="date" attributeType="Date" usesScalarValueType="NO"/>
|
||||||
<attribute name="downloadURL" attributeType="URI"/>
|
<attribute name="downloadURL" attributeType="URI"/>
|
||||||
<attribute name="localizedDescription" optional="YES" attributeType="String"/>
|
<attribute name="localizedDescription" optional="YES" attributeType="String"/>
|
||||||
@@ -73,6 +74,7 @@
|
|||||||
<attribute name="version" attributeType="String"/>
|
<attribute name="version" attributeType="String"/>
|
||||||
<relationship name="app" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="versions" inverseEntity="StoreApp"/>
|
<relationship name="app" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="versions" inverseEntity="StoreApp"/>
|
||||||
<relationship name="latestVersionApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="latestVersion" inverseEntity="StoreApp"/>
|
<relationship name="latestVersionApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="latestVersion" inverseEntity="StoreApp"/>
|
||||||
|
<relationship name="releaseTrack" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="ReleaseTrack" inverseName="releases" inverseEntity="ReleaseTrack"/>
|
||||||
<uniquenessConstraints>
|
<uniquenessConstraints>
|
||||||
<uniquenessConstraint>
|
<uniquenessConstraint>
|
||||||
<constraint value="appBundleID"/>
|
<constraint value="appBundleID"/>
|
||||||
@@ -216,6 +218,16 @@
|
|||||||
</uniquenessConstraint>
|
</uniquenessConstraint>
|
||||||
</uniquenessConstraints>
|
</uniquenessConstraints>
|
||||||
</entity>
|
</entity>
|
||||||
|
<entity name="ReleaseTrack" representedClassName="ReleaseTrack" syncable="YES">
|
||||||
|
<attribute name="track" optional="YES" attributeType="String"/>
|
||||||
|
<relationship name="releases" optional="YES" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppVersion" inverseName="releaseTrack" inverseEntity="AppVersion"/>
|
||||||
|
<relationship name="storeApp" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="StoreApp" inverseName="releaseTracks" inverseEntity="StoreApp"/>
|
||||||
|
<uniquenessConstraints>
|
||||||
|
<uniquenessConstraint>
|
||||||
|
<constraint value="track"/>
|
||||||
|
</uniquenessConstraint>
|
||||||
|
</uniquenessConstraints>
|
||||||
|
</entity>
|
||||||
<entity name="Source" representedClassName="Source" syncable="YES">
|
<entity name="Source" representedClassName="Source" syncable="YES">
|
||||||
<attribute name="error" optional="YES" attributeType="Transformable" valueTransformerName="ALTSecureValueTransformer"/>
|
<attribute name="error" optional="YES" attributeType="Transformable" valueTransformerName="ALTSecureValueTransformer"/>
|
||||||
<attribute name="featuredSortID" optional="YES" attributeType="String"/>
|
<attribute name="featuredSortID" optional="YES" attributeType="String"/>
|
||||||
@@ -247,7 +259,6 @@
|
|||||||
<attribute name="downloadURL" optional="YES" attributeType="URI"/>
|
<attribute name="downloadURL" optional="YES" attributeType="URI"/>
|
||||||
<attribute name="featuredSortID" optional="YES" attributeType="String"/>
|
<attribute name="featuredSortID" optional="YES" attributeType="String"/>
|
||||||
<attribute name="iconURL" attributeType="URI"/>
|
<attribute name="iconURL" attributeType="URI"/>
|
||||||
<attribute name="isBeta" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
|
||||||
<attribute name="isHiddenWithoutPledge" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
<attribute name="isHiddenWithoutPledge" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||||
<attribute name="isPledged" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
<attribute name="isPledged" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||||
<attribute name="isPledgeRequired" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
<attribute name="isPledgeRequired" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||||
@@ -272,6 +283,7 @@
|
|||||||
<relationship name="loggedErrors" toMany="YES" deletionRule="Nullify" destinationEntity="LoggedError" inverseName="storeApp" inverseEntity="LoggedError"/>
|
<relationship name="loggedErrors" toMany="YES" deletionRule="Nullify" destinationEntity="LoggedError" inverseName="storeApp" inverseEntity="LoggedError"/>
|
||||||
<relationship name="newsItems" toMany="YES" deletionRule="Nullify" destinationEntity="NewsItem" inverseName="storeApp" inverseEntity="NewsItem"/>
|
<relationship name="newsItems" toMany="YES" deletionRule="Nullify" destinationEntity="NewsItem" inverseName="storeApp" inverseEntity="NewsItem"/>
|
||||||
<relationship name="permissions" toMany="YES" deletionRule="Cascade" destinationEntity="AppPermission" inverseName="app" inverseEntity="AppPermission"/>
|
<relationship name="permissions" toMany="YES" deletionRule="Cascade" destinationEntity="AppPermission" inverseName="app" inverseEntity="AppPermission"/>
|
||||||
|
<relationship name="releaseTracks" optional="YES" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="ReleaseTrack" inverseName="storeApp" inverseEntity="ReleaseTrack"/>
|
||||||
<relationship name="screenshots" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppScreenshot" inverseName="app" inverseEntity="AppScreenshot"/>
|
<relationship name="screenshots" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppScreenshot" inverseName="app" inverseEntity="AppScreenshot"/>
|
||||||
<relationship name="source" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Source" inverseName="apps" inverseEntity="Source"/>
|
<relationship name="source" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Source" inverseName="apps" inverseEntity="Source"/>
|
||||||
<relationship name="versions" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppVersion" inverseName="app" inverseEntity="AppVersion"/>
|
<relationship name="versions" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="AppVersion" inverseName="app" inverseEntity="AppVersion"/>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ public class AppVersion: BaseEntity, Decodable
|
|||||||
@NSManaged public private(set) var downloadURL: URL
|
@NSManaged public private(set) var downloadURL: URL
|
||||||
@NSManaged public private(set) var size: Int64
|
@NSManaged public private(set) var size: Int64
|
||||||
@NSManaged public private(set) var sha256: String?
|
@NSManaged public private(set) var sha256: String?
|
||||||
|
@NSManaged @objc(channel) private var _channel: String?
|
||||||
|
|
||||||
@nonobjc public var minOSVersion: OperatingSystemVersion? {
|
@nonobjc public var minOSVersion: OperatingSystemVersion? {
|
||||||
guard let osVersionString = self._minOSVersion else { return nil }
|
guard let osVersionString = self._minOSVersion else { return nil }
|
||||||
@@ -48,8 +49,18 @@ public class AppVersion: BaseEntity, Decodable
|
|||||||
@NSManaged public var sourceID: String?
|
@NSManaged public var sourceID: String?
|
||||||
|
|
||||||
/* Relationships */
|
/* Relationships */
|
||||||
@NSManaged public private(set) var app: StoreApp?
|
@NSManaged @objc(app) public private(set) var _app: StoreApp?
|
||||||
@NSManaged @objc(latestVersionApp) public internal(set) var latestSupportedVersionApp: StoreApp?
|
@NSManaged @objc(latestVersionApp) public internal(set) var latestSupportedVersionApp: StoreApp?
|
||||||
|
@NSManaged public var releaseTrack: ReleaseTrack?
|
||||||
|
|
||||||
|
// public accessors
|
||||||
|
public var app: StoreApp? {
|
||||||
|
return releaseTrack?.storeApp ?? _app
|
||||||
|
}
|
||||||
|
|
||||||
|
public var channel: ReleaseTracks {
|
||||||
|
ReleaseTracks(stringValue: releaseTrack?.track ?? _channel ?? "") ?? .unknown
|
||||||
|
}
|
||||||
|
|
||||||
private override init(entity: NSEntityDescription, insertInto context: NSManagedObjectContext?)
|
private override init(entity: NSEntityDescription, insertInto context: NSManagedObjectContext?)
|
||||||
{
|
{
|
||||||
@@ -136,6 +147,7 @@ public extension AppVersion
|
|||||||
class func makeAppVersion(
|
class func makeAppVersion(
|
||||||
version: String,
|
version: String,
|
||||||
buildVersion: String?,
|
buildVersion: String?,
|
||||||
|
channel: String? = nil,
|
||||||
date: Date,
|
date: Date,
|
||||||
localizedDescription: String? = nil,
|
localizedDescription: String? = nil,
|
||||||
downloadURL: URL,
|
downloadURL: URL,
|
||||||
@@ -148,6 +160,7 @@ public extension AppVersion
|
|||||||
let appVersion = AppVersion(context: context)
|
let appVersion = AppVersion(context: context)
|
||||||
appVersion.version = version
|
appVersion.version = version
|
||||||
appVersion.buildVersion = buildVersion
|
appVersion.buildVersion = buildVersion
|
||||||
|
appVersion._channel = channel
|
||||||
appVersion.date = date
|
appVersion.date = date
|
||||||
appVersion.localizedDescription = localizedDescription
|
appVersion.localizedDescription = localizedDescription
|
||||||
appVersion.downloadURL = downloadURL
|
appVersion.downloadURL = downloadURL
|
||||||
@@ -159,6 +172,49 @@ public extension AppVersion
|
|||||||
return appVersion
|
return appVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update with new values
|
||||||
|
func mutateForData(
|
||||||
|
version: String? = nil,
|
||||||
|
channel: String? = nil,
|
||||||
|
buildVersion: String? = nil,
|
||||||
|
date: Date? = nil,
|
||||||
|
localizedDescription: String? = nil,
|
||||||
|
downloadURL: URL? = nil,
|
||||||
|
size: Int64? = nil,
|
||||||
|
sha256: String? = nil,
|
||||||
|
appBundleID: String? = nil,
|
||||||
|
sourceID: String? = nil) -> AppVersion
|
||||||
|
{
|
||||||
|
// use overriding incoming params if present else retain existing
|
||||||
|
|
||||||
|
// non-optionals
|
||||||
|
if let version {
|
||||||
|
self.version = version
|
||||||
|
}
|
||||||
|
if let date {
|
||||||
|
self.date = date
|
||||||
|
}
|
||||||
|
if let downloadURL{
|
||||||
|
self.downloadURL = downloadURL
|
||||||
|
}
|
||||||
|
if let size{
|
||||||
|
self.size = size
|
||||||
|
}
|
||||||
|
if let appBundleID{
|
||||||
|
self.appBundleID = appBundleID
|
||||||
|
}
|
||||||
|
|
||||||
|
// optionals
|
||||||
|
self.localizedDescription = localizedDescription ?? self.localizedDescription
|
||||||
|
self._channel = channel ?? self._channel
|
||||||
|
self.buildVersion = buildVersion ?? self.buildVersion
|
||||||
|
self.sha256 = sha256 ?? self.sha256
|
||||||
|
self.sourceID = sourceID ?? self.sourceID
|
||||||
|
|
||||||
|
return self
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var isSupported: Bool {
|
var isSupported: Bool {
|
||||||
if let minOSVersion = self.minOSVersion, !ProcessInfo.processInfo.isOperatingSystemAtLeast(minOSVersion)
|
if let minOSVersion = self.minOSVersion, !ProcessInfo.processInfo.isOperatingSystemAtLeast(minOSVersion)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,26 +137,26 @@ public class InstalledApp: BaseEntity, InstalledAppProtocol
|
|||||||
if currentSemVer == nil || latestSemVer == nil {
|
if currentSemVer == nil || latestSemVer == nil {
|
||||||
return !matches(latestVersion)
|
return !matches(latestVersion)
|
||||||
}
|
}
|
||||||
// let currentVer = SemanticVersion("\(currentSemVer!.major).\(currentSemVer!.minor).\(currentSemVer!.patch)")
|
let currentVer = SemanticVersion("\(currentSemVer!.major).\(currentSemVer!.minor).\(currentSemVer!.patch)")
|
||||||
// let latestVer = SemanticVersion("\(latestSemVer!.major).\(latestSemVer!.minor).\(latestSemVer!.patch)")
|
let latestVer = SemanticVersion("\(latestSemVer!.major).\(latestSemVer!.minor).\(latestSemVer!.patch)")
|
||||||
|
|
||||||
// // Compare by major.minor.patch
|
// Compare by major.minor.patch
|
||||||
// if latestVer! > latestVer! {
|
if latestVer! > latestVer! {
|
||||||
// return true
|
return true
|
||||||
// }
|
}
|
||||||
|
|
||||||
// // Check beta updates if enabled
|
// Check beta updates if enabled
|
||||||
// if UserDefaults.standard.isBetaUpdatesEnabled,
|
if UserDefaults.standard.isBetaUpdatesEnabled,
|
||||||
// ReleaseTracks.betaTracks.contains(latestVersion.channel),
|
ReleaseTracks.betaTracks.contains(latestVersion.channel),
|
||||||
// latestVer == currentVer, // major.minor.patch are matching
|
latestVer == currentVer, // major.minor.patch are matching
|
||||||
// // now compare by preRelease and build to break the tie
|
// now compare by preRelease and build to break the tie
|
||||||
// // TODO: since multiple tracks can be independent, when a different version is available on selected track than installed
|
// TODO: since multiple tracks can be independent, when a different version is available on selected track than installed
|
||||||
// // we accept it, now ex: if the setup is consistent for upstream merge lets say from alpha to nightly and alpha can never fall behind nightly,
|
// we accept it, now ex: if the setup is consistent for upstream merge lets say from alpha to nightly and alpha can never fall behind nightly,
|
||||||
// // then the preRelease+build combo will always be incremental and our below not-equals check will still work.
|
// then the preRelease+build combo will always be incremental and our below not-equals check will still work.
|
||||||
// (latestSemVer!.build != currentSemVer!.build) || (latestSemVer!.preRelease != currentSemVer!.preRelease)
|
(latestSemVer!.build != currentSemVer!.build) || (latestSemVer!.preRelease != currentSemVer!.preRelease)
|
||||||
// {
|
{
|
||||||
// return true
|
return true
|
||||||
// }
|
}
|
||||||
|
|
||||||
// else include everything as-is when doing lexicographic comparison
|
// else include everything as-is when doing lexicographic comparison
|
||||||
// NOTE: stable x.y.z is always > x.y.z-abcd+1234
|
// NOTE: stable x.y.z is always > x.y.z-abcd+1234
|
||||||
|
|||||||
114
AltStoreCore/Model/ReleaseTrack.swift
Normal file
114
AltStoreCore/Model/ReleaseTrack.swift
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
//
|
||||||
|
// AppreleaseTrack.swift
|
||||||
|
// AltStore
|
||||||
|
//
|
||||||
|
// Created by Magesh K on 19/01/25.
|
||||||
|
// Copyright © 2025 SideStore. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
import CoreData
|
||||||
|
|
||||||
|
// created for 0.6.0
|
||||||
|
@objc(ReleaseTrack)
|
||||||
|
public class ReleaseTrack: BaseEntity, Decodable
|
||||||
|
{
|
||||||
|
// attributes
|
||||||
|
@NSManaged @objc(track) private var _track: String?
|
||||||
|
|
||||||
|
// RelationShips
|
||||||
|
@NSManaged @objc(releases) private var _releases: NSOrderedSet?
|
||||||
|
@NSManaged public private(set) var storeApp: StoreApp?
|
||||||
|
|
||||||
|
private enum CodingKeys: String, CodingKey, CaseIterable {
|
||||||
|
case track
|
||||||
|
case releases
|
||||||
|
}
|
||||||
|
|
||||||
|
public var track: String? {
|
||||||
|
return _track?.isEmpty == false ? _track : nil
|
||||||
|
}
|
||||||
|
|
||||||
|
public var releases:[AppVersion]? {
|
||||||
|
return _releases?.array as? [AppVersion]
|
||||||
|
}
|
||||||
|
|
||||||
|
// Required initializer for Core Data (context saves)
|
||||||
|
private override init(entity: NSEntityDescription, insertInto context: NSManagedObjectContext?) {
|
||||||
|
super.init(entity: entity, insertInto: context)
|
||||||
|
}
|
||||||
|
|
||||||
|
public required init(from decoder: Decoder) throws{
|
||||||
|
guard let context = decoder.managedObjectContext else {
|
||||||
|
preconditionFailure("Decoder must have non-nil NSManagedObjectContext.")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Must initialize with context in order for child context saves to work correctly.
|
||||||
|
super.init(entity: ReleaseTrack.entity(), insertInto: context)
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||||
|
|
||||||
|
self._track = try container.decode(String.self, forKey: .track)
|
||||||
|
|
||||||
|
let releases = try container.decode([AppVersion].self, forKey: .releases)
|
||||||
|
guard releases.count > 0 else
|
||||||
|
{
|
||||||
|
throw DecodingError.dataCorruptedError(forKey: .releases, in: container, debugDescription: "At least one version is required in key: releases")
|
||||||
|
}
|
||||||
|
self._releases = NSOrderedSet(array: releases)
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
if let context = self.managedObjectContext
|
||||||
|
{
|
||||||
|
context.delete(self)
|
||||||
|
}
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public extension ReleaseTrack{
|
||||||
|
|
||||||
|
/// Warning:
|
||||||
|
/// - Special handling required for deleted objects:
|
||||||
|
/// - CoreData sets all properties to nil during deletion
|
||||||
|
/// - This triggers KVO and could cause "mutating removed object" errors
|
||||||
|
/// - We guard against this by checking deletion state before updates
|
||||||
|
///
|
||||||
|
internal func updateVersions(for storeApp: StoreApp?) {
|
||||||
|
guard let storeApp = storeApp else { return }
|
||||||
|
|
||||||
|
releases?.forEach { version in
|
||||||
|
// never mutate objects that are being deleted or is already deleted
|
||||||
|
guard let context = version.managedObjectContext,
|
||||||
|
!version.isDeleted, !context.deletedObjects.contains(version) else
|
||||||
|
{
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// update it into the appVersion
|
||||||
|
_ = version.mutateForData(channel: track, appBundleID: storeApp.bundleIdentifier)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Defer updates to fields that require storeApp inverse relationship to be set, which is not available in init(),
|
||||||
|
/// by observing changes to the prop and update the data later
|
||||||
|
///
|
||||||
|
/// NOTE: We use KVO here only coz, ReleaseTrack already has an inverse relationship to StoreAppV2
|
||||||
|
/// So coredata will actually set the storeApp but only issue is that it happens after init() is complete
|
||||||
|
/// hence we are using KVO so that one doesn't need to manually set the value via a setter method
|
||||||
|
///
|
||||||
|
/// However this caused an issue when an object is marked deleted during merge policy conflict resolution, all its props are set to nil by coredata.
|
||||||
|
/// this causes this KVO observer to be triggered and mutating the deleted entity causing a "coredata error: Mutating removed object"
|
||||||
|
/// which is now handled by checking if context.deletedObjects doesn't contain it and version.isDeleted is not true yet
|
||||||
|
///
|
||||||
|
override func didChangeValue(forKey key: String) {
|
||||||
|
super.didChangeValue(forKey: key)
|
||||||
|
if key == NSExpression(forKeyPath: #keyPath(ReleaseTrack.storeApp)).keyPath
|
||||||
|
{
|
||||||
|
updateVersions(for: storeApp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,6 +12,32 @@ import CoreData
|
|||||||
import Roxas
|
import Roxas
|
||||||
import AltSign
|
import AltSign
|
||||||
|
|
||||||
|
import SemanticVersion
|
||||||
|
|
||||||
|
public enum ReleaseTracks: String, CodingKey, CaseIterable
|
||||||
|
{
|
||||||
|
case unknown
|
||||||
|
case local
|
||||||
|
|
||||||
|
case alpha
|
||||||
|
case beta = "nightly"
|
||||||
|
case stable
|
||||||
|
|
||||||
|
|
||||||
|
public static var betaTracks: [ReleaseTracks] {
|
||||||
|
ReleaseTracks.allCases.filter(isBetaTrack)
|
||||||
|
}
|
||||||
|
|
||||||
|
public static var nonBetaTracks: [ReleaseTracks] {
|
||||||
|
ReleaseTracks.allCases.filter { !isBetaTrack($0) }
|
||||||
|
}
|
||||||
|
|
||||||
|
private static func isBetaTrack(_ key: ReleaseTracks) -> Bool {
|
||||||
|
key == .alpha || key == .beta
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public extension StoreApp
|
public extension StoreApp
|
||||||
{
|
{
|
||||||
#if ALPHA
|
#if ALPHA
|
||||||
@@ -124,6 +150,51 @@ private struct PatreonParameters: Decodable
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
extension StoreApp {
|
||||||
|
|
||||||
|
//MARK: - relationships
|
||||||
|
@NSManaged @objc(releaseTracks) private(set) var _releaseTracks: NSOrderedSet?
|
||||||
|
|
||||||
|
private var releaseTracks: [ReleaseTrack]?{
|
||||||
|
return _releaseTracks?.array as? [ReleaseTrack]
|
||||||
|
}
|
||||||
|
|
||||||
|
private func releaseTrackFor(track: String) -> ReleaseTrack? {
|
||||||
|
return releaseTracks?.first(where: { $0.track == track })
|
||||||
|
}
|
||||||
|
|
||||||
|
private var stableTrack: ReleaseTrack? {
|
||||||
|
releaseTrackFor(track: ReleaseTracks.stable.stringValue)
|
||||||
|
}
|
||||||
|
|
||||||
|
private var betaReleases: [AppVersion]? {
|
||||||
|
// If beta track is selected, use it instead
|
||||||
|
if UserDefaults.standard.isBetaUpdatesEnabled,
|
||||||
|
let betaTrack = UserDefaults.standard.betaUdpatesTrack {
|
||||||
|
|
||||||
|
// Filter and flatten beta and stable releases
|
||||||
|
let betaReleases = releaseTrackFor(track: betaTrack)?.releases?.compactMap { $0 }
|
||||||
|
|
||||||
|
// Ensure both beta and stable releases are found and supported
|
||||||
|
if let latestBeta = betaReleases?.first(where: { $0.isSupported }),
|
||||||
|
let latestStable = stableTrack?.releases?.first(where: { $0.isSupported }),
|
||||||
|
let stableSemVer = SemanticVersion(latestStable.version),
|
||||||
|
let betaSemVer = SemanticVersion(latestBeta.version),
|
||||||
|
betaSemVer >= stableSemVer
|
||||||
|
{
|
||||||
|
return betaReleases
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
private func getReleases(default releases: ReleaseTrack?) -> [AppVersion]?
|
||||||
|
{
|
||||||
|
return betaReleases ?? releases?.releases?.compactMap { $0 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@objc(StoreApp)
|
@objc(StoreApp)
|
||||||
public class StoreApp: BaseEntity, Decodable
|
public class StoreApp: BaseEntity, Decodable
|
||||||
{
|
{
|
||||||
@@ -151,7 +222,6 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
@NSManaged public private(set) var platformURLs: PlatformURLs?
|
@NSManaged public private(set) var platformURLs: PlatformURLs?
|
||||||
|
|
||||||
@NSManaged public private(set) var tintColor: UIColor?
|
@NSManaged public private(set) var tintColor: UIColor?
|
||||||
@NSManaged public private(set) var isBeta: Bool
|
|
||||||
|
|
||||||
// Required for Marketplace apps.
|
// Required for Marketplace apps.
|
||||||
@NSManaged public private(set) var marketplaceID: String?
|
@NSManaged public private(set) var marketplaceID: String?
|
||||||
@@ -265,7 +335,7 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
case subtitle
|
case subtitle
|
||||||
case permissions = "appPermissions"
|
case permissions = "appPermissions"
|
||||||
case size
|
case size
|
||||||
case isBeta = "beta"
|
case isBeta = "beta" // backward compatibility for altstore source format
|
||||||
case versions
|
case versions
|
||||||
case patreon
|
case patreon
|
||||||
case category
|
case category
|
||||||
@@ -276,6 +346,9 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
case versionDate
|
case versionDate
|
||||||
case downloadURL
|
case downloadURL
|
||||||
case screenshotURLs
|
case screenshotURLs
|
||||||
|
|
||||||
|
// v2 source format
|
||||||
|
case releaseTracks = "releaseChannels"
|
||||||
}
|
}
|
||||||
|
|
||||||
public required init(from decoder: Decoder) throws
|
public required init(from decoder: Decoder) throws
|
||||||
@@ -295,7 +368,6 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
self.iconURL = try container.decode(URL.self, forKey: .iconURL)
|
self.iconURL = try container.decode(URL.self, forKey: .iconURL)
|
||||||
|
|
||||||
self.subtitle = try container.decodeIfPresent(String.self, forKey: .subtitle)
|
self.subtitle = try container.decodeIfPresent(String.self, forKey: .subtitle)
|
||||||
self.isBeta = try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
|
|
||||||
|
|
||||||
// Required for Marketplace apps, but we'll verify later.
|
// Required for Marketplace apps, but we'll verify later.
|
||||||
self.marketplaceID = try container.decodeIfPresent(String.self, forKey: .marketplaceID)
|
self.marketplaceID = try container.decodeIfPresent(String.self, forKey: .marketplaceID)
|
||||||
@@ -365,65 +437,7 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
self._permissions = NSSet()
|
self._permissions = NSSet()
|
||||||
}
|
}
|
||||||
|
|
||||||
if let versions = try container.decodeIfPresent([AppVersion].self, forKey: .versions)
|
try self.decodeVersions(from: decoder) // pre-req for downloadURL procesing
|
||||||
{
|
|
||||||
if (versions.count == 0){
|
|
||||||
throw DecodingError.dataCorruptedError(forKey: .versions, in: container, debugDescription: "At least one version is required in key: versions")
|
|
||||||
}
|
|
||||||
|
|
||||||
for (index, version) in zip(0..., versions)
|
|
||||||
{
|
|
||||||
version.appBundleID = self.bundleIdentifier
|
|
||||||
|
|
||||||
if self.marketplaceID != nil
|
|
||||||
{
|
|
||||||
struct IndexCodingKey: CodingKey
|
|
||||||
{
|
|
||||||
var stringValue: String { self.intValue?.description ?? "" }
|
|
||||||
var intValue: Int?
|
|
||||||
|
|
||||||
init?(stringValue: String)
|
|
||||||
{
|
|
||||||
fatalError()
|
|
||||||
}
|
|
||||||
|
|
||||||
init(intValue: Int)
|
|
||||||
{
|
|
||||||
self.intValue = intValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Marketplace apps must provide build version.
|
|
||||||
guard version.buildVersion != nil else {
|
|
||||||
let codingPath = container.codingPath + [CodingKeys.versions as CodingKey] + [IndexCodingKey(intValue: index) as CodingKey]
|
|
||||||
let context = DecodingError.Context(codingPath: codingPath, debugDescription: "Notarized apps must provide a build version.")
|
|
||||||
throw DecodingError.keyNotFound(AppVersion.CodingKeys.buildVersion, context)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
try self.setVersions(versions)
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
let version = try container.decode(String.self, forKey: .version)
|
|
||||||
let versionDate = try container.decode(Date.self, forKey: .versionDate)
|
|
||||||
let versionDescription = try container.decodeIfPresent(String.self, forKey: .versionDescription)
|
|
||||||
|
|
||||||
let downloadURL = try container.decode(URL.self, forKey: .downloadURL)
|
|
||||||
let size = try container.decode(Int32.self, forKey: .size)
|
|
||||||
|
|
||||||
let appVersion = AppVersion.makeAppVersion(version: version,
|
|
||||||
buildVersion: nil,
|
|
||||||
date: versionDate,
|
|
||||||
localizedDescription: versionDescription,
|
|
||||||
downloadURL: downloadURL,
|
|
||||||
size: Int64(size),
|
|
||||||
appBundleID: self.bundleIdentifier,
|
|
||||||
in: context)
|
|
||||||
try self.setVersions([appVersion])
|
|
||||||
}
|
|
||||||
|
|
||||||
// latestSupportedVersion is set by this point if one was available
|
// latestSupportedVersion is set by this point if one was available
|
||||||
let platformURLs = try container.decodeIfPresent(PlatformURLs.self.self, forKey: .platformURLs)
|
let platformURLs = try container.decodeIfPresent(PlatformURLs.self.self, forKey: .platformURLs)
|
||||||
@@ -493,6 +507,101 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func decodeVersions(from decoder: Decoder) throws {
|
||||||
|
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||||
|
|
||||||
|
if let releaseTracks = try container.decodeIfPresent([ReleaseTrack].self, forKey: .releaseTracks){
|
||||||
|
self._releaseTracks = NSOrderedSet(array: releaseTracks)
|
||||||
|
}
|
||||||
|
|
||||||
|
// get channel info if present, else default to stable
|
||||||
|
var channel = ReleaseTracks.stable.stringValue
|
||||||
|
|
||||||
|
var versions = getReleases(default: stableTrack) ?? []
|
||||||
|
if versions.isEmpty {
|
||||||
|
if let appVersions = try container.decodeIfPresent([AppVersion].self, forKey: .versions)
|
||||||
|
{
|
||||||
|
versions = appVersions
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
|
||||||
|
{
|
||||||
|
channel = ReleaseTracks.beta.stringValue
|
||||||
|
}
|
||||||
|
|
||||||
|
// create one from the storeApp description and use it as current
|
||||||
|
let newRelease = try createNewAppVersion(decoder: decoder)
|
||||||
|
.mutateForData(
|
||||||
|
channel: channel,
|
||||||
|
appBundleID: self.bundleIdentifier
|
||||||
|
)
|
||||||
|
|
||||||
|
versions = [newRelease]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (index, version) in zip(0..., versions)
|
||||||
|
{
|
||||||
|
version.appBundleID = self.bundleIdentifier
|
||||||
|
|
||||||
|
// ignore setting, if it was already updated by ReleaseTracks in V2 sources
|
||||||
|
if version.channel == .unknown {
|
||||||
|
_ = version.mutateForData(channel: channel)
|
||||||
|
}
|
||||||
|
|
||||||
|
if self.marketplaceID != nil
|
||||||
|
{
|
||||||
|
struct IndexCodingKey: CodingKey
|
||||||
|
{
|
||||||
|
var stringValue: String { self.intValue?.description ?? "" }
|
||||||
|
var intValue: Int?
|
||||||
|
|
||||||
|
init?(stringValue: String)
|
||||||
|
{
|
||||||
|
fatalError()
|
||||||
|
}
|
||||||
|
|
||||||
|
init(intValue: Int)
|
||||||
|
{
|
||||||
|
self.intValue = intValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Marketplace apps must provide build version.
|
||||||
|
guard version.buildVersion != nil else {
|
||||||
|
let codingPath = container.codingPath + [CodingKeys.versions as CodingKey] + [IndexCodingKey(intValue: index) as CodingKey]
|
||||||
|
let context = DecodingError.Context(codingPath: codingPath, debugDescription: "Notarized apps must provide a build version.")
|
||||||
|
throw DecodingError.keyNotFound(AppVersion.CodingKeys.buildVersion, context)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
try self.setVersions(versions)
|
||||||
|
}
|
||||||
|
|
||||||
|
func createNewAppVersion(decoder: Decoder) throws -> AppVersion {
|
||||||
|
guard let context = decoder.managedObjectContext else { preconditionFailure("Decoder must have non-nil NSManagedObjectContext.") }
|
||||||
|
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||||
|
//
|
||||||
|
let version = try container.decode(String.self, forKey: .version)
|
||||||
|
let versionDate = try container.decode(Date.self, forKey: .versionDate)
|
||||||
|
let versionDescription = try container.decodeIfPresent(String.self, forKey: .versionDescription)
|
||||||
|
|
||||||
|
let downloadURL = try container.decode(URL.self, forKey: .downloadURL)
|
||||||
|
let size = try container.decode(Int32.self, forKey: .size)
|
||||||
|
|
||||||
|
return AppVersion.makeAppVersion(version: version,
|
||||||
|
buildVersion: nil,
|
||||||
|
date: versionDate,
|
||||||
|
localizedDescription: versionDescription,
|
||||||
|
downloadURL: downloadURL,
|
||||||
|
size: Int64(size),
|
||||||
|
appBundleID: self.bundleIdentifier,
|
||||||
|
in: context)
|
||||||
|
}
|
||||||
|
|
||||||
public override func awakeFromInsert()
|
public override func awakeFromInsert()
|
||||||
{
|
{
|
||||||
super.awakeFromInsert()
|
super.awakeFromInsert()
|
||||||
@@ -660,32 +769,40 @@ public extension StoreApp
|
|||||||
|
|
||||||
class func makeAltStoreApp(version: String, buildVersion: String?, in context: NSManagedObjectContext) -> StoreApp
|
class func makeAltStoreApp(version: String, buildVersion: String?, in context: NSManagedObjectContext) -> StoreApp
|
||||||
{
|
{
|
||||||
let placeholderAppID = StoreApp.altstoreAppID
|
let placeholderBundleId = StoreApp.altstoreAppID
|
||||||
let placeholderDownloadURL = URL(string: "https://sidestore.io")!
|
let placeholderDownloadURL = URL(string: "https://sidestore.io")!
|
||||||
let placeholderSourceID = Source.altStoreIdentifier
|
let placeholderSourceID = Source.altStoreIdentifier
|
||||||
|
let placeholderVersion = "0.0.0"
|
||||||
|
let placeholderDate = Date.distantPast
|
||||||
|
// let placeholderDate = Date(timeIntervalSinceReferenceDate: 0)
|
||||||
|
// let placeholderDate = Date(timeIntervalSince1970: 0)
|
||||||
|
var placeholderChannel = ReleaseTracks.stable.stringValue // placeholder is always assumed to be from stable channel
|
||||||
|
let placeholderSize: Int32 = 0
|
||||||
|
|
||||||
|
#if BETA
|
||||||
|
placeholderChannel = ReleaseTracks.beta.stringValue
|
||||||
|
#endif
|
||||||
|
|
||||||
let app = StoreApp(context: context)
|
let app = StoreApp(context: context)
|
||||||
app.name = "SideStore"
|
app.name = "SideStore"
|
||||||
app.bundleIdentifier = placeholderAppID
|
app.bundleIdentifier = placeholderBundleId
|
||||||
app.developerName = "Side Team"
|
app.developerName = "Side Team"
|
||||||
app.localizedDescription = "SideStore is an alternative App Store."
|
app.localizedDescription = "SideStore is an alternative App Store."
|
||||||
app.iconURL = Self.sideStoreAppIconURL
|
app.iconURL = sideStoreAppIconURL
|
||||||
app.screenshotURLs = []
|
app.screenshotURLs = []
|
||||||
app.sourceIdentifier = placeholderSourceID
|
app.sourceIdentifier = placeholderSourceID
|
||||||
|
|
||||||
let appVersion = AppVersion.makeAppVersion(version: version,
|
let appVersion = AppVersion.makeAppVersion(version: placeholderVersion,
|
||||||
buildVersion: buildVersion,
|
buildVersion: buildVersion,
|
||||||
date: Date(),
|
channel: placeholderChannel,
|
||||||
|
date: placeholderDate,
|
||||||
downloadURL: placeholderDownloadURL,
|
downloadURL: placeholderDownloadURL,
|
||||||
size: 0,
|
size: Int64(app._size),
|
||||||
appBundleID: app.bundleIdentifier,
|
appBundleID: app.bundleIdentifier,
|
||||||
sourceID: app.sourceIdentifier,
|
sourceID: app.sourceIdentifier,
|
||||||
in: context)
|
in: context)
|
||||||
try? app.setVersions([appVersion])
|
try? app.setVersions([appVersion])
|
||||||
|
|
||||||
#if BETA
|
|
||||||
app.isBeta = true
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return app
|
return app
|
||||||
}
|
}
|
||||||
|
|||||||
105
update_apps.py
105
update_apps.py
@@ -10,6 +10,7 @@ import sys
|
|||||||
VERSION_IPA = os.getenv("VERSION_IPA")
|
VERSION_IPA = os.getenv("VERSION_IPA")
|
||||||
VERSION_DATE = os.getenv("VERSION_DATE")
|
VERSION_DATE = os.getenv("VERSION_DATE")
|
||||||
IS_BETA = os.getenv("IS_BETA")
|
IS_BETA = os.getenv("IS_BETA")
|
||||||
|
RELEASE_CHANNEL = os.getenv("RELEASE_CHANNEL")
|
||||||
SIZE = os.getenv("SIZE")
|
SIZE = os.getenv("SIZE")
|
||||||
SHA256 = os.getenv("SHA256")
|
SHA256 = os.getenv("SHA256")
|
||||||
LOCALIZED_DESCRIPTION = os.getenv("LOCALIZED_DESCRIPTION")
|
LOCALIZED_DESCRIPTION = os.getenv("LOCALIZED_DESCRIPTION")
|
||||||
@@ -21,6 +22,7 @@ BUNDLE_IDENTIFIER = os.getenv("BUNDLE_IDENTIFIER")
|
|||||||
# VERSION_IPA = os.getenv("VERSION_IPA", "0.0.0")
|
# VERSION_IPA = os.getenv("VERSION_IPA", "0.0.0")
|
||||||
# VERSION_DATE = os.getenv("VERSION_DATE", "2000-12-18T00:00:00Z")
|
# VERSION_DATE = os.getenv("VERSION_DATE", "2000-12-18T00:00:00Z")
|
||||||
# IS_BETA = os.getenv("IS_BETA", True)
|
# IS_BETA = os.getenv("IS_BETA", True)
|
||||||
|
# RELEASE_CHANNEL = os.getenv("RELEASE_CHANNEL", "alpha")
|
||||||
# SIZE = int(os.getenv("SIZE", "0")) # Convert to integer
|
# SIZE = int(os.getenv("SIZE", "0")) # Convert to integer
|
||||||
# SHA256 = os.getenv("SHA256", "")
|
# SHA256 = os.getenv("SHA256", "")
|
||||||
# LOCALIZED_DESCRIPTION = os.getenv("LOCALIZED_DESCRIPTION", "Invalid Update")
|
# LOCALIZED_DESCRIPTION = os.getenv("LOCALIZED_DESCRIPTION", "Invalid Update")
|
||||||
@@ -40,6 +42,7 @@ print("Bundle Identifier:", BUNDLE_IDENTIFIER)
|
|||||||
print("Version:", VERSION_IPA)
|
print("Version:", VERSION_IPA)
|
||||||
print("Version Date:", VERSION_DATE)
|
print("Version Date:", VERSION_DATE)
|
||||||
print("IsBeta:", IS_BETA)
|
print("IsBeta:", IS_BETA)
|
||||||
|
print("ReleaseChannel:", RELEASE_CHANNEL)
|
||||||
print("Size:", SIZE)
|
print("Size:", SIZE)
|
||||||
print("Sha256:", SHA256)
|
print("Sha256:", SHA256)
|
||||||
print("Localized Description:", LOCALIZED_DESCRIPTION)
|
print("Localized Description:", LOCALIZED_DESCRIPTION)
|
||||||
@@ -63,6 +66,7 @@ except Exception as e:
|
|||||||
if (not BUNDLE_IDENTIFIER or
|
if (not BUNDLE_IDENTIFIER or
|
||||||
not VERSION_IPA or
|
not VERSION_IPA or
|
||||||
not VERSION_DATE or
|
not VERSION_DATE or
|
||||||
|
not RELEASE_CHANNEL or
|
||||||
not SIZE or
|
not SIZE or
|
||||||
not SHA256 or
|
not SHA256 or
|
||||||
not LOCALIZED_DESCRIPTION or
|
not LOCALIZED_DESCRIPTION or
|
||||||
@@ -76,28 +80,71 @@ SIZE = int(SIZE)
|
|||||||
# Process the JSON data
|
# Process the JSON data
|
||||||
updated = False
|
updated = False
|
||||||
|
|
||||||
apps = data.get("apps", [])
|
# apps = data.get("apps", [])
|
||||||
appsToUpdate = [app for app in apps if app.get("bundleIdentifier") == BUNDLE_IDENTIFIER]
|
# appsToUpdate = [app for app in apps if app.get("bundleIdentifier") == BUNDLE_IDENTIFIER]
|
||||||
if len(appsToUpdate) == 0:
|
# if len(appsToUpdate) == 0:
|
||||||
print("No app with the specified bundle identifier found.")
|
# print("No app with the specified bundle identifier found.")
|
||||||
|
# sys.exit(1)
|
||||||
|
|
||||||
|
# if len(appsToUpdate) > 1:
|
||||||
|
# print(f"Multiple apps with same `bundleIdentifier` = ${BUNDLE_IDENTIFIER} are not allowed!")
|
||||||
|
# sys.exit(1)
|
||||||
|
|
||||||
|
# app = appsToUpdate[0]
|
||||||
|
# # Update app-level metadata for store front page
|
||||||
|
# app.update({
|
||||||
|
# "beta": IS_BETA,
|
||||||
|
# })
|
||||||
|
|
||||||
|
# versions = app.get("versions", [])
|
||||||
|
|
||||||
|
# versionIfExists = [version for version in versions if version == VERSION_IPA]
|
||||||
|
# if versionIfExists: # current version is a duplicate, so reject it
|
||||||
|
# print(f"`version` = ${VERSION_IPA} already exists!, new build cannot have an existing version, Aborting!")
|
||||||
|
# sys.exit(1)
|
||||||
|
|
||||||
|
# # create an entry and keep ready
|
||||||
|
# new_version = {
|
||||||
|
# "version": VERSION_IPA,
|
||||||
|
# "date": VERSION_DATE,
|
||||||
|
# "localizedDescription": LOCALIZED_DESCRIPTION,
|
||||||
|
# "downloadURL": DOWNLOAD_URL,
|
||||||
|
# "size": SIZE,
|
||||||
|
# "sha256": SHA256,
|
||||||
|
# }
|
||||||
|
|
||||||
|
# if versions is []:
|
||||||
|
# versions.append(new_version)
|
||||||
|
# else:
|
||||||
|
# # versions.insert(0, new_version) # insert at front
|
||||||
|
# versions[0] = new_version # replace top one
|
||||||
|
|
||||||
|
|
||||||
|
# make it lowecase
|
||||||
|
RELEASE_CHANNEL = RELEASE_CHANNEL.lower()
|
||||||
|
|
||||||
|
version = data.get("version", 1)
|
||||||
|
if int(version) < 2:
|
||||||
|
print("Only v2 and above are supported for direct updates to sources.json on push")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if len(appsToUpdate) > 1:
|
for app in data.get("apps", []):
|
||||||
print(f"Multiple apps with same `bundleIdentifier` = ${BUNDLE_IDENTIFIER} are not allowed!")
|
if app.get("bundleIdentifier") == BUNDLE_IDENTIFIER:
|
||||||
sys.exit(1)
|
if RELEASE_CHANNEL == "stable" :
|
||||||
|
|
||||||
app = appsToUpdate[0]
|
|
||||||
# Update app-level metadata for store front page
|
# Update app-level metadata for store front page
|
||||||
app.update({
|
app.update({
|
||||||
"beta": IS_BETA,
|
"version": VERSION_IPA,
|
||||||
|
"versionDate": VERSION_DATE,
|
||||||
|
"size": SIZE,
|
||||||
|
"sha256": SHA256,
|
||||||
|
"localizedDescription": LOCALIZED_DESCRIPTION,
|
||||||
|
"downloadURL": DOWNLOAD_URL,
|
||||||
})
|
})
|
||||||
|
|
||||||
versions = app.get("versions", [])
|
# Process the versions array
|
||||||
|
channels = app.get("releaseChannels", [])
|
||||||
versionIfExists = [version for version in versions if version == VERSION_IPA]
|
if not channels:
|
||||||
if versionIfExists: # current version is a duplicate, so reject it
|
app["releaseChannels"] = channels
|
||||||
print(f"`version` = ${VERSION_IPA} already exists!, new build cannot have an existing version, Aborting!")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# create an entry and keep ready
|
# create an entry and keep ready
|
||||||
new_version = {
|
new_version = {
|
||||||
@@ -109,11 +156,29 @@ new_version = {
|
|||||||
"sha256": SHA256,
|
"sha256": SHA256,
|
||||||
}
|
}
|
||||||
|
|
||||||
if versions is []:
|
tracks = [track for track in channels if track.get("track") == RELEASE_CHANNEL]
|
||||||
versions.append(new_version)
|
if len(tracks) > 1:
|
||||||
|
print(f"Multiple tracks with same `track` name = ${RELEASE_CHANNEL} are not allowed!")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if not tracks:
|
||||||
|
# there was no entries in this release channel so create one
|
||||||
|
track = {
|
||||||
|
"track": RELEASE_CHANNEL,
|
||||||
|
"releases": [new_version]
|
||||||
|
}
|
||||||
|
channels.insert(0, track)
|
||||||
else:
|
else:
|
||||||
# versions.insert(0, new_version) # insert at front
|
track = tracks[0] # first result is the selected track
|
||||||
versions[0] = new_version # replace top one
|
# Update the existing TOP version object entry
|
||||||
|
track["releases"][0] = new_version
|
||||||
|
|
||||||
|
updated = True
|
||||||
|
break
|
||||||
|
|
||||||
|
if not updated:
|
||||||
|
print("No app with the specified bundle identifier found.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# Save the updated JSON to the input file
|
# Save the updated JSON to the input file
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user