1390 Commits

Author SHA1 Message Date
Sean Barbeau
049481395e
chore: Add LiteDemoActivity in Kotlin (#210)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
2020-05-21 10:25:38 -04:00
Sean Barbeau
da59043c43
chore: Add StreetViewPanoramaViewDemoActivity in Kotlin (#209)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Add missing annotation
2020-05-21 10:14:47 -04:00
Sean Barbeau
ae0de4b608
chore: Add StreetViewPanoramaEventsDemoActivity in Kotlin (#207)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Use lambda (requires Java 8 support)
* Support Java 8 features (for all Java demos) via build.gradle
2020-05-19 15:16:40 -04:00
Sean Barbeau
d5f727f838
chore: Add StreetViewPanoramaOptionsDemoActivity in Kotlin (#208)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Remove redundant cast for TextView
* Normalize instance variable names
* Normalize capitalization of activity title in UI list
* Use lambda (requires Java 8 support)
* Support Java 8 features (for all Java demos) via build.gradle
2020-05-19 10:25:55 -04:00
Sean Barbeau
62c06a8707
chore: Add StreetViewPanoramaBasicDemoActivity in Kotlin (#204) 2020-05-18 09:20:31 -04:00
Sean Barbeau
b2c83b643e
chore: Add SplitStreetViewPanoramaAndMapDemoActivity in Kotlin (#203)
Also update Java example to not use Hungarian notation
2020-05-15 14:32:15 -04:00
Chris Arriola
7fdbaa234f chore: Add CODEOWNERS file.
Closes #185
2020-05-15 09:41:34 -07:00
Chris Arriola
694c460834
chore: Kotlin ApiDemos for Maps SDK V3 BETA (#201)
* chore: Kotlin ApiDemos for Maps SDK V3 BETA

* Update ApiDemos/kotlin/app/build.gradle

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>
2020-05-14 11:40:26 -07:00
dependabot-preview[bot]
ffe9d8f1bc
chore(deps): bump maps-ktx in /tutorials/kotlin/MapWithMarker (#202)
Bumps [maps-ktx](https://github.com/googlemaps/android-maps-ktx) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/googlemaps/android-maps-ktx/releases)
- [Changelog](https://github.com/googlemaps/android-maps-ktx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googlemaps/android-maps-ktx/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 08:46:14 -07:00
Chris Arriola
fc64eca151
chore: ApiDemos for Maps SDK V3 BETA (#199)
* chore: Adding samples for V3.

Adding samples for V3 BETA in a new module `app-v3`. These samples are
generated by the `generateV3` Gradle task which runs when the `app`
module is built.

TODOs left:
- [ ] Update README with a note about V3 samples

* Update README and location of secure.properties.

* Using product flavors instead of creating a new module for V3 & GMS.

* Update build workflow to run lint and assemble on all flavor/build types.

* Not using deprecated API.

* Install Android NDK.

* Update license headers.
2020-05-12 17:15:09 -07:00
Chris Arriola
ba01ea47ff
feat: Adding Kotlin version of PolyActivity (#197)
* 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.
2020-05-12 09:09:27 -07:00
Sean Barbeau
f9c52c7673
chore: Remove KTX from basic map demo (#196) 2020-05-08 18:28:54 -04:00
Chris Arriola
5ac76bb18b
chore: Adding regiontag for MapsMarkerActivity (#195) 2020-05-08 08:45:09 -07:00
Chris Arriola
69f17a8fb0
feat: Adding kotlin sample for MapWithMarker. (#192)
* feat: Adding kotlin sample for MapWithMarker.

* Using gradle technique for passing the API key

* Adding license headers.

* Modify java MapWithMarker to use secure.properties as well.

* Adding more license headers

* Update build.yml cd

* Fix dir.

* Using maps_api_key

* Update tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>

* Comments

* Add missing import

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>
2020-05-07 15:02:38 -07:00
Sean Barbeau
581ae289a6
chore: Update basic map demo (#193)
Based on additional comments in https://github.com/googlemaps/android-samples/pull/188:
* Use KTX for addMarker()
* Allow optional for GoogleMap
2020-05-07 12:23:54 -04:00
Sean Barbeau
5e6540cc6b
docs: Add CI badge to README (#191)
* docs: Add CI badge to README

* Fix typo
2020-05-07 08:06:28 -07:00
Sean Barbeau
a972bafebc
feat: Get Maps API key from unversioned file instead of resource - kotlin (#189)
New process to 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 `ApiDemos/kotlin/app` directory called `secure.properties` (this file should *NOT* be under version control to protect your API key)
1. Add a single line to `ApiDemos/kotlin/app/secure.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained in the first step
1. Build and run
2020-05-07 08:06:11 -07:00
Sean Barbeau
b2246b1c8f
feat: Get Maps API key from unversioned file instead of resource - Java (#190)
Previously the Java demo app API key was hard-coded directly in a versioned string resource file, which is dangerous as it's easy to accidentally commit your key into version control.

This PR adds a new process to add your own Google Maps API key for the Java demo app:

1. [Get a Maps API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
1. Create a file in the `ApiDemos/java/app` directory called `secure.properties` (this file should *NOT* be under version control to protect your API key)
1. Add a single line to `ApiDemos/java/app/secure.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained in the first step
1. Build and run
2020-05-06 14:05:14 -07:00
Sean Barbeau
41e6322ccb
feat: Use coroutine and AMU-KTX .awaitMap() to init basic map demo (#188) 2020-05-06 09:24:13 -07:00
Chris Arriola
25cf804449 build: Build all branches not just master 2020-05-04 19:24:56 -07:00
dependabot-preview[bot]
6dd37ee5a6
chore(deps): bump kotlin_version in /ApiDemos/kotlin (#186)
Bumps `kotlin_version` from 1.3.71 to 1.3.72.

Updates `kotlin-gradle-plugin` from 1.3.71 to 1.3.72
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.71...v1.3.72)

Updates `kotlin-stdlib-jdk7` from 1.3.71 to 1.3.72
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.71...v1.3.72)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-30 13:21:13 -07:00
dependabot-preview[bot]
28c6ec9b49
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /ApiDemos/kotlin (#181)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 12:42:53 -07:00
dependabot-preview[bot]
b71da4919f
chore(deps): bump gradle in /tutorials/CurrentPlaceDetailsOnMap (#180)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 12:42:41 -07:00
dependabot-preview[bot]
a38595828f
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /tutorials/MapWithMarker (#179)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 12:42:22 -07:00
dependabot-preview[bot]
f4226a80a5
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /tutorials/StyledMap (#178)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 12:41:55 -07:00
dependabot-preview[bot]
831c706a3a
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /WearOS (#177)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 12:41:39 -07:00
dependabot-preview[bot]
1d0cf40233
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /ApiDemos/java (#176)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 08:47:54 -07:00
dependabot-preview[bot]
031c9de150
chore(deps): bump gradle from 3.6.2 to 3.6.3 in /tutorials/Polygons (#175)
Bumps gradle from 3.6.2 to 3.6.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-22 08:47:39 -07:00
Chris Arriola
487c289e15
chore(deps): Update to gradle 3.6.2 (#174)
* chore(deps): Update gradle to 3.6.2

* Fix lint issues.
2020-04-15 11:43:39 -07:00
dependabot-preview[bot]
9529e5e5cc
chore(deps): Bump junit from 4.12 to 4.13 in /tutorials/MapWithMarker (#162)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Chris Arriola <carriola@google.com>
2020-04-15 11:12:27 -07:00
dependabot-preview[bot]
86fe20abe5
Bump junit from 1.1.0 to 1.1.1 in /tutorials/MapWithMarker (#166)
Bumps junit from 1.1.0 to 1.1.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-15 11:11:43 -07:00
dependabot-preview[bot]
e788c96ac1
Bump junit from 1.1.0 to 1.1.1 in /tutorials/StyledMap (#161)
Bumps junit from 1.1.0 to 1.1.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-15 11:11:33 -07:00
dependabot-preview[bot]
87e1130634
chore(deps): Bump espresso-core from 3.1.1 to 3.2.0 in /tutorials/StyledMap (#169)
Bumps espresso-core from 3.1.1 to 3.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-15 10:40:01 -07:00
dependabot-preview[bot]
622bf3215a
chore(deps): Bump places from 2.1.0 to 2.2.0 in /tutorials/CurrentPlaceDetailsOnMap (#167)
Bumps places from 2.1.0 to 2.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-15 10:39:39 -07:00
dependabot-preview[bot]
42c4642525
chore(deps): Bump junit from 4.12 to 4.13 in /tutorials/Polygons (#170)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Chris Arriola <carriola@google.com>
2020-04-15 10:39:22 -07:00
dependabot-preview[bot]
450ceb445a
Bump junit from 1.1.0 to 1.1.1 in /tutorials/Polygons (#172)
Bumps junit from 1.1.0 to 1.1.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-15 10:38:37 -07:00
dependabot-preview[bot]
f6bef0cb2b
chore(deps): Bump junit from 4.12 to 4.13 in /tutorials/StyledMap (#173)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-14 19:56:28 -07:00
dependabot-preview[bot]
21429a23f3
chore(deps): Bump espresso-core from 3.1.1 to 3.2.0 in /tutorials/MapWithMarker (#168)
Bumps espresso-core from 3.1.1 to 3.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-14 19:56:11 -07:00
dependabot-preview[bot]
5b405fe431
Bump espresso-core from 3.1.1 to 3.2.0 in /tutorials/Polygons (#160)
Bumps espresso-core from 3.1.1 to 3.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-14 19:55:54 -07:00
dependabot-preview[bot]
899c33704a
chore(deps): Bump easypermissions from 1.1.1 to 3.0.0 in /ApiDemos/kotlin (#156)
Bumps [easypermissions](https://github.com/googlesamples/easypermissions) from 1.1.1 to 3.0.0.
- [Release notes](https://github.com/googlesamples/easypermissions/releases)
- [Commits](https://github.com/googlesamples/easypermissions/compare/1.1.1...3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-14 19:55:33 -07:00
Chris Arriola
57a038902d
Merge pull request #163 from googlemaps/dependabot/gradle/tutorials/CurrentPlaceDetailsOnMap/com.android.support.test.espresso-espresso-core-3.0.2
chore(deps): Bump espresso-core from 2.2.2 to 3.0.2 in /tutorials/CurrentPlaceDetailsOnMap
2020-04-14 19:52:46 -07:00
Chris Arriola
8154698458
Merge pull request #155 from googlemaps/dependabot/gradle/ApiDemos/java/com.android.tools.build-gradle-3.6.2
chore(deps): Bump gradle from 3.6.1 to 3.6.2 in /ApiDemos/java
2020-04-14 19:51:27 -07:00
Chris Arriola
2e07edf643
Merge pull request #154 from googlemaps/dependabot/gradle/ApiDemos/kotlin/junit-junit-4.13
chore(deps): Bump junit from 4.12 to 4.13 in /ApiDemos/kotlin
2020-04-14 19:51:05 -07:00
Chris Arriola
90ed9f1cba
Merge pull request #153 from googlemaps/dependabot/gradle/ApiDemos/java/junit-junit-4.13
chore(deps): Bump junit from 4.12 to 4.13 in /ApiDemos/java
2020-04-14 19:50:36 -07:00
Chris Arriola
8f2a09697a chore(Dependabot): adding commit message prefix 2020-04-14 18:07:42 -07:00
dependabot-preview[bot]
a60614e287
Bump espresso-core in /tutorials/CurrentPlaceDetailsOnMap
Bumps espresso-core from 2.2.2 to 3.0.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 16:41:51 +00:00
Chris Arriola
a428073bbd chore(Dependabot): Enumerate all tutorial directories. 2020-04-14 09:40:24 -07:00
dependabot-preview[bot]
50e1ded08a
Bump gradle from 3.6.1 to 3.6.2 in /ApiDemos/java
Bumps gradle from 3.6.1 to 3.6.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 16:36:52 +00:00
dependabot-preview[bot]
b7dc36bc40
Bump junit from 4.12 to 4.13 in /ApiDemos/kotlin
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 16:36:35 +00:00
dependabot-preview[bot]
85de0339e5
Bump junit from 4.12 to 4.13 in /ApiDemos/java
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 16:36:34 +00:00