Hi,

Some background for the problem. I'm working on a Chromium-based browser 
for Android. For various reasons Chromium doesn't use neither old Ant-based 
nor new Gradle-based build system. Instead a hand-made one is used 
(GYP+ninja+bunch of python scripts that call various SDK tools like aapt, 
zipalign, etc). In particular this means that we are forced to run Lint via 
its command line interface.

Chromium for Android consists of several library projects (e.g. base_java 
contains basic utility classes for logging) and some APK projects that 
depend on these libraries. However for each APK/library Lint check is only 
performed on the sources in this projects, no dependencies are added to the 
classpath when running lint. Some checks (LongLogTag) aren't working 
because of this and some (e.g. MissingRegistered) cannot be enabled because 
of fase positives, so I'm trying to change that and construct a proper 
classpath.

However there is a problem. If I add android.jar from SDK to classpath with 
--classpath switch then I get an exception from InvalidPackageDetector 
because it doesn't expect a class without a super class in the libraries. 
The proper way to provide classpath is to specify build SDK but it can only 
be done via ADT/Ant-style project.properties file which Chromium doesn't 
have. By the way there are some other stuff that can only be specified via 
this file (is project a library? what proguard files are used?). Did I miss 
something? And if the project.properties is currently the only way - do you 
think that ability to configure project via command-line is a worthwhile 
addition to Lint?

Thanks.
--
Mikhail Lopatkin.

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to