Skip to content

Commit

Permalink
Move macro to separate repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Šesták committed Aug 3, 2024
1 parent 05eec5a commit 24ccf4f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 155 deletions.
9 changes: 9 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"version" : "0.2.0"
}
},
{
"identity" : "futured-macros",
"kind" : "remoteSourceControl",
"location" : "https://github.com/futuredapp/futured-macros",
"state" : {
"branch" : "main",
"revision" : "e2d832df517e1dd00be6c45a1560b349ca9d337f"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
Expand Down
21 changes: 4 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ let package = Package(
products: [
.library(
name: "FuturedArchitecture",
targets: [
"FuturedArchitecture",
"EnumIdentifiersGenerator"
]
targets: ["FuturedArchitecture"]
),
.library(
name: "FuturedHelpers",
Expand All @@ -27,25 +24,15 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/mkj-is/BindingKit", from: "1.0.0"),
.package(url: "https://github.com/JohnSundell/CollectionConcurrencyKit", from: "0.1.0"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0")
.package(url: "https://github.com/futuredapp/futured-macros", branch: "main")
],
targets: [
.target(
name: "EnumIdentifiersGenerator",
dependencies: [
"EnumIdentifiersGeneratorMacro"
]
),
.macro(
name: "EnumIdentifiersGeneratorMacro",
name: "FuturedArchitecture",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
.product(name: "FuturedMacros", package: "futured-macros")
]
),
.target(
name: "FuturedArchitecture"
),
.target(
name: "FuturedHelpers",
dependencies: [
Expand Down
14 changes: 0 additions & 14 deletions Sources/EnumIdentifiersGenerator/EnumIdentifiersGenerator.swift

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// File.swift
// ModalCoverModel.swift
//
//
// Created by Simon Sestak on 01/08/2024.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ___FILEHEADER___

import EnumIdentifiersGenerator
import EnumIdentable
import FuturedArchitecture
import SwiftUI

Expand Down Expand Up @@ -30,7 +30,7 @@ final class ___VARIABLE_flowCoordinatorIdentifier___FlowCoordinator: NavigationS
}

extension ___VARIABLE_flowCoordinatorIdentifier___FlowCoordinator {
@EnumIdentifiersGenerator
@EnumIdentable
enum Destination: String, Hashable, Identifiable {
case destination
}
Expand Down
4 changes: 2 additions & 2 deletions Templates/SwiftUI App.xctemplate/ExampleFlowCoordinator.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ___FILEHEADER___

import EnumIdentifiersGenerator
import EnumIdentable
import FuturedArchitecture
import SwiftUI

Expand Down Expand Up @@ -38,7 +38,7 @@ final class ExampleFlowCoordinator: NavigationStackCoordinator {
}

extension ExampleFlowCoordinator {
@EnumIdentifiersGenerator
@EnumIdentable
enum Destination: String, Hashable, Identifiable {
case destination
}
Expand Down

0 comments on commit 24ccf4f

Please sign in to comment.