diff --git a/packages/tiled/lib/src/chunk.dart b/packages/tiled/lib/src/chunk.dart index e306604..7ec0e8a 100644 --- a/packages/tiled/lib/src/chunk.dart +++ b/packages/tiled/lib/src/chunk.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/common/enums.dart b/packages/tiled/lib/src/common/enums.dart index 502598c..6145bc9 100644 --- a/packages/tiled/lib/src/common/enums.dart +++ b/packages/tiled/lib/src/common/enums.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; enum MapOrientation { orthogonal, isometric, staggered, hexagonal } diff --git a/packages/tiled/lib/src/common/flips.dart b/packages/tiled/lib/src/common/flips.dart index 13bc652..a32e510 100644 --- a/packages/tiled/lib/src/common/flips.dart +++ b/packages/tiled/lib/src/common/flips.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; class Flips { final bool horizontally; diff --git a/packages/tiled/lib/src/common/frame.dart b/packages/tiled/lib/src/common/frame.dart index 72e4633..cd4b7d5 100644 --- a/packages/tiled/lib/src/common/frame.dart +++ b/packages/tiled/lib/src/common/frame.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/common/gid.dart b/packages/tiled/lib/src/common/gid.dart index 5eccd21..18475bb 100644 --- a/packages/tiled/lib/src/common/gid.dart +++ b/packages/tiled/lib/src/common/gid.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// A [Gid], Global Tile ID is a Tiled concept to represent the tiles inside /// int matrices. This wrapper is used by [Layer] and [Chunk] to provide diff --git a/packages/tiled/lib/src/common/point.dart b/packages/tiled/lib/src/common/point.dart index 6db84ef..09c0289 100644 --- a/packages/tiled/lib/src/common/point.dart +++ b/packages/tiled/lib/src/common/point.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/common/property.dart b/packages/tiled/lib/src/common/property.dart index b52e9ac..7433109 100644 --- a/packages/tiled/lib/src/common/property.dart +++ b/packages/tiled/lib/src/common/property.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/common/tiled_image.dart b/packages/tiled/lib/src/common/tiled_image.dart index ed4bdad..805344b 100644 --- a/packages/tiled/lib/src/common/tiled_image.dart +++ b/packages/tiled/lib/src/common/tiled_image.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/editor_setting/chunk_size.dart b/packages/tiled/lib/src/editor_setting/chunk_size.dart index f4167ed..90fe244 100644 --- a/packages/tiled/lib/src/editor_setting/chunk_size.dart +++ b/packages/tiled/lib/src/editor_setting/chunk_size.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/editor_setting/editor_setting.dart b/packages/tiled/lib/src/editor_setting/editor_setting.dart index d27dc03..6ab86ed 100644 --- a/packages/tiled/lib/src/editor_setting/editor_setting.dart +++ b/packages/tiled/lib/src/editor_setting/editor_setting.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/editor_setting/export.dart b/packages/tiled/lib/src/editor_setting/export.dart index ec395ea..553b8f0 100644 --- a/packages/tiled/lib/src/editor_setting/export.dart +++ b/packages/tiled/lib/src/editor_setting/export.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/layer.dart b/packages/tiled/lib/src/layer.dart index ad1ec93..ab88f10 100644 --- a/packages/tiled/lib/src/layer.dart +++ b/packages/tiled/lib/src/layer.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: @@ -328,7 +328,7 @@ abstract class Layer { decompressed = const ZLibDecoder().decodeBytes(decodedString); break; case Compression.gzip: - decompressed = GZipDecoder().decodeBytes(decodedString); + decompressed = const GZipDecoder().decodeBytes(decodedString); break; case Compression.zstd: throw UnsupportedError('zstd is an unsupported compression'); diff --git a/packages/tiled/lib/src/objects/text.dart b/packages/tiled/lib/src/objects/text.dart index 0432d1c..d505b58 100644 --- a/packages/tiled/lib/src/objects/text.dart +++ b/packages/tiled/lib/src/objects/text.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/objects/tiled_object.dart b/packages/tiled/lib/src/objects/tiled_object.dart index 8cf4ce8..eafab7f 100644 --- a/packages/tiled/lib/src/objects/tiled_object.dart +++ b/packages/tiled/lib/src/objects/tiled_object.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/parser.dart b/packages/tiled/lib/src/parser.dart index eade166..c614e6b 100644 --- a/packages/tiled/lib/src/parser.dart +++ b/packages/tiled/lib/src/parser.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; class ParsingException implements Exception { final String name; diff --git a/packages/tiled/lib/src/template.dart b/packages/tiled/lib/src/template.dart index 40d1acb..b0ac9c5 100644 --- a/packages/tiled/lib/src/template.dart +++ b/packages/tiled/lib/src/template.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tile_map_parser.dart b/packages/tiled/lib/src/tile_map_parser.dart index 7c9b032..0d07ab4 100644 --- a/packages/tiled/lib/src/tile_map_parser.dart +++ b/packages/tiled/lib/src/tile_map_parser.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; class TileMapParser { static TiledMap parseJson(String json) { diff --git a/packages/tiled/lib/src/tiled_map.dart b/packages/tiled/lib/src/tiled_map.dart index 270f425..33315e3 100644 --- a/packages/tiled/lib/src/tiled_map.dart +++ b/packages/tiled/lib/src/tiled_map.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: @@ -247,6 +247,7 @@ class TiledMap { (tileset) => [tileset.image, ...tileset.tiles.map((tile) => tile.image)], ) + // ignore: deprecated_member_use .whereNotNull() .toList(); } diff --git a/packages/tiled/lib/src/tileset/grid.dart b/packages/tiled/lib/src/tileset/grid.dart index 3dc26cf..b42298e 100644 --- a/packages/tiled/lib/src/tileset/grid.dart +++ b/packages/tiled/lib/src/tileset/grid.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/terrain.dart b/packages/tiled/lib/src/tileset/terrain.dart index 4c78940..4953251 100644 --- a/packages/tiled/lib/src/tileset/terrain.dart +++ b/packages/tiled/lib/src/tileset/terrain.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/tile.dart b/packages/tiled/lib/src/tileset/tile.dart index c2c1c74..1798bf4 100644 --- a/packages/tiled/lib/src/tileset/tile.dart +++ b/packages/tiled/lib/src/tileset/tile.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/tile_offset.dart b/packages/tiled/lib/src/tileset/tile_offset.dart index 3b6c985..1529be8 100644 --- a/packages/tiled/lib/src/tileset/tile_offset.dart +++ b/packages/tiled/lib/src/tileset/tile_offset.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/tileset.dart b/packages/tiled/lib/src/tileset/tileset.dart index 74ce1d9..848a587 100644 --- a/packages/tiled/lib/src/tileset/tileset.dart +++ b/packages/tiled/lib/src/tileset/tileset.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/wang/wang_color.dart b/packages/tiled/lib/src/tileset/wang/wang_color.dart index c5661f3..9ef5972 100644 --- a/packages/tiled/lib/src/tileset/wang/wang_color.dart +++ b/packages/tiled/lib/src/tileset/wang/wang_color.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/wang/wang_set.dart b/packages/tiled/lib/src/tileset/wang/wang_set.dart index 4a25355..ec15ee4 100644 --- a/packages/tiled/lib/src/tileset/wang/wang_set.dart +++ b/packages/tiled/lib/src/tileset/wang/wang_set.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tileset/wang/wang_tile.dart b/packages/tiled/lib/src/tileset/wang/wang_tile.dart index a069d5d..11b313f 100644 --- a/packages/tiled/lib/src/tileset/wang/wang_tile.dart +++ b/packages/tiled/lib/src/tileset/wang/wang_tile.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../../../tiled.dart'; /// Below is Tiled's documentation about how this structure is represented /// on XML files: diff --git a/packages/tiled/lib/src/tsx_provider.dart b/packages/tiled/lib/src/tsx_provider.dart index 5868e02..e2090b4 100644 --- a/packages/tiled/lib/src/tsx_provider.dart +++ b/packages/tiled/lib/src/tsx_provider.dart @@ -1,4 +1,4 @@ -part of tiled; +part of '../tiled.dart'; /// abstract class to be implemented for an external tileset data provider. abstract class TsxProvider { diff --git a/packages/tiled/pubspec.yaml b/packages/tiled/pubspec.yaml index 5c9b04b..97a5c6b 100644 --- a/packages/tiled/pubspec.yaml +++ b/packages/tiled/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: ">=2.18.0 <3.0.0" dependencies: - archive: ^3.3.0 + archive: ">=3.3.0 <5.0.0" collection: ^1.16.0 flutter: sdk: flutter @@ -15,7 +15,7 @@ dependencies: xml: ^6.1.0 dev_dependencies: - dartdoc: ^6.0.1 + dartdoc: ^8.3.1 flame_lint: ^1.1.2 flutter_test: sdk: flutter diff --git a/pubspec.yaml b/pubspec.yaml index dd13865..6c9b8d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: ">=3.0.0 <4.0.0" dev_dependencies: - melos: ^3.0.0 + melos: ^6.2.0