Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / ui / build.gradle.kts
build.gradle.kts28 lines · 1.5 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-library") |
| 3 | } |
| 4 | |
| 5 | dependencies { |
| 6 | implementation(project(":library")) |
| 7 | |
| 8 | // Expose Material 3 to consumers via `api` so the same-named wrappers/aliases in this |
| 9 | // module compile in app code. Apps depend only on `:library:ui` and must not import |
| 10 | // `androidx.compose.material*` directly (enforced by convention + repo grep check). |
| 11 | api(libs.androidx.compose.material3) |
| 12 | // MaFragmentActivity extends FragmentActivity, so the fragment classes must resolve |
| 13 | // on every app's compile classpath. R8 strips them from APKs whose app never touches |
| 14 | // a fragment (only passwords/photos keep them, and they already ship fragment anyway). |
| 15 | api(libs.androidx.fragment.ktx) |
| 16 | // NavigationSuiteScaffold / currentWindowAdaptiveInfo used (via the facade) by openassistant. |
| 17 | api(libs.androidx.compose.material3.adaptive.navigation.suite) |
| 18 | // V2 adaptive info (currentWindowAdaptiveInfoV2) used by the facade in MaterialFunctions.kt. |
| 19 | // implementation (not api): app modules must use the facade, not name adaptive types directly. |
| 20 | implementation(libs.androidx.compose.adaptive.navigation3) |
| 21 | // Used only internally (editor toolbars); not re-exported to apps. |
| 22 | implementation(libs.androidx.compose.material.icons.extended) |
| 23 | // Health Connect client for the consolidated permission gate's async grant probe. |
| 24 | implementation(libs.androidx.connect.client) |
| 25 | // XmlPull impl for JVM unit tests (LatexExporter's MathML parser; same as :office). |
| 26 | testImplementation(libs.kxml2) |
| 27 | |
| 28 | } |