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

[FR] Don't process hidden [*]Dependencies.xml files #608

Open
vizgl opened this issue Apr 7, 2023 · 1 comment
Open

[FR] Don't process hidden [*]Dependencies.xml files #608

vizgl opened this issue Apr 7, 2023 · 1 comment

Comments

@vizgl
Copy link

vizgl commented Apr 7, 2023

Feature proposal

I use custom build script with many conditions. For some builds I want to remove libs. I made it by setting hidden flag on folders to true. In that case unity don't add scripts, resources etc to the final apk file. But EDM is not process such cases. It still read [*]Dependencies.xml files and add *.aar files.

I propose add check for parent folders / files to match hidden flag to false before process it.

@vizgl vizgl changed the title FR: Don't process hidden [*]Dependencies.xml files [FR] Don't process hidden [*]Dependencies.xml files Apr 7, 2023
@paulinon paulinon removed the new to be triaged label Apr 7, 2023
@a-maurice
Copy link
Collaborator

Hi @vizgl

That's an interesting use case. We use the AssetDatabase to find the xml files:

private List<string> FindFiles() {

var assetGuids = searchDirectories == null ? AssetDatabase.FindAssets(assetsFilter) :

Based on the Unity documentation, it seems like hiding files should presumably work with that, but maybe it doesn't (https://docs.unity3d.com/Manual/SpecialFolders.html)

It might be a bit of time before we can look into this more. In the meantime, a possibility might be in your script that is hiding/unhiding folders, find and rename *Dependencies.xml files into something else to hide them (and back to the original name to unhide them).

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

No branches or pull requests

3 participants