Skip to content

Commit

Permalink
Changes for v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgriv committed Sep 8, 2024
1 parent 55420c2 commit 0ae21d0
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 77 deletions.
12 changes: 12 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.3] - 2024-09-08

### Added

- Added a `delayLaunchScreen` bool variable to turn on/off a delay to display the splash screen in the `PassThrough.swift` file.

### Changed

- Moved GitHub link button further down on the login screen.
- Renamed file folders.

## [1.2.2] - 2024-08-13

### Changed
Expand Down Expand Up @@ -50,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added this changelog file :D
- Initial Release of Post.e

[1.2.3]: https://github.com/scottgriv/Post.e/compare/v1.2.2...v1.2.3
[1.2.2]: https://github.com/scottgriv/Post.e/compare/v1.2.1...v1.2.2
[1.2.1]: https://github.com/scottgriv/Post.e/compare/v1.2.0...v1.2.1
[1.2.0]: https://github.com/scottgriv/Post.e/compare/v1.1.0...v1.2.0
Expand Down
14 changes: 11 additions & 3 deletions mobile/ios/Post.e.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@
F683A5B2270A723000FA1D94 /* Post.e */,
F67C4E2D28790919005A08F3 /* Post.e_Watch */,
F67C4E3B2879091C005A08F3 /* Post.e_Watch WatchKit Extension */,
F68E2F0F28B0663F00B3E982 /* Playgrounds */,
F67D193F28AB38FF0040727B /* Post.eTests */,
F68E2F0F28B0663F00B3E982 /* Playgrounds */,
F683A593270A6FC500FA1D94 /* Products */,
);
sourceTree = "<group>";
Expand Down Expand Up @@ -621,6 +621,7 @@
F683A5C8270A746A00FA1D94 /* Scene Delegate */,
F683A5C4270A73BF00FA1D94 /* TabBarController */,
F683A5C3270A73B100FA1D94 /* NavigationController */,
F6CBFC142C8E448F00B601B3 /* Config */,
F683A5CC270A752500FA1D94 /* Singletons */,
F683A5EF270D3F1A00FA1D94 /* Open Source Libraries */,
);
Expand Down Expand Up @@ -663,8 +664,6 @@
F683A5CC270A752500FA1D94 /* Singletons */ = {
isa = PBXGroup;
children = (
F67D192F28A9D12F0040727B /* App Info */,
F660E90927225D93005F856A /* Constants */,
F6E35929279663F900669243 /* Managers */,
F6F7E225274604C500AAB77D /* Cells */,
);
Expand Down Expand Up @@ -804,6 +803,15 @@
path = Playgrounds;
sourceTree = "<group>";
};
F6CBFC142C8E448F00B601B3 /* Config */ = {
isa = PBXGroup;
children = (
F67D192F28A9D12F0040727B /* App Info */,
F660E90927225D93005F856A /* Constants */,
);
path = Config;
sourceTree = "<group>";
};
F6DDAA2D2787E00C0092A50C /* Follow Manager */ = {
isa = PBXGroup;
children = (
Expand Down
Binary file not shown.
30 changes: 15 additions & 15 deletions mobile/ios/Post.e/Main Files/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Vx8-bV-1O9">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23089" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Vx8-bV-1O9">
<device id="retina6_72" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23077"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
Expand Down Expand Up @@ -650,7 +650,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="97C-9g-RUl">
<rect key="frame" x="82" y="724" width="266" height="35"/>
<rect key="frame" x="82" y="808" width="266" height="35"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="KohinoorGujarati-Bold" family="Kohinoor Gujarati" pointSize="15"/>
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand All @@ -663,7 +663,7 @@
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="GitHubLogo" translatesAutoresizingMaskIntoConstraints="NO" id="AzA-H3-TQW">
<rect key="frame" x="302" y="730" width="20" height="20"/>
<rect key="frame" x="302" y="814" width="20" height="20"/>
</imageView>
</subviews>
<viewLayoutGuide key="safeArea" id="KHQ-Ed-Ybx"/>
Expand All @@ -675,16 +675,16 @@
<constraint firstItem="XCy-Hg-gMR" firstAttribute="leading" secondItem="Gj9-BY-AVL" secondAttribute="leading" id="6PG-bY-CrV"/>
<constraint firstAttribute="trailing" secondItem="y7r-Qp-r2O" secondAttribute="trailing" id="9VT-L4-aho"/>
<constraint firstItem="uSn-el-eEK" firstAttribute="leading" secondItem="KHQ-Ed-Ybx" secondAttribute="leading" constant="82" id="A5k-MD-dVG"/>
<constraint firstItem="KHQ-Ed-Ybx" firstAttribute="bottom" secondItem="AzA-H3-TQW" secondAttribute="bottom" constant="182" id="D1h-CB-F2z"/>
<constraint firstItem="KHQ-Ed-Ybx" firstAttribute="bottom" secondItem="AzA-H3-TQW" secondAttribute="bottom" constant="98" id="D1h-CB-F2z"/>
<constraint firstItem="zkO-N8-B83" firstAttribute="centerX" secondItem="Xik-Ly-8mS" secondAttribute="centerX" id="GZf-2v-MIx"/>
<constraint firstItem="uSn-el-eEK" firstAttribute="trailing" secondItem="XCy-Hg-gMR" secondAttribute="trailing" id="Hxg-N0-G1b"/>
<constraint firstItem="uSn-el-eEK" firstAttribute="top" secondItem="KHQ-Ed-Ybx" secondAttribute="top" constant="145" id="IYR-MH-Xtk"/>
<constraint firstItem="lN7-E1-eCE" firstAttribute="top" secondItem="qcy-tC-puV" secondAttribute="bottom" constant="8" symbolic="YES" id="Ion-1a-uqM"/>
<constraint firstItem="97C-9g-RUl" firstAttribute="leading" secondItem="lN7-E1-eCE" secondAttribute="leading" id="JuJ-TX-1mv"/>
<constraint firstItem="XCy-Hg-gMR" firstAttribute="trailing" secondItem="Gj9-BY-AVL" secondAttribute="trailing" id="KYp-JQ-JUe"/>
<constraint firstItem="97C-9g-RUl" firstAttribute="top" secondItem="lN7-E1-eCE" secondAttribute="bottom" constant="8" id="OBs-zs-Ozm"/>
<constraint firstItem="97C-9g-RUl" firstAttribute="top" secondItem="lN7-E1-eCE" secondAttribute="bottom" constant="92" id="OBs-zs-Ozm"/>
<constraint firstItem="uSn-el-eEK" firstAttribute="leading" secondItem="XCy-Hg-gMR" secondAttribute="leading" id="OfB-dP-X5f"/>
<constraint firstItem="AzA-H3-TQW" firstAttribute="top" secondItem="lN7-E1-eCE" secondAttribute="bottom" constant="14" id="YMp-86-JIp"/>
<constraint firstItem="AzA-H3-TQW" firstAttribute="top" secondItem="lN7-E1-eCE" secondAttribute="bottom" constant="98" id="YMp-86-JIp"/>
<constraint firstItem="Gj9-BY-AVL" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="zkO-N8-B83" secondAttribute="leading" id="dl5-yo-FFr"/>
<constraint firstItem="zkO-N8-B83" firstAttribute="trailing" relation="lessThanOrEqual" secondItem="qcy-tC-puV" secondAttribute="trailing" id="e9H-4V-SqY"/>
<constraint firstItem="Xik-Ly-8mS" firstAttribute="leading" secondItem="KHQ-Ed-Ybx" secondAttribute="leading" constant="189" id="fMK-Dc-DmA"/>
Expand Down Expand Up @@ -1368,7 +1368,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="SplashIcon" translatesAutoresizingMaskIntoConstraints="NO" id="2AH-YY-HGg">
<rect key="frame" x="-1" y="13" width="427" height="927"/>
<rect key="frame" x="-1" y="0.0" width="427" height="940"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
</imageView>
</subviews>
Expand All @@ -1382,7 +1382,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="u4M-ss-onw" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-3136" y="8"/>
<point key="canvasLocation" x="-3136.7441860465115" y="7.7253218884120178"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="IqB-oz-RZK">
Expand Down Expand Up @@ -2059,25 +2059,25 @@
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="linkColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemBlueColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGrayColor">
<color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.5568627451" green="0.5568627451" blue="0.57647058819999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGreenColor">
<color red="0.20392156862745098" green="0.7803921568627451" blue="0.34901960784313724" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.20392156859999999" green="0.78039215689999997" blue="0.34901960780000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemOrangeColor">
<color red="1" green="0.58431372549019611" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="1" green="0.58431372550000005" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemRedColor">
<color red="1" green="0.23137254901960785" blue="0.18823529411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="1" green="0.23137254900000001" blue="0.18823529410000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemYellowColor">
<color red="1" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
62 changes: 62 additions & 0 deletions mobile/ios/Post.e/Main Files/Config/App Info/AppInfo.swift
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
}
}
58 changes: 0 additions & 58 deletions mobile/ios/Post.e/Main Files/Singletons/App Info/AppInfo.swift

This file was deleted.

10 changes: 9 additions & 1 deletion mobile/ios/Post.e/Screens/Pass Through/PassThrough.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,15 @@ class PassThrough: UIViewController, WCSessionDelegate {

} else {

self.performSegue(withIdentifier: "PassThrough_to_Login", sender: self)
var delaySeconds = 0.0

if (instanceOfAppInfo.delayLaunchScreen) {
delaySeconds = 2.0
}

DispatchQueue.main.asyncAfter(deadline: .now() + delaySeconds) { // 2 seconds delay to show the Launch Screen
self.performSegue(withIdentifier: "PassThrough_to_Login", sender: self)
}

}

Expand Down

0 comments on commit 0ae21d0

Please sign in to comment.