Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ios-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ on:
jobs:
build:
name: Build scheme
runs-on: macos-latest
runs-on: macos-15

steps:
- name: "Install Required Items"
run: |
brew install swiftlint
set -o pipefail
- name: Select xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
xcodebuild -scheme boilerplate-ios-swiftui clean build -sdk iphoneos -configuration Development CODE_SIGNING_ALLOWED=No
xcodebuild -scheme boilerplate-ios-swiftui clean build -sdk iphoneos -configuration Development CODE_SIGNING_ALLOWED=No -skipPackagePluginValidation -skipMacroValidation | xcbeautify
36 changes: 1 addition & 35 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ disabled_rules: # rule identifiers to exclude from running
- nesting
- function_parameter_count
- type_name
- todo
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Project/R.generated.swift
Expand All @@ -24,9 +25,6 @@ line_length:
ignores_interpolated_strings: true
ignores_urls: true

disabled_rules:
- todo

large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- 3
- 4
Expand Down Expand Up @@ -79,44 +77,12 @@ force_try:
force_unwrapping:
severity: error

function_parameter_count:
warning: 5
error: 5

identifier_name:
min_length:
warning: 3
error: 2
max_length:
warning: 40
error: 64
excluded:
- id

nesting:
type_level:
warning: 2
function_level:
warning: 3

switch_case_alignment:
severity: error
indented_cases: true

switch_case_on_newline:
severity: error

type_name:
min_length:
warning: 3
max_length:
warning: 1000
excluded:
- "ID"
- "Id"
- "boilerplate_ios_swiftuiApp"
- "boilerplate_ios_swiftuiTests"
- "boilerplate_ios_swiftuiUITests"

unneeded_break_in_switch:
severity: error
400 changes: 291 additions & 109 deletions BoilerPlateSwiftUI.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "2600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "2600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion BoilerPlateSwiftUI/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import UIKit
// Handle remote notifications here
}

func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: any Error) {
// Handle remote notification failures here
print(error.localizedDescription)
}
Expand Down
3 changes: 2 additions & 1 deletion BoilerPlateSwiftUI/Application/BoilerPlateSwiftUIApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ struct BoilerPlateSwiftUIApp: App {

init() {
#if PULSE
Experimental.URLSessionProxy.shared.isEnabled = true
/* Check out https://kean-docs.github.io/pulse/documentation/pulse/networklogging-article#Option-1-Recommended
*/
URLSessionProxyDelegate.enableAutomaticRegistration()
#endif
loggingService = LoggingService()
Expand Down
103 changes: 0 additions & 103 deletions BoilerPlateSwiftUI/Managers/URLSessionAutoLogging.swift

This file was deleted.

Loading