Skip to content

Commit 65df0c4

Browse files
committed
Merge branch 'release/1.6.0'
2 parents daae5be + 87028b9 commit 65df0c4

File tree

185 files changed

+4944
-5054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+4944
-5054
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [JoeMatt, lkzhao, SD10, kuyazee] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: herotransitions # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/test.yml

Lines changed: 42 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Unit Test
22

3-
on:
3+
on:
44
pull_request:
55
paths:
66
- "**.swift"
@@ -9,94 +9,82 @@ on:
99
- "**.h"
1010
- "**.podspec"
1111
- "Podfile"
12+
- "Podfile.lock"
1213
- "test.yml"
1314
jobs:
14-
iOS:
15-
name: Test iOS
15+
swiftpm:
16+
name: Test iOS (swiftpm)
1617
runs-on: macOS-latest
1718
env:
18-
DEVELOPER_DIR: /Applications/Xcode_11.1.app/Contents/Developer
19-
strategy:
20-
matrix:
21-
destination: [
22-
'platform=iOS Simulator,OS=13.1,name=iPhone 11'
23-
]
19+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
2420
steps:
2521
- name: Checkout
2622
uses: actions/checkout@master
27-
- name: iOS - ${{ matrix.destination }}
23+
- name: iOS - Swift PM
2824
run: |
2925
pod install
30-
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
31-
bash <(curl -s https://codecov.io/bash)
32-
env:
33-
destination: ${{ matrix.destination }}
34-
- name: Upload Code Coverage
35-
run: |
36-
bash <(curl -s https://codecov.io/bash)
37-
env:
38-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
39-
iOS-legacy:
26+
set -o pipefail && swift test --parallel
27+
iOS:
4028
name: Test iOS
4129
runs-on: macOS-latest
4230
env:
43-
DEVELOPER_DIR: /Applications/Xcode_11.1.app/Contents/Developer
31+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
4432
strategy:
4533
matrix:
4634
destination: [
47-
'platform=iOS Simulator,OS=10.3.1,name=iPhone 7'
35+
'platform=iOS Simulator,OS=14.4,name=iPhone 12'
4836
]
4937
steps:
5038
- name: Checkout
5139
uses: actions/checkout@master
40+
5241
- name: iOS - ${{ matrix.destination }}
5342
run: |
54-
xcversion simulators --install='iOS 10.3.1'
5543
pod install
56-
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
57-
bash <(curl -s https://codecov.io/bash)
58-
env:
59-
destination: ${{ matrix.destination }}
60-
- name: Upload Code Coverage
61-
run: |
44+
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -configuration "Debug" -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | xcpretty
6245
bash <(curl -s https://codecov.io/bash)
6346
env:
64-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
65-
iOS-legacy:
66-
name: Test iOS
67-
runs-on: macOS-latest
68-
env:
69-
DEVELOPER_DIR: /Applications/Xcode_11.1.app/Contents/Developer
70-
strategy:
71-
matrix:
72-
destination: [
73-
'platform=iOS Simulator,OS=10.3.1,name=iPhone 7'
74-
]
75-
steps:
76-
- name: Checkout
77-
uses: actions/checkout@master
78-
- name: iOS - ${{ matrix.destination }}
79-
run: |
80-
xcversion simulators --install='iOS 10.3.1'
81-
pod install
82-
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
83-
bash <(curl -s https://codecov.io/bash)
84-
env:
8547
destination: ${{ matrix.destination }}
8648
- name: Upload Code Coverage
8749
run: |
8850
bash <(curl -s https://codecov.io/bash)
8951
env:
9052
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
53+
# iOS-legacy:
54+
# name: Test iOS
55+
# runs-on: macOS-latest
56+
# env:
57+
# DEVELOPER_DIR: /Applications/Xcode_10.3.1.app/Contents/Developer
58+
# strategy:
59+
# matrix:
60+
# destination: [
61+
# 'platform=iOS Simulator,OS=10.3.1,name=iPhone 7'
62+
# ]
63+
# steps:
64+
# - name: Checkout
65+
# uses: actions/checkout@master
66+
# - name: iOS - ${{ matrix.destination }}
67+
# run: |
68+
# xcversion simulators --install='iOS 10.3.1'
69+
# pod install
70+
# set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
71+
# bash <(curl -s https://codecov.io/bash)
72+
# env:
73+
# destination: ${{ matrix.destination }}
74+
# - name: Upload Code Coverage
75+
# run: |
76+
# bash <(curl -s https://codecov.io/bash)
77+
# env:
78+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9179
tvOS:
9280
name: Test tvOS
9381
runs-on: macOS-latest
9482
env:
95-
DEVELOPER_DIR: /Applications/Xcode_11.1.app/Contents/Developer
83+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
9684
strategy:
9785
matrix:
9886
destination: [
99-
'platform=tvOS Simulator,OS=13.0,name=Apple TV 4K'
87+
'platform=tvOS Simulator,OS=14.3,name=Apple TV 4K'
10088
]
10189

10290
steps:
@@ -105,6 +93,6 @@ jobs:
10593
- name: tvOS - ${{ matrix.destination }}
10694
run: |
10795
pod install
108-
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme "Hero (tvOS)" -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
109-
env:
96+
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme "Hero (tvOS)" -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | xcpretty
97+
env:
11098
destination: ${{ matrix.destination }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ node_modules
7070
_book
7171
xcodebuild.log
7272
.swiftpm
73+
/.bundle

.jazzy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ---- About ----
22
module: Hero
3-
module_version: 1.5.0
3+
module_version: 1.6.0
44
author: HeroTransitions
55
readme: README.md
66
copyright: 'See [license](https://github.com/HeroTransitions/Hero/blob/develop/LICENSE) for more details.'
@@ -9,7 +9,7 @@ copyright: 'See [license](https://github.com/HeroTransitions/Hero/blob/develop/L
99
author_url: https://herotransitions.github.io/Hero/
1010
dash_url: https://herotransitions.github.io/Hero/docsets/Hero.xml
1111
github_url: https://github.com/HeroTransitions/Hero/
12-
github_file_prefix: https://github.com/HeroTransitions/Hero/tree/1.5.0/
12+
github_file_prefix: https://github.com/HeroTransitions/Hero/tree/1.6.0/
1313

1414
# ---- Sources ----
1515
podspec: Hero.podspec

.makefiles/ios.mk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pre_setup:
9090
check_for_ruby:
9191
$(info Checking for Ruby ...)
9292

93-
ifeq ($(RUBY),)
93+
ifeq ($(RUBY),)
9494
$(error Ruby is not installed)
9595
endif
9696

@@ -109,7 +109,7 @@ update_homebrew:
109109
install_swift_lint:
110110
$(info Install swiftlint ...)
111111

112-
ifneq ($(SWIFTLINT),)
112+
ifneq ($(SWIFTLINT),)
113113
brew install swiftlint
114114
else
115115
$(info Already have, skipping.)
@@ -132,7 +132,7 @@ install_ruby_gems:
132132
install_carthage:
133133
$(info Install Carthage ...)
134134

135-
ifneq ($(CARTHAGE),)
135+
ifneq ($(CARTHAGE),)
136136
brew install carthage
137137
else
138138
$(info Already have, skipping.)
@@ -141,7 +141,7 @@ endif
141141
install_carting:
142142
$(info Install Carting ...)
143143

144-
ifneq ($(CARTING),)
144+
ifneq ($(CARTING),)
145145
brew install artemnovichkov/projects/carting
146146
else
147147
$(info Already have, skipping.)
@@ -150,7 +150,7 @@ endif
150150
install_swiftgen:
151151
$(info Install Swift-Gen (https://github.com/SwiftGen/SwiftGen) ...)
152152

153-
ifneq ($(SWIFTGEN),)
153+
ifneq ($(SWIFTGEN),)
154154
brew install swiftgen
155155
else
156156
$(info Already have, skipping.)
@@ -160,7 +160,7 @@ gitpull:
160160
$(info Pulling new commits ...)
161161

162162
git pull
163-
163+
164164
#> -- QA Task Runners --
165165

166166
codecov_upload:
@@ -170,7 +170,7 @@ codecov_upload:
170170
danger_pr:
171171
bundle exec danger pr "$(GITHUB_URL:/=)/pull/$(PULL)"
172172

173-
danger:
173+
danger:
174174
bundle exec danger
175175

176176
#> SwiftLint autocorrect
@@ -181,7 +181,7 @@ autocorrect:
181181

182182
#> Run test on all targets
183183
test:
184-
xcodebuild test -scheme $(TEST_SCHEME) -workspace $(WORKSPACE) | tee xcodebuild.log | xcpretty
184+
xcodebuild test -scheme $(TEST_SCHEME) -workspace $(WORKSPACE) -destination 'platform=iOS Simulator,OS=14.4,name=iPhone 12' -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | tee xcodebuild.log | xcpretty
185185

186186
#> -- Building --
187187

.swiftlint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
disabled_rules: # rule identifiers to exclude from running
22
- missing_docs
33
- unused_closure_parameter
4-
- force_cast
4+
- identifier_name
55
- weak_delegate
6-
- variable_name
76
- cyclomatic_complexity
87
- function_body_length
98
- todo
@@ -52,7 +51,7 @@ type_name:
5251
- T
5352
- t
5453

55-
variable_name:
54+
identifier_name:
5655
min_length: # only min_length
5756
error: 3 # only error
5857
excluded: # excluded via string array

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,29 @@ The changelog for `Hero`. Also see the [releases](https://github.com/HeroTransit
44

55
--------------------------------------
66

7-
## [1.5.0](https://github.com/HeroTransitions/Hero/releases/tag/1.5.0)
7+
## [1.6.0](https://github.com/HeroTransitions/Hero/releases/tag/1.6.0)
8+
### Added
9+
10+
- #695 - Swift 5 support
11+
- #628 - Swift Package Manager Support
12+
- #623 - Swift UI support and example
13+
- #681 - Application extension target support
14+
- #595 - Add Accio supported badge
15+
- #619 - XCode 11/12 support in example
16+
- CI/CD improvements
17+
### Changed
18+
19+
- #648 - Updated iOS version support
20+
- #576 - Usage guide updates
821

22+
### Fixed
23+
24+
- #698 - Warnings fix
25+
- #585 - replaceViewControllers now calls the completion
26+
- #559 - Resuming property animator from current fraction
27+
- #465 - fix keyboard transition
28+
29+
## [1.5.0](https://github.com/HeroTransitions/Hero/releases/tag/1.5.0)
930
### Added
1031

1132
- Use custom snapshot for views that implement `HeroCustomSnapshotView`.

Examples/AppStoreCardExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class AppStoreViewController2: ExampleBaseViewController {
219219
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent neque est, hendrerit vitae nibh ultrices, accumsan elementum ante. Phasellus fringilla sapien non lorem consectetur, in ullamcorper tortor condimentum. Nulla tincidunt iaculis maximus. Sed ut urna urna. Nulla at sem vel neque scelerisque imperdiet. Donec ornare luctus dapibus. Donec aliquet ante augue, at pellentesque ipsum mollis eget. Cras vulputate mauris ac eleifend sollicitudin. Vivamus ut posuere odio. Suspendisse vulputate sem vel felis vehicula iaculis. Fusce sagittis, eros quis consequat tincidunt, arcu nunc ornare nulla, non egestas dolor ex at ipsum. Cras et massa sit amet quam imperdiet viverra. Mauris vitae finibus nibh, ac vulputate sapien.
220220
"""
221221

222-
if #available(iOS 13.0, *) {
222+
if #available(iOS 13.0, tvOS 13, *) {
223223
contentCard.backgroundColor = .systemBackground
224224
} else {
225225
contentCard.backgroundColor = .white

Examples/ExampleBaseViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ExampleBaseViewController: UIViewController {
1414

1515
override func viewDidLoad() {
1616
super.viewDidLoad()
17-
if #available(iOS 13.0, *) {
17+
if #available(iOS 13.0, tvOS 13, *) {
1818
view.backgroundColor = .systemBackground
1919
} else {
2020
view.backgroundColor = .white

Examples/MainViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MainViewController: UIViewController {
99

1010
override func viewDidLoad() {
1111
super.viewDidLoad()
12-
if #available(iOS 13.0, *) {
12+
if #available(iOS 13.0, tvOS 13, *) {
1313
view.backgroundColor = UIColor.systemBackground
1414
} else {
1515
view.backgroundColor = .white
@@ -35,7 +35,7 @@ class MainViewController: UIViewController {
3535
let viewSource = ClosureViewSource { (label: UILabel, data: SourceData, index) in
3636
label.text = "\(index + 1). \(data.exampleTitle)"
3737
label.textAlignment = .center
38-
if #available(iOS 13.0, *) {
38+
if #available(iOS 13.0, tvOS 13, *) {
3939
label.textColor = .label
4040
label.backgroundColor = .systemBackground
4141
} else {

0 commit comments

Comments
 (0)