Status Update
Comments
lb...@gmail.com <lb...@gmail.com> #2
Oh, worth noting that rule from that sample project works fine if Lint run via console.
lb...@gmail.com <lb...@gmail.com> #3
lb...@gmail.com <lb...@gmail.com> #4
lb...@gmail.com <lb...@gmail.com> #6
lb...@gmail.com <lb...@gmail.com> #7
po...@gmail.com <po...@gmail.com> #8
Something needs to trigger building the lint artifact, but as a workaround, here's what I did which made it work:
- Opened the sample project in Flamingo, and used the upgrade assistant to update it to 8.0.0-alpha10 (the same version of Flamingo I was using)
- Opened the test file ("Test) -- there's no lint warning yet
- Opened the terminal window inside the IDE (Help > Find Action > terminal)
- Ran "./gradlew lint"
That triggered a build, and once it finished, the IDE also updated to start showing the lint warning without me having to do anything else (see screenshot).
ss...@gmail.com <ss...@gmail.com> #9
However for some reason, after changing over to 8.0.0-alpha10 it started working in Flamingo Canary 10.
ya...@gmail.com <ya...@gmail.com> #10
ma...@gmail.com <ma...@gmail.com> #11
Something needs to trigger building the lint artifact
Here are 2 options that come to mind:
- Trigger building the lint.jar file during sync.
- Add a dependency from common build commands (e.g.,
assembleDebug
) to the task that creates the lint.jar file (so that at least the lint.jar file would exist more often than it does now).
Chris, do you have more context to suggest the best way forward? Both of these seem like they might cause performance regressions, and I'm not sure that option 1 is even allowed.
lb...@gmail.com <lb...@gmail.com> #12
Yes, I agree we need a way to do this, but also that those options both have downsides as Scott identifies.
I wonder if we need to have a 'build custom lint checks' action in the IDE, maybe with some level of prompting to trigger it in Studio if we detect that the user has configured their project to have custom lint rules but they're not built yet.
Description
"From version U, this method should not be used and will always throw a @code SecurityException}.
"
Please remove this planned behavior. Users should be allowed to reach their own wallpaper, export it, backup it, share it, use inside apps...
Alternatively, please offer a different API to get the current wallpaper, one which will be supported for the future versions of Android.
This API has existed since API 5 and doesn't pose any threat, any security/privacy issue.
You can use a new permission for it.