131 Commits

Author SHA1 Message Date
Nikita Samoylov
31d2d19d85
fix: activity added to manifest, state saving fix (#416) 2021-01-15 16:42:51 -08:00
Chris Arriola
2ab19b7e0d
feat: Using local.properties to provide API key (#398)
* feat: Using local.properties to provide API key instead of secure.properties.

* Remove redundant declaration in main AndroidManifest.xml

* Migrate ApiDemos - Kotlin to use local.properties.

* Update README for tutorials.

* Genericize.

* Remove references to secure.properties.

* s/master/main
2020-11-25 13:38:00 -08:00
dependabot-preview[bot]
31717696c0
chore(deps): bump junit from 4.13 to 4.13.1 in /ApiDemos/kotlin (#348)
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.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-11-09 08:02:33 +00:00
Chris Arriola
0a4969eb76
feat: Target API level 30. (#376) 2020-11-04 12:52:18 -08:00
Chris Arriola
f365026f84
chore: Add missing Kotlin demos. (#375) 2020-11-03 11:27:16 -08:00
dependabot-preview[bot]
db2361c38f
chore(deps): bump play-services-base in /ApiDemos/kotlin (#374)
Bumps play-services-base from 17.4.0 to 17.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-11-02 07:43:13 +00:00
dependabot-preview[bot]
84edb52ad5
chore(deps): bump constraint-layout in /ApiDemos/kotlin (#373)
Bumps constraint-layout from 2.0.1 to 2.0.4.

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-02 07:42:51 +00:00
dependabot-preview[bot]
8a1df2eaca
chore(deps): bump play-services-location in /ApiDemos/kotlin (#327)
Bumps play-services-location from 17.0.0 to 17.1.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-10-26 07:36:36 +00:00
dependabot-preview[bot]
a9998da743
chore(deps): bump play-services-base in /ApiDemos/kotlin (#369)
Bumps play-services-base from 17.4.0 to 17.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-10-26 07:36:08 +00:00
dependabot-preview[bot]
dd12c13dbb
chore(deps): bump constraint-layout in /ApiDemos/kotlin (#292) 2020-09-23 23:57:38 +00:00
Chris Arriola
6eb23eee45
chore: Add missing snippets (#316)
* chore: Add missing snippets.

* Add POI behavior

* License.

* Adding snippets for Maps Object.

* Add OnPoiClickDemoActivity

* Add LiteMode.

* Add street view sample code.

* Add missing headers.

* Marking activity as public.

* Making activity internal

* Move exclude.

* Adding snippets for Events.

* Add camera and view snippets.

* Adding MyLocationLayerActivity.

* Add snippets for Markers.

* Adding InfoWindows.

* Addiing snippets for Shapes.

* Add GroundOverlays snippets.

* Add tile overlays samples.

* Add AMU + GeoJSON samples.

* ADd KML snippets.

* Adding heatmaps.

* Add clustering.

* Add multilayer.
2020-09-23 15:14:56 -07:00
dependabot-preview[bot]
f039c499c8
chore(deps): bump junit from 1.1.1 to 1.1.2 in /ApiDemos/kotlin (#288) 2020-09-10 17:55:32 +00:00
dependabot-preview[bot]
530719e710
chore(deps): bump play-services-base in /ApiDemos/kotlin (#277) 2020-09-10 17:28:33 +00:00
dependabot-preview[bot]
7da51f32db
chore(deps): bump espresso-core from 3.2.0 to 3.3.0 in /ApiDemos/kotlin (#294) 2020-09-10 17:26:13 +00:00
dependabot-preview[bot]
5a262b6b3a chore(deps): bump play-services-basement in /ApiDemos/kotlin
Bumps play-services-basement from 17.3.0 to 17.4.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-10 17:17:04 +00:00
dependabot-preview[bot]
f95f2bb13c chore(deps): bump appcompat from 1.1.0 to 1.2.0 in /ApiDemos/kotlin
Bumps appcompat from 1.1.0 to 1.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-10 17:16:50 +00:00
Chris Arriola
9a8dff4c2b chore: Adding kotlin demo of raw MapView. 2020-09-08 10:20:02 -07:00
Louis CAD
f4e66de6ff
fix: Fix spelling in Kotlin README (#283) 2020-08-28 10:12:25 -07:00
Chris Arriola
c82e1a8120
build: Adding SuppressLint for MissingPermission. (#261)
* build: Adding SuppressLint for MissingPermission.

* Using NDK version 21.3.6528147

* Uninstall NDK bundle.

* Fix build errors.

* Fix per-flavor manifests.
2020-07-28 10:33:02 -07:00
Chris Arriola
fe594674ce build: Update to Gradle 4.0.1 2020-07-27 14:59:25 -07:00
Chris Arriola
7768691408
docs: Update README on how to provide GMP API Key. (#248)
* docs: Update README on how to provide GMP API Key.

* fix references.

* Update reference.

* Update string.

* Update references.
2020-06-17 09:47:42 -07:00
Chris Arriola
e37665bebb chore: Change setFadeIn signature. 2020-06-15 13:52:11 -07:00
Chris Arriola
343e153d6f chore(Kotlin): Add Kotlin samples for tile overlay. 2020-06-15 13:39:42 -07:00
Chris Arriola
31a5d6ce03 chore: Update docs link for Cloud Based Map Styling. 2020-06-15 09:15:46 -07:00
Chris Arriola
4014eaf4bb Merge branch 'chris/v3-beta/3.1.0' 2020-06-15 08:46:55 -07:00
Chris Arriola
c26ca13366 docs: Adding note about product flavors. 2020-06-12 15:14:11 -07:00
Chris Arriola
039244ca50 feat: Add samples for V3 BETA 3.1.0 release. 2020-06-12 14:05:02 -07:00
googlemaps-bot
35e72cf23f
chore: Generate V3 samples (#244) 2020-06-04 10:44:46 -07:00
Sean Barbeau
a6d24c6395
chore: Add MyLocationDemoActivity in Kotlin (#239)
Includes region tags for:
* maps_check_location_permission_result
* maps_check_location_permission

Also adds PermissionUtils in Kotlin

Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation

Also remove redundant schema from layout
2020-06-03 16:06:48 -04:00
googlemaps-bot
b27512a8f5
chore: Generate V3 samples (#243) 2020-06-03 12:55:09 -07:00
dependabot-preview[bot]
dca00a27a7
chore(deps): bump play-services-base in /ApiDemos/kotlin (#241) 2020-06-03 18:41:58 +00:00
dependabot-preview[bot]
fb52adb503
chore(deps): bump play-services-base in /ApiDemos/kotlin (#237) 2020-06-02 17:34:16 +00:00
Sean Barbeau
a72d0bde1a
chore: Add region tags for CameraDemoActivity (#233)
Also made following changes to Java version:
* Remove Hungarian notation from variables
* Remove redundant view casts
2020-06-02 11:21:22 -04:00
Sean Barbeau
09dcb13876
chore: Add IndoorDemoActivity in Kotlin (#232)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Remove redundant cast for TextView
* Fix spelling in string
2020-06-01 12:31:02 -04:00
Sean Barbeau
92290d690d
chore: Add GroundOverlayDemoActivity in Kotlin (#231)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Remove redundant cast for SeekBar
2020-06-01 11:17:27 -04:00
Sean Barbeau
7f1efcdab9
chore: Add EventsDemoActivity in Kotlin (#220)
Also apply following changes to Java version:
* Refactor variables to remove Hungarian notation
* Remove redundant cast for TextView
2020-05-29 14:15:34 -04:00
Maluki Muthusi
99b9c37c7f
The api key should be added at the file ApiDemos/kotlin/secure.properties not ApiDemos/kotlin/app/secure.properties. (#212)
It is one of the errors that beginners encounter. There some questions at stackoverflow due that.
2020-05-27 08:26:29 -07:00
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
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
Sean Barbeau
f9c52c7673
chore: Remove KTX from basic map demo (#196) 2020-05-08 18:28:54 -04: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
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
41e6322ccb
feat: Use coroutine and AMU-KTX .awaitMap() to init basic map demo (#188) 2020-05-06 09:24:13 -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