File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
FirebaseAI/Tests/Unit/Macros Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 2323 import XCTest
2424
2525 final class GenerableMacroTests: XCTestCase {
26- #if swift(>=6.2)
27- nonisolated ( unsafe) static let testMacros : [ String : Macro . Type ] = [
28- " stringify " : StringifyMacro . self,
29- ]
30- #else
31- static let testMacros : [ String : Macro . Type ] = [
32- " stringify " : StringifyMacro . self,
33- ]
34- #endif // swift(>=6.2)
26+ static let testMacros : [ String : Macro . Type ] = [
27+ " stringify " : StringifyMacro . self,
28+ ]
3529
3630 func testMacro( ) throws {
3731 assertMacroExpansion (
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ let package = Package(
177177 ) ,
178178 . package ( url: " https://github.com/google/app-check.git " ,
179179 " 11.0.1 " ..< " 12.0.0 " ) ,
180- . package ( url : " https://github.com/swiftlang/swift-syntax.git " , from : " 600.0.0-latest " ) ,
180+ swiftSyntaxDependency ( ) ,
181181 ] ,
182182 targets: [
183183 . target(
@@ -1459,6 +1459,17 @@ func grpcDependency() -> Package.Dependency {
14591459 return . package ( url: packageInfo. url, packageInfo. range)
14601460}
14611461
1462+ func swiftSyntaxDependency( ) -> Package . Dependency {
1463+ let url = " https://github.com/swiftlang/swift-syntax.git "
1464+ #if swift(>=6.2)
1465+ return . package ( url: url, from: " 602.0.0-latest " )
1466+ #elseif swift(>=6.1)
1467+ return . package ( url: url, from: " 601.0.0-latest " )
1468+ #else
1469+ return . package ( url: url, from: " 600.0.0-latest " )
1470+ #endif
1471+ }
1472+
14621473func firestoreWrapperTarget( ) -> Target {
14631474 if Context . environment [ " FIREBASE_SOURCE_FIRESTORE " ] != nil {
14641475 return . target(
You can’t perform that action at this time.
0 commit comments