Skip to content

Commit 581391c

Browse files
authored
refactor: Upgrade code style and dependencies (#82)
1 parent 7878381 commit 581391c

29 files changed

+32
-31
lines changed

packages/tiled/lib/src/chunk.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/common/enums.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
enum MapOrientation { orthogonal, isometric, staggered, hexagonal }
44

packages/tiled/lib/src/common/flips.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
class Flips {
44
final bool horizontally;

packages/tiled/lib/src/common/frame.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/common/gid.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// A [Gid], Global Tile ID is a Tiled concept to represent the tiles inside
44
/// int matrices. This wrapper is used by [Layer] and [Chunk] to provide

packages/tiled/lib/src/common/point.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/common/property.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/common/tiled_image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/editor_setting/chunk_size.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/editor_setting/editor_setting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/editor_setting/export.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/layer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:
@@ -328,7 +328,7 @@ abstract class Layer {
328328
decompressed = const ZLibDecoder().decodeBytes(decodedString);
329329
break;
330330
case Compression.gzip:
331-
decompressed = GZipDecoder().decodeBytes(decodedString);
331+
decompressed = const GZipDecoder().decodeBytes(decodedString);
332332
break;
333333
case Compression.zstd:
334334
throw UnsupportedError('zstd is an unsupported compression');

packages/tiled/lib/src/objects/text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/objects/tiled_object.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
class ParsingException implements Exception {
44
final String name;

packages/tiled/lib/src/template.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tile_map_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
class TileMapParser {
44
static TiledMap parseJson(String json) {

packages/tiled/lib/src/tiled_map.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:
@@ -247,6 +247,7 @@ class TiledMap {
247247
(tileset) =>
248248
[tileset.image, ...tileset.tiles.map((tile) => tile.image)],
249249
)
250+
// ignore: deprecated_member_use
250251
.whereNotNull()
251252
.toList();
252253
}

packages/tiled/lib/src/tileset/grid.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/terrain.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/tile_offset.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/tileset.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/wang/wang_color.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/wang/wang_set.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tileset/wang/wang_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../../../tiled.dart';
22

33
/// Below is Tiled's documentation about how this structure is represented
44
/// on XML files:

packages/tiled/lib/src/tsx_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of tiled;
1+
part of '../tiled.dart';
22

33
/// abstract class to be implemented for an external tileset data provider.
44
abstract class TsxProvider {

packages/tiled/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ environment:
77
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
10-
archive: ^3.3.0
10+
archive: ">=3.3.0 <5.0.0"
1111
collection: ^1.16.0
1212
flutter:
1313
sdk: flutter
1414
meta: ^1.7.0
1515
xml: ^6.1.0
1616

1717
dev_dependencies:
18-
dartdoc: ^6.0.1
18+
dartdoc: ^8.3.1
1919
flame_lint: ^1.1.2
2020
flutter_test:
2121
sdk: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ environment:
44
sdk: ">=3.0.0 <4.0.0"
55

66
dev_dependencies:
7-
melos: ^3.0.0
7+
melos: ^6.2.0

0 commit comments

Comments
 (0)