mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
remove package.swift as it is not stable
This commit is contained in:
-126
@@ -1,68 +1,5 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`execute test-app "Package.swift" should match snapshot 1`] = `
|
||||
"// swift-tools-version: 6.1
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: \\"React-GeneratedCode\\",
|
||||
platforms: [.iOS(.v15), .macCatalyst(SupportedPlatform.MacCatalystVersion.v13)],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: \\"ReactCodegen\\",
|
||||
targets: [\\"ReactCodegen\\"]),
|
||||
.library(
|
||||
name: \\"ReactAppDependencyProvider\\",
|
||||
targets: [\\"ReactAppDependencyProvider\\"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(name: \\"React\\", path: \\"../../../../../../../../../../../../../../../../../..\\")
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: \\"ReactCodegen\\",
|
||||
dependencies: [\\"React\\"],
|
||||
path: \\"ReactCodegen\\",
|
||||
exclude: [\\"ReactCodegen.podspec\\"],
|
||||
publicHeadersPath: \\".\\",
|
||||
cSettings: [
|
||||
.headerSearchPath(\\"headers\\")
|
||||
],
|
||||
cxxSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
.unsafeFlags([\\"-std=c++20\\"]),
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedFramework(\\"Foundation\\")
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: \\"ReactAppDependencyProvider\\",
|
||||
dependencies: [\\"ReactCodegen\\"],
|
||||
path: \\"ReactAppDependencyProvider\\",
|
||||
exclude: [\\"ReactAppDependencyProvider.podspec\\"],
|
||||
publicHeadersPath: \\".\\",
|
||||
cSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
],
|
||||
cxxSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
.unsafeFlags([\\"-std=c++20\\"]),
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedFramework(\\"Foundation\\")
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`execute test-app "ReactAppDependencyProvider/RCTAppDependencyProvider.h" should match snapshot 1`] = `
|
||||
"/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
@@ -570,69 +507,6 @@ end
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`execute test-app-legacy "Package.swift" should match snapshot 1`] = `
|
||||
"// swift-tools-version: 6.1
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: \\"React-GeneratedCode\\",
|
||||
platforms: [.iOS(.v15), .macCatalyst(SupportedPlatform.MacCatalystVersion.v13)],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: \\"ReactCodegen\\",
|
||||
targets: [\\"ReactCodegen\\"]),
|
||||
.library(
|
||||
name: \\"ReactAppDependencyProvider\\",
|
||||
targets: [\\"ReactAppDependencyProvider\\"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(name: \\"React\\", path: \\"../../../../../../../../../../../../../../../../../..\\")
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: \\"ReactCodegen\\",
|
||||
dependencies: [\\"React\\"],
|
||||
path: \\"ReactCodegen\\",
|
||||
exclude: [\\"ReactCodegen.podspec\\"],
|
||||
publicHeadersPath: \\".\\",
|
||||
cSettings: [
|
||||
.headerSearchPath(\\"headers\\")
|
||||
],
|
||||
cxxSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
.unsafeFlags([\\"-std=c++20\\"]),
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedFramework(\\"Foundation\\")
|
||||
]
|
||||
),
|
||||
.target(
|
||||
name: \\"ReactAppDependencyProvider\\",
|
||||
dependencies: [\\"ReactCodegen\\"],
|
||||
path: \\"ReactAppDependencyProvider\\",
|
||||
exclude: [\\"ReactAppDependencyProvider.podspec\\"],
|
||||
publicHeadersPath: \\".\\",
|
||||
cSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
],
|
||||
cxxSettings: [
|
||||
.headerSearchPath(\\"headers\\"),
|
||||
.unsafeFlags([\\"-std=c++20\\"]),
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedFramework(\\"Foundation\\")
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`execute test-app-legacy "ReactAppDependencyProvider/RCTAppDependencyProvider.h" should match snapshot 1`] = `
|
||||
"/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
|
||||
-1
@@ -54,7 +54,6 @@ const packageJson = JSON.stringify({
|
||||
'ReactCodegen/ReactCodegen.podspec',
|
||||
'ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.h',
|
||||
'ReactCodegen/RCTUnstableModulesRequiringMainQueueSetupProvider.mm',
|
||||
'Package.swift'
|
||||
].forEach(file => {
|
||||
it(`"${file}" should match snapshot`, () => {
|
||||
const generatedFileDir = path.join(outputDir, 'build/generated/ios');
|
||||
|
||||
Reference in New Issue
Block a user