-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Tuist in the Template #37952
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
packages/react-native/template/ios/Derived/Sources/TuistAssets+HelloWorld.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// swiftlint:disable all | ||
// swift-format-ignore-file | ||
// swiftformat:disable all | ||
// Generated using tuist — https://github.com/tuist/tuist | ||
|
||
#if os(macOS) | ||
import AppKit | ||
#elseif os(iOS) | ||
import UIKit | ||
#elseif os(tvOS) || os(watchOS) | ||
import UIKit | ||
#endif | ||
#if canImport(SwiftUI) | ||
import SwiftUI | ||
#endif | ||
|
||
// swiftlint:disable superfluous_disable_command file_length implicit_return | ||
|
||
// MARK: - Asset Catalogs | ||
|
||
// swiftlint:disable identifier_name line_length nesting type_body_length type_name | ||
public enum HelloWorldAsset { | ||
} | ||
// swiftlint:enable identifier_name line_length nesting type_body_length type_name | ||
|
||
// MARK: - Implementation Details | ||
|
||
// swiftlint:enable all | ||
// swiftformat:enable all |
24 changes: 24 additions & 0 deletions
24
packages/react-native/template/ios/Derived/Sources/TuistBundle+HelloWorld.swift
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be gitignored, too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 HelloWorld 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 HelloWorldResources: NSObject { | ||
@objc public class var bundle: Bundle { | ||
return .module | ||
} | ||
} | ||
// swiftlint:enable all | ||
// swiftformat:enable all |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can be put into
.gitignore
. It's automatically generated and not something users should commit. Projects created withtuist init
the wholeDerived
folder in.gitignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, as I said in the Next Steps above:
The reason why they are not ignored now is to allow users to use the Xcodeproj without the need of installing tuist. The plan is to ignore them and remove the
xcodeproj
as soon as the CLI can handle Tuist properly.