diff --git a/lib/app_state.dart b/lib/app_state.dart index bcf99e4..4898a10 100644 --- a/lib/app_state.dart +++ b/lib/app_state.dart @@ -20,7 +20,7 @@ class AppState = _AppState with _$AppState; Future syncWithServer(List args) async { String documentsPath = args[0]; String deviceId = args[1]; - String url = 'http://the-hat-dev.appspot.com/'; + String url = 'http://the-hat.appspot.com/'; if (File('$documentsPath/gameLogs.json').existsSync()) { List gameLogs = jsonDecode(File('$documentsPath/gameLogs.json').readAsStringSync()); diff --git a/lib/deathmatch.dart b/lib/deathmatch.dart index 6a87d0b..5c4f022 100644 --- a/lib/deathmatch.dart +++ b/lib/deathmatch.dart @@ -16,7 +16,7 @@ import 'app_state.dart'; Future sendSingleGameLog(List args) async { var gameLog = args[0]; String documentsPath = args[1]; - String url = 'http://the-hat-dev.appspot.com/'; + String url = 'http://the-hat.appspot.com/'; var response; try { response = await http.post('$url/api/v2/game/log', diff --git a/lib/dictionary.dart b/lib/dictionary.dart index 7997cfb..f9e5f95 100644 --- a/lib/dictionary.dart +++ b/lib/dictionary.dart @@ -29,7 +29,9 @@ class Dictionary { var dictionaryList = jsonDecode(dictionaryFile.readAsStringSync()); for (int i = 0; i < dictionaryList.length; i++) { - buckets[dictionaryList[i]['diff']].add(dictionaryList[i]['word']); + if (dictionaryList[i]['tags'] != '-deleted') { + buckets[dictionaryList[i]['diff']].add(); + } } for (int i = 0; i < 101; i++) { diff --git a/lib/turn.dart b/lib/turn.dart index f7f4ccf..4972ae6 100644 --- a/lib/turn.dart +++ b/lib/turn.dart @@ -14,7 +14,7 @@ import 'package:provider/provider.dart'; import 'main.dart'; Future sendSingleWordComplain(List args) async { - String url = 'http://the-hat-dev.appspot.com/'; + String url = 'http://the-hat.appspot.com/'; var wordComplain = jsonEncode(args[0]); String documentsPath = args[1]; String deviceId = args[2]; @@ -42,7 +42,7 @@ Future sendSingleWordComplain(List args) async { Future sendSingleGameLog(List args) async { var gameLog = args[0]; String documentsPath = args[1]; - String url = 'http://the-hat-dev.appspot.com/'; + String url = 'http://the-hat.appspot.com/'; var response; try { response = await http.post('$url/api/v2/game/log', diff --git a/pubspec.lock b/pubspec.lock index bb48e2e..d252c39 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -379,7 +379,7 @@ packages: name: node_io url: "https://pub.dartlang.org" source: hosted - version: "1.0.1+2" + version: "1.1.0" normal: dependency: "direct main" description: @@ -477,7 +477,7 @@ packages: name: provider url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.0.5+1" pub_semver: dependency: transitive description: @@ -737,4 +737,4 @@ packages: version: "2.2.1" sdks: dart: ">=2.7.0 <3.0.0" - flutter: ">=1.17.0 <2.0.0" + flutter: ">=1.12.13+hotfix.5 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 6868071..a8966ba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: normal: ^0.5.1 path_provider: ^1.5.1 audioplayers: ^0.13.5 - url_launcher: ^5.4.1 + url_launcher: ^5.4.5 uuid: ^2.0.4 sentry: ^3.0.0+1 marquee: ^1.3.1