Skip to content

Commit

Permalink
Moved to production server, "deleted" tag words are now removed from …
Browse files Browse the repository at this point in the history
…the dictionary, fixed deathmatch logging bug
  • Loading branch information
sashkent3 committed May 14, 2020
1 parent 30b3a14 commit 9f4bb10
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/app_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AppState = _AppState with _$AppState;
Future<void> syncWithServer(List<String> 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());
Expand Down
2 changes: 1 addition & 1 deletion lib/deathmatch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'app_state.dart';
Future<void> 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',
Expand Down
4 changes: 3 additions & 1 deletion lib/dictionary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
4 changes: 2 additions & 2 deletions lib/turn.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'package:provider/provider.dart';
import 'main.dart';

Future<void> 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];
Expand Down Expand Up @@ -42,7 +42,7 @@ Future<void> sendSingleWordComplain(List args) async {
Future<void> 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',
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f4bb10

Please sign in to comment.