Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / ink / build.gradle.kts
build.gradle.kts28 lines · 1.1 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-library") |
| 3 | } |
| 4 | |
| 5 | android { |
| 6 | defaultConfig { |
| 7 | testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | dependencies { |
| 12 | // Ink. libink.so / libgraphics-core.so (~1.5 MB) live here, so only apps that |
| 13 | // depend on :library:ink bundle them. Exposed via `api` because consumers |
| 14 | // (notes, photos) reference androidx.ink types (Stroke, Brush, ...) directly. |
| 15 | api(libs.androidx.ink.authoring) |
| 16 | api(libs.androidx.ink.brush) |
| 17 | api(libs.androidx.ink.geometry) |
| 18 | api(libs.androidx.ink.strokes) |
| 19 | api(libs.androidx.ink.rendering) |
| 20 | |
| 21 | // On-device suite: Brush/Stroke load libink.so, which has no host build, so the |
| 22 | // canvas and serialization round-trips can only run on a device/emulator. |
| 23 | androidTestImplementation(libs.androidx.test.runner) |
| 24 | androidTestImplementation(libs.androidx.test.core) |
| 25 | androidTestImplementation(libs.androidx.test.ext.junit) |
| 26 | androidTestImplementation(libs.androidx.activity.compose) |
| 27 | androidTestImplementation(libs.androidx.compose.ui.test.manifest) |
| 28 | } |