-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
168 changed files
with
308 additions
and
12,868 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
retain_public: true | ||
targets: | ||
- Reducer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.10 | ||
6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
) |
Oops, something went wrong.