6 Commits

Author SHA1 Message Date
Enrique López-Mañas
778a365d12
feat: updated snippets (#2289)
* feat: updated snippets

* feat: excluding lint errors

* fix: merge commit

* feat: updated versions
2025-10-07 11:46:01 -06:00
Dale Hawkins
b8519f44fe
refactor: Centralize SDK versions in libs.versions.toml (#2294)
* refactor: Centralize SDK versions in libs.versions.toml

Moved compileSdk, minSdk, and targetSdk to libs.versions.toml for ApiDemos and snippets projects to ensure consistency and ease of maintenance.

fix: Corrected top bar layout in Kotlin Advanced Markers demo

The Kotlin version of the Advanced Markers demo was missing a call to applyInsets, causing the top bar to overlap with the system UI. This has been corrected to match the behavior of the Java version.

* refactor: Modernize Gradle scripts and update dependencies

This commit refactors the Gradle build scripts for all snippet modules to align with modern Android development practices.

Key changes include:
- Migrating all plugin and dependency declarations to use the version catalog (`libs.versions.toml`).
- Replacing `id("...")` with `alias(libs.plugins...)` for applying plugins.
- Updating numerous library versions, including AGP, Kotlin, and various Jetpack and Google Maps libraries.
- Setting a `namespace` in all module-level `build.gradle.kts` files.
- Enabling Compose and setting the Java toolchain to version 21 across all modules.
- Enabling minification for release builds.
- Removing the legacy `buildscript` block from the root `build.gradle.kts`.

* refactor: removed coreKtx

* refactor: fix build

* refactor: fix build

* refactor: Remove unused Compose configuration from snippet modules

Removed the Jetpack Compose plugin and `compose = true` build feature from all snippet modules as it was not being used.

fix: Update maps-utils snippets

Corrected several issues in the `app-utils` Java snippets:
- Replaced the deprecated `setWeightedData` method with `updateData` in the Heatmaps demo.
- Initialized an empty list in the Heatmaps demo to prevent a potential NullPointerException.
- Added missing R class imports.

---------

Co-authored-by: Enrique López-Mañas <eenriquelopez@gmail.com>
2025-09-26 15:12:17 -06:00
Enrique López-Mañas
a15cb45067
chore: updated versions (#2135)
* chore: updated versions

* chore: updated snippets

* chore: updated tutorials java

* chore: updated tutorials java

* chore: permission

* chore: permission

* chore: added material
2025-06-25 11:24:13 -06:00
Dale Hawkins
95f70aafdd
chore: bump versions for gradle (8.8.0), kotlin(2.1.0), the targetSd… (#1950)
chore: bump versions for gradle (8.8.0), kotlin(2.1.0)), the targetSdk(35) and other deps
2025-01-28 09:15:00 -07:00
Dale Hawkins
e0b85bcb7a
build: update Android to 35, kotlin to 2.0.21, lifecycle to 2.8.7 (#1931)
* build: update Android to 35, kotlin to 2.0.21, lifecycle to 2.8.7

* chore: update snippets to target android-35.  Update snippets libraries

* chore: Update minSdk to 23 for the snippets
2025-01-14 08:13:10 -07:00
Enrique López Mañas
42f3887bac
feat: tooling modernization (#1753)
* feat: tooling modernization

* chore: headers

* chore: headers

* feat: tooling modernization

* removed script
2024-08-20 14:33:51 -06:00