Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Bump build number
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMarcus committed Jun 21, 2020
1 parent 4fdcd44 commit 246829b
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
8 changes: 8 additions & 0 deletions NineAnimator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
2C0E755A2262495200DF3AC4 /* QuickActionsTableViewCell+Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C0E75592262495200DF3AC4 /* QuickActionsTableViewCell+Cell.swift */; };
2C0FA3B7226E340800108D27 /* ServerSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C0FA3B6226E340800108D27 /* ServerSelectionViewController.swift */; };
2C0FA3B9226E6A7A00108D27 /* SetupServerSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C0FA3B8226E6A7A00108D27 /* SetupServerSelectionViewController.swift */; };
2C107712249EFBFC007B82D9 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 2C107710249EFBFB007B82D9 /* [email protected] */; };
2C107713249EFBFC007B82D9 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 2C107711249EFBFC007B82D9 /* [email protected] */; };
2C12EDCD21BDD4930064D2BD /* PlaybackMedia.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C12EDCC21BDD4930064D2BD /* PlaybackMedia.swift */; };
2C12EDD321BDDF320064D2BD /* SwiftProtobuf.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C12EDCF21BDDF320064D2BD /* SwiftProtobuf.framework */; };
2C12EDD421BDDF320064D2BD /* SwiftyJSON.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C12EDD021BDDF320064D2BD /* SwiftyJSON.framework */; };
Expand Down Expand Up @@ -452,6 +454,8 @@
2C0E75592262495200DF3AC4 /* QuickActionsTableViewCell+Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "QuickActionsTableViewCell+Cell.swift"; sourceTree = "<group>"; };
2C0FA3B6226E340800108D27 /* ServerSelectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServerSelectionViewController.swift; sourceTree = "<group>"; };
2C0FA3B8226E6A7A00108D27 /* SetupServerSelectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SetupServerSelectionViewController.swift; sourceTree = "<group>"; };
2C107710249EFBFB007B82D9 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
2C107711249EFBFC007B82D9 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
2C12EDCC21BDD4930064D2BD /* PlaybackMedia.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaybackMedia.swift; sourceTree = "<group>"; };
2C12EDCE21BDDF320064D2BD /* Result.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Result.framework; path = Carthage/Build/iOS/Result.framework; sourceTree = "<group>"; };
2C12EDCF21BDDF320064D2BD /* SwiftProtobuf.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftProtobuf.framework; path = Carthage/Build/iOS/SwiftProtobuf.framework; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1608,6 +1612,8 @@
2C9383C921FBE774008C0D01 /* Theme */ = {
isa = PBXGroup;
children = (
2C107711249EFBFC007B82D9 /* [email protected] */,
2C107710249EFBFB007B82D9 /* [email protected] */,
2C73A3A521FB72230080A8B2 /* Theme.swift */,
2C9383CC21FBF442008C0D01 /* UIView+MakeThemable.swift */,
2C9383D321FCCC43008C0D01 /* UILabel+StyleAttributes.swift */,
Expand Down Expand Up @@ -2121,6 +2127,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2C107712249EFBFC007B82D9 /* [email protected] in Resources */,
2C107713249EFBFC007B82D9 /* [email protected] in Resources */,
2C60EED3221B56C6002C96D4 /* AniListListingAnimeInformation.graphql in Resources */,
2C60EED7221B5965002C96D4 /* AniListUserMediaCollections.graphql in Resources */,
2C60EEDD221B5AC8002C96D4 /* AniListTrackingMutation.graphql in Resources */,
Expand Down
4 changes: 2 additions & 2 deletions NineAnimator/Base.lproj/Settings.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="1QF-QW-wC1">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="1QF-QW-wC1">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
Expand Down Expand Up @@ -1918,7 +1918,7 @@ Remaining storage capacity displayed in this screen may be different from the Se
<tableViewSection headerTitle="About NineAnimator" id="EzJ-Ri-uNU">
<string key="footerTitle">NineAnimator is a free, open source iOS anime watching application developed by Marcus Zhou ([email protected]) under the GNU General Public License version 3.

NineAnimator is not designed to promote piracy, nor to support anime piracy websites.</string>
<cells>
<tableViewCell clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="about.version" textLabel="A3J-Ya-mRo" detailTextLabel="EeO-5U-kPF" style="IBUITableViewCellStyleValue1" id="ZXX-84-uGw">
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="about.version" textLabel="A3J-Ya-mRo" detailTextLabel="EeO-5U-kPF" style="IBUITableViewCellStyleValue1" id="ZXX-84-uGw">
<rect key="frame" x="16" y="55.5" width="343" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ZXX-84-uGw" id="GfS-oZ-qOh">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AboutNineAnimatorTableViewController: UITableViewController {
]

private let discordInvitationUrl = URL(string: "https://discord.gg/dzTVzeW")!
private var aboutTappingCounter = 0

@IBOutlet private weak var versionLabel: UILabel!
@IBOutlet private weak var buildNumberLabel: UILabel!
Expand All @@ -53,6 +54,12 @@ class AboutNineAnimatorTableViewController: UITableViewController {
case "about.discord":
// Open discord invitation url
UIApplication.shared.open(discordInvitationUrl)
case "about.version":
aboutTappingCounter += 1
if aboutTappingCounter >= 10 {
aboutTappingCounter = 5
doMagic()
}
default:
Log.error("[AboutNineAnimatorTableViewController] Unknwon cell with identitier %@ selected.", cell.reuseIdentifier ?? "<Unknown>")
}
Expand All @@ -72,4 +79,16 @@ class AboutNineAnimatorTableViewController: UITableViewController {
versionLabel.text = NineAnimator.default.version
buildNumberLabel.text = "\(NineAnimator.default.buildNumber)"
}

func doMagic() {
guard UIApplication.shared.supportsAlternateIcons else {
return Log.error("[AboutNineAnimatorTableViewController] Encountered an error: unsupported actions")
}

if case .some = UIApplication.shared.alternateIconName {
UIApplication.shared.setAlternateIconName(nil, completionHandler: nil)
} else {
UIApplication.shared.setAlternateIconName("Fox", completionHandler: nil)
}
}
}
22 changes: 22 additions & 0 deletions NineAnimator/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string></string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
<key>CFBundleAlternateIcons</key>
<dict>
<key>Fox</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Fox</string>
</array>
</dict>
</dict>
</dict>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
Expand Down
Binary file added NineAnimator/Views/Theme/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NineAnimator/Views/Theme/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 246829b

Please sign in to comment.