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 Fallback Network Monitor. #1122

Open
wants to merge 2,590 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2590 commits
Select commit Hold shift + click to select a range
ad23776
Fixed onboarding changelog order
ccrama Sep 23, 2020
fc04a22
Fastlane build, Fixed default sub colors
ccrama Sep 26, 2020
a9019ae
Onboarding improvements
ccrama Sep 26, 2020
1794201
Shadowbox bug fixes
ccrama Sep 26, 2020
fbd1657
Added new icons
ccrama Sep 26, 2020
52cd917
Fixed multi sub theme chooser
ccrama Sep 26, 2020
5a86677
Added one more icon
ccrama Sep 26, 2020
5d0524e
Fastlane build, Fixed non-minimal mode colors
ccrama Sep 27, 2020
219511b
Added new options for iPad to disable popups and disable multi-column…
ccrama Sep 27, 2020
dc578b6
Fixed app reloading theme for no reason
ccrama Sep 27, 2020
5be6798
Fixed notifications on iOS 13 +
ccrama Sep 27, 2020
c4c0195
Create high-quality community icon and tooling for icon creation
colejd Sep 28, 2020
0faea94
Use subtitle style for icon selection table view cells
colejd Sep 28, 2020
75169b4
Fixed switching dark mode
ccrama Sep 29, 2020
80d789f
Merge pull request #1107 from ccrama/feature/colejd/high-quality-icon
ccrama Sep 29, 2020
116d1cc
Revamp of Settings > General
ccrama Sep 29, 2020
e03522a
More settings wording improvements
ccrama Sep 30, 2020
89d22d8
Pro screen improvements
ccrama Sep 30, 2020
5f7b03b
Bug fixes
ccrama Oct 3, 2020
d59d6a5
Start of re-configuring Slide Favorite Subs widget to use dynamic Sir…
ccrama Oct 4, 2020
160cc59
Rewrite of subreddit intents for all widgets, Added new settings page…
ccrama Oct 4, 2020
36ec21d
Added no color option for widgets, Widget UI improvements, bug fixes
ccrama Oct 4, 2020
13ad8bc
Added a new 'Tiled' posts widget variant
ccrama Oct 5, 2020
41a88cb
Added new 'Account Stats' widget
ccrama Oct 5, 2020
70f2df3
Fastlane fixes
ccrama Oct 5, 2020
29d51e7
Fastlane push
ccrama Oct 6, 2020
e6662b0
Fixed incorrect VC selection in MainVC
ccrama Oct 7, 2020
b7789c5
Update WidgetConfigIntent (@colejd)
ccrama Oct 7, 2020
80be368
Widget sizing improvements
ccrama Oct 7, 2020
1aca3f2
Got some more lines in the Hot Posts widget
ccrama Oct 7, 2020
429b657
Fixed some widget spacing issues
ccrama Oct 7, 2020
765c163
Reduce header size in Hot Posts list widget
ccrama Oct 7, 2020
1d8a020
Sync colors from Slide to widget extension
ccrama Oct 7, 2020
11f3752
Added synced colors to Favorite Subreddits widget
ccrama Oct 7, 2020
4340c06
Fixed multireddit widget coloring
ccrama Oct 7, 2020
ff9a4fe
Widget sizing improvements, colored toolbar fixes, Fastlane build
ccrama Oct 7, 2020
d0661de
Don't show stickied posts on widgets
ccrama Oct 7, 2020
982e5c7
Fixed right padding on tile widget
ccrama Oct 7, 2020
a9cb649
Fastlane build (v6 final buildgit add .)
ccrama Oct 14, 2020
93800d2
Fixed homebar not hiding, Other v6 bug fixes
ccrama Oct 14, 2020
99ed91e
Fixed a lot of pre-iOS 13 bugs
ccrama Oct 15, 2020
24c0865
Fixed pro restore
ccrama Oct 15, 2020
2218b36
More bug fixes
ccrama Oct 15, 2020
38d8eca
Fixed wrong subreddit menu on SplitMainVC
ccrama Oct 15, 2020
9d41440
Fixed bugs related to wrong SingleSubVC variable
ccrama Oct 15, 2020
db22d0e
Fixed logical error, Fastlane build
ccrama Oct 15, 2020
35dde32
More Submission Data Source improvements
ccrama Oct 15, 2020
084413c
Move extensions into own file
colejd Oct 16, 2020
6c55fc0
Consolidate stack reset into one method, always hard reset
colejd Oct 16, 2020
79a004e
More simplification
colejd Oct 16, 2020
c74e1ab
Move preferredDisplayMode setup into SplitMainVC
colejd Oct 16, 2020
a2d7320
Fix crash on double column layouts
colejd Oct 16, 2020
9b771e3
Move more configuration logic into SplitMainVC
colejd Oct 16, 2020
150e4de
Fixed portrait mode on iPad, fixed iOS 12 sidebar issues
ccrama Oct 18, 2020
a8cabe1
Realm temp fixes (until CoreData rewrite)
ccrama Oct 19, 2020
7fab26c
Stop shortcuts from breaking replies
ccrama Oct 19, 2020
6899e44
Fixed split and slide-over mode on iPad
ccrama Oct 19, 2020
c861af8
Fixed recursive loop of viewWillTransition
ccrama Oct 19, 2020
c624437
Improvements to iPad split behavior
ccrama Oct 19, 2020
cb1486b
Fixed merge conflicts
ccrama Oct 19, 2020
6395043
Run split layout on AppDelegate start
ccrama Oct 19, 2020
620e168
Fixed iPad issues on iOS 12/13
ccrama Oct 20, 2020
6d1f4fa
Merge branch 'task/colejd/nav-stack-cleanup' into develop
ccrama Oct 20, 2020
dc77f57
Bug fixes, New option for portrait multi-column and Show Subreddits F…
ccrama Oct 20, 2020
bf45760
Bug fixes
ccrama Oct 20, 2020
31a82d9
Fixed cut off statusbar iPhone
ccrama Oct 20, 2020
f3e13c7
Fixed cut off content iPhone
ccrama Oct 20, 2020
1cfdf63
Bug fixes, Added original Reddit search back to sidebar
ccrama Oct 20, 2020
a0caeee
Fixed audio downloads on v.redd.it
ccrama Oct 20, 2020
8bb0ada
Fixed audio downloads on VideoMediaVC
ccrama Oct 20, 2020
735faea
Disable update dialog for upgrades from previous v6 builds
ccrama Oct 20, 2020
b787d32
Update realm, fix inability to clear cache
ccrama Oct 20, 2020
6c92962
Update version number, Fix more Split View bugs
ccrama Oct 20, 2020
bcbbce4
More v6 bug fixes, Fastlane build number increment
ccrama Oct 21, 2020
0fd8f5e
Fixed layout endless loop on submissions, Fixed comments not loading …
ccrama Oct 21, 2020
fd957ab
Update build number for 6.0.8
ccrama Oct 21, 2020
2683af0
Fixed iOS 14 triple pane layout bugs
ccrama Oct 21, 2020
40d7a1b
Update README.md
ccrama Oct 22, 2020
4f7d74b
Improved video loading in LinkCellView, added cache for videos access…
ccrama Oct 26, 2020
d886082
Added new gestures option to disable paging
ccrama Oct 26, 2020
20f0780
Swipe gestures improvements
ccrama Oct 26, 2020
d3af3cc
Improved swipe back on comments VC
ccrama Oct 26, 2020
700e57a
Added back Slide Shortcuts for logged out users
ccrama Oct 26, 2020
8104adc
Fixed some layout issues with NavHomeVC empty state view
ccrama Oct 26, 2020
b7bdfad
Use user frontpage on Slide Widgets
ccrama Oct 26, 2020
c2648d8
Fixed non-frontpage widgets
ccrama Oct 26, 2020
de066f1
More gif improvements
ccrama Oct 27, 2020
8f06c74
Fixed split view behavior pre-iOS 14, Cleaned up old split code
ccrama Oct 27, 2020
28891c0
Added new 'Short Image' mode
ccrama Oct 27, 2020
38cb08c
Fixed layoutSubviews infinite loop in LinkCellView
ccrama Oct 27, 2020
6b84980
Fixed blocking users, Show blocked users on Reddit.com in Settings > …
ccrama Oct 27, 2020
322b902
Short Image mode improvements, Improvements to LinkCellView displayLi…
ccrama Oct 28, 2020
bbb161f
Refactor of custom buttons, Increase tap target across app, Slight re…
ccrama Oct 28, 2020
f90441a
Fixed some theme issues
ccrama Oct 28, 2020
6fe222d
Improve compile times with new Anchorage syntax
colejd Oct 28, 2020
7e1c277
Merge pull request #1118 from ccrama/feature/colejd/improve-compile-t…
ccrama Oct 29, 2020
559372d
Start of Trending page integration
ccrama Oct 29, 2020
da9d0e2
Finalized design for Trending page, added in tap actions to Trending …
ccrama Oct 29, 2020
7aaef17
Use new Anchorage syntax on Trending page
ccrama Oct 29, 2020
a4133cf
Fixed == in Trending page
ccrama Oct 29, 2020
cac2656
Fixed video handling in AnyModalVC
ccrama Oct 29, 2020
621a046
Force @ccrama to update his Cocoapods installation
colejd Oct 29, 2020
ab772e2
Use new-new Anchorage syntax
colejd Oct 29, 2020
0f448ba
Update to Anchorage 4.5.0 release
colejd Oct 30, 2020
6334878
Fixed wrong height estimation for LinkCellView
ccrama Oct 30, 2020
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
4e11fb2
Adding Network Monitor.
Josiah-Agosto Nov 4, 2020
2029035
Fix bundle identifiers, correctly use USR_BASE_IDENTIFIER
colejd Nov 4, 2020
5aa0ca2
Adding Fallback Network Monitor.
Josiah-Agosto 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
9b7cabd
Merge branch 'develop' into network_monitor
Josiah-Agosto Nov 10, 2020
5dbcd10
Merge branch 'develop' into fallback_network_monitor
Josiah-Agosto 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
40693f4
Merge branch 'develop' into network_monitor
Josiah-Agosto Nov 10, 2020
214b2eb
Merge branch 'develop' into fallback_network_monitor
Josiah-Agosto 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
ff1bfe9
Merge branch 'develop' into network_monitor
Josiah-Agosto Nov 10, 2020
e5b8150
Merge branch 'develop' into fallback_network_monitor
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
6ce1236
Merge branch 'develop' into network_monitor
Josiah-Agosto Nov 24, 2020
3e0a03f
Update CommentViewController+UIGestureRecognizerDelegate.swift
Josiah-Agosto Nov 24, 2020
13bb31c
Merge branch 'develop' into fallback_network_monitor
Josiah-Agosto Nov 24, 2020
873bcc8
Update CommentViewController+UIGestureRecognizerDelegate.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
905f987
Create core_data_tests.yml
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
98fbd2d
Install Danger
ccrama Dec 12, 2020
b436c0f
Add Dangerfile
ccrama Dec 12, 2020
85e5d6f
Add Danger to Gemfile
ccrama Dec 12, 2020
48684c8
Update bootstrap.sh
ccrama Dec 12, 2020
b7e0bc8
Update Slide for Apple Watch.xcscheme
Josiah-Agosto Dec 29, 2020
8d310f6
Merge remote-tracking branch 'refs/remotes/origin/develop'
Josiah-Agosto Dec 30, 2020
d8f24b7
Merge branch 'documentation_refactoring' into network_monitor
Josiah-Agosto Dec 30, 2020
1f144ac
Merge branch 'network_monitor' into fallback_network_monitor
Josiah-Agosto Dec 30, 2020
091e108
Refactoring some files in Comment VC.
Josiah-Agosto Jan 5, 2021
40fb25f
Merge branch 'documentation_refactoring' into network_monitor
Josiah-Agosto Jan 5, 2021
3da0038
Updating this branch from documentation_refactoring.
Josiah-Agosto Jan 5, 2021
afb3f89
Unchecking install for builds only.
Josiah-Agosto Jan 5, 2021
78339f6
Fixing some minor issues.
Josiah-Agosto Jan 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj merge=union
*.pbxproj filter=filter-credentials
"Slide for Reddit/Info.plist" filter=filter-credentials
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 }}
33 changes: 33 additions & 0 deletions .github/workflows/core_data_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
pull_request:
branches:
- develop
jobs:
validate-and-test:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache RubyGems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gem-
- name: Cache Mint packages
uses: actions/cache@v1
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Install dependencies
run: sh ./bootstrap.sh
- 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
88 changes: 86 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,88 @@
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
*.ipa
*.dSYM.zip

## 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