McProjectBuilder
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)
Content copied to clipboard
Constructors
Link copied to clipboard
fun <P : PlatformPluginBuilder<*>> McProjectBuilder( path: ProjectPath.StringProjectPath, projectDir: File, buildFile: File, platformPlugin: P, codeGeneratorBindings: List<CodeGeneratorBinding>, projectProvider: ProjectProvider, projectCache: ProjectCache, projectDependencies: ProjectDependencies = ProjectDependencies(mutableMapOf()), externalDependencies: ExternalDependencies = ExternalDependencies(mutableMapOf()), hasKapt: Boolean = false, hasTestFixturesPlugin: Boolean = false, anvilGradlePlugin: AnvilGradlePlugin? = null, javaSourceVersion: JavaVersion = VERSION_14)
Content copied to clipboard
Functions
Link copied to clipboard
fun addDependency( configurationName: ConfigurationName, project: McProject, asTestFixture: Boolean = false)
Content copied to clipboard
Link copied to clipboard
fun addExternalDependency( configurationName: ConfigurationName, coordinates: String, isTestFixture: Boolean = false)
Content copied to clipboard
Link copied to clipboard
fun addJavaSource( java: String, sourceSetName: SourceSetName = SourceSetName.MAIN, directory: String? = null, fileName: String? = null, sourceDirName: String = "java"): File
Content copied to clipboard
Link copied to clipboard
private fun addJvmSource( directory: String?, packageName: String, sourceSetName: SourceSetName, fileSimpleName: String, content: String, sourceDirName: String): File
Content copied to clipboard
Link copied to clipboard
fun addKotlinSource( kotlin: String, sourceSetName: SourceSetName = SourceSetName.MAIN, directory: String? = null, fileName: String? = null, sourceDirName: String = "java"): File
Content copied to clipboard
Link copied to clipboard
fun <T : AndroidPlatformPluginBuilder<*>> McProjectBuilder<T>.addLayoutFile( name: String, content: String, sourceSetName: SourceSetName = SourceSetName.MAIN)
Content copied to clipboard
Link copied to clipboard
fun <T : AndroidPlatformPluginBuilder<*>> McProjectBuilder<T>.addManifest(content: String, sourceSetName: SourceSetName = SourceSetName.MAIN)
Content copied to clipboard
Link copied to clipboard
fun <T : AndroidPlatformPluginBuilder<*>> McProjectBuilder<T>.addResourceFile( name: String, content: String, sourceSetName: SourceSetName = SourceSetName.MAIN)
Content copied to clipboard
Link copied to clipboard
fun addSource( name: String, kotlin: String, sourceSetName: SourceSetName = SourceSetName.MAIN)
Content copied to clipboard
Link copied to clipboard
fun addSourceSet( name: SourceSetName, jvmFiles: Set<File> = emptySet(), resourceFiles: Set<File> = emptySet(), layoutFiles: Set<File> = emptySet(), upstreamNames: List<SourceSetName> = emptyList(), downstreamNames: List<SourceSetName> = emptyList()): SourceSetBuilder
Content copied to clipboard
Link copied to clipboard
Replace Windows file separators with Unix ones, just for string comparison in tests
Link copied to clipboard
Link copied to clipboard
Properties
Extensions
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
Content copied to clipboard
Link copied to clipboard