Skip to content

Commit 35ba0b2

Browse files
committed
Merge remote-tracking branch 'origin/main' into migrate-ios-to-swift-package-manager
# Conflicts: # example/pubspec.lock
2 parents 57599d7 + bf7b0f4 commit 35ba0b2

32 files changed

+238
-184
lines changed

.github/workflows/on_push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: subosito/flutter-action@v2
2323
with:
2424
channel: 'stable'
25+
- run: ./am deps
2526
- run: ./am format --verify
2627

2728
test:

am_sidekick/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ build/
77

88
# Directory created by dartdoc
99
doc/api/
10+
# Lock dependencies for deterministic builds on all systems
11+
!pubspec.lock

am_sidekick/pubspec.lock

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: archive
24-
sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b"
24+
sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "3.4.9"
27+
version: "3.6.1"
2828
args:
2929
dependency: transitive
3030
description:
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: boolean_selector
56-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
56+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "2.1.1"
59+
version: "2.1.2"
6060
characters:
6161
dependency: transitive
6262
description:
@@ -109,10 +109,10 @@ packages:
109109
dependency: transitive
110110
description:
111111
name: cli_util
112-
sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7
112+
sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
113113
url: "https://pub.dev"
114114
source: hosted
115-
version: "0.4.0"
115+
version: "0.4.1"
116116
clock:
117117
dependency: transitive
118118
description:
@@ -261,10 +261,10 @@ packages:
261261
dependency: transitive
262262
description:
263263
name: http_multi_server
264-
sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b"
264+
sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8
265265
url: "https://pub.dev"
266266
source: hosted
267-
version: "3.2.1"
267+
version: "3.2.2"
268268
http_parser:
269269
dependency: transitive
270270
description:
@@ -325,10 +325,10 @@ packages:
325325
dependency: "direct dev"
326326
description:
327327
name: lint
328-
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
328+
sha256: d758a5211fce7fd3f5e316f804daefecdc34c7e53559716125e6da7388ae8565
329329
url: "https://pub.dev"
330330
source: hosted
331-
version: "2.2.0"
331+
version: "2.3.0"
332332
logging:
333333
dependency: transitive
334334
description:
@@ -365,10 +365,10 @@ packages:
365365
dependency: transitive
366366
description:
367367
name: mime
368-
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
368+
sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"
369369
url: "https://pub.dev"
370370
source: hosted
371-
version: "1.0.4"
371+
version: "1.0.6"
372372
node_preamble:
373373
dependency: transitive
374374
description:
@@ -389,18 +389,18 @@ packages:
389389
dependency: transitive
390390
description:
391391
name: path
392-
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
392+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
393393
url: "https://pub.dev"
394394
source: hosted
395-
version: "1.8.3"
395+
version: "1.9.0"
396396
pointycastle:
397397
dependency: transitive
398398
description:
399399
name: pointycastle
400-
sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c"
400+
sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe"
401401
url: "https://pub.dev"
402402
source: hosted
403-
version: "3.7.3"
403+
version: "3.9.1"
404404
pool:
405405
dependency: transitive
406406
description:
@@ -453,10 +453,10 @@ packages:
453453
dependency: transitive
454454
description:
455455
name: quiver
456-
sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47
456+
sha256: ea0b925899e64ecdfbf9c7becb60d5b50e706ade44a85b2363be2a22d88117d2
457457
url: "https://pub.dev"
458458
source: hosted
459-
version: "3.2.1"
459+
version: "3.2.2"
460460
random_string:
461461
dependency: transitive
462462
description:
@@ -525,10 +525,10 @@ packages:
525525
dependency: "direct main"
526526
description:
527527
name: sidekick_core
528-
sha256: "323611a8527b7094ffc4691d6a288de1d187dd017e18e62db7a6165fcc36db77"
528+
sha256: "3b08ee513dbcd7b97b2813ab24aee0e8f37d77b7548d4e72332420e67ab252dc"
529529
url: "https://pub.dev"
530530
source: hosted
531-
version: "2.1.0"
531+
version: "2.1.3"
532532
source_map_stack_trace:
533533
dependency: transitive
534534
description:
@@ -669,18 +669,26 @@ packages:
669669
dependency: transitive
670670
description:
671671
name: watcher
672-
sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8"
672+
sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104"
673+
url: "https://pub.dev"
674+
source: hosted
675+
version: "1.1.1"
676+
web:
677+
dependency: transitive
678+
description:
679+
name: web
680+
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
673681
url: "https://pub.dev"
674682
source: hosted
675-
version: "1.1.0"
683+
version: "0.4.2"
676684
web_socket_channel:
677685
dependency: transitive
678686
description:
679687
name: web_socket_channel
680-
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
688+
sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23"
681689
url: "https://pub.dev"
682690
source: hosted
683-
version: "2.4.0"
691+
version: "2.4.3"
684692
webkit_inspection_protocol:
685693
dependency: transitive
686694
description:
@@ -714,4 +722,4 @@ packages:
714722
source: hosted
715723
version: "2.1.1"
716724
sdks:
717-
dart: ">=3.2.0 <3.999.0"
725+
dart: ">=3.2.6 <3.999.0"

am_sidekick/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ version: 0.0.1
44
publish_to: none
55

66
environment:
7-
sdk: ">=3.2.0 <4.0.0"
7+
sdk: ">=3.2.6 <4.0.0"
88

99
executables:
1010
main:
1111

1212
dependencies:
1313
dcli: ^2.2.3
14-
sidekick_core: ^2.1.0
14+
sidekick_core: ^2.1.3
1515
yaml_edit: ^2.0.3
1616

1717
dev_dependencies:
1818
lint: ^2.0.1
1919

2020
# generated code, do not edit this manually
2121
sidekick:
22-
cli_version: 2.1.0
22+
cli_version: 2.1.3

arcgis_map_sdk/lib/arcgis_map_sdk.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// ignore: unnecessary_library_directive
2-
library arcgis_map;
3-
41
export 'package:arcgis_map_sdk/src/arcgis_location_display.dart';
52
export 'package:arcgis_map_sdk/src/arcgis_map_controller.dart';
63
export 'package:arcgis_map_sdk/src/arcgis_map_sdk.dart';

arcgis_map_sdk/lib/src/arcgis_map_controller.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ArcgisMapController {
4040
void Function(dynamic)? onPressed,
4141
String? url,
4242
void Function(double)? getZoom,
43-
}) async {
43+
}) {
4444
return ArcgisMapPlatform.instance.addFeatureLayer(
4545
options,
4646
data,
@@ -62,7 +62,7 @@ class ArcgisMapController {
6262
required String layerId,
6363
required GraphicsLayerOptions options,
6464
void Function(dynamic)? onPressed,
65-
}) async {
65+
}) {
6666
return ArcgisMapPlatform.instance.addGraphicsLayer(
6767
options,
6868
mapId,
@@ -75,7 +75,7 @@ class ArcgisMapController {
7575
required String layerId,
7676
required String url,
7777
required SceneLayerOptions options,
78-
}) async {
78+
}) {
7979
return ArcgisMapPlatform.instance.addSceneLayer(
8080
options: options,
8181
layerId: layerId,
@@ -300,7 +300,7 @@ class ArcgisMapController {
300300
ArcgisMapPlatform.instance.addViewPadding(mapId, padding);
301301
}
302302

303-
Future<void> toggleBaseMap({required BaseMap baseMap}) async {
303+
Future<void> toggleBaseMap({required BaseMap baseMap}) {
304304
return ArcgisMapPlatform.instance.toggleBaseMap(mapId, baseMap);
305305
}
306306

arcgis_map_sdk/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ maintainer: Matthaios Saitakis (@MatthaiosSait), Stefan Schaller (@stefanschalle
66
Pascal Welsch (@passsy), Max Peters (@maxpeters)
77

88
environment:
9-
sdk: ">=3.0.0 <4.0.0"
10-
flutter: ">=3.10.0"
9+
sdk: ">=3.2.0 <4.0.0"
10+
flutter: ">=3.16.0"
1111

1212
dependencies:
1313
arcgis_map_sdk_android: ^0.8.0
@@ -18,7 +18,7 @@ dependencies:
1818
sdk: flutter
1919

2020
dev_dependencies:
21-
lint: ^2.0.0
21+
lint: ^2.8.0
2222

2323
flutter:
2424
plugin:

arcgis_map_sdk_android/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ repository: https://github.com/fluttercommunity/arcgis_map_sdk
55
maintainer: Stefan Schaller (@stefanschaller), Julian Bissekkou (@JulianBissekkou)
66

77
environment:
8-
sdk: ">=3.0.0 <4.0.0"
9-
flutter: ">=3.10.0"
8+
sdk: ">=3.2.0 <4.0.0"
9+
flutter: ">=3.16.0"
1010

1111
dependencies:
1212
arcgis_map_sdk_method_channel: ^0.8.0
@@ -16,7 +16,7 @@ dependencies:
1616
sdk: flutter
1717

1818
dev_dependencies:
19-
lint: ^2.0.0
19+
lint: ^2.8.0
2020

2121
flutter:
2222
plugin:

arcgis_map_sdk_ios/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ repository: https://github.com/fluttercommunity/arcgis_map_sdk
55
maintainer: Stefan Schaller (@stefanschaller), Julian Bissekkou (@JulianBissekkou)
66

77
environment:
8-
sdk: ">=3.0.0 <4.0.0"
9-
flutter: ">=3.10.0"
8+
sdk: ">=3.2.0 <4.0.0"
9+
flutter: ">=3.16.0"
1010

1111
dependencies:
1212
arcgis_map_sdk_method_channel: ^0.8.0
@@ -16,7 +16,7 @@ dependencies:
1616
sdk: flutter
1717

1818
dev_dependencies:
19-
lint: ^2.0.0
19+
lint: ^2.8.0
2020

2121
flutter:
2222
plugin:

arcgis_map_sdk_method_channel/lib/src/method_channel_arcgis_map_plugin.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
2525
int mapId,
2626
void Function(double)? getZoom,
2727
String layerId,
28-
) async {
28+
) {
2929
throw UnimplementedError('addFeatureLayer() has not been implemented.');
3030
}
3131

@@ -43,7 +43,8 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
4343

4444
@override
4545
Future<void> setAutoPanMode(String autoPanMode, int mapId) {
46-
return _methodChannelBuilder(mapId).invokeMethod("set_auto_pan_mode", autoPanMode);
46+
return _methodChannelBuilder(mapId)
47+
.invokeMethod("set_auto_pan_mode", autoPanMode);
4748
}
4849

4950
@override
@@ -121,7 +122,7 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
121122
required int mapId,
122123
required String featureLayerId,
123124
required List<Graphic> data,
124-
}) async {
125+
}) {
125126
throw UnimplementedError('addFeatureLayer() has not been implemented.');
126127
}
127128

@@ -165,7 +166,7 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
165166
AnimationOptions? animationOptions,
166167
int? threeDHeading,
167168
int? threeDTilt,
168-
}) async {
169+
}) {
169170
return _methodChannelBuilder(mapId).invokeMethod<bool>(
170171
"move_camera",
171172
{
@@ -196,7 +197,7 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
196197
required int lodFactor,
197198
required int mapId,
198199
AnimationOptions? animationOptions,
199-
}) async {
200+
}) {
200201
return _methodChannelBuilder(mapId).invokeMethod<bool>(
201202
"zoom_in",
202203
{"lodFactor": lodFactor},
@@ -208,15 +209,15 @@ class MethodChannelArcgisMapPlugin extends ArcgisMapPlatform {
208209
required int lodFactor,
209210
required int mapId,
210211
AnimationOptions? animationOptions,
211-
}) async {
212+
}) {
212213
return _methodChannelBuilder(mapId).invokeMethod<bool>(
213214
"zoom_out",
214215
{"lodFactor": lodFactor},
215216
).then((value) => value!);
216217
}
217218

218219
@override
219-
Future<void> retryLoad(int mapId) async {
220+
Future<void> retryLoad(int mapId) {
220221
return _methodChannelBuilder(mapId).invokeMethod("retryLoad");
221222
}
222223

arcgis_map_sdk_method_channel/lib/src/model_extension.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ extension on MeshSymbol3D {
110110
{
111111
'type': 'fill',
112112
'material': {
113-
'color': [color.red, color.green, color.blue, colorOpacity],
113+
'color': [color.r, color.g, color.b, colorOpacity],
114114
},
115115
},
116116
],
@@ -174,10 +174,10 @@ Map<String, Object?>? _colorToJson(Color? color) {
174174
if (color == null) return null;
175175

176176
return {
177-
'red': color.red,
178-
'green': color.green,
179-
'blue': color.blue,
180-
'opacity': color.opacity,
177+
'red': (color.r * 255).round(),
178+
'green': (color.g * 255).round(),
179+
'blue': (color.b * 255).round(),
180+
'opacity': color.a,
181181
};
182182
}
183183

0 commit comments

Comments
 (0)