Skip to content

Commit

Permalink
Restart project
Browse files Browse the repository at this point in the history
  • Loading branch information
luizmb committed Aug 23, 2024
1 parent 0a3eb82 commit 3ffee08
Show file tree
Hide file tree
Showing 168 changed files with 308 additions and 12,868 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.9"]
swift: ["6.0"]
steps:
- uses: swift-actions/setup-swift@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
retain_public: true
targets:
- Reducer
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.10
6.0
50 changes: 50 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# file options

# --exclude Tests/XCTestManifests.swift,Tests/BadConfig,Snapshots,Build,PluginTests

# format options

--allman false
--binarygrouping 4,8
--commas inline
--decimalgrouping 3,6
--elseposition same-line
--voidtype void
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--header strip
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef indent
--indent 4
--indentcase false
--importgrouping alpha
--linebreaks lf
--maxwidth 150
--octalgrouping 4,8
--operatorfunc spaced
--typedelimiter space-after
--patternlet hoist
--ranges spaced
--self remove
--redundanttype inferred
--semicolons inline
--stripunusedargs always
--swiftversion 5.10
--trimwhitespace always
--wraparguments before-first
--wrapcollections before-first
--wrapconditions after-first

# rules

--enable isEmpty
--acronyms "ID,URL,UUID"
--enable organizeDeclarations
--markcategories false
--organizationmode visibility
--structthreshold 1
--classthreshold 1
--enumthreshold 1
--extensionlength 1
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ opt_in_rules: # some rules are only opt-in
- multiline_arguments
- multiline_literal_brackets
- multiline_parameters
- no_extension_access_modifier
# - no_extension_access_modifier
- nslocalizedstring_key
- number_separator
- object_literal
Expand Down
24 changes: 24 additions & 0 deletions .swiftpm/configuration/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"originHash" : "92071d932bcc245a6254633147125ac8851348c79823b708d0e51337b06aa0e2",
"pins" : [
{
"identity" : "swiftformat",
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/SwiftFormat",
"state" : {
"revision" : "d6309f7440889427426143b4a0b100b959d3f3e6",
"version" : "0.54.3"
}
},
{
"identity" : "swiftlintplugins",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins",
"state" : {
"revision" : "6c3d6c32a37224179dc290f21e03d1238f3d963b",
"version" : "0.56.2"
}
}
],
"version" : 3
}
79 changes: 79 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Reducer.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1610"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Reducer"
BuildableName = "Reducer"
BlueprintName = "Reducer"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ReducerTests"
BuildableName = "ReducerTests"
BlueprintName = "ReducerTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Reducer"
BuildableName = "Reducer"
BlueprintName = "Reducer"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
133 changes: 0 additions & 133 deletions Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions Mintfile

This file was deleted.

24 changes: 24 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"originHash" : "803ac8338fe0c55943c1dbe80216b87723033a79498a9bea118b0c64ced165fe",
"pins" : [
{
"identity" : "swiftformat",
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/SwiftFormat",
"state" : {
"revision" : "d6309f7440889427426143b4a0b100b959d3f3e6",
"version" : "0.54.3"
}
},
{
"identity" : "swiftlintplugins",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins",
"state" : {
"revision" : "6c3d6c32a37224179dc290f21e03d1238f3d963b",
"version" : "0.56.2"
}
}
],
"version" : 3
}
34 changes: 15 additions & 19 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
// swift-tools-version: 5.9
// swift-tools-version: 5.10
import PackageDescription

let devModeInXcode = false

let package = Package(
name: "Reducer",
platforms: [.macOS(.v10_13), .iOS(.v12), .tvOS(.v12), .watchOS(.v4)],
platforms: [.macOS(.v12), .iOS(.v12), .tvOS(.v12), .watchOS(.v4)],
products: [
.library(name: "Reducer", targets: ["Reducer"])
].compactMap { $0 },
],
dependencies: [
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.56.2"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.54.0")
],
targets: [
.target(
name: "Reducer",
dependencies: [],
plugins: devModeInXcode ? ["SwiftLintXcode"] : []
),
.testTarget(name: "ReducerTests", dependencies: ["Reducer"])
] + (devModeInXcode ? [
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.54.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "963121d6babf2bf5fd66a21ac9297e86d855cbc9d28322790646b88dceca00f1"
plugins: [
.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins"),
.plugin(name: "SwiftFormat", package: "SwiftFormat")
]
),
.plugin(
name: "SwiftLintXcode",
capability: .buildTool(),
dependencies: ["SwiftLintBinary"]
.testTarget(
name: "ReducerTests",
dependencies: ["Reducer"]
)
] : []),
],
swiftLanguageVersions: [.v5]
)
Loading

0 comments on commit 3ffee08

Please sign in to comment.