Skip to content

Commit 467f62e

Browse files
Move to SPM!
1 parent 3bc1550 commit 467f62e

29 files changed

+227
-1822
lines changed

.bundle/config

Lines changed: 0 additions & 2 deletions
This file was deleted.

.codebeatsettings

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### PR's key points
2+
3+
4+
### How to review this PR?
5+

.github/workflows/pr_validator.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: "pr-validator"
2+
on:
3+
pull_request:
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

.gitignore

Lines changed: 41 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
1+
.gems
2+
output/
3+
.DS_Store
4+
Brewfile.lock.json
15

2-
# Created by https://www.gitignore.io/api/swift,xcode,carthage
6+
# Created by https://www.toptal.com/developers/gitignore/api/swift
7+
# Edit at https://www.toptal.com/developers/gitignore?templates=swift
38

49
### Swift ###
510
# Xcode
611
#
712
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
813

9-
## Build generated
14+
## User settings
15+
xcuserdata/
16+
17+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
18+
*.xcscmblueprint
19+
*.xccheckout
20+
21+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
1022
build/
1123
DerivedData/
12-
13-
## Various settings
24+
*.moved-aside
1425
*.pbxuser
1526
!default.pbxuser
1627
*.mode1v3
@@ -19,14 +30,11 @@ DerivedData/
1930
!default.mode2v3
2031
*.perspectivev3
2132
!default.perspectivev3
22-
xcuserdata/
23-
24-
## Other
25-
*.moved-aside
26-
*.xcuserstate
2733

2834
## Obj-C/Swift specific
2935
*.hmap
36+
37+
## App packaging
3038
*.ipa
3139
*.dSYM.zip
3240
*.dSYM
@@ -36,68 +44,50 @@ timeline.xctimeline
3644
playground.xcworkspace
3745

3846
# Swift Package Manager
39-
#
4047
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
4148
# Packages/
49+
# Package.pins
50+
# Package.resolved
51+
# *.xcodeproj
52+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
53+
# hence it is not needed unless you have added a package configuration file to your project
54+
.swiftpm
55+
4256
.build/
4357

4458
# CocoaPods
45-
#
4659
# We recommend against adding the Pods directory to your .gitignore. However
4760
# you should judge for yourself, the pros and cons are mentioned at:
4861
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
49-
#
5062
# Pods/
63+
# Add this line if you want to avoid checking in source code from the Xcode workspace
64+
# *.xcworkspace
5165

5266
# Carthage
53-
#
5467
# Add this line if you want to avoid checking in source code from Carthage dependencies.
68+
# Carthage/Checkouts
5569

56-
Carthage/
70+
Carthage/Build/
71+
72+
# Accio dependency management
73+
Dependencies/
74+
.accio/
5775

5876
# fastlane
59-
#
60-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
61-
# screenshots whenever they are needed.
77+
# It is recommended to not store the screenshots in the git repo.
78+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
6279
# For more information about the recommended setup visit:
63-
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
80+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
6481

6582
fastlane/report.xml
6683
fastlane/Preview.html
67-
fastlane/screenshots
84+
fastlane/screenshots/**/*.png
6885
fastlane/test_output
6986

87+
# Code Injection
88+
# After new code Injection tools there's a generated folder /iOSInjectionProject
89+
# https://github.com/johnno1962/injectionforxcode
7090

71-
### Xcode ###
72-
# Xcode
73-
#
74-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
75-
76-
## Build generated
77-
build/
78-
DerivedData/
79-
80-
## Various settings
81-
*.pbxuser
82-
!default.pbxuser
83-
*.mode1v3
84-
!default.mode1v3
85-
*.mode2v3
86-
!default.mode2v3
87-
*.perspectivev3
88-
!default.perspectivev3
89-
xcuserdata/
90-
91-
## Other
92-
*.moved-aside
93-
*.xccheckout
94-
*.xcscmblueprint
91+
iOSInjectionProject/
9592

96-
97-
### Carthage ###
98-
# Carthage - A simple, decentralized dependency manager for Cocoa
99-
Carthage/Checkouts/
100-
Carthage/Build/
101-
102-
.DS_Store
103-
.gems
93+
# End of https://www.toptal.com/developers/gitignore/api/swift

.swiftlint.yml

Lines changed: 118 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,121 @@
1+
disabled_rules:
2+
- inclusive_language
3+
- todo
4+
- conditional_returns_on_newline
5+
- unused_optional_binding
6+
- unused_setter_value
7+
opt_in_rules:
8+
#lint
9+
- prohibited_super_call
10+
- overridden_super_call
11+
- yoda_condition
12+
- modifier_order
13+
#- explicit_acl
14+
- cyclomatic_complexity
15+
#style
16+
- sorted_imports
17+
- duplicate_imports
18+
- unneeded_parentheses_in_closure_argument
19+
- operator_usage_whitespace
20+
- number_separator
21+
- closure_spacing
22+
- closure_end_indentation
23+
- attributes
24+
- file_header
25+
- conditional_returns_on_newline
26+
- implicit_return
27+
- multiline_function_chains
28+
- switch_case_on_newline
29+
- prefer_self_type_over_type_of_self
30+
- vertical_whitespace_between_cases
31+
- vertical_whitespace_closing_braces
32+
- vertical_whitespace_opening_braces
33+
- vertical_parameter_alignment
34+
- vertical_parameter_alignment_on_call
35+
#idiomatic
36+
- redundant_type_annotation
37+
- redundant_nil_coalescing
38+
- nimble_operator
39+
- explicit_init
40+
- empty_parentheses_with_trailing_closure
41+
- prefer_zero_over_explicit_init
42+
#performance
43+
- empty_count
44+
- contains_over_first_not_nil
45+
- empty_string
46+
- first_where
47+
- sorted_first_last
48+
- flatmap_over_map_reduce
49+
included:
50+
- Sources
51+
- Tests
52+
closure_end_indentation:
53+
severity: error
54+
force_cast:
55+
severity: error
56+
force_try:
57+
severity: error
58+
function_parameter_count:
59+
warning: 6
60+
error: 6
61+
function_body_length:
62+
warning: 120
63+
error: 200
64+
cyclomatic_complexity:
65+
warning: 60
66+
error: 60
67+
type_body_length:
68+
warning: 1500
69+
error: 1500
170
line_length:
271
warning: 250
372
error: 400
4-
function_parameter_count:
5-
warning: 10
6-
error: 15
73+
large_tuple:
74+
warning: 5
75+
error: 5
76+
file_length:
77+
warning: 2000
78+
error: 2000
79+
nesting:
80+
type_level:
81+
warning: 2
82+
function_level:
83+
warning: 2
84+
type_name:
85+
min_length: 3
86+
max_length: 50
87+
excluded:
88+
- iPhone
89+
- my
90+
- BO
91+
- bo
92+
identifier_name:
93+
min_length: 3
94+
max_length: 45
95+
excluded:
96+
- i
97+
- to
98+
- x
99+
- y
100+
- z
101+
- a
102+
- b
103+
- rx
104+
- map
105+
- app
106+
- id
107+
- URL
108+
- GlobalAPIKey
109+
- bo
110+
- BO
111+
attributes:
112+
always_on_line_above:
113+
- "@discardableResult"
114+
- "@available"
115+
always_on_same_line:
116+
- "@autoclosure"
117+
- "@IBOutlet"
118+
- "@IBAction"
119+
- "@NSManaged"
120+
- "@testable"
121+
reporter: "xcode"

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)