-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Android: update gradle #13579
Comments
Interesting part: so there is some kind of order error |
CC @hansemannn @janvennemann @m1ga I would love to share this file with you guys after almost 40 hours of working and this is my third day awake. titanium-sdk-gradle-8.3.1-build.log I've upgraded Gradle version to the very latest 8.3.1 and I've completely fixed the tasks execution order along side some small fixes to deprecated apis. |
😮 sounds great! Besides the 3rd day awake part 😄 Looking forward to test it!!! |
To make the real changes a bit easier to check later: can we merge this one first: #13888 ?
no code changes in this PR but as this is part of the big gradle change coming up it will make it easier to test in steps. And since there will be a CMake update too: #13966 |
Huge congrats to @AbdullahFaqeir 🎉 The #14014 works! I was able to build kitchensink with it and my app that uses a few modules. I still have to do some more tests but the SDK builds 👍 Still would like to merge in stages so it's less to review and test. These would be my proposed order:
|
The #14014 works for me! I was able to update a custom Android Stripe module using the latest Stripe SDK (which needs Material 1.11.0) and compile my app with the new Material theme, a new Gradle version and the compile target set to 34. It would be great if this PR gets merged ! |
@trkfabi Thank you! If you can report the style issues, we can look into these as well |
@hansemannn I just noticed that all the textfields' background are black now but I think this happens because I use a custom theme for this app which has not been updated in a while. I found a workaround by adding a few lines to
So I guess this may not be an issue if you use a default Material theme. |
@m1ga @hansemannn Everything looks good on the app except some
|
I would need to look into that. There are some default styles for the Titanium themes. As mentioned in the older post I would start with the first two PRs (#13579 (comment)) before updating gradle. Those only update gradle syntax and cmake but still runs the old gradle and shouldn't break anything. After those are merged the gradle PR is smaller and easier to see those style changes and how to fix those. |
I was wondering the same as in line #190 hehe: titanium-sdk/android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIText.java Line 189 in 420ccdc
If I change line #191 to |
It looks like that was used to remove the underline: #9361 (review) |
Issue: updateing to gradle > 7.1.0 breaks the SDK build.
Moving the other research parts into this ticket:
the compile errors start as soon as you go to
com.android.tools.build:gradle:7.1.0
(current SDK is using 7.0.4 - https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google)version is set here: https://github.com/search?q=repo%3Atidev%2Ftitanium-sdk+com.android.tools.build%3Agradle%3A7.0.4&type=code (for app and modules)
more infos on gradle updates: https://github.com/tidev/titanium_mobile#upgrade-gradle-and-gradle-plugin
some other issues with gradle updates/infos:
removing
https://github.com/tidev/titanium_mobile/blob/master/android/titanium/build.gradle#L67-L69
and
https://github.com/tidev/titanium_mobile/blob/master/android/titanium/build.gradle#L76-L79
builds but of course breaks the SDK at the end. But it looks like those are the parts that will fail. It doesn't generate the files in
runtime/v8/generated
so#include "org.appcelerator.kroll.KrollModule.h"
will fail during compiling. My guess is that the order of the gradle tasks changed and c++ are not generated before the cmake partThe gradle command
./gradlew :titanium:externalNativeBuildCleanDebug
will already trigger the error.There is a google issue https://issuetracker.google.com/issues/232060576 AGP 7.1 and higher does not build :nativelib module incrementally with "As a workaround we are downgrading AGP." which looks like our issue too. I can remove the
.cxx
folder and the clean part works but then it breaks at:titanium:buildCMakeRelWithDebInfo[arm64-v8a]
withfatal error: 'org.appcelerator.kroll.KrollModule.h' file not found
since the files aren't there.Material lib version
The current version is 1.6.1. If we want to use >=1.7.0 (https://github.com/material-components/material-components-android/releases?expanded=true&page=2&q=1.7.0) we have to use a higher gradle-plugin version
The text was updated successfully, but these errors were encountered: