Skip to content

Commit bbcc452

Browse files
author
Mohammed Rokon Uddin
authored
Merge pull request #8 from rokon-uddin/update_tca
2 parents ef1bfd9 + 86945f5 commit bbcc452

File tree

9 files changed

+57
-42
lines changed

9 files changed

+57
-42
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// swift-tools-version: 5.7
1+
// swift-tools-version: 5.8
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
7-
name: "Commons",
7+
name: "Common",
88
products: [
99
// Products define the executables and libraries a package produces, and make them visible to other packages.
1010
.library(
11-
name: "Commons",
12-
targets: ["Commons"]),
11+
name: "Common",
12+
targets: ["Common"]),
1313
],
1414
dependencies: [
1515
// Dependencies declare other packages that this package depends on.
@@ -19,10 +19,10 @@ let package = Package(
1919
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2020
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2121
.target(
22-
name: "Commons",
22+
name: "Common",
2323
dependencies: []),
2424
.testTarget(
25-
name: "CommonsTests",
26-
dependencies: ["Commons"]),
25+
name: "CommonTests",
26+
dependencies: ["Common"]),
2727
]
2828
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Commons
1+
# Common
22

33
A description of this package.

{{cookiecutter.app_name}}/Commons/Sources/Commons/Commons.swift renamed to {{cookiecutter.app_name}}/Common/Sources/Common/Common.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public struct Commons {
1+
public struct Common {
22
public private(set) var text = "Hello, World!"
33

44
public init() {
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import XCTest
2-
@testable import Commons
2+
@testable import Common
33

4-
final class CommonsTests: XCTestCase {
4+
final class CommonTests: XCTestCase {
55
func testExample() throws {
66
// This is an example of a functional test case.
77
// Use XCTAssert and related functions to verify your tests produce the correct
88
// results.
9-
XCTAssertEqual(Commons().text, "Hello, World!")
9+
XCTAssertEqual(Common().text, "Hello, World!")
1010
}
1111
}

{{cookiecutter.app_name}}/NetworkPlatform/Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ let package = Package(
2222
url: "https://github.com/Swinject/Swinject.git",
2323
from: "2.8.0"
2424
),
25-
.package(
26-
url: "https://github.com/pointfreeco/swift-composable-architecture",
27-
from: "0.47.2"
28-
)
2925
],
3026

3127
targets: [

{{cookiecutter.app_name}}/{{cookiecutter.app_name}}.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
2F1CB989291A097F0033C297 /* BuildConfiguration.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = BuildConfiguration.plist; sourceTree = "<group>"; };
5454
2F28C5F82942162600B7E601 /* NetworkPlatform */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = NetworkPlatform; sourceTree = "<group>"; };
5555
2F4989C3298E8F470007A245 /* Domain */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Domain; sourceTree = "<group>"; };
56-
2F4989C4298E8F6F0007A245 /* Commons */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Commons; sourceTree = "<group>"; };
5756
2F4989C5298E8F9E0007A245 /* Features */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Features; sourceTree = "<group>"; };
5857
2F7B0E56273AD7AC00C68B1F /* {{cookiecutter.app_name}}.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "{{cookiecutter.app_name}}.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5958
2F7B0E59273AD7AC00C68B1F /* MainApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainApp.swift; sourceTree = "<group>"; };
@@ -63,6 +62,7 @@
6362
2F7B0E74273AD7AD00C68B1F /* __cookiecutter_app_name__UITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = __cookiecutter_app_name__UITests.swift; sourceTree = "<group>"; };
6463
2F7B0E76273AD7AD00C68B1F /* __cookiecutter_app_name__UITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = __cookiecutter_app_name__UITestsLaunchTests.swift; sourceTree = "<group>"; };
6564
2F9DFD462990EA1800611A47 /* Utilities */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Utilities; sourceTree = "<group>"; };
65+
2FBF5D1D2A73C01B00527C7D /* Common */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Common; sourceTree = "<group>"; };
6666
6782D5572912526F0015FCBB /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
6767
6782D558291252700015FCBB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6868
67B2B5BD29127D3A00B2E0AC /* Staging.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Staging.xcconfig; sourceTree = "<group>"; };
@@ -116,16 +116,16 @@
116116
2F7B0E4D273AD7AC00C68B1F = {
117117
isa = PBXGroup;
118118
children = (
119-
2F9DFD462990EA1800611A47 /* Utilities */,
120-
2F28C5F82942162600B7E601 /* NetworkPlatform */,
119+
2FBF5D1D2A73C01B00527C7D /* Common */,
121120
2F4989C3298E8F470007A245 /* Domain */,
122-
2F4989C4298E8F6F0007A245 /* Commons */,
123121
2F4989C5298E8F9E0007A245 /* Features */,
122+
2F28C5F82942162600B7E601 /* NetworkPlatform */,
123+
2F9DFD462990EA1800611A47 /* Utilities */,
124124
2F7B0E58273AD7AC00C68B1F /* {{cookiecutter.app_name}} */,
125125
2F7B0E69273AD7AD00C68B1F /* {{cookiecutter.app_name}}Tests */,
126126
2F7B0E73273AD7AD00C68B1F /* {{cookiecutter.app_name}}UITests */,
127-
2F7B0E57273AD7AC00C68B1F /* Products */,
128127
2F5AB7A12940BC1C008B0BAC /* Frameworks */,
128+
2F7B0E57273AD7AC00C68B1F /* Products */,
129129
);
130130
sourceTree = "<group>";
131131
};

{{cookiecutter.app_name}}/{{cookiecutter.app_name}}.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 38 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/Application/MainApp.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import SwiftUI
1313
struct MainApp: App {
1414
var body: some Scene {
1515
WindowGroup {
16-
EmptyView()
16+
Text("👋🏼 🌎")
17+
.font(.largeTitle)
1718
}
1819
}
1920
}

0 commit comments

Comments
 (0)