Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Documentation and Cleaned up Comment View Controller. #1121

Open
wants to merge 2,695 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2695 commits
Select commit Hold shift + click to select a range
65d7e1d
XCode stuff
ccrama Oct 30, 2020
9e7807d
Fixed layout bugs with LinkCellView
ccrama Oct 30, 2020
321b1e6
Make more constraints required
ccrama Nov 1, 2020
abb6f43
Video loading improvements, Add option to disable Gfycat API
ccrama Nov 1, 2020
d0da1b7
Constraint fixes, Fixed bugs adding swipe from anywhere gesture to Co…
ccrama Nov 2, 2020
4702521
Add new check for endpoint while downloading Reddit videos
ccrama Nov 2, 2020
3951e1e
Improve layout of LinkCellView with a simpler view hierarchy, Fixed s…
ccrama Nov 2, 2020
3b9f7e1
Force shortcuts to reload on settings change
ccrama Nov 2, 2020
c5a5e3f
Fastlane build v6.0.9
ccrama Nov 2, 2020
0149f7a
Added Documentation and Cleaned up Comment View Controller along with…
Josiah-Agosto Nov 3, 2020
4ae7ebd
Fixing some Signing Issues.
Josiah-Agosto Nov 4, 2020
497f759
Some more signing Issues.
Josiah-Agosto Nov 4, 2020
cd9f8a7
And more signing.
Josiah-Agosto Nov 4, 2020
4ee37f0
And again.
Josiah-Agosto Nov 4, 2020
f0ff637
Mhmm.
Josiah-Agosto Nov 4, 2020
0cd3d99
And again.
Josiah-Agosto Nov 4, 2020
2029035
Fix bundle identifiers, correctly use USR_BASE_IDENTIFIER
colejd Nov 4, 2020
10c3e28
Added 'Sign in with Apple' option to Login page
ccrama Nov 9, 2020
f8496d9
Cleaned up Sign in with Apple code
ccrama Nov 9, 2020
fd568b0
Made Sign in with Apple nicer
ccrama Nov 9, 2020
1325232
Fixed frontpage Slide Widgets
ccrama Nov 9, 2020
3002b7f
Fixed downloading videos from 3D touch
ccrama Nov 9, 2020
5172322
Fixed layout issues with card padding on ios 13 and below
ccrama Nov 9, 2020
525f169
Fixed pausing videos in AnyModalVC, Rotation bug fixes with SplitVC, …
ccrama Nov 10, 2020
d75352c
Merge branch 'develop' into documentation_refactoring
Josiah-Agosto Nov 10, 2020
119de98
Fixed rotation in Comments VC
ccrama Nov 10, 2020
078b7f2
Fixed searching temporarily getting rid of subreddit colors
ccrama Nov 10, 2020
f1fa678
Fixed searching temporarily getting rid of subreddit colors
ccrama Nov 10, 2020
a82b902
Merge branch 'develop' into documentation_refactoring
Josiah-Agosto Nov 10, 2020
cf7bcdb
Fixed r/all filters applying to ContentListingVC
ccrama Nov 10, 2020
8252048
Don't show comments from blocked users
ccrama Nov 10, 2020
dfdc124
Merge branch 'develop' into documentation_refactoring
Josiah-Agosto Nov 10, 2020
6160dea
Support new Font API, Update Settings Font
ccrama Nov 10, 2020
4545d9a
Initial implementation of new Awards container for links
ccrama Nov 11, 2020
fc62ad2
Added new constraints for Awards view
ccrama Nov 11, 2020
7afb75f
Award view design tweaks
ccrama Nov 11, 2020
2e7117c
Fixed broken Award view constraints
ccrama Nov 11, 2020
9bf6933
More constraint fixes, Added new popup showing all awards
ccrama Nov 11, 2020
a6d38a7
Constraint and LinkCellView height estimation improvements
ccrama Nov 11, 2020
6384f8a
More improvements to Awards views
ccrama Nov 11, 2020
4cf631e
More height estimation fixes for Right/Left Actionbar modes
ccrama Nov 11, 2020
be482c6
Fixed layout bug with post awards hidden
ccrama Nov 11, 2020
9e8a412
Fixed rewind and fast forward on YouTube videos
ccrama Nov 11, 2020
d4d4865
Fixed YouTube not playing when other AV Session videos were playing
ccrama Nov 11, 2020
ba642b9
Merge branch 'develop' of https://github.com/ryannair05/Slide-iOS int…
ccrama Nov 11, 2020
5f4bade
Merge branch 'ryannair05-develop' into develop
ccrama Nov 11, 2020
df87060
Fixed size of fast forward/rewind indicators
ccrama Nov 11, 2020
2e30235
Update build number and version for 6.0.10
ccrama Nov 11, 2020
fafd80e
Fixed entitlement issue
ccrama Nov 11, 2020
ea4123e
Fixed corrupt Git repo
ccrama Nov 16, 2020
a950988
Fixed Shortened Image mode, Fixed frontpage widget
ccrama Nov 17, 2020
42bcce2
Revamp of Moderation panel, Support for Mod Logs
ccrama Nov 18, 2020
9986f06
Fixed support for multireddits with spaces, Added multiredd icons
ccrama Nov 18, 2020
8eeded6
Fixed support for multireddits with spaces, Added multiredd icons
ccrama Nov 18, 2020
c610ae3
Show higher quality awards on awards menu
ccrama Nov 18, 2020
222a454
Fixed iPad theme race condition (more of a bandaid), Other bug fixes
ccrama Nov 18, 2020
27d8d18
Update pods
ccrama Nov 18, 2020
49fb532
Initial performance improvements, Reduce blended layers
ccrama Nov 18, 2020
62b163a
Initial code replacing YYTextView with UITextView for LinkCellView
ccrama Nov 19, 2020
509c4f1
Fixed image corner radii
ccrama Nov 19, 2020
a3c08a8
Load images into UITextView async, Fixed height estimation for Cached…
ccrama Nov 19, 2020
5c35b0a
Fixed cut off titles in submission lists, New LayoutManager for text …
ccrama Nov 20, 2020
77bafe8
Fixed some gesture bugs
ccrama Nov 20, 2020
d15ec6a
Fixed awards
ccrama Nov 20, 2020
77087d3
Added tap interactions with custom UITextView
ccrama Nov 20, 2020
af5ce8d
Fixed author tap interactions on submission titles
ccrama Nov 20, 2020
2223594
Fixed In App Purchase restore issue
ccrama Nov 20, 2020
091ddbc
Update SettingsLayout.swift
HiRoS-neko Nov 20, 2020
f5f6ffd
Fixed some bugs with Reddit keyColors, Fixed bug in Settings > Font
ccrama Nov 20, 2020
c5c5f2d
Fixed image attachments in title view
ccrama Nov 21, 2020
98f1e80
Fixed shortened image mode, Improved layout of FullLinkCellView
ccrama Nov 21, 2020
449f5fc
Fixed SplitMainVC from being evicted from pushableViewControllers
ccrama Nov 21, 2020
9dec132
Fixed SelfText image preview setting
ccrama Nov 21, 2020
05fee3d
More height estimation fixes
ccrama Nov 21, 2020
41d45c3
Minor cleanup
ccrama Nov 21, 2020
b6f6992
New option to reduce elevation
ccrama Nov 21, 2020
d3ebbcc
Fixed pausing videos on ContentListingVC
ccrama Nov 21, 2020
5ce0e7a
New option to disable Sidebar reset
ccrama Nov 21, 2020
0651f83
Merge pull request #1126 from HiRoS-neko/patch-1
ccrama Nov 21, 2020
edbe249
Fixed tap target on awards attributed string, Improved sizing of awards
ccrama Nov 22, 2020
00ab365
Fixed tag sizes for baselined fonts
ccrama Nov 22, 2020
9e407b2
Final scrolling improvements
ccrama Nov 22, 2020
6691b28
Merge pull request #1128 from ccrama/performance_improvements
ccrama Nov 23, 2020
d48e185
Some improvements to Apple Watch connectivity, Other fixes
ccrama Nov 23, 2020
4142bf7
XCode changes
ccrama Nov 23, 2020
977c590
Final bug fixes, Improvements to AW connectivity, update gitignore
ccrama Nov 23, 2020
01d60e0
Add SwiftLint warning for slow Anchorage syntax
colejd Nov 23, 2020
a363e53
Resolve warnings introduced by new SwiftLint rule for Anchorage syntax
colejd Nov 23, 2020
111a76e
Temp fix for iPad theme changes bug, Fixed crashes with BAD_ACCESS on…
ccrama Nov 23, 2020
fa63b0a
Merge branch 'develop' into documentation_refactoring
Josiah-Agosto Nov 24, 2020
02c6c4b
Save AsyncTextAttachment rounded image separately, Fixed bug in Setti…
ccrama Nov 24, 2020
2dd32ca
Fixed color chooser iOS 12, Fixed non-called AppDelegate methods on p…
ccrama Nov 24, 2020
5f405b8
Merge branch 'develop' into documentation_refactoring
Josiah-Agosto Nov 24, 2020
d386306
Update CommentViewController+UIGestureRecognizerDelegate.swift
Josiah-Agosto Nov 24, 2020
3db0920
Merge remote-tracking branch 'refs/remotes/upstream/develop'
Josiah-Agosto Nov 24, 2020
6a6fb87
Update CommentViewController.swift
Josiah-Agosto Nov 24, 2020
94a215c
6.0.11 Build Numbebr bump
ccrama Nov 24, 2020
0795fdf
Fixed iOS 13+ AppDelegate bugs, Added support for Image Flairs and Co…
ccrama Dec 1, 2020
02b247e
Fixed disabled cells in Card Layout settings
ccrama Dec 1, 2020
d467902
Fixed crashes when picking colors on iOS 11 and 12
ccrama Dec 1, 2020
9745376
Merge branch 'new_flairs' into develop
ccrama Dec 1, 2020
f2d3a4b
Reverted to images instead of AsyncTextAttachment due to animated ima…
ccrama Dec 2, 2020
3e29229
Fixed image preloading
ccrama Dec 2, 2020
492a9ae
Fixed crossposted Reddit Galleries
ccrama Dec 2, 2020
c6ed567
Fixed flair positioning in FullLinkCellView
ccrama Dec 2, 2020
2d6404a
Fixed unescaped flair text
ccrama Dec 2, 2020
3cd8cb1
Fixed height estimation with short image setting
ccrama Dec 2, 2020
971e268
Update README.md
ccrama Dec 4, 2020
fb5e364
Update README.md
ccrama Dec 4, 2020
2e62fa5
Build number 6.0.12, Add more support for Slide on M1
ccrama Dec 5, 2020
a0ba470
Memory improvements
ccrama Dec 9, 2020
6a87323
Memory and performance improvements
ccrama Dec 10, 2020
8174e60
Don't try to load .gif Reddit previews, Load smaller Reddit previews
ccrama Dec 10, 2020
043a92d
Made parent weak in SingleSubVC, Build for 6.0.12.5
ccrama Dec 10, 2020
1b8d3bc
Version number change to 6.0.13
ccrama Dec 10, 2020
9ddf6bc
Initial model creation
ccrama Dec 6, 2020
e4ef284
More cleanup, Removed RealmSwift
ccrama Dec 6, 2020
7469c71
XCWorkspace cleanup, More conversion
ccrama Dec 7, 2020
77eaa0f
More conversion, below 200 issues now\!
ccrama Dec 7, 2020
76f1b68
Fixed rest of conversion, Still missing some attributes in Reddit.xcd…
ccrama Dec 7, 2020
4d152d4
Final conversion, Temporarily disabled many offline data methods unti…
ccrama Dec 7, 2020
50283fd
Use merging policy for SlideCoreData, Use background managed context …
ccrama Dec 7, 2020
c415ff3
Fixed ID issues with MoreModel
ccrama Dec 7, 2020
f6e9849
Forced SlideCoreData save on Comment/Submission loads
ccrama Dec 7, 2020
47f7ef0
Abstracted RedditObject out of CoreData stack, Need to write conversi…
ccrama Dec 8, 2020
5c7acd1
Some warning cleanup
ccrama Dec 8, 2020
8740ccb
Set up initial Cachable protocol for views to save states into CoreDa…
ccrama Dec 8, 2020
dfe3e3d
Improve merge policies for CoreData, update CD objects if they exist
ccrama Dec 8, 2020
edb31ea
Offline mode improvements
ccrama Dec 9, 2020
ad93da0
Memory improvements
ccrama Dec 9, 2020
b391281
Rewrite of AutoCache
ccrama Dec 10, 2020
69bf9c7
More AutoCache improvements, Fixed duplicated records in SubmissionDa…
ccrama Dec 11, 2020
ae00aff
More AutoCache improvements, Fixed duplicated records in SubmissionDa…
ccrama Dec 11, 2020
c2beefa
Improved CoreData tests using Reflection, Added CommentObject tests, …
ccrama Dec 12, 2020
905f987
Create core_data_tests.yml
ccrama Dec 12, 2020
0ec7726
More support for Github Actions CI, Enable Danger and Mint for linting
ccrama Dec 12, 2020
c90d225
More support for Github Actions CI, Enable Danger and Mint for linting
ccrama Dec 12, 2020
c15fa9a
Update bootstrap.sh
ccrama Dec 12, 2020
c2c9feb
Update README.md
ccrama Dec 12, 2020
db3dcda
Downgrade Bundler
ccrama Dec 12, 2020
28b65f5
Update bootstrap.sh
ccrama Dec 12, 2020
86ccbba
Update bootstrap.sh
ccrama Dec 12, 2020
98fbd2d
Install Danger
ccrama Dec 12, 2020
b436c0f
Add Dangerfile
ccrama Dec 12, 2020
9b3456b
Merge branch 'develop' into core_data_rewrite
ccrama Dec 12, 2020
85e5d6f
Add Danger to Gemfile
ccrama Dec 12, 2020
48684c8
Update bootstrap.sh
ccrama Dec 12, 2020
25d60bd
Update Gemfile
ccrama Dec 12, 2020
88a2097
Merge branch 'develop' into core_data_rewrite
ccrama Dec 12, 2020
dd2095c
Update core_data_tests.yml
ccrama Dec 12, 2020
4874aca
Update Gemfile
ccrama Dec 12, 2020
b8c7c6e
Merge pull request #1140 from ccrama/update_ci_caches
ccrama Dec 12, 2020
2bc2971
Disable Danger comments for now
ccrama Dec 12, 2020
e4e678c
Update core_data_tests.yml
ccrama Dec 12, 2020
4bc6162
Lots of lint cleanup, Update MaterialTabs
ccrama Dec 12, 2020
2f923a7
Update core_data_tests.yml
ccrama Dec 12, 2020
b9fad03
Enable CI for PRs on any branch
ccrama Dec 12, 2020
d01bb89
Update core_data_tests.yml
ccrama Dec 12, 2020
caef766
Update core_data_tests.yml
ccrama Dec 12, 2020
39bcc31
Fixed failing build
ccrama Dec 12, 2020
6b39a94
Merge pull request #1141 from ccrama/pods_in_CI
ccrama Dec 12, 2020
d4baccc
More warning fixes, Pod update
ccrama Dec 12, 2020
0debef0
Fix SFSafariViewController config for iOS 11+
ccrama Dec 13, 2020
e58df52
Finished Warning cleanup where possible
ccrama Dec 13, 2020
7b1bf9a
Update SwiftLint to ignore Pods and CoreData generated code
ccrama Dec 13, 2020
8877dee
Update core_data_tests.yml
ccrama Dec 13, 2020
fcefa93
Removed un-used CoreData models
ccrama Dec 13, 2020
dcc7bf7
Update core_data_tests.yml
ccrama Dec 13, 2020
0f5baea
Hopefully fixes fastlane linting CoreData models on CI
ccrama Dec 13, 2020
472790e
Force fastlane to use swiftlint
ccrama Dec 13, 2020
c485db9
Added menu to cancel current AutoCache
ccrama Dec 13, 2020
63b4345
(Hopefully) stops CI from breaking due to CoreData generated files
ccrama Dec 13, 2020
a61adfc
Don't except on control_statement violations
ccrama Dec 13, 2020
9b045c8
Cache SPM for CI
ccrama Dec 13, 2020
c2ac491
Fixed all SwiftLint violations
ccrama Dec 13, 2020
81efc45
Started replacement of MDC Tab Bars with custom implementation
ccrama Dec 14, 2020
d875ea0
Added a new 'Desktop Mode' which sticks the sidebar at all times, Imp…
ccrama Dec 14, 2020
e042e5e
Brought new menu interaction to CommentDepthCell
ccrama Dec 14, 2020
aaea4e4
Improvements to Comments and Link menus, Improved Desktop Mode
ccrama Dec 14, 2020
7b1dee4
Fixed theme issues on NavigationHomeVC
ccrama Dec 14, 2020
e697bf9
Add timeout to CI
ccrama Dec 14, 2020
e3ba98e
Fixed getting More comments
ccrama Dec 14, 2020
cf2f42d
Fixed Gallery title icons
ccrama Dec 14, 2020
91a50e5
Goodbye, MDC Tab Bars
ccrama Dec 14, 2020
c54319f
Add SwiftLint warnings for leftover Swift version migrator functions
colejd Dec 14, 2020
37b8269
Remove weak_delegate rule from SwiftLint exceptions
colejd Dec 14, 2020
cbb0f46
Fixed Profile bugs
ccrama Dec 14, 2020
6591922
Start of fixing new SwiftLint errors
ccrama Dec 14, 2020
517709e
LinkParser fixes
ccrama Dec 15, 2020
1c2e5cf
Be gone, YYText
ccrama Dec 15, 2020
39143fa
Got link handling on CommentDepthCell to a usable state, Need to conv…
ccrama Dec 16, 2020
1a6ffca
Moved new preview code to LinkCellView, Added new ProfilePreviewVC
ccrama Dec 16, 2020
103d69e
Fixed text views to support UIContextInteractions
ccrama Dec 16, 2020
8d02c5a
Fixed height constraints in TDSV, Fixed quote views
ccrama Dec 16, 2020
6ed5860
Fixed quote height estimation, Fixed table display
ccrama Dec 16, 2020
e616bd3
Fixed tapping at the top of CommentDepthCell
ccrama Dec 17, 2020
b085fff
Better context menu preview creation and interaction
ccrama Dec 17, 2020
a11e778
Complete refactor of non link/comment cells
ccrama Dec 17, 2020
6c8ac21
Code cleanup
ccrama Dec 17, 2020
8316c54
Fixed crashing on new cells
ccrama Dec 17, 2020
fb1d86d
Fix superscript
colejd Dec 17, 2020
f8a82d7
Replace only relevant attributes when fixing superscript
colejd Dec 17, 2020
c0a1119
Show relevant user actions for profile content preview
ccrama Dec 17, 2020
c5186c9
Complete redesign of CommentCellView
ccrama Dec 18, 2020
9e0c042
Complete redesign of MessageCellView
ccrama Dec 18, 2020
f73a80e
Complete refactor of day/night theming, Breaks iOS 11 and 12 night mode
ccrama Dec 18, 2020
16e69f1
Fixed multi-quotes breaking TDSV
ccrama Dec 18, 2020
1c4c30e
Fixed 'Loading...' on More cells
ccrama Dec 18, 2020
98ad47c
Fix iOS 11 and 12 support
ccrama Dec 18, 2020
6179745
Fixed Swift Lint errors
ccrama Dec 18, 2020
1b19101
Fixed thumbnail images not changing colors with theme
ccrama Dec 18, 2020
f37f9df
Bug fixes, Fixed scrolling tables/code blocks on comments without int…
ccrama Dec 19, 2020
fedc529
Update CommentViewController.swift
ccrama Dec 19, 2020
1707cce
Fixed Comments gestures
ccrama Dec 19, 2020
3b273ed
Merge pull request #1144 from ccrama/replace_yytext
ccrama Dec 19, 2020
25b8ae4
Merge branch 'core_data_rewrite' into desktop_mode
ccrama Dec 19, 2020
7a0ced2
Fixed merge conflicts
ccrama Dec 19, 2020
9eff211
Fixed changes from replace_yytext
ccrama Dec 19, 2020
974ec79
Fixed Desktop Mode hiding sidebar on MultiColumn mode, Added comment …
ccrama Dec 19, 2020
65b5662
Preview color improvements
ccrama Dec 19, 2020
a4bc64b
Fixed crash calculating rects for preview
ccrama Dec 19, 2020
16af30b
Code cleanup
ccrama Dec 19, 2020
477db1f
Added new user menu to Comments
ccrama Dec 19, 2020
8625057
Bug fix
ccrama Dec 19, 2020
f2b3438
Fixed PostFilter matching previous links
ccrama Dec 19, 2020
f4f1f96
Fixed incorrect frame calculation for previews
ccrama Dec 19, 2020
4ed196d
Fixed a few theme issues on iOS 11 and 12
ccrama Dec 19, 2020
757d2c8
Added v7 Onboarding, TF info
ccrama Dec 23, 2020
9391e32
Load low quality Reddit previews, until tapped, and then load high-qu…
ccrama Dec 23, 2020
7a605bc
Flair overhaul for sidebar and new submissions, Added subreddit rules…
ccrama Dec 24, 2020
3d52406
Fixed disabling night mode
ccrama Dec 24, 2020
e213929
Fixed image loading while offline
ccrama Dec 27, 2020
06d12fe
v7 TestFlight build update
ccrama Dec 27, 2020
bf3c60b
Fixed extra spacing before rendered quotes, Fixed videoview not swipi…
ccrama Dec 29, 2020
8d310f6
Merge remote-tracking branch 'refs/remotes/origin/develop'
Josiah-Agosto Dec 30, 2020
091e108
Refactoring some files in Comment VC.
Josiah-Agosto Jan 5, 2021
6064d60
Bug fixes, Fixed buttons on Inbox and Profile pages, Fixed offset cha…
ccrama Jan 8, 2021
7d231bf
Fixed paragraph spacing issues
ccrama Jan 8, 2021
9eaec0b
Bug fixed, Improved profile/inbox layouts, Improved text triming for …
ccrama Jan 9, 2021
9808eaa
Merge pull request #1142 from ccrama/desktop_mode
ccrama Jan 10, 2021
7e02cdb
Update version number for v7 TF 2, Add build for M1
ccrama Jan 10, 2021
70c27b9
Clean up old build folder
ccrama Jan 10, 2021
d8a854e
Support Git Large Objects, Include build 217 ipa
ccrama Jan 10, 2021
00b3780
Podfile update, Fix CI
ccrama Jan 13, 2021
da120b6
Updating this branch.
Josiah-Agosto Jan 15, 2021
d5c1a16
Pulling in core_data_rewrite.
Josiah-Agosto Jan 15, 2021
0f72301
Update SubredditToolbarSearchViewController.swift
Josiah-Agosto Jan 15, 2021
8e5f65b
Merge remote-tracking branch 'upstream/core_data_rewrite' into core_d…
Josiah-Agosto Jan 15, 2021
2f1af1f
Merge branch 'core_data_rewrite' into documentation_refactoring
Josiah-Agosto Jan 15, 2021
7b15473
Update CommentViewController.swift
Josiah-Agosto Jan 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.pbxproj merge=union
*.pbxproj filter=filter-credentials
"Slide for Reddit/Info.plist" filter=filter-credentials
*.ipa filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [ccrama] #If any contributor wants to add themselves here, please let me know!
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=56FKCCYLX7L72
94 changes: 94 additions & 0 deletions .github/workflows/beta-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
tags:
- beta-*

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macOS-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Force Xcode 12.0
run: sudo xcode-select -switch /Applications/Xcode_12.0.app

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Install bundles if no cache
- name: Move to checked out directory
run: |
ls -la
cd $GITHUB_WORKSPACE

# Use cached ruby bundles if available
- uses: actions/cache@v1
id: cache-bundles
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-

# Install bundles if no cache
- name: Install bundles
if: steps.cache-bundles.outputs.cache-hit != 'true'
run: bundle install

# Use cached pods if available
- uses: actions/cache@v2
id: cache-pods
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-

# Install pods if no cache
- name: Install pods
if: steps.cache-pods.outputs.cache-hit != 'true'
run: pod install

# Restore cached SwiftPM packages if available
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-

# https://github.community/t/ios-code-signing-provisioning/16614/4
# https://github.com/hashicorp/terraform-github-actions/issues/39
- name: Setup SSH Keys and known_hosts for fastlane match
env:
PRIVATE_KEY: ${{ secrets.MATCH_DEPLOY_PRIVATE_KEY }}
# Copied from https://github.com/maddox/actions/blob/master/ssh/entrypoint.sh
run: |
echo Force SSH connection
git config --global --add url."git@github.com:".insteadOf "https://github.com/"
echo Setup Github credentials
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"

SSH_PATH="$HOME/.ssh"
mkdir -p "$SSH_PATH"
touch "$SSH_PATH/known_hosts"
echo "$PRIVATE_KEY" > "$SSH_PATH/id_rsa"
chmod 700 "$SSH_PATH"
ssh-keyscan github.com >> ~/.ssh/known_hosts
chmod 600 "$SSH_PATH/known_hosts"
chmod 600 "$SSH_PATH/id_rsa"
eval $(ssh-agent)
ssh-add "$SSH_PATH/id_rsa"

- name: Fastlane Action
run: bundle exec fastlane beta --verbose
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
52 changes: 52 additions & 0 deletions .github/workflows/core_data_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
pull_request:
branches-ignore: #All branches
- ignore
jobs:
validate-and-test:
runs-on: macOS-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache RubyGems
uses: actions/cache@v2.1.3
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Cache Pods
uses: actions/cache@v2.1.3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Cache Mint packages
uses: actions/cache@v2.1.3
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: |
${{ runner.os }}-mint-
- name: Cache Swift Package Manager
uses: actions/cache@v2.1.3
with:
path: .build
key: ${{ runner.os }}-spm-${{ github.workspace }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-${{ github.workspace }}
- name: Install dependencies
run: |
sh ./bootstrap.sh
pod install
- name: Run code validation
run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_TOKEN }}
- name: Run tests
run: bundle exec fastlane scan
env:
MINT_PATH: ${{ github.workspace }}/min
92 changes: 90 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,92 @@
fastlane/report.xml
ProfilingArtifacts/

# Xcode workspace user data
Slide\ for\ Reddit.xcworkspace/
.DS_Store
# Slide\ for\ Reddit.xcworkspace/
# .DS_Store
# Pods/*


# Created by https://www.gitignore.io/api/xcode,macos,cocoapods
# Edit at https://www.gitignore.io/?templates=xcode,macos,cocoapods

### CocoaPods ###
## CocoaPods GitIgnore Template

# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
# - Also handy if you have a large number of dependant pods
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
Pods/

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.dSYM.zip

## Build Stuff
DistributionSummary.plist
ExportOptions.plist
Packaging.log

## Xcode Patch
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

Slide for Reddit.xcodeproj/xcuserdata/*

### Xcode Patch ###
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.gitignore.io/api/xcode,macos,cocoapods
Loading