Skip to content

Commit

Permalink
Add SPM support
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Jun 29, 2021
1 parent e5ff6ba commit 11f0f33
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 11 deletions.
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.

30 changes: 19 additions & 11 deletions LiveFader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
535898A922133CA900C3E582 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 535898A722133CA900C3E582 /* Main.storyboard */; };
535898AB22133CA900C3E582 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 535898AA22133CA900C3E582 /* Assets.xcassets */; };
535898AE22133CA900C3E582 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 535898AC22133CA900C3E582 /* LaunchScreen.storyboard */; };
53EE64B5221360C50010F4E8 /* LiveFaderScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53EE64B3221360C50010F4E8 /* LiveFaderScrollView.swift */; };
53EE64B6221360C50010F4E8 /* LiveFader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53EE64B4221360C50010F4E8 /* LiveFader.swift */; };
C1F0B0B1268B81220021D5C6 /* LiveFaderScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1F0B0AF268B81220021D5C6 /* LiveFaderScrollView.swift */; };
C1F0B0B2268B81220021D5C6 /* LiveFader.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1F0B0B0268B81220021D5C6 /* LiveFader.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -24,8 +24,8 @@
535898AA22133CA900C3E582 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
535898AD22133CA900C3E582 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
535898AF22133CA900C3E582 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
53EE64B3221360C50010F4E8 /* LiveFaderScrollView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LiveFaderScrollView.swift; sourceTree = "<group>"; };
53EE64B4221360C50010F4E8 /* LiveFader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LiveFader.swift; sourceTree = "<group>"; };
C1F0B0AF268B81220021D5C6 /* LiveFaderScrollView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LiveFaderScrollView.swift; sourceTree = "<group>"; };
C1F0B0B0268B81220021D5C6 /* LiveFader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LiveFader.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -58,7 +58,7 @@
535898A222133CA900C3E582 /* LiveFader */ = {
isa = PBXGroup;
children = (
53EE64B2221360C50010F4E8 /* Source */,
C1F0B0AD268B81220021D5C6 /* Sources */,
535898A322133CA900C3E582 /* AppDelegate.swift */,
535898A522133CA900C3E582 /* ViewController.swift */,
535898A722133CA900C3E582 /* Main.storyboard */,
Expand All @@ -69,13 +69,21 @@
path = LiveFader;
sourceTree = "<group>";
};
53EE64B2221360C50010F4E8 /* Source */ = {
C1F0B0AD268B81220021D5C6 /* Sources */ = {
isa = PBXGroup;
children = (
53EE64B3221360C50010F4E8 /* LiveFaderScrollView.swift */,
53EE64B4221360C50010F4E8 /* LiveFader.swift */,
C1F0B0AE268B81220021D5C6 /* LiveFader */,
);
path = Source;
path = Sources;
sourceTree = SOURCE_ROOT;
};
C1F0B0AE268B81220021D5C6 /* LiveFader */ = {
isa = PBXGroup;
children = (
C1F0B0AF268B81220021D5C6 /* LiveFaderScrollView.swift */,
C1F0B0B0268B81220021D5C6 /* LiveFader.swift */,
);
path = LiveFader;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down Expand Up @@ -149,8 +157,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
53EE64B6221360C50010F4E8 /* LiveFader.swift in Sources */,
53EE64B5221360C50010F4E8 /* LiveFaderScrollView.swift in Sources */,
C1F0B0B2268B81220021D5C6 /* LiveFader.swift in Sources */,
C1F0B0B1268B81220021D5C6 /* LiveFaderScrollView.swift in Sources */,
535898A622133CA900C3E582 /* ViewController.swift in Sources */,
535898A422133CA900C3E582 /* AppDelegate.swift in Sources */,
);
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "LiveFader",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "LiveFader",
targets: ["LiveFader"]),
],
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 this package depends on.
.target(
name: "LiveFader",
dependencies: []),
.testTarget(
name: "LiveFaderTests",
dependencies: ["LiveFader"]),
]
)
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions Tests/LiveFaderTests/LiveFaderTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import XCTest
@testable import LiveFader

final class LiveFaderTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
// XCTAssertEqual(LiveFader().text, "Hello, World!")
}
}

0 comments on commit 11f0f33

Please sign in to comment.