Right now functions Bundlex.get_target/0 and Bundlex.platform/0 aren't clearly distinguished and it's not really clear when which one should be used. Moreover I believe it's worth considering whether one of these functions isn't redundant, since they use :erlang.system_info(:system_architecture) and :os.type() respectively and it's not really clear when one is more useful than the other.
Also from these two only Bundlex.platform/0 gives information about crosscompilation for nerves, so that functionality could be extended to Bundlex.get_target/0 which is used by Precompiled Dependency Provider. That would stop it from downloading precompiled builds for wrong target (right now when crosscompiling precompiled dependencies need to be disabled manually, related discord thread).
Right now functions
Bundlex.get_target/0
andBundlex.platform/0
aren't clearly distinguished and it's not really clear when which one should be used. Moreover I believe it's worth considering whether one of these functions isn't redundant, since they use:erlang.system_info(:system_architecture)
and:os.type()
respectively and it's not really clear when one is more useful than the other.Also from these two only
Bundlex.platform/0
gives information about crosscompilation for nerves, so that functionality could be extended toBundlex.get_target/0
which is used by Precompiled Dependency Provider. That would stop it from downloading precompiled builds for wrong target (right now when crosscompiling precompiled dependencies need to be disabled manually, related discord thread).