Closed marekzd closed 1 year ago
This issue does not seem to follow the issue template. Make sure you provide all the required information.
Hi @marekzd
Hmm, after reading the change https://github.com/googlesamples/unity-jar-resolver/commit/7d84e3bfd77f2d7efca73ff46d4d9d729d8af362 again, I THINK we might be able to always use unityProjectPath
, no matter it is exported project or not. I cannot recall why I used absolute path by that time. It could be oversight or to handle for certain configuration.
We will need to verify the following scenario just in case the change still works for all scenario
We may need to schedule some time in the future to verify this.
Or feel free to send us a Pull Request about this change and also help the community to verify if the change works in the scenario describe above.
Also, unityLibrary/build.gradle
is not created by EDM4U but by Unity based on mainTemplate.gradle
. It might not be a good idea to version control this file if this project may be downloaded to a different workstation because def unityProjectPath = $/file:////Users/marekzd/Documents/projects/unity-project/$.replace("\\", "/")
may not be valid on a different workstation.
As for AndroidResolverDependencies.xml
, while it is generated by EDM4U, it is probably not a good idea to version control it since this is a cached dependency resolution file specifically for the workstation.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Open Unity project
Switch to Android target
Build for Android
mainTemplate.gradle will look like this:
and generated unityLibrary/build.gradle will look like this:
additionally ProjectSettings/AndroidResolverDependencies.xml will change to:
Export Android project to Android Studio
mainTemplate.gradle will change to:
and unityLibrary/build.gradle in exported project will look like this:
additionally ProjectSettings/AndroidResolverDependencies.xml will change to:
When you will build for Android once again mainTemplate.gradle and ProjectSettings/AndroidResolverDependencies.xml will change once again.
Would it be possible to avoid changing these files during building ? These changes frequently ends up in random commits and obscure them.
Would it be possible to always use
unityProjectPath
in mainTemplate.gradle generated code ?Here seems to be a code responsible for these changes in mainTemplate.gradle.
Please answer the following, if applicable:
What's the issue repro rate? (eg 100%, 1/5 etc) 100%