Skip to content

Commit

Permalink
fix: handle repeated words, bump flutter version (#10)
Browse files Browse the repository at this point in the history
custom words added:

- 気分
  • Loading branch information
jeroen-meijer authored Jul 29, 2020
1 parent c99e5ae commit 6480c8f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: subosito/flutter-action@v1.3.0
with:
channel: beta
flutter-version: 1.20.0-7.2.pre
flutter-version: 1.20.0-7.3.pre

- name: Install dependencies
run: flutter pub get
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: subosito/flutter-action@v1.3.0
with:
channel: beta
flutter-version: 1.20.0-7.2.pre
flutter-version: 1.20.0-7.3.pre

- name: Install app dependencies
run: flutter pub get
Expand Down
2 changes: 1 addition & 1 deletion app/assets/dicts/dict_ja.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion app/lib/backend/models/game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class Game extends ChangeNotifier {
validity = GuessValidity.invalidWord;
}

final hasBeenGuessed = allGuessesByPlayerIndex.contains(query);
final hasBeenGuessed = allGuessesByPlayerIndex
.map((entry) => entry.right.query)
.contains(query);
if (hasBeenGuessed) {
_log(4, 'alreadyGuessed...');
validity = GuessValidity.alreadyGuessed;
Expand Down
17 changes: 12 additions & 5 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "6.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "0.39.13"
version: "0.39.15"
animate_do:
dependency: "direct main"
description:
Expand Down Expand Up @@ -71,6 +71,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -98,14 +105,14 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.5"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
version: "0.16.2"
dart_style:
dependency: transitive
description:
Expand Down Expand Up @@ -401,4 +408,4 @@ packages:
version: "2.2.1"
sdks:
dart: ">=2.9.0-14.0.dev <3.0.0"
flutter: "1.20.0-7.2.pre"
flutter: "1.20.0-7.3.pre"
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"

environment:
sdk: ">=2.7.0 <3.0.0"
flutter: 1.20.0-7.2.pre
flutter: 1.20.0-7.3.pre

dependencies:
flutter:
Expand Down
7 changes: 7 additions & 0 deletions dict_parser/lib/generators/japanese.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ final _japanese = Generator._(
'ramen; Chinese-style noodles',
],
),
const WordEntry(
spellings: ['気分'],
phoneticSpellings: ['きぶん'],
definitions: [
'feeling; mood',
],
),
],
generateEntries: (args) async {
const _nounTag = '&n;';
Expand Down

0 comments on commit 6480c8f

Please sign in to comment.