-
Notifications
You must be signed in to change notification settings - Fork 33
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
u3d/installer: Enable the download/installation of modules from Unity Hub #375
Conversation
Still WIP, the specs are broken since the mocking is haywire. Plus some additional specs are needed |
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.
Nice cleanup + new feature.
UI.verbose "Loading modules for several versions: #{version}" | ||
load_versions_modules(version, cached_versions, os, offline) | ||
else | ||
UI.verbose "Loading modules for version #{version}" |
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.
Could we reuse the same load_versions_modules
method and pass [version]
to reduce code?
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.
It would change the interface though.
load_version_module
returns an array of modules, while load_versions_module
returns an hash of version, array of modules.
Maybe we want to clean that up though.
d774ba4
to
002e2a3
Compare
f3c197d
to
a20798e
Compare
aefbf9c
to
cb3eb3c
Compare
7869aa2
to
5bf184f
Compare
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.
Looks very close to merge to me.
1edc419
to
abd3578
Compare
…handled by constructor
f3f8ab8
to
2b698d3
Compare
2b698d3
to
8d9ad6e
Compare
55e924c
to
a1be0f6
Compare
end | ||
end | ||
|
||
def detect_installed_packages(packages, unity) |
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.
These methods could be moved inside the Unity Installation class
def [](key) | ||
return nil unless @ini | ||
@ini[key] | ||
def ini |
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.
👍
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.
Document and test the chmod change then OK for me!
Great that you kept the backward compatibility as much as possible. 💯 👍 |
Pull Request Checklist
bundle exec rspec
to make sure that my PR didn't break any testbundle exec rubocop
to make sure that my PR is inline with our code stylePull Request Description
Some new modules available through the Unity Hub are not accessible through the previous .ini standard.
This PR standardizes the concept of module by introducing the
UnityModule
class, which can be generated fromINIModulesParser
(previously INIparser) orHubModulesParser
. This is a rather large PR since this concept was quite widely spread across the application.Fixes #359 by making the SKD/NDK packages accessible