-
-
Notifications
You must be signed in to change notification settings - Fork 136
ext broken in app.gradle on tns-android@next #1183
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
Probably related: #878 |
I found the culprit: this makes it so ext properties are not loaded by the time plugin configurations are being imported. I suppose we may need some pre/post Using this order solves the
|
@edusperoni the new order is good because plugins' config should always be set before app's config. |
@farfromrefug I'm aware, I was just pointing out how to make ext work again. Maybe something like ext.gradle or options.gradle that is called before the plugin configuration would solve this issue. Either way, that PR is an undocumented breaking change. |
Project to reproduce the issue (while using all |
@edusperoni @farfromrefug what about calling |
@vtrifonov seems like a source of errors to me.Why not having a function just initializing ext with the default Nativescript values? |
@farfromrefug What do you mean by default Nativescript values? In the example the problem is that |
@vtrifonov I thought the issue was with project.ext not existing or project.ext.googlePlayServicesVersion not existing. But now I see the issue.
|
@farfromrefug that would be the best solution, however it will be a breaking change and in addition to this we'll need to update all templates to have this file, which might be confusing for some of the users. I'm not sure whether applying the same file (app.gradle) twice (only if any include.gradle is present) could break anything. |
@vtrifonov I totally agree with you. I have looked at the gradle to see and if there would be a way to only apply part of a gradle file (like only ext definition) but that does not seem possible. |
@farfromrefug actually we've decided to use another file, as this is the cleaner approach. |
@vtrifonov i am still facing an issue with this. The issue is now with the tempplugin builds. I have no way to force compileSdkVersion, buildToolsVersion,... |
@farfromrefug we are adding execution of the same before-plugins.gradle file in the tempPlugin builds, you can check the following PR in the CLI and you can try it with nativescript@rc. |
@vtrifonov i have tested rc and it is working perfectly now! thank you!!! |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project:Describe the bug
After build
4.3.0-2018-08-10-09
, theext
andproject.ext
part of app.gradle is ignored.To Reproduce
Easy way:
this should print:
But it doesn't, and it continues ignoring the ext part.
Manually setting
ext
inplatforms/android/build.gradle
works as expected.Expected behavior
ext
is not ignored.Sample project
any project with
android@4.3.0-2018-08-10-09
or above will doAdditional context
this seems to be happening since this commit:
0c83f7c
The text was updated successfully, but these errors were encountered: