Package modulecheck.project.test

Types

Link copied to clipboard
data class AndroidApplicationPluginBuilder(    var viewBindingEnabled: Boolean = true,     var nonTransientRClass: Boolean = false,     var kotlinAndroidExtensionEnabled: Boolean = true,     val manifests: MutableMap<SourceSetName, File> = mutableMapOf(),     val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(),     val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf(),     val resValues: MutableMap<SourceSetName, Set<UnqualifiedAndroidResourceDeclaredName>> = mutableMapOf()) : AndroidPlatformPluginBuilder<AndroidPlatformPlugin.AndroidApplicationPlugin>
Link copied to clipboard
data class AndroidDynamicFeaturePluginBuilder(    var viewBindingEnabled: Boolean = true,     var nonTransientRClass: Boolean = false,     var kotlinAndroidExtensionEnabled: Boolean = true,     var buildConfigEnabled: Boolean = true,     val manifests: MutableMap<SourceSetName, File> = mutableMapOf(),     val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(),     val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf(),     val resValues: MutableMap<SourceSetName, Set<UnqualifiedAndroidResourceDeclaredName>> = mutableMapOf()) : AndroidPlatformPluginBuilder<AndroidPlatformPlugin.AndroidDynamicFeaturePlugin>
Link copied to clipboard
data class AndroidLibraryPluginBuilder(    var viewBindingEnabled: Boolean = true,     var nonTransientRClass: Boolean = false,     var kotlinAndroidExtensionEnabled: Boolean = true,     var buildConfigEnabled: Boolean = true,     var androidResourcesEnabled: Boolean = true,     val manifests: MutableMap<SourceSetName, File> = mutableMapOf(),     val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(),     val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf(),     val resValues: MutableMap<SourceSetName, Set<UnqualifiedAndroidResourceDeclaredName>> = mutableMapOf()) : AndroidPlatformPluginBuilder<AndroidPlatformPlugin.AndroidLibraryPlugin>
Link copied to clipboard
interface AndroidPlatformPluginBuilder<T : AndroidPlatformPlugin> : PlatformPluginBuilder<T>
Link copied to clipboard
data class AndroidTestPluginBuilder(    var viewBindingEnabled: Boolean = true,     var nonTransientRClass: Boolean = false,     var kotlinAndroidExtensionEnabled: Boolean = true,     var buildConfigEnabled: Boolean = true,     val manifests: MutableMap<SourceSetName, File> = mutableMapOf(),     val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(),     val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf(),     val resValues: MutableMap<SourceSetName, Set<UnqualifiedAndroidResourceDeclaredName>> = mutableMapOf()) : AndroidPlatformPluginBuilder<AndroidPlatformPlugin.AndroidTestPlugin>
Link copied to clipboard
data class ConfigBuilder(    val name: ConfigurationName,     val upstream: MutableList<ConfigurationName>,     val downstream: MutableList<ConfigurationName>)
Link copied to clipboard
data class JavaLibraryPluginBuilder(val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(), val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf()) : PlatformPluginBuilder<JvmPlatformPlugin.JavaLibraryPlugin>
Link copied to clipboard
data class KotlinJvmPluginBuilder(val sourceSets: MutableMap<SourceSetName, SourceSetBuilder> = mutableMapOf(), val configurations: MutableMap<ConfigurationName, ConfigBuilder> = mutableMapOf()) : PlatformPluginBuilder<JvmPlatformPlugin.KotlinJvmPlugin>
Link copied to clipboard
class McProjectBuilder<P : PlatformPluginBuilder<*>>(    var path: ProjectPath.StringProjectPath,     var projectDir: File,     var buildFile: File,     val platformPlugin: P,     val codeGeneratorBindings: List<CodeGeneratorBinding>,     val projectProvider: ProjectProvider,     val projectCache: ProjectCache,     val projectDependencies: ProjectDependencies = ProjectDependencies(mutableMapOf()),     val externalDependencies: ExternalDependencies = ExternalDependencies(mutableMapOf()),     var hasKapt: Boolean = false,     var hasTestFixturesPlugin: Boolean = false,     var anvilGradlePlugin: AnvilGradlePlugin? = null,     var javaSourceVersion: JavaVersion = VERSION_14)
Link copied to clipboard
interface PlatformPluginBuilder<T : PlatformPlugin>
Link copied to clipboard
interface ProjectCollector
Link copied to clipboard
abstract class ProjectTest : BaseTest, ProjectCollector
Link copied to clipboard
data class SourceSetBuilder(    var name: SourceSetName,     var compileOnlyConfiguration: Config,     var apiConfiguration: Config?,     var implementationConfiguration: Config,     var runtimeOnlyConfiguration: Config,     var annotationProcessorConfiguration: Config?,     var jvmFiles: Set<File>,     var resourceFiles: Set<File>,     var layoutFiles: Set<File>,     val upstream: MutableList<SourceSetName>,     val downstream: MutableList<SourceSetName>)

Functions

Link copied to clipboard
fun buildFileParserFactory(projectDependency: ProjectDependency.Factory, logger: McLogger = PrintLogger()): BuildFileParser.Factory
Link copied to clipboard
internal inline fun <T : McProjectBuilder<P>, P : PlatformPluginBuilder<G>, G : PlatformPlugin> T.buildProject(projectFactory: T.(JvmFileProvider.Factory) -> McProject): McProject
Link copied to clipboard
internal fun SourceSetName.configurationName(configName: String): String
Link copied to clipboard
internal inline fun <T : PlatformPluginBuilder<R>, R : PlatformPlugin> createProject(    projectCache: ProjectCache,     projectDir: File,     path: String,     pluginBuilder: T,     androidPackageOrNull: String?,     codeGeneratorBindings: List<CodeGeneratorBinding>,     projectProvider: ProjectProvider,     config: McProjectBuilder<T>.() -> Unit): McProject
Link copied to clipboard
fun McProjectBuilder<*>.maybeAddSourceSet(    name: SourceSetName,     jvmFiles: Set<File> = emptySet(),     resourceFiles: Set<File> = emptySet(),     layoutFiles: Set<File> = emptySet(),     upstreamNames: List<SourceSetName> = emptyList(),     downstreamNames: List<SourceSetName> = emptyList()): SourceSetBuilder
Link copied to clipboard
internal fun PlatformPluginBuilder<*>.populateConfigsFromSourceSets()
Link copied to clipboard
internal fun MutableMap<SourceSetName, SourceSetBuilder>.populateDownstreams()
Link copied to clipboard
internal fun McProjectBuilder<*>.populateSourceSets()
Link copied to clipboard
internal fun MutableMap<SourceSetName, SourceSetBuilder>.requireSourceSetExists(name: SourceSetName)
internal fun PlatformPluginBuilder<*>.requireSourceSetExists(name: SourceSetName)
Link copied to clipboard
Link copied to clipboard
inline fun <T : McProjectBuilder<P>, P : PlatformPluginBuilder<G>, G : PlatformPlugin> T.toRealMcProject(): McProject
Link copied to clipboard
internal fun MutableMap<SourceSetName, SourceSetBuilder>.validateHierarchy()

Properties

Link copied to clipboard
internal val PlatformPluginBuilder<*>.configFactory: ConfigFactory<String>