Skip to content

Commit

Permalink
swift package support
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-digitify committed Sep 1, 2020
1 parent 0486deb commit db9d103
Show file tree
Hide file tree
Showing 21 changed files with 73 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

31 changes: 31 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Switches",
platforms: [
.iOS(.v11),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Switches",
targets: ["Switches"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "Switches",
dependencies: []),
.testTarget(
name: "SwitchesTests",
dependencies: ["Switches"]),
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions Sources/Switches/Switches.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
struct Switches {
var text = "Hello, World!"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 27 additions & 15 deletions Switches.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
E30C493E24FAE76F0049D5C3 /* JellySwitchesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E30C492E24FAE76F0049D5C3 /* JellySwitchesViewController.swift */; };
E30C494724FAE8350049D5C3 /* SwitchType.swift in Sources */ = {isa = PBXBuildFile; fileRef = E30C494624FAE8350049D5C3 /* SwitchType.swift */; };
E30C494824FAEB5B0049D5C3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E30C494224FAE7BC0049D5C3 /* Assets.xcassets */; };
E3F7F99424FE171C004DBE69 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = E3F7F99324FE171C004DBE69 /* README.md */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -113,6 +114,7 @@
E30C492E24FAE76F0049D5C3 /* JellySwitchesViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JellySwitchesViewController.swift; sourceTree = "<group>"; };
E30C494224FAE7BC0049D5C3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E30C494624FAE8350049D5C3 /* SwitchType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwitchType.swift; sourceTree = "<group>"; };
E3F7F99324FE171C004DBE69 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -158,8 +160,9 @@
E30C48A724FAE6930049D5C3 = {
isa = PBXGroup;
children = (
E30C48B324FAE6930049D5C3 /* Switches */,
E30C48BE24FAE6930049D5C3 /* SwitchesTests */,
E3F7F99324FE171C004DBE69 /* README.md */,
E3F7F99224FE16D7004DBE69 /* Source */,
E3F7F99624FE1779004DBE69 /* Tests */,
E30C48EA24FAE73F0049D5C3 /* SwitchesDemo */,
E30C490124FAE7420049D5C3 /* SwitchesDemoTests */,
E30C490C24FAE7420049D5C3 /* SwitchesDemoUITests */,
Expand All @@ -179,17 +182,6 @@
name = Products;
sourceTree = "<group>";
};
E30C48B324FAE6930049D5C3 /* Switches */ = {
isa = PBXGroup;
children = (
E30C48B424FAE6930049D5C3 /* Switches.h */,
E30C48CB24FAE6BB0049D5C3 /* Navigation */,
E30C48CE24FAE6BB0049D5C3 /* Switches */,
E30C48B524FAE6930049D5C3 /* Info.plist */,
);
path = Switches;
sourceTree = "<group>";
};
E30C48BE24FAE6930049D5C3 /* SwitchesTests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -317,6 +309,25 @@
path = Model;
sourceTree = "<group>";
};
E3F7F99224FE16D7004DBE69 /* Source */ = {
isa = PBXGroup;
children = (
E30C48B424FAE6930049D5C3 /* Switches.h */,
E30C48B524FAE6930049D5C3 /* Info.plist */,
E30C48CE24FAE6BB0049D5C3 /* Switches */,
E30C48CB24FAE6BB0049D5C3 /* Navigation */,
);
path = Source;
sourceTree = "<group>";
};
E3F7F99624FE1779004DBE69 /* Tests */ = {
isa = PBXGroup;
children = (
E30C48BE24FAE6930049D5C3 /* SwitchesTests */,
);
path = Tests;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -476,6 +487,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E3F7F99424FE171C004DBE69 /* README.md in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -747,7 +759,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Switches/Info.plist;
INFOPLIST_FILE = Source/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -771,7 +783,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Switches/Info.plist;
INFOPLIST_FILE = Source/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit db9d103

Please sign in to comment.