Skip to content

Commit

Permalink
Bump versions and fix lint issues (v0.x) (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter authored Jan 1, 2021
1 parent 4263281 commit daa2b6f
Show file tree
Hide file tree
Showing 35 changed files with 66 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'beta'
channel: 'stable'
- run: flutter --version
- run: flutter pub get
- run: ./scripts/lint.sh
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [next]

## 0.29.0
- Update audioplayers to latest version (now `assets` will not be added to prefixes automatically)
- Fix lint issues with 0.28.0

## 0.28.0
- Fix spriteAsWidget deprecation message
- Add `lineHeight` property to `TextConfig`
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Put the pub package as your dependency by dropping the following in your `pubspe

```yaml
dependencies:
flame: ^0.28.0
flame: ^0.29.0
```
And start using it!
Expand Down
1 change: 1 addition & 0 deletions doc/examples/animation_widget/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: animation_widget
description: A sample Flame project to showcase the animationAsWidget method.

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions doc/examples/animations/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: animations
description: Flame sample game showcasing animations features

version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions doc/examples/aseprite/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: aseprite
description: Flame sample for using Aseprite animations

version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
2 changes: 2 additions & 0 deletions doc/examples/audiopool/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: audiopool
description: Flame example application showcasing the audiopool class

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/box2d/contact_callbacks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: box2d_contact_callbacks
description: Flame sample game showcasing the structure for box2d games

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/box2d/simple/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: box2d
description: Flame sample game showcasing the structure for box2d games

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/debug/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: debug
description: Flame sample for using debug features

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/effects/combined_effects/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: combined_effects
description: Flame sample game showcasing combined effects

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/effects/infinite_effects/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: infinite_effects
description: Flame sample game showcasing infinite effects

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/effects/sequence_effect/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: sequence_effect
description: Flame sample game showcasing the sequence effect

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/effects/simple/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: effects
description: A Flame game showcasing the use of the effects api

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/gestures/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: gestures
description: A flame game showcasing the use of gestures callbacks

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/go_desktop/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: go_desktop
description: Flame sample game on using the go flutter desktop framework

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions doc/examples/isometric/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: isometric
description: Example of isometric tilemap using Flame

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/joystick/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: joystick
description: A flame game showcasing the use of joystick

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/keyboard/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: keyboard
description: Simple Flame project showcasing how to use the Keyboard events

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
5 changes: 2 additions & 3 deletions doc/examples/layers/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: layers
description: Simple project to showcase the layer feature of Flame

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/nine_tile_box/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: nine_tile_box
description: Flame sample for using the nine_tile_box feature

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/parallax/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: parallax
description: Flame sample game showcasing the parallax features

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/particles/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: particles
description: Flame sample game showcasing particle effects

version: 1.0.0
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/render_flip/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: render_flip
description: Flame sample game showcasing animations features

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
2 changes: 2 additions & 0 deletions doc/examples/sound/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: sound
description: Flame example application showcasing the audio features

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/sprite_batch/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: sprite_batch
description: Showcasing SpriteBatch features

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/sprites/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: sprites
description: Flame sample game showcasing rendering 500 sprites

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/spritesheet/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: spritesheet
description: Flame sample game showcasing spritesheet features

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions doc/examples/text/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: text
description: A sample Flame project that renders texts.

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/timer/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: timer
description: Example app using Timer class

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/widgets/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: widgets
description: A Flutter project showcasing Flame's widgets.

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion doc/examples/with_widgets_overlay/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: with_widgets_overlay
description: A Flame game showcasing how to use the WithWidgetsOverlay feature

version: 1.0.0+1
version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: position_component
description: A new Flutter project.

version: 0.1.0
publish_to: none

environment:
sdk: ">=2.0.0 <3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Animation {
this.loop = true,
}) : assert(amountPerRow == null || amount >= amountPerRow) {
amountPerRow ??= amount;
frames = List<Frame>(amount);
frames = List<Frame>.filled(amount, null);
for (var i = 0; i < amount; i++) {
final Sprite sprite = Sprite(
imagePath,
Expand All @@ -109,7 +109,7 @@ class Animation {
this.loop = true,
}) : assert(amountPerRow == null || amount >= amountPerRow) {
amountPerRow ??= amount;
frames = List<Frame>(amount);
frames = List<Frame>.filled(amount, null);
for (var i = 0; i < amount; i++) {
final Sprite sprite = Sprite(
imagePath,
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: flame
description: A minimalist Flutter game engine, provides a nice set of somewhat independent modules you can choose from.
version: 0.28.0
version: 0.29.0
homepage: https://github.com/flame-engine/flame

dependencies:
flutter:
sdk: flutter
audioplayers: ^0.15.1
ordered_set: ^2.0.0
path_provider: ^1.6.0
audioplayers: ^0.17.1
ordered_set: ^2.0.1
path_provider: ^1.6.24
box2d_flame: ^0.4.6
synchronized: ^2.1.0
convert: ^2.0.1
Expand Down

0 comments on commit daa2b6f

Please sign in to comment.