25 Commits

Author SHA1 Message Date
Enrique López-Mañas
7cfb154178
chore: added Lint flow to modules (#2308)
* chore: added Lint flow to modules

* chore: header for lint

* chore: removed abort on error

* chore: remove lint

* chore: fixed lints

* chore: fix permission
2025-10-13 10:40:58 -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
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
Angela Yu
710c6ee148
chore: update all instructions to use secrets.properties (#1755)
* chore: update WearOS readme

* chore: update WearOS AGP version

* chore: remove outdated API key instructions

* chore: update comments in build.gradle
2024-08-16 11:12:20 -07:00
Dale Hawkins
abcc8b52c2
feat: copies some snippets that were in v3 only to gms (#1715)
* feat: copies some snippets that were in v3 only to gms
chore: the java compatibility version

* fix: updates copyright dates and adds missing copyright

* fix: copyright header for strings.xml

* fix: set Java Version back to 17

* fix: set Java Version back to 17

* fix: set Java Version back to 17

* fix: set Java Version back to 17

* fix: set Java Version back to 17

* feat: creates AdvancedMarkersCollisionActivity to demonstrate marker collision behavior

* chore: not adding jar files in libs directory

* feat: set Java 21 everywhere

---------

Co-authored-by: Enrique López Mañas <eenriquelopez@gmail.com>
2024-07-24 10:56:55 -06:00
dependabot[bot]
4f9701920e
chore(deps): bump com.google.maps.android:maps-utils-ktx from 5.1.0 to 5.1.1 in /snippets (#1694)
chore(deps): bump com.google.maps.android:maps-utils-ktx in /snippets

Bumps [com.google.maps.android:maps-utils-ktx](https://github.com/googlemaps/android-maps-ktx) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/googlemaps/android-maps-ktx/releases)
- [Changelog](https://github.com/googlemaps/android-maps-ktx/blob/main/.releaserc)
- [Commits](https://github.com/googlemaps/android-maps-ktx/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: com.google.maps.android:maps-utils-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 11:59:33 +00:00
dependabot[bot]
e46e4571d1
chore(deps): bump com.google.maps.android:maps-utils-ktx from 5.0.0 to 5.1.0 in /snippets (#1686)
chore(deps): bump com.google.maps.android:maps-utils-ktx in /snippets

Bumps [com.google.maps.android:maps-utils-ktx](https://github.com/googlemaps/android-maps-ktx) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/googlemaps/android-maps-ktx/releases)
- [Changelog](https://github.com/googlemaps/android-maps-ktx/blob/main/.releaserc)
- [Commits](https://github.com/googlemaps/android-maps-ktx/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: com.google.maps.android:maps-utils-ktx
  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>
2024-07-02 11:47:26 +00:00
dependabot[bot]
e65d38ad50
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx from 2.8.2 to 2.8.3 in /snippets (#1685)
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx in /snippets

Bumps androidx.lifecycle:lifecycle-runtime-ktx from 2.8.2 to 2.8.3.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-02 11:47:13 +00:00
dependabot[bot]
becf74aecf
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx from 2.8.1 to 2.8.2 in /snippets (#1638)
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx in /snippets

Bumps androidx.lifecycle:lifecycle-runtime-ktx from 2.8.1 to 2.8.2.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 11:32:16 +00:00
dependabot[bot]
098cb36f39
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx from 2.8.0 to 2.8.1 in /snippets (#1621)
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx in /snippets

Bumps androidx.lifecycle:lifecycle-runtime-ktx from 2.8.0 to 2.8.1.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-30 11:18:02 +00:00
dependabot[bot]
0098d8f854
chore(deps): bump androidx.appcompat:appcompat from 1.6.1 to 1.7.0 in /snippets (#1619)
chore(deps): bump androidx.appcompat:appcompat in /snippets

Bumps androidx.appcompat:appcompat from 1.6.1 to 1.7.0.

---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
  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>
2024-05-30 11:10:34 +00:00
dependabot[bot]
71b85635dd
chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib from 1.9.24 to 2.0.0 in /snippets (#1595)
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 12:00:47 +00:00
dependabot[bot]
ecc7694fed
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx from 2.7.0 to 2.8.0 in /snippets (#1589)
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx in /snippets

Bumps androidx.lifecycle:lifecycle-runtime-ktx from 2.7.0 to 2.8.0.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-runtime-ktx
  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>
2024-05-15 11:11:16 +00:00
dependabot[bot]
74e956e68f
chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib from 1.9.23 to 1.9.24 in /snippets (#1579)
chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib in /snippets

Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.9.23 to 1.9.24.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.24/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 11:19:58 +00: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
dependabot[bot]
83f6b23eb1
chore(deps): bump androidx.core:core-ktx from 1.13.0 to 1.13.1 in /snippets (#1558)
chore(deps): bump androidx.core:core-ktx in /snippets

Bumps androidx.core:core-ktx from 1.13.0 to 1.13.1.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 11:52:49 +00:00
dependabot[bot]
c53ba8f7c7
chore(deps): bump androidx.core:core-ktx from 1.12.0 to 1.13.0 in /snippets (#1545)
chore(deps): bump androidx.core:core-ktx in /snippets

Bumps androidx.core:core-ktx from 1.12.0 to 1.13.0.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  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>
2024-04-18 11:10:51 +00:00
dependabot[bot]
c55e28216f
chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib from 1.9.0 to 1.9.23 in /snippets (#1506)
chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib in /snippets

Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 1.9.0 to 1.9.23.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.9.23/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.0...v1.9.23)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-07 12:15:37 +00:00
dependabot[bot]
b21d5488b8
chore(deps): bump androidx.appcompat:appcompat from 1.4.2 to 1.6.1 in /snippets (#1479)
chore(deps): bump androidx.appcompat:appcompat in /snippets

Bumps androidx.appcompat:appcompat from 1.4.2 to 1.6.1.

---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
  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>
2024-02-16 12:34:49 +00:00
dependabot[bot]
a879e8a55f
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx from 2.5.1 to 2.7.0 in /snippets (#1476)
chore(deps): bump androidx.lifecycle:lifecycle-runtime-ktx in /snippets

Bumps androidx.lifecycle:lifecycle-runtime-ktx from 2.5.1 to 2.7.0.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-runtime-ktx
  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>
2024-02-16 12:29:37 +00:00
dependabot[bot]
5565e5071f
chore(deps): bump androidx.core:core-ktx from 1.9.0 to 1.12.0 in /snippets (#1477)
chore(deps): bump androidx.core:core-ktx in /snippets

Bumps androidx.core:core-ktx from 1.9.0 to 1.12.0.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  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>
2024-02-16 12:29:02 +00:00
Enrique López Mañas
e6f8b8a913
feat: updated targetSdk and compileSdk (#1428)
* feat: updated targetSdk and compileSdk

* docs: added licenses

* docs: excluded markdown files from header check
2023-12-06 13:20:48 -08:00
Angela Yu
f777167272
chore: set up new snippets modules for region tags (#1368)
* chore: move MapsCompose.kt to snippets/app-compose app

* chore: create app-places-ktx snippets module with places-ktx install snippet

* chore: create app-maps-rx snippets module

* chore: create app-ktx snippets module

* chore: add app-utils-ktx snippets module

* chore: rename app-maps-rx to app-rx

* chore: add app-utils snippets module

* chore: move region tag from tutorials to snippets for play services sdk dependency

* chore: move kotlin utils to app-utils-ktx module

* chore: move utils and utils-ktx snippets into corresponding modules

* chore: finalize maps sdk snippets

* chore: upgrade AGP and add namespaces

* chore: fix build issues

* chore: udpate build workflow to Java 17

* chore: fix build errors

* chore: remove v3 files

* Revert "chore: remove v3 files"

This reverts commit f70c47bd0cbd5ed73dfd43199371dcfc6afd6350.

* chore: add default PLACES_API_KEY to Current Place tutorial

* chore: fix tutorial builds
2023-10-31 09:33:26 -07:00