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

Splitting the package into modules #6

Open
wants to merge 2 commits 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
13 changes: 10 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ let package = Package(
name: "Uptech-iOS-Helpers",
platforms: [.iOS(.v11)],
products: [
.library(name: "Uptech-iOS-Helpers", targets: ["Uptech-iOS-Helpers"]),
.library(name: "FoundationHelper", targets: ["FoundationHelper"]),
.library(name: "UIKitHelper", targets: ["UIKitHelper"])
],
targets: [
.target(name: "Uptech-iOS-Helpers", dependencies: []),
.testTarget(name: "Uptech-iOS-Helpers-Tests", dependencies: ["Uptech-iOS-Helpers"]),
.target(name: "FoundationHelper", path: "Sources/Uptech-iOS-Helpers/FoundationHelper"),
.target(name: "UIKitHelper", path: "Sources/Uptech-iOS-Helpers/UIKitHelper"),
.testTarget(name: "FoundationHelper-Test",
dependencies: ["FoundationHelper"],
path: "Tests/Uptech-iOS-Helpers-Tests/FoundationHelper"),
.testTarget(name: "UIKitHelper-Test",
dependencies: ["UIKitHelper"],
path: "Tests/Uptech-iOS-Helpers-Tests/UIKitHelper")
]
)
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 FoundationHelper

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 UIKitHelper

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 UIKitHelper

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 UIKitHelper

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 UIKitHelper

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 UIKitHelper

final class UIViewExtensionsTests: XCTestCase {

Expand Down