-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
109 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.26 KB
(100%)
...oj/project.xcworkspace/xcuserdata/scottgrivner.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
mobile/ios/Post.e/Main Files/Config/App Info/AppInfo.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// | ||
// AppInfo.swift | ||
// Post.e | ||
// | ||
// Created by Scott Grivner on 8/14/22. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AppInfo { | ||
|
||
// MARK: Add a delay to the launch screen to show the Post.e branded cover photo (true = add a 2 second delay, false = show the login screen as quickly as possible) | ||
// MARK: You can adjust the delay by editing the code for this directly in the PassThrough.swift file | ||
let delayLaunchScreen = true | ||
|
||
var appName : String { | ||
return readFromInfoPlist(withKey: "CFBundleName") ?? "(unknown app name)" | ||
} | ||
|
||
var version : String { | ||
return readFromInfoPlist(withKey: "CFBundleShortVersionString") ?? "(unknown app version)" | ||
} | ||
|
||
var build : String { | ||
return readFromInfoPlist(withKey: "CFBundleVersion") ?? "(unknown build number)" | ||
} | ||
|
||
var minimumOSVersion : String { | ||
return readFromInfoPlist(withKey: "MinimumOSVersion") ?? "(unknown minimum OSVersion)" | ||
} | ||
|
||
var copyrightNotice : String { | ||
return readFromInfoPlist(withKey: "NSHumanReadableCopyright") ?? "(unknown copyright notice)" | ||
} | ||
|
||
var bundleIdentifier : String { | ||
return readFromInfoPlist(withKey: "CFBundleIdentifier") ?? "(unknown bundle identifier)" | ||
} | ||
|
||
var aboutDeveloper : String { return "Scott Grivner" } | ||
|
||
var aboutContactEmail : String { return "scott.grivner@gmail.com" } | ||
|
||
var aboutContactWebsite : String { return "scottgrivner.dev" } | ||
|
||
var currentYear : String { | ||
let now = Date() | ||
let dateFormatter = DateFormatter() | ||
dateFormatter.dateFormat = "yyyy" | ||
let year = dateFormatter.string(from: now) | ||
|
||
return year | ||
} | ||
|
||
// lets hold a reference to the Info.plist of the app as Dictionary | ||
private let infoPlistDictionary = Bundle.main.infoDictionary | ||
|
||
/// Retrieves and returns associated values (of Type String) from info.Plist of the app. | ||
private func readFromInfoPlist(withKey key: String) -> String? { | ||
return infoPlistDictionary?[key] as? String | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
58 changes: 0 additions & 58 deletions
58
mobile/ios/Post.e/Main Files/Singletons/App Info/AppInfo.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters