Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

7.1 #1181

Open
wants to merge 49 commits into
base: develop
Choose a base branch
from
Open

7.1 #1181

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
31e4ad7
Initial Catalyst support (builds\!), Switch to Alamofire 5
ccrama Jan 30, 2021
932c2e8
Fix Mac layout, Force iPad code for Mac installs
ccrama Jan 30, 2021
9764f71
Improved Catalyst layouts
ccrama Jan 31, 2021
2c84ef3
Removed toolbar for Mac, Fixed video crashes
ccrama Jan 31, 2021
62e7be8
Use new windows for more ViewControllers
ccrama Jan 31, 2021
a7a3882
Fixed some sidebar bugs
ccrama Feb 5, 2021
e312fc1
Merge branch 'develop' into mac_catalyst
ccrama Feb 14, 2021
4a0ba2b
Fixed build issues
ccrama Feb 14, 2021
7d10986
Fixed multi-column mode
ccrama Feb 14, 2021
5962059
Use event system for Settings changes
ccrama Feb 16, 2021
5865beb
Moved search bar out of table header
ccrama Feb 19, 2021
88d88db
Merge branch 'develop' into mac_catalyst
ccrama Feb 20, 2021
62b35ec
Moved isMac from UIApplication to UIDevice
ccrama Feb 21, 2021
69e6c76
Update build number for production 7.0.2
ccrama Mar 6, 2021
559db92
Initial Catalyst support (builds\!), Switch to Alamofire 5
ccrama Jan 30, 2021
f46d257
Fix Mac layout, Force iPad code for Mac installs
ccrama Jan 30, 2021
8edfcd5
Improved Catalyst layouts
ccrama Jan 31, 2021
bf27ad2
Removed toolbar for Mac, Fixed video crashes
ccrama Jan 31, 2021
ff6a495
Use new windows for more ViewControllers
ccrama Jan 31, 2021
f6a64cd
Fixed some sidebar bugs
ccrama Feb 5, 2021
6511124
Fixed build issues
ccrama Feb 14, 2021
88bfcf2
Fixed multi-column mode
ccrama Feb 14, 2021
4c39ef8
Use event system for Settings changes
ccrama Feb 16, 2021
7231286
Moved search bar out of table header
ccrama Feb 19, 2021
a90bae0
Moved isMac from UIApplication to UIDevice
ccrama Feb 21, 2021
f474d33
Fixed issues on iOS from Catalyst conversion
ccrama Mar 7, 2021
b0e78a9
Theme switching improvements, Fastlane updates
ccrama Mar 27, 2021
a66ceed
Improvements to video muting, Added option to disable tapping on user…
ccrama Mar 27, 2021
fc249e6
Fixed merge conflicts
ccrama Mar 27, 2021
888e891
Load more comments now respects sorting mode, Fixes #1177
ccrama Mar 27, 2021
b7f0f2a
Fixed build issue
ccrama Mar 27, 2021
721c177
Fixed theme share crashing
ccrama Mar 27, 2021
7816ec1
Slightly modified light theme
ccrama Mar 27, 2021
bf7ba0d
Added partial completion to AutoCache, Fixes #1168
ccrama Mar 27, 2021
5469663
Added ability to follow and subscribe to user profiles
ccrama Mar 27, 2021
5a4f0cb
Fixed subreddit top link bubble colors
ccrama Mar 27, 2021
55d4d89
Refactored method for formatting users, multireddits, and subreddits …
ccrama Mar 27, 2021
fb3cd94
Made Dark Mode enabled by default, Bug fixes
ccrama Mar 27, 2021
063044f
Added iCloud debugging menu
ccrama Mar 27, 2021
2e38f4d
Added support for regex filters, Fixes #1175
ccrama Mar 27, 2021
2cd9166
Update pods, Add options to show awards in comments and show profile …
ccrama Mar 27, 2021
eabf7b1
Bug fixes
ccrama Mar 27, 2021
ae6d595
Update build number for 7.1, Disable Mac Catalyst build until further…
ccrama Mar 27, 2021
962f7de
Disable new MacOS features until next update
ccrama Mar 28, 2021
f9ea1dd
Fixed build number
ccrama Mar 28, 2021
f3d9443
A few bug fixes, Settings improvements
ccrama Mar 28, 2021
d328ad7
Force Fastlane update on bundle install
ccrama Mar 28, 2021
40a1192
Update core_data_tests.yml
ccrama Mar 28, 2021
5d37b46
Update core_data_tests.yml
ccrama Mar 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/core_data_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
run: |
sh ./bootstrap.sh
pod install
bundle update fastlane
- name: Run code validation
uses: actions/checkout@v1
with:
Expand Down
Empty file added 7.0.0
Empty file.
1 change: 1 addition & 0 deletions CoreData_Models/CommentModel+CoreDataProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ extension CommentModel {

@NSManaged public var approvedBy: String?
@NSManaged public var author: String
@NSManaged public var authorProfileImage: String?
@NSManaged public var awardsJSON: String?
@NSManaged public var controversality: Int64
@NSManaged public var created: Date
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="17709" systemVersion="20B28" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="18147.2" systemVersion="20D64" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="CommentModel" representedClassName="CommentModel" syncable="YES">
<attribute name="approvedBy" optional="YES" attributeType="String"/>
<attribute name="author" optional="YES" attributeType="String"/>
<attribute name="authorProfileImage" optional="YES" attributeType="String"/>
<attribute name="awardsJSON" optional="YES" attributeType="String"/>
<attribute name="controversality" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="created" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
Expand Down Expand Up @@ -150,7 +151,7 @@
</uniquenessConstraints>
</entity>
<elements>
<element name="CommentModel" positionX="-45" positionY="144" width="128" height="599"/>
<element name="CommentModel" positionX="-45" positionY="144" width="128" height="614"/>
<element name="MoreModel" positionX="63" positionY="162" width="128" height="104"/>
<element name="SubmissionComments" positionX="0" positionY="144" width="128" height="74"/>
<element name="SubmissionModel" positionX="-63" positionY="-18" width="128" height="1004"/>
Expand Down
10 changes: 9 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ target 'Slide for Reddit' do
pod 'SwiftLinkPreview', '~> 3.0.1'
pod 'DTCoreText', :git => 'https://github.com/Cocoanetics/DTCoreText'
pod 'RLBAlertsPickers', :git => 'https://github.com/ccrama/Alerts-Pickers'
pod 'Alamofire', '~> 4.3'
pod 'SwiftyJSON', :git => 'https://github.com/ccrama/SwiftyJSON.git', :branch => 'hotfix-xcode12'
pod "YoutubePlayer-in-WKWebView", "~> 0.3.0"
pod 'TGPControls'
Expand All @@ -35,6 +34,15 @@ target 'Slide for Reddit' do
end

post_install do |installer|
installer.pods_project.targets.each do |target|
# Fix bundle targets' 'Signing Certificate' to 'Sign to Run Locally'
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY[sdk=macosx*]'] = '-'
end
end
end

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11'
Expand Down
38 changes: 17 additions & 21 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PODS:
- Alamofire (4.9.1)
- DTCoreText (1.6.26):
- DTCoreText/Core (= 1.6.26)
- DTFoundation/Core (~> 1.7.5)
Expand All @@ -19,24 +18,24 @@ PODS:
- DTFoundation/Core
- HTMLSpecialCharacters (1.3.6)
- LicensesViewController (0.7.0)
- MaterialComponents/ActivityIndicator (119.5.0):
- MaterialComponents/ActivityIndicator (124.1.1):
- MaterialComponents/Palettes
- MaterialComponents/private/Application
- MDFInternationalization
- MotionAnimator (~> 2.0)
- MaterialComponents/Palettes (119.5.0)
- MaterialComponents/private/Application (119.5.0)
- MaterialComponents/private/Math (119.5.0)
- MaterialComponents/ProgressView (119.5.0):
- MotionAnimator (~> 4.0)
- MaterialComponents/Palettes (124.1.1)
- MaterialComponents/private/Application (124.1.1)
- MaterialComponents/private/Math (124.1.1)
- MaterialComponents/ProgressView (124.1.1):
- MaterialComponents/Palettes
- MaterialComponents/private/Math
- MDFInternationalization
- MDFInternationalization (2.0.0)
- MiniKeychain (1.0.8)
- MKColorPicker (1.2)
- MotionAnimator (2.8.1):
- MotionInterchange (~> 1.6)
- MotionInterchange (1.6.0)
- MotionAnimator (4.0.1):
- MotionInterchange (~> 3.0)
- MotionInterchange (3.0.0)
- MTColorDistance (0.0.3)
- OpalImagePicker (3.0.0)
- QuickLayout (3.0.0)
Expand All @@ -49,13 +48,12 @@ PODS:
- SwiftEntryKit (1.2.1):
- QuickLayout (= 3.0.0)
- SwiftLinkPreview (3.0.1)
- SwiftLint (0.42.0)
- SwiftLint (0.43.1)
- SwiftyJSON (5.0.0)
- TGPControls (5.1.0)
- YoutubePlayer-in-WKWebView (0.3.5)

DEPENDENCIES:
- Alamofire (~> 4.3)
- DTCoreText (from `https://github.com/Cocoanetics/DTCoreText`)
- LicensesViewController (~> 0.7.0)
- MaterialComponents/ActivityIndicator
Expand All @@ -76,7 +74,6 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- Alamofire
- DTFoundation
- HTMLSpecialCharacters
- LicensesViewController
Expand Down Expand Up @@ -113,13 +110,13 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
DTCoreText:
:commit: 24823e50ec7496b80bd9dd346459136511cfa9d5
:commit: c4cb9c9aa8bf245bcbf270335f02ac440a3f72a3
:git: https://github.com/Cocoanetics/DTCoreText
MKColorPicker:
:commit: e76cd225ff60f12f8ec0052e39e5e307a32c0762
:git: https://github.com/ccrama/MKColorPicker
reddift:
:commit: 79d54d0d00a3b888f766d413ef4a191c4e4c99f7
:commit: bb77a789b94731d0291f1a673f343cbcab13e02c
:git: https://github.com/ccrama/reddift
RLBAlertsPickers:
:commit: a22003f93a803c2e14b193f636669c21358fb1d7
Expand All @@ -135,17 +132,16 @@ CHECKOUT OPTIONS:
:git: https://github.com/ccrama/SwiftyJSON.git

SPEC CHECKSUMS:
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
DTCoreText: ec749e013f2e1f76de5e7c7634642e600a7467ce
DTFoundation: e7781d9fd2f202bfd451fbbf8cab71ce83b46498
HTMLSpecialCharacters: edc707cc4bcdc92eb3b9551de8cff94c1e6f9a19
LicensesViewController: 2f7bba13b3cec7516d4990e41df297720fdbaaab
MaterialComponents: 2cdc12c16528ed7e6f1d5bd6d6927c47f9f4e90f
MaterialComponents: b9f58f24bf74588a83b2dce05802a11aaed5257d
MDFInternationalization: 010097556d6b09d2c4ea38e0820ea6d37be6a314
MiniKeychain: 5d424fcd50fb8ab4cc946db2c3415dc391ffffdc
MKColorPicker: 8998b2ab977e4f240fdf254db27a18b810da3cfc
MotionAnimator: ee16aa30567c5bae0fb2750c132915829cfaaf8a
MotionInterchange: ead0e3ae1f3a5fb539e289debbc7ae036160a10d
MotionAnimator: 5f99d7c9592928c0f28a66283eda9c3b657dc480
MotionInterchange: 13adae439b377e31d1674cc165539d50e1d1566a
MTColorDistance: 5ab8708eb88bc22d4d88e309d09eb912f3a6e27b
OpalImagePicker: 38e772dd93a54431fc516b33e1f337c50f745834
QuickLayout: 07b45a72b10083fee3f095990cfed1c1e7b27f0a
Expand All @@ -155,11 +151,11 @@ SPEC CHECKSUMS:
SubtleVolume: 101038d203018736bcd1df3ac95bcc0f6b8640ce
SwiftEntryKit: 1661b766dd22b07679e6ebb326ccfbd81ceb0a20
SwiftLinkPreview: 7524438c43bf63a5041615713777c3d8f19a9a31
SwiftLint: 4fa9579c63416865179bc416f0a92d55f009600d
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52
SwiftyJSON: f0574c07d8ca1644050db687067209e3033a89a0
TGPControls: 52c0770bee9c9aee364f1559cc627fc01ea5e8b2
YoutubePlayer-in-WKWebView: cfbf46da51d7370662a695a8f351e5fa1d3e1008

PODFILE CHECKSUM: 921cd225b4120efa1cb2e0c32101c3932f6ceb0c
PODFILE CHECKSUM: 11d5327e7fce051cd3b3ec699136a01fb7ad5b71

COCOAPODS: 1.10.0
4 changes: 4 additions & 0 deletions Slide Widgets/Slide Widgets.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
<!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.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.$(USR_DOMAIN).redditslide.prefs</string>
</array>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
24 changes: 23 additions & 1 deletion Slide for Apple Watch Extension/SubmissionRowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class SubmissionRowController: NSObject {
// endString.append(tagString)
// }
//
let boldString = NSMutableAttributedString(string: "r/\(dictionary["subreddit"] ?? "")", attributes: attrs)
let boldString = NSMutableAttributedString(string: (dictionary["subreddit"] as? String ?? "").getSubredditFormatted(), attributes: attrs)

boldString.addAttribute(NSAttributedString.Key.foregroundColor, value: color, range: NSRange.init(location: 0, length: boldString.length))

Expand Down Expand Up @@ -240,3 +240,25 @@ public class SubmissionRowController: NSObject {
self.imageGroup.setCornerRadius(10)
}
}

extension String {
func getSubredditFormatted() -> String {
if self.hasPrefix("/m/") {
return self.replacingOccurrences(of: "/m/", with: "m/")
}

if self.hasPrefix("u_") {
return self.replacingOccurrences(of: "u_", with: "u/")
}

if self.hasPrefix("/r/") {
return self.replacingOccurrences(of: "/r/", with: "r/")
}

if self.hasPrefix("r/") {
return self
} else {
return "r/\(self)"
}
}
}
Loading