Add Settings package

This commit is contained in:
Rokas Ambrazevicius
2024-01-08 13:48:22 +02:00
parent b609331b8e
commit 8e302bfdde
6 changed files with 57 additions and 1 deletions
@@ -11,6 +11,7 @@
D99A147A2B357E9900F2728B /* NymVPNApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D99A14792B357E9900F2728B /* NymVPNApp.swift */; };
D99A148A2B35A73F00F2728B /* Home in Frameworks */ = {isa = PBXBuildFile; productRef = D99A14892B35A73F00F2728B /* Home */; };
D99A148C2B35A74200F2728B /* Theme in Frameworks */ = {isa = PBXBuildFile; productRef = D99A148B2B35A74200F2728B /* Theme */; };
D9F699E02B4C1862005576A9 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = D9F699DF2B4C1862005576A9 /* Settings */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -24,6 +25,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D9F699E02B4C1862005576A9 /* Settings in Frameworks */,
D99A148C2B35A74200F2728B /* Theme in Frameworks */,
D99A148A2B35A73F00F2728B /* Home in Frameworks */,
);
@@ -85,6 +87,7 @@
packageProductDependencies = (
D99A14892B35A73F00F2728B /* Home */,
D99A148B2B35A74200F2728B /* Theme */,
D9F699DF2B4C1862005576A9 /* Settings */,
);
productName = NymVPN;
productReference = D99A14762B357E9900F2728B /* NymVPN.app */;
@@ -383,6 +386,10 @@
isa = XCSwiftPackageProductDependency;
productName = Theme;
};
D9F699DF2B4C1862005576A9 /* Settings */ = {
isa = XCSwiftPackageProductDependency;
productName = Settings;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = D99A146E2B357E9900F2728B /* Project object */;
+4 -1
View File
@@ -8,9 +8,12 @@
location = "group:Home">
</FileRef>
<FileRef
location = "group:UIComponents">
location = "group:Settings">
</FileRef>
<FileRef
location = "group:Theme">
</FileRef>
<FileRef
location = "group:UIComponents">
</FileRef>
</Workspace>
+8
View File
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
+27
View File
@@ -0,0 +1,27 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Settings",
defaultLocalization: "en",
platforms: [
.iOS(.v16)
],
products: [
.library(
name: "Settings",
targets: ["Settings"]
)
],
targets: [
.target(
name: "Settings"
),
.testTarget(
name: "SettingsTests",
dependencies: ["Settings"]
)
]
)
@@ -0,0 +1,7 @@
import SwiftUI
struct SettingsView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
@@ -0,0 +1,4 @@
import XCTest
@testable import Settings
final class SettingsTests: XCTestCase {}