Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPM support #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions FFPopup.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
objects = {

/* Begin PBXBuildFile section */
B0DDF29D2AA8428C009EF717 /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0DDF29C2AA8428B009EF717 /* Package.swift */; };
D33A72192276A3A800F0C7F5 /* FFPopup.h in Headers */ = {isa = PBXBuildFile; fileRef = D3DF1B3421ABC75500C6B2E2 /* FFPopup.h */; settings = {ATTRIBUTES = (Public, ); }; };
D33A721A2276A3AB00F0C7F5 /* FFPopup.m in Sources */ = {isa = PBXBuildFile; fileRef = D3DF1B3521ABC75500C6B2E2 /* FFPopup.m */; };
D3DF1B3621ABC75500C6B2E2 /* FFPopup.h in Headers */ = {isa = PBXBuildFile; fileRef = D3DF1B3421ABC75500C6B2E2 /* FFPopup.h */; settings = {ATTRIBUTES = (Public, ); }; };
D3DF1B3721ABC75500C6B2E2 /* FFPopup.m in Sources */ = {isa = PBXBuildFile; fileRef = D3DF1B3521ABC75500C6B2E2 /* FFPopup.m */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
B0DDF29C2AA8428B009EF717 /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
D33A72112276A38500F0C7F5 /* FFPopup_Static.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FFPopup_Static.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D33A72142276A38500F0C7F5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D3DF1B2821ABC73C00C6B2E2 /* FFPopup.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FFPopup.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -51,6 +53,7 @@
D3DF1B1E21ABC73C00C6B2E2 = {
isa = PBXGroup;
children = (
B0DDF29C2AA8428B009EF717 /* Package.swift */,
D3DF1B2A21ABC73C00C6B2E2 /* FFPopup */,
D33A72122276A38500F0C7F5 /* FFPopup_Static */,
D3DF1B2921ABC73C00C6B2E2 /* Products */,
Expand Down Expand Up @@ -156,6 +159,7 @@
};
D3DF1B2721ABC73C00C6B2E2 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1430;
};
};
};
Expand Down Expand Up @@ -207,6 +211,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B0DDF29D2AA8428C009EF717 /* Package.swift in Sources */,
D3DF1B3721ABC75500C6B2E2 /* FFPopup.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -393,6 +398,7 @@
D3DF1B3121ABC73C00C6B2E2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand All @@ -413,13 +419,16 @@
PRODUCT_BUNDLE_IDENTIFIER = com.jonyfang.FFPopup;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
D3DF1B3221ABC73C00C6B2E2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
Expand All @@ -440,6 +449,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.jonyfang.FFPopup;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
21 changes: 21 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "FFPopup",
products: [
.library(name: "FFPopup", targets: ["FFPopup"])
],
targets: [
.target(
name: "FFPopup",
path: "FFPopup",
publicHeadersPath: "",
cSettings: [
.headerSearchPath("")
]
)
]
)