-
Notifications
You must be signed in to change notification settings - Fork 363
[Bug] mainTemplate.gradle and ProjectSettings/AndroidResolverDependencies.xml change when switching between building Android build and exporting Android project #537
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
Comments
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 7d84e3b again, I THINK we might be able to always use 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, As for |
- Version 1.2.176 - Apr 27, 2023 * Android Resolver - Added two Android Resolver settings to determine whether EDM4U injects custom local Maven repo path as a relative path or full path. Fixes #537 * Android Resolver - Inject Maven Repo to `settingTemplate.gradle` from Unity `2022.2+` Fixes #594 * Android Resolver - Jetifier option is enabled by default now. * Android Resolver - `Explode Aar` option applies to all cases, whether the project will be exported or not. Fixes #584 Fixes #287
- Version 1.2.176 - Apr 27, 2023 * Android Resolver - Added two Android Resolver settings to determine whether EDM4U injects custom local Maven repo path as a relative path or full path. Fixes #537 * Android Resolver - Inject Maven Repo to `settingTemplate.gradle` from Unity `2022.2+` Fixes #594 * Android Resolver - Jetifier option is enabled by default now. * Android Resolver - `Explode Aar` option applies to all cases, whether the project will be exported or not. Fixes #584 Fixes #287
[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%
The text was updated successfully, but these errors were encountered: