Skip to content

Commit

Permalink
refactor: Upgrade code style and dependencies (flame-engine#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE authored Dec 17, 2024
1 parent 7878381 commit 581391c
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 31 deletions.
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/chunk.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/enums.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of tiled;
part of '../../tiled.dart';

enum MapOrientation { orthogonal, isometric, staggered, hexagonal }

Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/flips.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of tiled;
part of '../../tiled.dart';

class Flips {
final bool horizontally;
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/frame.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/gid.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/point.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/property.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/common/tiled_image.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/editor_setting/chunk_size.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/editor_setting/editor_setting.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/editor_setting/export.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions packages/tiled/lib/src/layer.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/objects/text.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/objects/tiled_object.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/parser.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of tiled;
part of '../tiled.dart';

class ParsingException implements Exception {
final String name;
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/template.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tile_map_parser.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of tiled;
part of '../tiled.dart';

class TileMapParser {
static TiledMap parseJson(String json) {
Expand Down
3 changes: 2 additions & 1 deletion packages/tiled/lib/src/tiled_map.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -247,6 +247,7 @@ class TiledMap {
(tileset) =>
[tileset.image, ...tileset.tiles.map((tile) => tile.image)],
)
// ignore: deprecated_member_use
.whereNotNull()
.toList();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/grid.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/terrain.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/tile.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/tile_offset.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/tileset.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/wang/wang_color.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/wang/wang_set.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tileset/wang/wang_tile.dart
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/lib/src/tsx_provider.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/tiled/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ 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
meta: ^1.7.0
xml: ^6.1.0

dev_dependencies:
dartdoc: ^6.0.1
dartdoc: ^8.3.1
flame_lint: ^1.1.2
flutter_test:
sdk: flutter
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
melos: ^3.0.0
melos: ^6.2.0

0 comments on commit 581391c

Please sign in to comment.