18 Commits

Author SHA1 Message Date
Dale Hawkins
683b21da11
fix: support devices with cutouts for DataDrivenDatasetStylingActivity.java demo (#1979)
* fix: support devices with cutouts for DataDrivenDatasetStylingActivity.java demo

* fix: remove unnecessary 'res/' from paths in README.md file

* feat(apidemos): enhance DataDrivenBoundariesActivity UI and boundary selection

This commit enhances the DataDrivenBoundariesActivity demo with UI and
functionality improvements focusing on boundary type selection and visual
enhancements.

- Implements Material Design theming and UI elements.
- Adds boundary type selection via PopupMenu (Locality, Admin Area, Country).
- Refactors styling and implements persistent country selection.
- Handles system UI insets for improved display.

These changes improve the demo's user experience and code structure,
better showcasing data-driven boundary styling.

* feat(apidemos): configure dataset-specific zoom levels for datasets demo

This commit introduces dataset-specific zoom levels to the DataDrivenDatasetStylingActivity, enhancing the user experience when switching between datasets.

- Adds a `zoomLevel` field to the `DataSet` class to store the desired zoom level for each dataset.
- Updates the `dataSets` array to include appropriate zoom levels for Boulder, New York, and Kyoto datasets.
- Modifies the `centerMapOnLocation` method to accept a `zoomLevel` parameter, allowing it to be dynamically set.
- Updates the `switchDataSet` method to utilize the `zoomLevel` from the selected `DataSet` when centering the map, ensuring the map zooms to the optimal level for each dataset.
- Removes the previously hardcoded `ZOOM_LEVEL` constant, as the zoom level is now dataset-dependent.

These changes ensure that when a user selects a dataset, the map automatically zooms to a relevant level for that specific dataset, improving clarity and usability of the demo.

Also adds missing copyright header.
2025-02-14 15:51:21 -07: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
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
273126a7c7
chore: improved git hook to add Google API Keys (#1576)
* chore: improved git hook to add Google API Keys

* chore: updated Gradle
2024-05-17 05:10:18 -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
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
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
edaf12db21
chore: Use Gradle 7.2 in ApiDemos. (#896)
Change-Id: I2af001a0a64531f5557c6c708c51bb279af33b5f
2022-03-22 09:11:54 -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
99da3d7c5f
chore: Using secrets-gradle-plugin (#432)
* chore: Using secrets-gradle-plugin

* Using secrets-gradle-plugin in all projects.

* Using 0.4 version of secrets-gradle-plugin
2021-01-27 13:30:29 -08:00
Chris Arriola
fe594674ce build: Update to Gradle 4.0.1 2020-07-27 14:59:25 -07:00
Chris Arriola
db17426711 build: Separate jobs. 2020-04-01 11:22:16 -07:00
Alex Muramoto
71b2a225f4 upgrade kotlin and gradle versions (#119) 2019-04-19 09:45:38 -07:00
Bella Mangunsong
bf92d73028 changed the java LiteListDemo to use RecyclerView 2018-02-12 13:38:53 +11:00
Bella Mangunsong
d6a371a6b9 moved ApiDemos to java/ 2018-02-06 10:19:01 +11:00