21 Commits

Author SHA1 Message Date
Dale Hawkins
ffabd3039d
chore: Update Gradle and standardize on Java 17 (#2306)
* chore: Update Gradle wrapper to version 8.8

Upgrades the Gradle wrapper files to version 8.8 to ensure compatibility with the latest features and performance improvements. This includes updating the wrapper JAR, properties, and shell scripts.

* chore: update gradle version

* chore: Standardize on Java 17

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

---------

Co-authored-by: Enrique López-Mañas <eenriquelopez@gmail.com>
2025-10-09 22:41:49 +02:00
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
dependabot[bot]
379c83d872
chore(deps): bump com.google.maps.android:maps-compose from 6.10.0 to 6.12.0 in /snippets (#2300)
chore(deps): bump com.google.maps.android:maps-compose in /snippets

Bumps [com.google.maps.android:maps-compose](https://github.com/googlemaps/android-maps-compose) from 6.10.0 to 6.12.0.
- [Release notes](https://github.com/googlemaps/android-maps-compose/releases)
- [Changelog](https://github.com/googlemaps/android-maps-compose/blob/main/.releaserc)
- [Commits](https://github.com/googlemaps/android-maps-compose/compare/v6.10.0...v6.12.0)

---
updated-dependencies:
- dependency-name: com.google.maps.android:maps-compose
  dependency-version: 6.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-07 10:04:42 -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
73ac16ffca
chore: increased libraries, replaced deprecated methods (#2204) 2025-08-12 13:20:36 -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
ac20c0322f
chore: increased versions (#1769) 2024-08-27 10:28:54 -06: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
Enrique López Mañas
58cf1c3892
chore: fixed build after the dependabot updates (#1697)
* chore: fixed build after the dependabot updates

* chore: increased minSdk to 21

* chore: compose updated

* chore: fixed duplicates issue

* chore: fixed duplicates issues

* chore: fixed duplicates issues
2024-07-10 15:11:45 -06:00
Enrique López Mañas
1df7d3d37a
fix: updated dependencies to solve compilation issue (#1557)
* fix: versions and dependencies updated to allow compilation

* fix: duplicated libraries

* fix: updated Gradle

* fix: updated Manifest

* fix: updated Gradle

* fix: fixed header
2024-05-02 14:54:21 -06:00
Angela Yu
cf74be5bc2
chore: add region tag to basic map demo and upgrade gradle (#1551)
* chore: add region tag to basic map demo

* chore: update gradle verison
2024-04-24 17:23:01 -07:00
Angela Yu
ff1b2ded7d
chore(docs): update secrets-gradle-plugin install snippets (#1353)
* chore(docs): update secrets-gradle-plugin install snippets

* chore: align snippets build versions for compatibility

* chore: update build snippets test to use Java 17

* chore: add snippet-bot config
2023-10-17 14:25:03 -07:00
Enrique López Mañas
56126e7678
chore(deps): update dependencies (#1204) 2023-02-21 10:53:52 -08:00
Enrique López Mañas
b20987b9c3
chore(dependencies): general update of dependencies (#1107)
* chore(dependencies): general update of dependencies

* doc: updated API level for WearOS

* chore: updated API level for WearOS

* chore: moved namespace to Gradle file

Co-authored-by: Angela Yu <5506675+wangela@users.noreply.github.com>
2022-12-20 13:50:58 -08:00
Chris Arriola
74547973f8
chore: Fix build failures. (#895)
* chore: Fix builds.

Change-Id: Icc0064049ecc8f02843a382415514228031e2183

* Bump to gradle 7.2.

Change-Id: Ia36fbf147bc3ec8c5f44fd980868a691263174e9
2022-03-21 16:18:40 -07:00
Chris Arriola
b92eeef28b
chore: Using AGP 7.0.0 (#658)
* chore: Using AGP 7.0.0

* Use Java 11.

* Using 'adopt' distribution

* Ignore .java-version

* Remove onClick from XML

* Add abortOnError false.
2021-08-09 16:41:26 -07:00
Chris Arriola
5e9359b25e
chore: Update dependencies and remove jcenter() (#582)
* chore: Bump AGP 4.2.1 and use secrets-gradle-plugin 1.3.0

* chore: Remove jcenter()

* Use gradle 6.7.1

* Add volley 1.2.0

* Fix build errors.

* Use requireActivity.
2021-07-14 17:22:31 -07:00
Chris Arriola
eee48d767d
chore: Update snippet for consistent throughout docs. (#469) 2021-02-26 10:02:38 -08:00
Chris Arriola
8985cb9643
chore: Add snippets project (#278)
* chore: Add snippets directory.

* chore: Add snippets project.

* Adding license headers.
2020-08-25 11:05:24 -07:00