-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from lo-cafe/alpha
Alpha
- Loading branch information
Showing
103 changed files
with
3,398 additions
and
460 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
A big update is coming soon, sorry for the wait. | ||
# Added | ||
|
||
--- QUICK EXPRESS UPDATE --- | ||
- Fixed subs order | ||
- Fixed subs filtering | ||
- Fixed favoriting subs not working properly | ||
- Live Text | ||
- Whats new Sheet | ||
- Lock the app | ||
- Theme Store | ||
- Subscribed indicator / button when searching for subs | ||
- Add settings import / export | ||
- Add line spacing option for themes | ||
- New comments indicator | ||
- Added flairs in comments | ||
|
||
# Fixed | ||
|
||
- "Streamable" videos now working | ||
- Blur nsfw when searching for subs | ||
- Default search sort in settings | ||
- Save sort per subreddit | ||
- Save comment search per port | ||
- Support for themable user flairs | ||
- Add theming for load more button | ||
|
||
Special thanks to rbertus2000, mmynk, Nelson Dane, Zander Bobronnikov and ben-wheeler for contributing to this release! |
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,37 @@ | ||
{ | ||
"title": "What's new in Winston", | ||
"version": "1.0.0", | ||
"features": [ | ||
{ | ||
"subtitle": "We've added a cool new What's New sheet!", | ||
"systemImage": "star", | ||
"title": "What's New sheet" | ||
}, | ||
{ | ||
"subtitle": "Want to copy text you see in an image? Now you can!", | ||
"systemImage": "text.viewfinder", | ||
"title": "Live Text" | ||
}, | ||
{ | ||
"subtitle": "You can now lock Winston with a pin or biometrics.", | ||
"systemImage": "lock", | ||
"title": "Lock Winston" | ||
}, | ||
{ | ||
"subtitle": "Download other peoples themes with the all new Theme Store.", | ||
"systemImage": "paintpalette", | ||
"title": "Theme Store" | ||
}, | ||
{ | ||
"subtitle": "Wait didn't I read this already? With new comments indicators you dont need to ask yourself this question anymore!", | ||
"systemImage": "person", | ||
"title": "New Comments Indicator" | ||
}, | ||
{ | ||
"subtitle": "Show some flair with...flairs! Winston now displays flairs in comments.", | ||
"systemImage": "flag", | ||
"title": "User Flairs in Comments" | ||
} | ||
], | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.associated-domains</key> | ||
<array> | ||
<string>applinks:app.winston.lo.cafe</string> | ||
</array> | ||
</dict> | ||
</plist> |
Large diffs are not rendered by default.
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
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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// Biometrics.swift | ||
// winston | ||
// | ||
// Created by Nelson Dane on 19/09/23. | ||
// | ||
|
||
import SwiftUI | ||
import Foundation | ||
import LocalAuthentication | ||
|
||
class Biometrics { | ||
let context = LAContext() | ||
var error: NSError? | ||
|
||
func checkIfEnrolled() -> Bool { | ||
var isEnrolled = false | ||
if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) { | ||
print("Biometrics are available on this device") | ||
isEnrolled = true | ||
} else { | ||
print("Biometrics are not available on this device") | ||
} | ||
return isEnrolled | ||
} | ||
|
||
func biometricType() -> String { | ||
if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) { | ||
if #available(iOS 11.0, *) { | ||
switch context.biometryType { | ||
case .opticID: | ||
return "Optic ID" | ||
case .faceID: | ||
return "Face ID" | ||
case .touchID: | ||
return "Touch ID" | ||
case .none: | ||
return "None" | ||
@unknown default: | ||
return "Unknown" | ||
} | ||
} else { | ||
// Fallback on earlier versions | ||
return "Touch ID" | ||
} | ||
} | ||
else { | ||
// Fallback to passcode | ||
return "Passcode" | ||
} | ||
} | ||
|
||
func authenticateUser(completion: @escaping (Bool) -> Void) { | ||
// Check if biomtrics are available | ||
if !checkIfEnrolled() { | ||
completion(false) | ||
return | ||
} | ||
// We're all good, let's authenticate | ||
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: "Identify Yourself!") { success, error in | ||
if success { | ||
print("Auth Success") | ||
completion(true) | ||
} else { | ||
print("Auth Failure: \(error?.localizedDescription ?? "Failed to authenticate")") | ||
completion(false) | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.