Skip to content

Commit 3c275d4

Browse files
authored
Merge pull request #1 from AdamZikmund/develop
Initial implementation of simple networking layer
2 parents 2735aad + 63acf57 commit 3c275d4

File tree

24 files changed

+1225
-0
lines changed

24 files changed

+1225
-0
lines changed

.github/workflows/swift.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main", "develop" ]
9+
pull_request:
10+
branches: [ "main", "develop" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: swift-actions/setup-swift@v1
20+
with:
21+
swift-version: "5.8.0"
22+
- name: Build
23+
run: swift build -v
24+
- name: Run tests
25+
run: swift test -v

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## User settings
6+
xcuserdata/
7+
8+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9+
*.xcscmblueprint
10+
*.xccheckout
11+
12+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13+
build/
14+
DerivedData/
15+
*.moved-aside
16+
*.pbxuser
17+
!default.pbxuser
18+
*.mode1v3
19+
!default.mode1v3
20+
*.mode2v3
21+
!default.mode2v3
22+
*.perspectivev3
23+
!default.perspectivev3
24+
25+
## Obj-C/Swift specific
26+
*.hmap
27+
28+
## App packaging
29+
*.ipa
30+
*.dSYM.zip
31+
*.dSYM
32+
33+
## Playgrounds
34+
timeline.xctimeline
35+
playground.xcworkspace
36+
37+
# Swift Package Manager
38+
#
39+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
40+
Packages/
41+
Package.pins
42+
Package.resolved
43+
#
44+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
45+
# hence it is not needed unless you have added a package configuration file to your project
46+
# .swiftpm
47+
48+
.build/
49+
50+
# CocoaPods
51+
#
52+
# We recommend against adding the Pods directory to your .gitignore. However
53+
# you should judge for yourself, the pros and cons are mentioned at:
54+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
55+
#
56+
# Pods/
57+
#
58+
# Add this line if you want to avoid checking in source code from the Xcode workspace
59+
# *.xcworkspace
60+
61+
# Carthage
62+
#
63+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
64+
# Carthage/Checkouts
65+
66+
Carthage/Build/
67+
68+
# Accio dependency management
69+
Dependencies/
70+
.accio/
71+
72+
# fastlane
73+
#
74+
# It is recommended to not store the screenshots in the git repo.
75+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
76+
# For more information about the recommended setup visit:
77+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
78+
79+
fastlane/report.xml
80+
fastlane/Preview.html
81+
fastlane/screenshots/**/*.png
82+
fastlane/test_output
83+
84+
# Code Injection
85+
#
86+
# After new code Injection tools there's a generated folder /iOSInjectionProject
87+
# https://github.com/johnno1962/injectionforxcode
88+
89+
iOSInjectionProject/

Example/.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## User settings
6+
xcuserdata/
7+
8+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9+
*.xcscmblueprint
10+
*.xccheckout
11+
12+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13+
build/
14+
DerivedData/
15+
*.moved-aside
16+
*.pbxuser
17+
!default.pbxuser
18+
*.mode1v3
19+
!default.mode1v3
20+
*.mode2v3
21+
!default.mode2v3
22+
*.perspectivev3
23+
!default.perspectivev3
24+
25+
## Obj-C/Swift specific
26+
*.hmap
27+
28+
## App packaging
29+
*.ipa
30+
*.dSYM.zip
31+
*.dSYM
32+
33+
## Playgrounds
34+
timeline.xctimeline
35+
playground.xcworkspace
36+
37+
# Swift Package Manager
38+
#
39+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
40+
Packages/
41+
Package.pins
42+
Package.resolved
43+
#
44+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
45+
# hence it is not needed unless you have added a package configuration file to your project
46+
# .swiftpm
47+
48+
.build/
49+
50+
# CocoaPods
51+
#
52+
# We recommend against adding the Pods directory to your .gitignore. However
53+
# you should judge for yourself, the pros and cons are mentioned at:
54+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
55+
#
56+
# Pods/
57+
#
58+
# Add this line if you want to avoid checking in source code from the Xcode workspace
59+
# *.xcworkspace
60+
61+
# Carthage
62+
#
63+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
64+
# Carthage/Checkouts
65+
66+
Carthage/Build/
67+
68+
# Accio dependency management
69+
Dependencies/
70+
.accio/
71+
72+
# fastlane
73+
#
74+
# It is recommended to not store the screenshots in the git repo.
75+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
76+
# For more information about the recommended setup visit:
77+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
78+
79+
fastlane/report.xml
80+
fastlane/Preview.html
81+
fastlane/screenshots/**/*.png
82+
fastlane/test_output
83+
84+
# Code Injection
85+
#
86+
# After new code Injection tools there's a generated folder /iOSInjectionProject
87+
# https://github.com/johnno1962/injectionforxcode
88+
89+
iOSInjectionProject/

Example/.swiftlint.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# By default, SwiftLint uses a set of sensible default rules you can adjust:
2+
disabled_rules: # rule identifiers turned on by default to exclude from running
3+
- colon
4+
- comma
5+
- control_statement
6+
opt_in_rules: # some rules are turned off by default, so you need to opt-in
7+
- empty_count # Find all the available rules by running: `swiftlint rules`
8+
9+
# Alternatively, specify all rules explicitly by uncommenting this option:
10+
# only_rules: # delete `disabled_rules` & `opt_in_rules` if using this
11+
# - empty_parameters
12+
# - vertical_whitespace
13+
14+
analyzer_rules: # Rules run by `swiftlint analyze`
15+
- explicit_self
16+
17+
included: # paths to include during linting. `--path` is ignored if present.
18+
- Example
19+
- ../Sources
20+
- ../Tests
21+
excluded: # paths to ignore during linting. Takes precedence over `included`.
22+
- Carthage
23+
- Pods
24+
25+
# If true, SwiftLint will not fail if no lintable files are found.
26+
allow_zero_lintable_files: false
27+
28+
# configurable rules can be customized from this configuration file
29+
# binary rules can set their severity level
30+
force_cast: warning # implicitly
31+
force_try:
32+
severity: warning # explicitly
33+
# rules that have both warning and error levels, can set just the warning level
34+
# implicitly
35+
line_length: 120
36+
# they can set both implicitly with an array
37+
type_body_length:
38+
- 300 # warning
39+
- 400 # error
40+
# or they can set both explicitly
41+
file_length:
42+
warning: 500
43+
error: 1200
44+
# naming rules can set warnings/errors for min_length and max_length
45+
# additionally they can set excluded names
46+
type_name:
47+
min_length: 4 # only warning
48+
max_length: # warning and error
49+
warning: 40
50+
error: 50
51+
excluded: Log # excluded via string
52+
allowed_symbols: ["_"] # these are allowed in type names
53+
identifier_name:
54+
min_length: # only min_length
55+
error: 3 # only error
56+
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging, summary)

0 commit comments

Comments
 (0)