No, the *Variant* classes that are in the "api" sub packages are not exposed to the project at all. They are strictly for the build file.
There's another set of variant classes in the "model" subpackage that make up the model sent to the IDE from Gradle. This is all you have access too. At this point we are not looking at exposing every single task to the IDE as this should be implementation details that the IDE shoudn't care about. We only expose a few tasks: assemble (to build the variant), generateSource (to run tasks that generate resources) and compileSource (to run all first level source compilation task, but not dex/proguard/packaging). On Thu, Sep 18, 2014 at 4:14 PM, Yikun Song <[email protected]> wrote: > Hi, > > I'm trying to build a plugin for Android Studio/Intellij. Is there a way > to get com.android.build.gradle.api.BaseVariant or more specifically: > com.android.build.gradle.tasks.MergeResources.outputDir in the context of > Android Studio? > > I've found that there is a Variant class (via AndroidFacet) > under com.android.builder.model, but it doesn't have the methods that I'm > looking for. > > Thanks! > > -- > 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. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- 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.
