-
Notifications
You must be signed in to change notification settings - Fork 86
[PM-28540] Simplify project files with Xcodegen templates #2153
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,3 +25,70 @@ packages: | |
| ViewInspector: | ||
| url: https://github.com/nalexn/ViewInspector | ||
| exactVersion: 0.10.3 | ||
| targetTemplates: | ||
| # Adds common include/excludes for app and framework targets. | ||
| CommonTarget: | ||
| sources: | ||
| - path: ${sourcesPath} | ||
| excludes: | ||
| - "**/*Tests.*" | ||
| - "**/.gitignore" | ||
| - "**/Fixtures/*" | ||
| - "**/GoogleService-Info.*.plist" | ||
| - "**/Mocks/*" | ||
| - "**/Sourcery/Generated/*" | ||
| - "**/TestHelpers/*" | ||
| - "**/Tests/*" | ||
| - "**/__Snapshots__/*" | ||
| - "**/sourcery.yml" | ||
fedemkr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - path: ${sourcesPath} | ||
| includes: | ||
| - "**/__Snapshots__/*" | ||
| - "**/GoogleService-Info.*.plist" | ||
| buildPhase: none | ||
| # Adds common include/excludes for mocks targets. | ||
| MocksTarget: | ||
| sources: | ||
| - path: ${sourcesPath} | ||
| includes: | ||
| - "**/Fixtures/*" | ||
| - "**/Mocks/*" | ||
|
Comment on lines
+50
to
+55
Member
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. ๐ค Should the auto generated Sourcery optional file be added here as well?
Collaborator
Author
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. The only issue with this is that not all targets using the
Member
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. I would like the bridge to follow the same pattern at some point but currently there are only 2 mocks in there, so applying it now may be a bit overkill.
Collaborator
Author
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. Yep, I like that. |
||
| # Adds common include/excludes for snapshot test targets. | ||
| SnapshotTestTarget: | ||
| sources: | ||
| - path: ${sourcesPath} | ||
| includes: | ||
| - "**/*SnapshotTests.*" | ||
| - "**/TestHelpers/*" | ||
| # Adds the Sourcery pre-build script. | ||
| SourceryTarget: | ||
| sources: | ||
| - path: ${sourcesPath}/Sourcery/sourcery.yml | ||
| buildPhase: none | ||
| preBuildScripts: | ||
| - name: Sourcery | ||
| script: | | ||
| if [[ ! "$PATH" =~ "/opt/homebrew/bin" ]]; then | ||
| PATH="/opt/homebrew/bin:$PATH" | ||
| fi | ||
| mint run sourcery --config ${sourcesPath}/Sourcery/sourcery.yml | ||
| basedOnDependencyAnalysis: false | ||
| outputFiles: | ||
| - $(SRCROOT)/${sourcesPath}/Sourcery/Generated/AutoMockable.generated.swift | ||
| # Adds common include/excludes for test targets. | ||
| TestTarget: | ||
| sources: | ||
| - path: ${sourcesPath} | ||
| excludes: | ||
| - "**/*SnapshotTests.*" | ||
| - "**/*ViewInspectorTests.*" | ||
| includes: | ||
| - "**/*Tests.*" | ||
| - "**/TestHelpers/*" | ||
| # Adds common include/excludes for ViewInspector test targets. | ||
| ViewInspectorTestTarget: | ||
| sources: | ||
| - path: ${sourcesPath} | ||
| includes: | ||
| - "**/*ViewInspectorTests.*" | ||
| - "**/TestHelpers/*" | ||
Uh oh!
There was an error while loading. Please reload this page.