Skip to content

Commit

Permalink
removed macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bpisano committed Nov 28, 2023
1 parent f3479df commit 39531ff
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 213 deletions.
14 changes: 0 additions & 14 deletions Package.resolved

This file was deleted.

17 changes: 2 additions & 15 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,12 @@ let package = Package(
name: "StateKit",
targets: ["StateKit"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.2"),
],
targets: [
.macro(
name: "StateKitMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
.target(
name: "StateKit",
dependencies: ["StateKitMacros"]),
dependencies: []),
.testTarget(
name: "StateKitTests",
dependencies: [
"StateKit",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
]),
dependencies: ["StateKit"]),
]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ enum AppState: State {
**2. Create validators**: Validators determine state validity and specify the next state. They conform to the `Validator` protocol.

```swift
@Validate(AppState.authentication)
final class OnboardingValidator {
final class AuthenticationValidator {
let state: AppState = .authentication
let nextState: AppState = .app
var isValid: Bool {
userManager.currentUser != nil
Expand Down
10 changes: 0 additions & 10 deletions Sources/StateKit/Macros/Macros.swift

This file was deleted.

74 changes: 0 additions & 74 deletions Sources/StateKitMacros/Diagnostic/StateKitDiagnostic.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Sources/StateKitMacros/Plugin.swift

This file was deleted.

47 changes: 0 additions & 47 deletions Sources/StateKitMacros/Validate/ValidateMacro.swift

This file was deleted.

35 changes: 0 additions & 35 deletions Tests/StateKitTests/ValidateMacroTests.swift

This file was deleted.

0 comments on commit 39531ff

Please sign in to comment.