Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
xcuserdata
Package.resolved
.serverless
*dist/

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Examples/LocalDebugging/MyApp/MyApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
objects = {

/* Begin PBXBuildFile section */
00D8767929489CAF00C69C82 /* Shared in Frameworks */ = {isa = PBXBuildFile; productRef = 00D8767829489CAF00C69C82 /* Shared */; };
7CD1174B26FE468F007DD17A /* MyApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD1174A26FE468F007DD17A /* MyApp.swift */; };
7CD1174D26FE468F007DD17A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD1174C26FE468F007DD17A /* ContentView.swift */; };
7CD1174F26FE4692007DD17A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7CD1174E26FE4692007DD17A /* Assets.xcassets */; };
7CD1175226FE4692007DD17A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7CD1175126FE4692007DD17A /* Preview Assets.xcassets */; };
7CD1175A26FE4F44007DD17A /* Shared in Frameworks */ = {isa = PBXBuildFile; productRef = 7CD1175926FE4F44007DD17A /* Shared */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -27,7 +27,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7CD1175A26FE4F44007DD17A /* Shared in Frameworks */,
00D8767929489CAF00C69C82 /* Shared in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -94,7 +94,7 @@
);
name = MyApp;
packageProductDependencies = (
7CD1175926FE4F44007DD17A /* Shared */,
00D8767829489CAF00C69C82 /* Shared */,
);
productName = MyApp;
productReference = 7CD1174726FE468F007DD17A /* MyApp.app */;
Expand Down Expand Up @@ -356,7 +356,7 @@
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
7CD1175926FE4F44007DD17A /* Shared */ = {
00D8767829489CAF00C69C82 /* Shared */ = {
isa = XCSwiftPackageProductDependency;
productName = Shared;
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ let package = Package(
name: "MyLambda",
platforms: [
.macOS(.v12),
.iOS(.v15)
],
products: [
.executable(name: "MyLambda", targets: ["MyLambda"]),
.library(name: "Shared", targets: ["Shared"]),
],
dependencies: [
// this is the dependency on the swift-aws-lambda-runtime library
// in real-world projects this would say
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0")
.package(name: "swift-aws-lambda-runtime", path: "../../.."),
.package(name: "Shared", path: "../Shared"),
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"),
// .package(name: "swift-aws-lambda-runtime", path: "../../.."),
],
targets: [
.executableTarget(
name: "MyLambda",
dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
.product(name: "Shared", package: "Shared"),
.byName(name: "Shared"),
],
path: "."
path: "./MyLambda",
exclude: ["scripts/", "Dockerfile"]
),
.target(name: "Shared",
dependencies: [],
path: "./Shared")
]
)
16 changes: 0 additions & 16 deletions Examples/LocalDebugging/Shared/Package.swift

This file was deleted.