Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding Kotlin version of PolyActivity #197

Merged
merged 10 commits into from
May 12, 2020
Merged

Conversation

arriolac
Copy link
Contributor

Adding Kotlin version of tutorial PolyActivity found in https://developers.google.com/maps/documentation/android-sdk/polygon-tutorial

This change also adds the following region tags:

  • maps_poly_activity_get_map_async
  • maps_poly_activity_on_map_ready
  • maps_poly_activity_add_polyline_set_tag
  • maps_poly_activity_style_polyline
  • maps_poly_activity_on_map_ready
  • maps_poly_activity_on_polyline_click
  • maps_poly_activity_add_polygon
  • maps_poly_activity_style_polygon

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 11, 2020
@arriolac arriolac requested a review from barbeau May 11, 2020 16:53
@arriolac arriolac changed the title feat: Adding Kotlin version of PolyActivity." feat: Adding Kotlin version of PolyActivity May 11, 2020
Copy link
Collaborator

@barbeau barbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM - a few in-line comments.

This demo app requires that you add your own Google Maps API key:

1. [Get a Maps API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
1. Create a file in the `tutorials/java/Polygons` directory called `secure.properties`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "...tutorials/java/Polygons/app". Same with step below.

This demo app requires that you add your own Google Maps API key:

1. [Get a Maps API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
1. Create a file in the `tutorials/kotlin/Polygons` directory called `secure.properties`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - this and below step should be tutorials/kotlin/Polygons/app

implementation "androidx.core:core-ktx:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you can remove mavenCentral() dependency.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.72'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will dependabot catch dependencies to bump that have the version number pull out like this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this won't be captured by Dependabot. There's an issue here that's been marked as stale: dependabot/dependabot-core#1618

@arriolac arriolac merged commit ba01ea4 into master May 12, 2020
@arriolac arriolac deleted the chris/tutorials/polyline branch May 12, 2020 16:09
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

kikoso pushed a commit that referenced this pull request Aug 14, 2024
* chore: Modify how API key is provided

* Creating kotlin version of Polygons.

* Add region tag for maps_poly_activity_get_map_async

* Add region tag for maps_poly_activity_on_map_ready

* Add region tag for maps_poly_activity_add_polyline

* Add region tag for maps_poly_activity_add_polyline_set_tag

* Add regiontag maps_poly_activity_style_polyline

* Add region tag for maps_poly_activity_on_polyline_click

* Add region tag for maps_poly_activity_style_polygon

* Addressing comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants