| 5 |
| gradlePluginPortal() |
| 6 | } |
| 7 | } |
| 8 |
| 9 | dependencyResolutionManagement { |
| 10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) |
| 11 | repositories { |
| 12 | google() |
| 13 | mavenCentral() |
| 14 | } |
| 15 | versionCatalogs { |
| 16 | // One catalog for both builds: the framework's. |
| 17 | create("libs") { from(files("../../packages/android/gradle/libs.versions.toml")) } |
| 18 | } |
| 19 | } |
| 20 |
| 21 | // The demo and, with -Ptw.nativeRenderers=true (gradle.properties), the frozen native renderer modules. The framework (org.telegram.widgetsandbox:widget-sandbox) |
| 22 | // comes from packages/android as an included build: Gradle substitutes the coordinates with that |
| 23 | // project, so a change there rebuilds the demo without publishing. A client outside this repo |
| 24 | // takes the same coordinates from Maven instead. |
| 25 | includeBuild("../../packages/android") |
| 26 |
| 27 | rootProject.name = "widgetsandbox-apps" |
| 28 | include(":demo") |
| 29 | if (providers.gradleProperty("tw.nativeRenderers").orNull == "true") include(":renderer-blitz", ":renderer-litehtml") |
| 30 |