Skip to content
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

R.swift 7 – Major version, Xcode plugin, internal refactor #766

Merged
merged 163 commits into from
Nov 28, 2022

Conversation

tomlokhorst
Copy link
Collaborator

@tomlokhorst tomlokhorst commented Nov 8, 2022

⚠️ This is a test version of a new version major of R.swift.

Global overview:

  • Refactored internals (therefore: breaking changes)
  • Merged R.swift and R.swift.Library projects
  • Smaller generated code
  • A lot of fixes to open issues
  • SPM Plugin support

This version still needs testing in real world projects, to see if there are things broken that shouldn't be. Also a proper migration guide needs to be written.


If you want to help testing this version in your project:

CocoaPods:
pod 'R.swift', '~> 7.0.0-alpha.17'
SPM:
.package(url: "https://github.com/mac-cain13/R.swift.git", branch: "refactor")


Fixes:

@RobertDresler
Copy link

Hello, is there any way how to prevent package from rerunning the plugin for generating resources on every build eventough no changes were made? It takes too much time when I'm creating and testing UI in SwiftUI previews.

Screenshot 2022-11-16 at 10 26 44

@tomlokhorst
Copy link
Collaborator Author

I don’t know.

In particular, I’m not sure what the slow part is here. We’ll have to investigate what’s causing the slowness. Is calling any build tool slow (even if it does nothing)? Or is Rswift slow, because it does a lot of redundant work? That might be optimized by generating an “input file”, but maybe then the generation of the input file becomes the slow part…

So in conclusion: I’ll have to investigate this future 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment