Delete .gitignore by mccoystevens079-prog · Pull Request #2173 · googlemaps-samples/android-samples
bot added 30 commits
February 19, 2024 13:24….0 to 18.2.0 in /WearOS (googlemaps-samples#1488) chore(deps): bump com.google.android.gms:play-services-maps in /WearOS Bumps com.google.android.gms:play-services-maps from 18.1.0 to 18.2.0. --- updated-dependencies: - dependency-name: com.google.android.gms:play-services-maps 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>
…rOS (googlemaps-samples#1487) 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>
…rOS (googlemaps-samples#1486) Bumps com.android.application from 7.3.1 to 8.2.2. --- updated-dependencies: - dependency-name: com.android.application 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>
…lpha02 to 1.7.0-alpha03 in /snippets (googlemaps-samples#1490) chore(deps): bump androidx.compose.foundation:foundation in /snippets Bumps androidx.compose.foundation:foundation from 1.7.0-alpha02 to 1.7.0-alpha03. --- updated-dependencies: - dependency-name: androidx.compose.foundation:foundation 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>
…02 to 1.7.0-alpha03 in /snippets (googlemaps-samples#1489) chore(deps): bump androidx.compose.material:material in /snippets Bumps androidx.compose.material:material from 1.7.0-alpha02 to 1.7.0-alpha03. --- updated-dependencies: - dependency-name: androidx.compose.material:material 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>
…ppets (googlemaps-samples#1492) chore(deps): bump com.android.application in /snippets Bumps com.android.application from 8.2.2 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.application 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>
…in /tutorials/kotlin/CurrentPlaceDetailsOnMap (googlemaps-samples#1493) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.0 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /ApiDemos/kotlin (googlemaps-samples#1494) chore(deps): bump com.android.tools.build:gradle in /ApiDemos/kotlin Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /tutorials/java/CurrentPlaceDetailsOnMap (googlemaps-samples#1495) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /tutorials/java/StyledMap (googlemaps-samples#1496) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…rOS (googlemaps-samples#1497) Bumps com.android.application from 8.2.2 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.application 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>
…in /tutorials/kotlin/MapWithMarker (googlemaps-samples#1498) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /tutorials/java/Polygons (googlemaps-samples#1499) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /ApiDemos/java (googlemaps-samples#1501) chore(deps): bump com.android.tools.build:gradle in /ApiDemos/java Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /tutorials/kotlin/Polygons (googlemaps-samples#1500) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…in /tutorials/java/MapWithMarker (googlemaps-samples#1502) chore(deps): bump com.android.tools.build:gradle Bumps com.android.tools.build:gradle from 8.1.4 to 8.3.0. --- updated-dependencies: - dependency-name: com.android.tools.build:gradle 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>
…03 to 1.7.0-alpha04 in /snippets (googlemaps-samples#1503) chore(deps): bump androidx.compose.material:material in /snippets Bumps androidx.compose.material:material from 1.7.0-alpha03 to 1.7.0-alpha04. --- updated-dependencies: - dependency-name: androidx.compose.material:material 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>
…lpha03 to 1.7.0-alpha04 in /snippets (googlemaps-samples#1505) chore(deps): bump androidx.compose.foundation:foundation in /snippets Bumps androidx.compose.foundation:foundation from 1.7.0-alpha03 to 1.7.0-alpha04. --- updated-dependencies: - dependency-name: androidx.compose.foundation:foundation 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>
…ppets (googlemaps-samples#1514) chore(deps): bump com.android.application in /snippets Bumps com.android.application from 8.3.0 to 8.3.1. --- updated-dependencies: - dependency-name: com.android.application 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>
….0 to 3.4.0 in /snippets (googlemaps-samples#1515) chore(deps): bump com.google.android.libraries.places:places Bumps com.google.android.libraries.places:places from 3.3.0 to 3.4.0. --- updated-dependencies: - dependency-name: com.google.android.libraries.places:places 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>
* fix: import rememberMarkerState and use the marker state correctly * fix: fixed secrets in wearable module --------- Co-authored-by: dkhawk <107309+dkhawk@users.noreply.github.com>
…s-samples#1808) * fix: Exports all of the sample activities to make them available to run directly. * fix: wrap before copyright comment formatting character
…googlemaps-samples#1813) * fix: prevents infinite recursion when getting the location permission * remove unnecessary imports
…oglemaps-samples#1814) * Add dynamic key values to secrets.properties in idx template Update idx template to read local.defaults.properties and generate key entries in secrets.properties file using the user's provided API key. * Fix incorrect variable for key Update key to be keyVar when writing to secrets.properties
* Add dynamic key values to secrets.properties in idx template Update idx template to read local.defaults.properties and generate key entries in secrets.properties file using the user's provided API key. * Fix incorrect variable for key Update key to be keyVar when writing to secrets.properties * fix: remove newline from comment Comment contained newline that made the template read the filename as a command.
* IDX emulator implementation was change to localhost:5555 Co-authored-by: alexyfchen <alexyfchen@google.com>
Bitmaps served by this provider cause memory leaks after the map is destroyed. Narrowing the scope to a field allows it to be garbage collected and does not affect the provider/activity's ability to serve and render the custom tiles.
…oglemaps-samples#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
Updates the following dependencies:
* compileSdk to 35
* androidx.core:core-ktx to 1.15.0
* org.jetbrains.kotlin:kotlin-stdlib-jdk7 to 2.0.21
* id("com.android.application") to 8.8.0
* id("org.jetbrains.kotlin.android") to 2.1.0
* Gradle to 8.11.1
* Also renames the savedState variable to savedInstanceState in AmbientActivity.kt and MainActivity.kt to match the base class.
* fix: import rememberMarkerState and use the marker state correctly * feat: dataset styling Kotlin samples * feat: added DataDrivenBoundariesActivity.kt * feat: added DataDrivenBoundariesActivity * feat: added documentation * feat: added header * chore: changed MY_MAP_ID to DEMO_MAP_ID * feat: moved data files to raw * feat: added DataDrivenBoundariesActivity * feat: removed unused files * feat: map id * chore: replace System.out.println with Log.d * feat: added region tags * feat: added different set of DDS * feat: added different set of DDS * feat: replacing files feat: replacing files * feat: replacing files * feat: compileSdk 35 * feat: compileSdk 35 * chore: updated README file * feat: trying to force different datasets * feat: updated samples * feat: Add data-driven styling for datasets This commit introduces data-driven styling for datasets in the ApiDemos application. The following changes were made: Added a custom Application class (ApiDemoApplication) to check for the presence and validity of the API key during startup. Added a new data structure (DataSet) to hold information about each dataset, including its label, dataset ID, location, and styling callback. Updated the DataDrivenDatasetStylingActivity to use the new data structure and styling callbacks. Rename the dataset input files to better reflect there contents. * fix: moves the dataset ids to the secrets.properties file * feat: significant rewrite to of DataDrivenDatasetStylingActivity * Makes the app look better on full screen with a cutout * Uses material elements * Switch to using secrets for the data set ids * more of a convenience to prevent having to remove the ids when submitting * moves dataset data files to common area since they are not used directly by the app * Detailed instructions for uploading the data to console (WIP) * fix: exports the data driven styling activities so they can be run directly * feat: added header * feat: change ubuntu-latest * feat: change ubuntu-latest * feat: change ubuntu-latest --------- Co-authored-by: dkhawk <107309+dkhawk@users.noreply.github.com>
…y.java demo (googlemaps-samples#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.
* feat: added material to samples * feat: WIP * feat: added material to samples * feat: some more samples * feat: base activity * feat: some more samples
* chore: update README per template * chore: more README fixes from template Skipping failed tests for this README update.
* chore: unified Kotlin and Java modules
* chore: unified resources
* chore: removed Kotlin
* chore: headers
* chore: headers
* chore: headers
* chore: headers
* chore: added insets
* chore: headers
* chore: renamed
* fix: Refactor map creation, centralize Map ID, add Kotlin boundary controls
This commit refactors how map fragments and Map IDs are handled across the Java and Kotlin demo applications, and introduces feature parity for boundary layer controls in the Kotlin demo.
Key changes include:
- **Programmatic Map Fragment Creation:**
- Replaced static `<fragment>` map declarations with `<FrameLayout>` containers (`map_fragment_container`) in `data_driven_boundaries_demo.xml` and `data_driven_styling_demo.xml` layouts.
- Modified `DataDrivenBoundariesActivity` and `DataDrivenDatasetStylingActivity` (Java & Kotlin) to instantiate `SupportMapFragment` programmatically using `SupportMapFragment.newInstance(mapOptions)`.
- Map options (`GoogleMapOptions`) are now created with the dynamically retrieved Map ID before fragment creation.
- this allows moving the Map ID out of the xml files
- **Centralized Map ID and Configuration Logic:**
- Introduced `ApiDemoApplication` in both Java (`java-app`) and Kotlin (`kotlin-app`) modules.
- This class centralizes Map ID retrieval, checking `BuildConfig.MAP_ID` first, then the `R.string.map_id` resource, providing a consistent source.
- The Kotlin `ApiDemoApplication` also includes API Key validation on application startup.
- **Kotlin DataDrivenBoundaries Feature Enhancement:**
- Added boundary layer selection controls (popup menu via `button_feature_type`) to the Kotlin `DataDrivenBoundariesActivity`, achieving parity with the Java version's functionality.
- Implemented state management for toggling Locality, Administrative Area Level 1, and Country layers.
- Added dynamic styling logic to apply/remove styles based on layer visibility.
- Updated feature click handling for country selection, respecting layer activation state.
- **Miscellaneous Improvements:**
- Added distinct demo titles (`demo_title_java`, `demo_title_kotlin`) in `strings.xml` for better app identification.
- Updated resource references within Java/Kotlin activities for cleaner imports (e.g., `R.id...` instead of fully qualified names).
* chore: address various lint issues
* fix: explicitly bind checkboxes in the UI
---------
Co-authored-by: dkhawk <107309+dkhawk@users.noreply.github.com>
* chore: updated versions * chore: updated snippets * chore: updated tutorials java * chore: updated tutorials java * chore: permission * chore: permission * chore: added material
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters