Skip to content

Commit

Permalink
Merge pull request #46 from Idea-Archive/43-tuist-introduction
Browse files Browse the repository at this point in the history
🔨 :: [43] tuist적용
  • Loading branch information
uuuunseo authored Aug 30, 2023
2 parents 8157242 + e7ed55e commit 481e5ad
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 1,177 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
.LSOverride

# Icon must end with two \r
Icon
Icon


# Thumbnails
._*
Expand Down Expand Up @@ -134,5 +135,7 @@ iOSInjectionProject/

### SwiftPackageManager ###
Packages
*.xcodeproj
.package.resolved

# End of https://www.toptal.com/developers/gitignore/api/swiftpackagemanager,swift,xcode,macos,git
24 changes: 24 additions & 0 deletions Derived/Sources/TuistBundle+IdeaArchive.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
import Foundation

// MARK: - Swift Bundle Accessor

private class BundleFinder {}

extension Foundation.Bundle {
/// Since Idea-Archive is a application, the bundle for classes within this module can be used directly.
static let module = Bundle(for: BundleFinder.self)
}

// MARK: - Objective-C Bundle Accessor

@objc
public class IdeaArchiveResources: NSObject {
@objc public class var bundle: Bundle {
return .module
}
}
// swiftlint:enable all
// swiftformat:enable all
998 changes: 0 additions & 998 deletions Idea-Archive.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project:
tuist clean
tuist fetch
tuist generate --no-open && open Idea-Archive.xcworkspace

open:
tuist generate --no-open && open Idea-Archive.xcworkspace

asset:
tuist generate
59 changes: 59 additions & 0 deletions Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import ProjectDescription

let projectName = "Idea-Archive"
let orginazationIden = ".class"

let project = Project(
name: projectName,
organizationName: "\(projectName)-iOS",
packages: [
.remote(
url: "https://github.com/hackiftekhar/IQKeyboardManager.git",
requirement: .upToNextMajor(from: "6.5.0")
),
.remote(
url: "https://github.com/SnapKit/SnapKit.git",
requirement: .upToNextMajor(from: "5.0.1")
),
.remote(
url: "https://github.com/Moya/Moya.git",
requirement: .upToNextMajor(from: "15.0.0")
),
.remote(
url: "https://github.com/RxSwiftCommunity/RxKeyboard.git",
requirement: .upToNextMajor(from: "2.0.1")
),
.remote(
url: "https://github.com/devxoul/Then",
requirement: .upToNextMajor(from: "2")
),
.package(
url: "https://github.com/uuuunseo/AEOTPTextField.git",
.upToNextMajor(from: "1.0.0")
)
],
settings: nil,
targets: [
Target(
name: projectName,
platform: .iOS,
product: .app,
bundleId: "\(orginazationIden).\(projectName)",
deploymentTarget: .iOS(targetVersion: "15.0", devices: [.iphone, .ipad]),
infoPlist: .file(path: Path("\(projectName)/Support/Info.plist")),
sources: ["\(projectName)/Sources/**"],
resources: ["\(projectName)/Resources/**"],
dependencies: [
.package(product: "IQKeyboardManager"),
.package(product: "SnapKit"),
.package(product: "Moya"),
.package(product: "RxKeyboard"),
.package(product: "Then"),
.package(product: "AEOTPTextField")
]
)
],
fileHeaderTemplate: nil,
additionalFiles: [],
resourceSynthesizers: []
)

0 comments on commit 481e5ad

Please sign in to comment.