Class AndroidProjectPlugin

    • Constructor Detail

      • AndroidProjectPlugin

        public AndroidProjectPlugin()
    • Method Detail

      • withAndroid

        protected void withAndroid​(com.android.build.gradle.TestedExtension extension)
      • getAndroidExtension

        public com.android.build.gradle.TestedExtension getAndroidExtension()
      • getAndroidVariants

        public DomainObjectSet<? extends com.android.build.gradle.api.BaseVariant> getAndroidVariants()
      • getUnitTestVariants

        @Nonnull
        public DomainObjectSet<com.android.build.gradle.api.UnitTestVariant> getUnitTestVariants()
      • publishVariant

        protected boolean publishVariant​(com.android.build.gradle.api.BaseVariant variant)
      • getTaskName

        protected static String getTaskName​(com.android.build.gradle.api.BaseVariant variant,
                                            String verb,
                                            String target)
        Returns the name of a task for this source set.
        Parameters:
        verb - The action, may be null.
        target - The target, may be null
        Returns:
        The task name, generally of the form ${verb}${name}${noun}
        See Also:
        SourceSet.getTaskName(String, String)
      • getCompileClasspath

        protected Provider<FileCollection> getCompileClasspath​(com.android.build.gradle.api.BaseVariant variant)
        Returns the classpath used to compile this source.
        Returns:
        The classpath. Never returns null.
        See Also:
        SourceSet.getCompileClasspath()
      • getAllJava

        protected static Provider<FileTree> getAllJava​(com.android.build.gradle.api.BaseVariant androidSourceSet)
        All Java source files for this source set. This includes, for example, source which is directly compiled, and source which is indirectly compiled through joint compilation.
        Returns:
        the Java source. Never returns null.
        See Also:
        SourceSet.getAllJava()
      • getProject

        public Project getProject()