plugins { id("common-conventions-library") } // Icons codegen: the IconXxx() wrappers are generated at build time from the // checked-in manifest icons.tsv (see GenerateIconsTask in build-logic), so no // hand-written wrapper source exists. The generated dir lands under build/, // which keeps it out of the structure line ratchet, ktlint (its filter already // excludes **/generated/**) and lint's src/** scans. Hand-written icon code is // only Icons.kt (AppIcon + the IconNavigation back buttons) and // IconsCustom.kt (the local ImageVectors the manifest references as vector:). extensions.configure { onVariants { variant -> val generateIcons = tasks.register( "generate${variant.name.replaceFirstChar { it.uppercase() }}Icons", GenerateIconsTask::class.java, ) { manifest.set(layout.projectDirectory.file("icons.tsv")) } variant.sources.kotlin?.addGeneratedSourceDirectory( generateIcons, GenerateIconsTask::outputDir, ) } } dependencies { implementation(project(":library")) // Expose Material 3 to consumers via `api` so the same-named wrappers/aliases in this // module compile in app code. Apps depend only on `:library:ui` and must not import // `androidx.compose.material*` directly (enforced by convention + repo grep check). api(libs.androidx.compose.material3) // MaFragmentActivity extends FragmentActivity, so the fragment classes must resolve // on every app's compile classpath. R8 strips them from APKs whose app never touches // a fragment (only passwords/photos keep them, and they already ship fragment anyway). api(libs.androidx.fragment.ktx) // NavigationSuiteScaffold / currentWindowAdaptiveInfo used (via the facade) by openassistant. api(libs.androidx.compose.material3.adaptive.navigation.suite) // V2 adaptive info (currentWindowAdaptiveInfoV2) used by the facade in MaterialFunctions.kt. // implementation (not api): app modules must use the facade, not name adaptive types directly. implementation(libs.androidx.compose.adaptive.navigation3) // Used only internally (editor toolbars); not re-exported to apps. implementation(libs.androidx.compose.material.icons.extended) // Health Connect client for the consolidated permission gate's async grant probe. implementation(libs.androidx.connect.client) // XmlPull impl for JVM unit tests (LatexExporter's MathML parser; same as :office). testImplementation(libs.kxml2) }