Skip to content

Commit 4252df8

Browse files
chore: Generate V3 samples
1 parent 29ca74b commit 4252df8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1203
-608
lines changed

ApiDemos/java/app/src/v3/java/com/example/mapdemo/BasicMapDemoActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,6 +28,7 @@
2128
import com.google.android.libraries.maps.model.MarkerOptions;
2229

2330
import android.os.Bundle;
31+
2432
import androidx.appcompat.app.AppCompatActivity;
2533

2634
/**

ApiDemos/java/app/src/v3/java/com/example/mapdemo/CameraClampingDemoActivity.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +19,7 @@
1219
// See the License for the specific language governing permissions and
1320
// limitations under the License.
1421

22+
1523
package com.example.mapdemo;
1624

1725
import com.google.android.libraries.maps.CameraUpdateFactory;
@@ -24,11 +32,12 @@
2432
import com.google.android.libraries.maps.model.LatLngBounds;
2533

2634
import android.os.Bundle;
27-
import androidx.appcompat.app.AppCompatActivity;
2835
import android.view.View;
2936
import android.widget.TextView;
3037
import android.widget.Toast;
3138

39+
import androidx.appcompat.app.AppCompatActivity;
40+
3241
/**
3342
* This shows how to constrain the camera to specific boundaries and zoom levels.
3443
*/

ApiDemos/java/app/src/v3/java/com/example/mapdemo/CameraDemoActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +19,7 @@
1219
// See the License for the specific language governing permissions and
1320
// limitations under the License.
1421

22+
1523
package com.example.mapdemo;
1624

1725
import android.graphics.Color;

ApiDemos/java/app/src/v3/java/com/example/mapdemo/CircleDemoActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");

ApiDemos/java/app/src/v3/java/com/example/mapdemo/DemoDetails.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
Lines changed: 116 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,136 +22,123 @@
1522

1623
package com.example.mapdemo;
1724

18-
import com.example.mapdemo.polyline.PolylineDemoActivity;
19-
2025
/**
2126
* A list of all the demos we have available.
2227
*/
2328
public final class DemoDetailsList {
2429

25-
/**
26-
* This class should not be instantiated.
27-
*/
30+
/** This class should not be instantiated. */
2831
private DemoDetailsList() {
2932
}
3033

3134
public static final DemoDetails[] DEMOS = {
32-
new DemoDetails(R.string.basic_map_demo_label,
33-
R.string.basic_map_demo_description,
34-
BasicMapDemoActivity.class),
35-
new DemoDetails(R.string.camera_demo_label,
36-
R.string.camera_demo_description,
37-
CameraDemoActivity.class),
38-
new DemoDetails(R.string.camera_clamping_demo_label,
39-
R.string.camera_clamping_demo_description,
40-
CameraClampingDemoActivity.class),
41-
new DemoDetails(R.string.circle_demo_label,
42-
R.string.circle_demo_description,
43-
CircleDemoActivity.class),
44-
new DemoDetails(R.string.cloud_styling_label,
45-
R.string.cloud_styling_description,
46-
CloudBasedMapStylingDemoActivity.class),
47-
new DemoDetails(R.string.events_demo_label,
48-
R.string.events_demo_description,
49-
EventsDemoActivity.class),
50-
new DemoDetails(R.string.ground_overlay_demo_label,
51-
R.string.ground_overlay_demo_description,
52-
GroundOverlayDemoActivity.class),
53-
new DemoDetails(R.string.indoor_demo_label,
54-
R.string.indoor_demo_description,
55-
IndoorDemoActivity.class),
56-
new DemoDetails(R.string.layers_demo_label,
57-
R.string.layers_demo_description,
58-
LayersDemoActivity.class),
59-
new DemoDetails(R.string.lite_demo_label,
60-
R.string.lite_demo_description,
61-
LiteDemoActivity.class),
62-
new DemoDetails(R.string.lite_list_demo_label,
63-
R.string.lite_list_demo_description,
64-
LiteListDemoActivity.class),
65-
new DemoDetails(R.string.location_source_demo_label,
66-
R.string.location_source_demo_description,
67-
LocationSourceDemoActivity.class),
68-
new DemoDetails(R.string.map_in_pager_demo_label,
69-
R.string.map_in_pager_demo_description,
70-
MapInPagerDemoActivity.class),
71-
new DemoDetails(R.string.marker_demo_label,
72-
R.string.marker_demo_description,
73-
MarkerDemoActivity.class),
74-
new DemoDetails(R.string.marker_collision_label,
75-
R.string.marker_collision_description,
76-
MarkerCollisionDemoActivity.class),
77-
new DemoDetails(R.string.marker_close_info_window_on_retap_demo_label,
78-
R.string.marker_close_info_window_on_retap_demo_description,
79-
MarkerCloseInfoWindowOnRetapDemoActivity.class),
80-
new DemoDetails(R.string.polyline_demo_label,
81-
R.string.polyline_demo_description,
82-
PolylineDemoActivity.class),
83-
new DemoDetails(R.string.multi_map_demo_label,
84-
R.string.multi_map_demo_description,
85-
MultiMapDemoActivity.class),
86-
new DemoDetails(R.string.my_location_demo_label,
87-
R.string.my_location_demo_description,
88-
MyLocationDemoActivity.class),
89-
new DemoDetails(R.string.options_demo_label,
90-
R.string.options_demo_description,
91-
OptionsDemoActivity.class),
92-
new DemoDetails(R.string.polygon_demo_label,
93-
R.string.polygon_demo_description,
94-
PolygonDemoActivity.class),
95-
new DemoDetails(R.string.polyline_demo_label,
96-
R.string.polyline_demo_description,
97-
PolylineDemoActivity.class),
98-
new DemoDetails(R.string.programmatic_demo_label,
99-
R.string.programmatic_demo_description,
100-
ProgrammaticDemoActivity.class),
101-
new DemoDetails(R.string.raw_map_view_demo_label,
102-
R.string.raw_map_view_demo_description,
103-
RawMapViewDemoActivity.class),
104-
new DemoDetails(R.string.retain_map_demo_label,
105-
R.string.retain_map_demo_description,
106-
RetainMapDemoActivity.class),
107-
new DemoDetails(R.string.save_state_demo_label,
108-
R.string.save_state_demo_description,
109-
SaveStateDemoActivity.class),
110-
new DemoDetails(R.string.snapshot_demo_label,
111-
R.string.snapshot_demo_description,
112-
SnapshotDemoActivity.class),
113-
new DemoDetails(R.string.split_street_view_panorama_and_map_demo_label,
114-
R.string.split_street_view_panorama_and_map_demo_description,
115-
SplitStreetViewPanoramaAndMapDemoActivity.class),
116-
new DemoDetails(R.string.street_view_panorama_basic_demo_label,
117-
R.string.street_view_panorama_basic_demo_description,
118-
StreetViewPanoramaBasicDemoActivity.class),
119-
new DemoDetails(R.string.street_view_panorama_events_demo_label,
120-
R.string.street_view_panorama_events_demo_description,
121-
StreetViewPanoramaEventsDemoActivity.class),
122-
new DemoDetails(R.string.street_view_panorama_navigation_demo_label,
123-
R.string.street_view_panorama_navigation_demo_description,
124-
StreetViewPanoramaNavigationDemoActivity.class),
125-
new DemoDetails(R.string.street_view_panorama_options_demo_label,
126-
R.string.street_view_panorama_options_demo_description,
127-
StreetViewPanoramaOptionsDemoActivity.class),
128-
new DemoDetails(R.string.street_view_panorama_view_demo_label,
129-
R.string.street_view_panorama_view_demo_description,
130-
StreetViewPanoramaViewDemoActivity.class),
131-
new DemoDetails(R.string.styled_map_demo_label,
132-
R.string.styled_map_demo_description,
133-
StyledMapDemoActivity.class),
134-
new DemoDetails(R.string.tags_demo_label,
135-
R.string.tags_demo_description,
136-
TagsDemoActivity.class),
137-
new DemoDetails(R.string.tile_coordinate_demo_label,
138-
R.string.tile_coordinate_demo_description,
139-
TileCoordinateDemoActivity.class),
140-
new DemoDetails(R.string.tile_overlay_demo_label,
141-
R.string.tile_overlay_demo_description,
142-
TileOverlayDemoActivity.class),
143-
new DemoDetails(R.string.ui_settings_demo_label,
144-
R.string.ui_settings_demo_description,
145-
UiSettingsDemoActivity.class),
146-
new DemoDetails(R.string.visible_region_demo_label,
147-
R.string.visible_region_demo_description,
148-
VisibleRegionDemoActivity.class),
35+
new DemoDetails(R.string.basic_map_demo_label,
36+
R.string.basic_map_demo_description,
37+
BasicMapDemoActivity.class),
38+
new DemoDetails(R.string.camera_demo_label,
39+
R.string.camera_demo_description,
40+
CameraDemoActivity.class),
41+
new DemoDetails(R.string.camera_clamping_demo_label,
42+
R.string.camera_clamping_demo_description,
43+
CameraClampingDemoActivity.class),
44+
new DemoDetails(R.string.circle_demo_label,
45+
R.string.circle_demo_description,
46+
CircleDemoActivity.class),
47+
new DemoDetails(R.string.events_demo_label,
48+
R.string.events_demo_description,
49+
EventsDemoActivity.class),
50+
new DemoDetails(R.string.ground_overlay_demo_label,
51+
R.string.ground_overlay_demo_description,
52+
GroundOverlayDemoActivity.class),
53+
new DemoDetails(R.string.indoor_demo_label,
54+
R.string.indoor_demo_description,
55+
IndoorDemoActivity.class),
56+
new DemoDetails(R.string.layers_demo_label,
57+
R.string.layers_demo_description,
58+
LayersDemoActivity.class),
59+
new DemoDetails(R.string.lite_demo_label,
60+
R.string.lite_demo_description,
61+
LiteDemoActivity.class),
62+
new DemoDetails(R.string.lite_list_demo_label,
63+
R.string.lite_list_demo_description,
64+
LiteListDemoActivity.class),
65+
new DemoDetails(R.string.location_source_demo_label,
66+
R.string.location_source_demo_description,
67+
LocationSourceDemoActivity.class),
68+
new DemoDetails(R.string.map_in_pager_demo_label,
69+
R.string.map_in_pager_demo_description,
70+
MapInPagerDemoActivity.class),
71+
new DemoDetails(R.string.marker_demo_label,
72+
R.string.marker_demo_description,
73+
MarkerDemoActivity.class),
74+
new DemoDetails(R.string.marker_close_info_window_on_retap_demo_label,
75+
R.string.marker_close_info_window_on_retap_demo_description,
76+
MarkerCloseInfoWindowOnRetapDemoActivity.class),
77+
new DemoDetails(R.string.multi_map_demo_label,
78+
R.string.multi_map_demo_description,
79+
MultiMapDemoActivity.class),
80+
new DemoDetails(R.string.my_location_demo_label,
81+
R.string.my_location_demo_description,
82+
MyLocationDemoActivity.class),
83+
new DemoDetails(R.string.options_demo_label,
84+
R.string.options_demo_description,
85+
OptionsDemoActivity.class),
86+
new DemoDetails(R.string.polygon_demo_label,
87+
R.string.polygon_demo_description,
88+
PolygonDemoActivity.class),
89+
new DemoDetails(R.string.polyline_demo_label,
90+
R.string.polyline_demo_description,
91+
PolylineDemoActivity.class),
92+
new DemoDetails(R.string.programmatic_demo_label,
93+
R.string.programmatic_demo_description,
94+
ProgrammaticDemoActivity.class),
95+
new DemoDetails(R.string.raw_map_view_demo_label,
96+
R.string.raw_map_view_demo_description,
97+
RawMapViewDemoActivity.class),
98+
new DemoDetails(R.string.retain_map_demo_label,
99+
R.string.retain_map_demo_description,
100+
RetainMapDemoActivity.class),
101+
new DemoDetails(R.string.save_state_demo_label,
102+
R.string.save_state_demo_description,
103+
SaveStateDemoActivity.class),
104+
new DemoDetails(R.string.snapshot_demo_label,
105+
R.string.snapshot_demo_description,
106+
SnapshotDemoActivity.class),
107+
new DemoDetails(R.string.split_street_view_panorama_and_map_demo_label,
108+
R.string.split_street_view_panorama_and_map_demo_description,
109+
SplitStreetViewPanoramaAndMapDemoActivity.class),
110+
new DemoDetails(R.string.street_view_panorama_basic_demo_label,
111+
R.string.street_view_panorama_basic_demo_description,
112+
StreetViewPanoramaBasicDemoActivity.class),
113+
new DemoDetails(R.string.street_view_panorama_events_demo_label,
114+
R.string.street_view_panorama_events_demo_description,
115+
StreetViewPanoramaEventsDemoActivity.class),
116+
new DemoDetails(R.string.street_view_panorama_navigation_demo_label,
117+
R.string.street_view_panorama_navigation_demo_description,
118+
StreetViewPanoramaNavigationDemoActivity.class),
119+
new DemoDetails(R.string.street_view_panorama_options_demo_label,
120+
R.string.street_view_panorama_options_demo_description,
121+
StreetViewPanoramaOptionsDemoActivity.class),
122+
new DemoDetails(R.string.street_view_panorama_view_demo_label,
123+
R.string.street_view_panorama_view_demo_description,
124+
StreetViewPanoramaViewDemoActivity.class),
125+
new DemoDetails(R.string.styled_map_demo_label,
126+
R.string.styled_map_demo_description,
127+
StyledMapDemoActivity.class),
128+
new DemoDetails(R.string.tags_demo_label,
129+
R.string.tags_demo_description,
130+
TagsDemoActivity.class),
131+
new DemoDetails(R.string.tile_coordinate_demo_label,
132+
R.string.tile_coordinate_demo_description,
133+
TileCoordinateDemoActivity.class),
134+
new DemoDetails(R.string.tile_overlay_demo_label,
135+
R.string.tile_overlay_demo_description,
136+
TileOverlayDemoActivity.class),
137+
new DemoDetails(R.string.ui_settings_demo_label,
138+
R.string.ui_settings_demo_description,
139+
UiSettingsDemoActivity.class),
140+
new DemoDetails(R.string.visible_region_demo_label,
141+
R.string.visible_region_demo_description,
142+
VisibleRegionDemoActivity.class),
149143
};
150144
}

ApiDemos/java/app/src/v3/java/com/example/mapdemo/EventsDemoActivity.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +20,6 @@
1320
// limitations under the License.
1421

1522

16-
1723
package com.example.mapdemo;
1824

1925
import com.google.android.libraries.maps.GoogleMap;
@@ -25,9 +31,10 @@
2531
import com.google.android.libraries.maps.model.LatLng;
2632

2733
import android.os.Bundle;
28-
import androidx.appcompat.app.AppCompatActivity;
2934
import android.widget.TextView;
3035

36+
import androidx.appcompat.app.AppCompatActivity;
37+
3138
/**
3239
* This shows how to listen to some {@link GoogleMap} events.
3340
*/

ApiDemos/java/app/src/v3/java/com/example/mapdemo/FeatureView.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* DO NOT EDIT THIS FILE.
3+
*
4+
* This source code was autogenerated from source code within the `app/src/gms` directory
5+
* and is not intended for modifications. If any edits should be made, please do so in the
6+
* corresponding file under the `app/src/gms` directory.
7+
*/
18
// Copyright 2020 Google LLC
29
//
310
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +20,6 @@
1320
// limitations under the License.
1421

1522

16-
1723
package com.example.mapdemo;
1824

1925
import android.content.Context;

0 commit comments

Comments
 (0)