Skip to content

Commit

Permalink
We are able to generate the project, but there a lot missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocaselani committed May 18, 2019
1 parent 7f4a2ae commit 46512cd
Show file tree
Hide file tree
Showing 22 changed files with 226 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ Pods/
/vendor
.bundle
CouchTrackerApp/Utils/Secrets.swift
crashlytics.apikey
crashlytics.apisecret
CouchTracker.xcodeproj/
CouchTracker.xcworkspace/
1 change: 1 addition & 0 deletions .tuist-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.13.0
File renamed without changes.
19 changes: 0 additions & 19 deletions CouchTrackerCore-iOS/CouchTrackerCore_iOS.h

This file was deleted.

File renamed without changes.
File renamed without changes.
221 changes: 221 additions & 0 deletions Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
import ProjectDescription

let baseBundleId = "io.github.pietrocaselani"

func traktSwiftTargets() -> [Target] {
return [
Target(name: "TraktSwift-iOS",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).TraktSwift-iOS",
infoPlist: "TraktSwift-iOS/Info.plist",
sources: ["TraktSwift/**"],
dependencies: []),
Target(name: "TraktSwift",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TraktSwift",
infoPlist: "TraktSwift/Info.plist",
sources: ["TraktSwift/**"],
dependencies: []),
Target(name: "TraktSwiftTestable",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TraktSwiftTestable",
infoPlist: "TraktSwiftTestable/Info.plist",
sources: ["TraktSwiftTestable/**"],
dependencies: []),
Target(name: "TraktSwiftTests",
platform: .macOS,
product: .unitTests,
bundleId: "\(baseBundleId).TraktSwiftTests",
infoPlist: "TraktSwiftTests/Info.plist",
sources: ["TraktSwiftTests/**"],
dependencies: [])
]
}

func tmdbSwiftTargets() -> [Target] {
return [
Target(name: "TMDBSwift-iOS",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).TMDBSwift-iOS",
infoPlist: "TMDBSwift-iOS/Info.plist",
sources: ["TMDBSwift/**"],
dependencies: []),
Target(name: "TMDBSwift",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TMDBSwift",
infoPlist: "TMDBSwift/Info.plist",
sources: ["TMDBSwift/**"],
dependencies: []),
Target(name: "TMDBSwiftTestable",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TMDBSwiftTestable",
infoPlist: "TMDBSwiftTestable/Info.plist",
sources: ["TMDBSwiftTestable/**"],
dependencies: []),
Target(name: "TMDBSwiftTests",
platform: .macOS,
product: .unitTests,
bundleId: "\(baseBundleId).TMDBSwiftTests",
infoPlist: "TMDBSwiftTests/Info.plist",
sources: ["TMDBSwiftTests/**"],
dependencies: [])
]
}

func tvdbSwiftTargets() -> [Target] {
return [
Target(name: "TVDBSwift-iOS",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).TVDBSwift-iOS",
infoPlist: "TVDBSwift-iOS/Info.plist",
sources: ["TVDBSwift/**"],
dependencies: []),
Target(name: "TVDBSwift",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TVDBSwift",
infoPlist: "TVDBSwift/Info.plist",
sources: ["TVDBSwift/**"],
dependencies: []),
Target(name: "TVDBSwiftTestable",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).TVDBSwiftTestable",
infoPlist: "TVDBSwiftTestable/Info.plist",
sources: ["TVDBSwiftTestable/**"],
dependencies: []),
Target(name: "TVDBSwiftTests",
platform: .macOS,
product: .unitTests,
bundleId: "\(baseBundleId).TVDBSwiftTests",
infoPlist: "TVDBSwiftTests/Info.plist",
sources: ["TVDBSwiftTests/**"],
dependencies: [])
]
}

func couchTrackerCoreTargets() -> [Target] {
return [
Target(name: "CouchTrackerCore-iOS",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerCore-iOS",
infoPlist: "CouchTrackerCore-iOS/Info.plist",
sources: ["CouchTrackerCore/**"],
dependencies: [
.target(name: "TMDBSwift-iOS"),
.target(name: "TVDBSwift-iOS"),
.target(name: "TraktSwift-iOS"),
]),
Target(name: "CouchTrackerCore",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerCore",
infoPlist: "CouchTrackerCore/Info.plist",
sources: ["CouchTrackerCore/**"],
dependencies: [
.target(name: "TMDBSwift-iOS"),
.target(name: "TVDBSwift-iOS"),
.target(name: "TraktSwift-iOS"),
]),
Target(name: "CouchTrackerCoreTests",
platform: .macOS,
product: .unitTests,
bundleId: "\(baseBundleId).CouchTrackerCoreTests",
infoPlist: "CouchTrackerCoreTests/Info.plist",
sources: ["CouchTrackerCoreTests/**"],
dependencies: [])
]
}

func couchTrackerAppTargets() -> [Target] {
return [
Target(name: "CouchTrackerApp",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerApp",
infoPlist: "CouchTrackerApp/Info.plist",
sources: ["CouchTrackerApp/**"],
dependencies: [
.target(name: "CouchTrackerPersistence"),
.target(name: "CouchTrackerDebug"),
.target(name: "CouchTrackerCore-iOS"),
.target(name: "TMDBSwift-iOS"),
.target(name: "TVDBSwift-iOS"),
.target(name: "TraktSwift-iOS"),
]),
Target(name: "CouchTrackerAppTestable",
platform: .macOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerAppTestable",
infoPlist: "CouchTrackerAppTestable/Info.plist",
sources: ["CouchTrackerAppTestable/**"],
dependencies: [])
]
}

func persistanceAndDebugTargets() -> [Target] {
return [
Target(name: "CouchTrackerPersistence",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerPersistence",
infoPlist: "CouchTrackerPersistence/Info.plist",
sources: ["CouchTrackerPersistence/**"],
dependencies: []),
Target(name: "CouchTrackerDebug",
platform: .iOS,
product: .framework,
bundleId: "\(baseBundleId).CouchTrackerDebug",
infoPlist: "CouchTrackerDebug/Info.plist",
sources: ["CouchTrackerDebug/**"],
dependencies: [
.target(name: "CouchTrackerCore-iOS"),
])
]
}

func couchTrackerTargets() -> [Target] {
return [
Target(name: "CouchTracker",
platform: .iOS,
product: .app,
bundleId: "\(baseBundleId).couchtracker",
infoPlist: "CouchTracker/Info.plist",
sources: ["CouchTracker/**"],
dependencies: [
.target(name: "CouchTrackerApp"),
.target(name: "CouchTrackerPersistence"),
.target(name: "CouchTrackerDebug"),
.target(name: "CouchTrackerCore-iOS"),
.target(name: "TMDBSwift-iOS"),
.target(name: "TVDBSwift-iOS"),
.target(name: "TraktSwift-iOS"),
]),
Target(name: "CouchTrackerUITests",
platform: .macOS,
product: .unitTests,
bundleId: "\(baseBundleId).CouchTrackerUITests",
infoPlist: "CouchTrackerUITests/Info.plist",
sources: ["CouchTrackerUITests/**"],
dependencies: [])
]
}

func allTargets() -> [Target] {
let apiTargets = traktSwiftTargets() + tmdbSwiftTargets() + tvdbSwiftTargets()
let dependencies = couchTrackerCoreTargets() + couchTrackerAppTargets() + persistanceAndDebugTargets()
let appTargets = couchTrackerTargets()

return apiTargets + dependencies + appTargets
}

let project = Project(name: "CouchTracker",
targets: allTargets())
File renamed without changes.
File renamed without changes.
Empty file added TMDBSwiftTestable/Empty.swift
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added TVDBSwiftTestable/Empty.swift
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions build_phases/swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ FOLDERS=(
"TMDBSwiftTests/"
"TVDBSwift/"
"TVDBSwiftTests/"
"Project.swift"
)

for folder in ${FOLDERS[*]}; do
Expand Down
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
brew bundle
sudo pip install lizard
bundle install --path vendor/bundle
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/tuist/install/master/install)"

0 comments on commit 46512cd

Please sign in to comment.