we set some properties through -P command flag that you can query.

in particular "android.optional.compilation" should contain INSTANT_DEV
when doing an InstantRun build.

On Mon, Apr 11, 2016 at 6:20 AM Ariel Cattan <ar...@safedk.com> wrote:

> Hi,
>
> I was wondering whether there was an official API, or a preferred way, to
> identify an "instant run" build during build time?
> We have a Gradle Plugin that needs to differentiate between normal builds
> and instant run builds. The way we differentiate between them today is by
> looking to see whether one of the Gradle tasks starts with
> "transformClassesWithInstantRunSlicerFor".
> Are there any situations where this task will not exist and it will still
> be an instant run build?
> Is there a safer way to check for an instant run build?
>
> Thanks!
> Ariel Cattan
>
> --
> 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 adt-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to