Skip to content

Commit

Permalink
splitting the library into modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy-Holovnia committed May 30, 2022
1 parent 2e8b03e commit f791f47
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 9 deletions.
14 changes: 11 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ let package = Package(
name: "Uptech-iOS-Helpers",
platforms: [.iOS(.v11)],
products: [
.library(name: "Uptech-iOS-Helpers", targets: ["Uptech-iOS-Helpers"]),
.library(name: "FoundationUptech", targets: ["FoundationUptech"]),
.library(name: "UIKitUptech", targets: ["UIKitUptech"])
],
targets: [
.target(name: "Uptech-iOS-Helpers", dependencies: []),
.testTarget(name: "Uptech-iOS-Helpers-Tests", dependencies: ["Uptech-iOS-Helpers"]),
.target(name: "FoundationUptech", path: "Sources/Uptech-iOS-Helpers/FoundationUptech"),
.target(name: "UIKitUptech", path: "Sources/Uptech-iOS-Helpers/UIKitUptech"),
.testTarget(name: "FoundationUptech-Test",
dependencies: ["FoundationUptech"],
path: "Tests/Uptech-iOS-Helpers-Tests/FoundationUptech"),
.testTarget(name: "UIKitUptech-Test",
dependencies: ["UIKitUptech"],
path: "Tests/Uptech-iOS-Helpers-Tests/UIKitUptech")
// .testTarget(name: "Uptech-iOS-Helpers-Tests", dependencies: ["FoundationUptech", "UIKitUptech"]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Uptech_iOS_Helpers
@testable import FoundationUptech

final class ArrayExtensionsTests: XCTestCase {
private let sut = [0, 1, 2, 3, 4]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Uptech_iOS_Helpers
@testable import UIKitUptech

final class CollectionIndexPathTests: XCTestCase {
private let sut = [[0, 1, 2],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Uptech_iOS_Helpers
@testable import UIKitUptech

final class NSLayoutConstraintExtensionsTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import XCTest
import UIKit
@testable import Uptech_iOS_Helpers
@testable import UIKitUptech

final class UICollectionViewExtensionsTests: XCTestCase {
private class TestCell: UICollectionViewCell, ReusableCell { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import XCTest
import UIKit
@testable import Uptech_iOS_Helpers
@testable import UIKitUptech

final class UITableViewExtensionsTests: XCTestCase {
private class TestCell: UITableViewCell, ReusableCell { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Uptech_iOS_Helpers
@testable import UIKitUptech

final class UIViewExtensionsTests: XCTestCase {

Expand Down

0 comments on commit f791f47

Please sign in to comment.