Skip to content

Commit 5c3bb38

Browse files
committed
Tuist test project
1 parent 130732d commit 5c3bb38

7 files changed

Lines changed: 169 additions & 0 deletions

File tree

Tests/Tuist/SQLite-Test/.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
### macOS ###
2+
# General
3+
.DS_Store
4+
.AppleDouble
5+
.LSOverride
6+
7+
# Icon must end with two
8+
Icon
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
.com.apple.timemachine.donotpresent
21+
22+
# Directories potentially created on remote AFP share
23+
.AppleDB
24+
.AppleDesktop
25+
Network Trash Folder
26+
Temporary Items
27+
.apdisk
28+
29+
### Xcode ###
30+
# Xcode
31+
#
32+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
33+
34+
## User settings
35+
xcuserdata/
36+
37+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
38+
*.xcscmblueprint
39+
*.xccheckout
40+
41+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
42+
build/
43+
DerivedData/
44+
*.moved-aside
45+
*.pbxuser
46+
!default.pbxuser
47+
*.mode1v3
48+
!default.mode1v3
49+
*.mode2v3
50+
!default.mode2v3
51+
*.perspectivev3
52+
!default.perspectivev3
53+
54+
### Xcode Patch ###
55+
*.xcodeproj/*
56+
!*.xcodeproj/project.pbxproj
57+
!*.xcodeproj/xcshareddata/
58+
!*.xcworkspace/contents.xcworkspacedata
59+
/*.gcno
60+
61+
### Projects ###
62+
*.xcodeproj
63+
*.xcworkspace
64+
65+
### Tuist derived files ###
66+
graph.dot
67+
Derived/
68+
69+
### Tuist managed dependencies ###
70+
Tuist/.build
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import ProjectDescription
2+
3+
let project = Project(
4+
name: "SQLite-Test",
5+
targets: [
6+
.target(
7+
name: "SQLite-Test",
8+
destinations: .iOS,
9+
product: .app,
10+
bundleId: "dev.tuist.SQLite-Test",
11+
infoPlist: .extendingDefault(
12+
with: [
13+
"UILaunchScreen": [
14+
"UIColorName": "",
15+
"UIImageName": "",
16+
],
17+
]
18+
),
19+
buildableFolders: [
20+
"SQLite-Test/Sources",
21+
"SQLite-Test/Resources",
22+
],
23+
dependencies: []
24+
),
25+
.target(
26+
name: "SQLite-TestTests",
27+
destinations: .iOS,
28+
product: .unitTests,
29+
bundleId: "dev.tuist.SQLite-TestTests",
30+
infoPlist: .default,
31+
buildableFolders: [
32+
"SQLite-Test/Tests"
33+
],
34+
dependencies: [.target(name: "SQLite-Test")]
35+
),
36+
]
37+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import SwiftUI
2+
3+
public struct ContentView: View {
4+
public init() {}
5+
6+
public var body: some View {
7+
Text("Hello, World!")
8+
.padding()
9+
}
10+
}
11+
12+
13+
struct ContentView_Previews: PreviewProvider {
14+
static var previews: some View {
15+
ContentView()
16+
}
17+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import SwiftUI
2+
3+
@main
4+
struct SQLiteTestApp: App {
5+
var body: some Scene {
6+
WindowGroup {
7+
ContentView()
8+
}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Testing
2+
@testable import SQLiteTest
3+
4+
struct SQLiteTestTests {
5+
6+
@Test func example() async throws {
7+
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
8+
}
9+
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import ProjectDescription
2+
3+
let tuist = Tuist(project: .tuist())
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// swift-tools-version: 6.0
2+
import PackageDescription
3+
4+
#if TUIST
5+
import struct ProjectDescription.PackageSettings
6+
7+
let packageSettings = PackageSettings(
8+
// Customize the product types for specific package product
9+
// Default is .staticFramework
10+
// productTypes: ["Alamofire": .framework,]
11+
productTypes: [:]
12+
)
13+
#endif
14+
15+
let package = Package(
16+
name: "SQLite-Test",
17+
dependencies: [
18+
// Add your own dependencies here:
19+
.package(path: "../../../..")
20+
// You can read more about dependencies here: https://docs.tuist.io/documentation/tuist/dependencies
21+
]
22+
)

0 commit comments

Comments
 (0)