Skip to content

Commit

Permalink
Support SwiftPM
Browse files Browse the repository at this point in the history
  • Loading branch information
patskovn authored and ivlevAstef committed Jan 29, 2019
1 parent 99c9112 commit 41fcf70
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 6 deletions.
9 changes: 9 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "SwiftLazy",
products: [.library(name: "SwiftLazy", targets: ["SwiftLazy"])],
targets: [.target(name: "SwiftLazy", dependencies: [])]
)

2 changes: 2 additions & 0 deletions Sources/BaseLazy.swift → Sources/SwiftLazy/BaseLazy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2018 Alexander Ivlev. All rights reserved.
//

import Foundation

public class BaseThreadSaveLazy<Value> {

/// `true` if `self` was previously made.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2018 Alexander Ivlev. All rights reserved.
//

import Foundation

internal protocol FastLock {
func lock()
func unlock()
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 14 additions & 6 deletions SwiftLazy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@
16640A4C1D9E1E7B00707BFC /* Sources */ = {
isa = PBXGroup;
children = (
BA6643DD2079FC240032B4A7 /* Lazy.swift */,
BA6643E3207A00DE0032B4A7 /* Provider.swift */,
BADC36E8215CA72B00CEC778 /* BaseLazy.swift */,
BADC36EC215CA73500CEC778 /* BaseProvider.swift */,
BADC36E4215CA5E000CEC778 /* ProviderArgs.swift */,
BAB8971520997930009274F8 /* Multithread.swift */,
FD03854D21AC01D200A4EF60 /* SwiftLazy */,
BA6643DE2079FC240032B4A7 /* SwiftLazy.h */,
169C0E1C1DA355A6001F0AD5 /* Info.plist */,
);
Expand All @@ -102,6 +97,19 @@
name = Products;
sourceTree = "<group>";
};
FD03854D21AC01D200A4EF60 /* SwiftLazy */ = {
isa = PBXGroup;
children = (
BA6643DD2079FC240032B4A7 /* Lazy.swift */,
BA6643E3207A00DE0032B4A7 /* Provider.swift */,
BADC36E8215CA72B00CEC778 /* BaseLazy.swift */,
BADC36EC215CA73500CEC778 /* BaseProvider.swift */,
BADC36E4215CA5E000CEC778 /* ProviderArgs.swift */,
BAB8971520997930009274F8 /* Multithread.swift */,
);
path = SwiftLazy;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down

0 comments on commit 41fcf70

Please sign in to comment.