Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitletondor committed Jun 15, 2018
2 parents 04e83d3 + be9309e commit 594395e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ android {
applicationId "com.benoitletondor.beermeup"
minSdkVersion 21
targetSdkVersion 27
versionCode 4
versionName "1.0.4"
versionCode 5
versionName "1.0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down
4 changes: 2 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>5</string>
<string>6</string>
<key>FacebookAppID</key>
<string>204596980298393</string>
<key>FacebookDisplayName</key>
Expand Down
4 changes: 2 additions & 2 deletions lib/localization/localization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
import 'dart:async';
import 'package:intl/intl.dart';

import 'package:beer_me_up/localization/onboardinglocalization_en.dart';
import 'package:beer_me_up/localization/onboardinglocalization_fr.dart';
import 'package:beer_me_up/localization/localization_en.dart';
import 'package:beer_me_up/localization/localization_fr.dart';

abstract class Localization {
static Localization of(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:beer_me_up/localization/localization.dart';

class LocalizationFR implements Localization {
@override String get onboardingFirstTitle => "Tu t'aies déjà demandé...";
@override String get onboardingFirstTitle => "Tu t'es déjà demandé...";
@override String get onboardingFirstSubText => "\"C'est quoi le nom de cette bière géniale que j'ai bu hier soir ?\"";
@override String get onboardingFirstCTA => "Ouais ! Carrément !";
@override String get onboardingSecondTitle => "Comment ça marche ?";
Expand Down Expand Up @@ -32,7 +32,7 @@ class LocalizationFR implements Localization {
@override String get loginNoAccountCTA => "Tu n'as pas de compte ? Crée-en un";

@override String get forgotPasswordTitle => "Récupérer ton mot de passe";
@override String get forgotPasswordExplain => "Entres ton email et nous allons t'envoyer les instructions pour changer ton mot de passe";
@override String get forgotPasswordExplain => "Entre ton email et nous allons t'envoyer les instructions pour changer ton mot de passe";
@override String get forgotPasswordResetCTA => "Envoyer l'email";
@override String get forgotPasswordNoEmailTitle => "Email vide";
@override String get forgotPasswordNoEmailExplain => "Entre ton email pour recevoir les instructions";
Expand All @@ -54,10 +54,10 @@ class LocalizationFR implements Localization {
@override String get homeWelcome => "Bienvenue dans ton musée personnel de la bière";

@override String get checkInEmptyResult => "Aucune bière avec ce nom";
@override String get checkInEmptyResultAdvice => "Essayes de compléter ou de vérifier l'orthographe";
@override String get checkInHint => "Tapes un nom de bière";
@override String get checkInEmptyResultAdvice => "Essaye de compléter ou de vérifier l'orthographe";
@override String get checkInHint => "Tape un nom de bière";

@override String get homeProfileWelcomeContinue => "Continues de check-in les bières que tu bois pour construire ton profil.";
@override String get homeProfileWelcomeContinue => "Continue de check-in les bières que tu bois pour construire ton profil.";
@override String get homeProfileWelcomeStart => "Check-in la prochaine bière que tu bois pour construire ton profil.";
@override String get homeProfileThisWeek => "Cette semaine";
@override String get homeProfileOneBeerStart => "Tu as bu seulement ";
Expand All @@ -74,10 +74,10 @@ class LocalizationFR implements Localization {

@override String get homeHistoryWelcomeStart => "Check-in la prochaine bière que tu bois pour commencer ton historique";

@override String get checkInConfirmTitle => "Confirmes le check-in";
@override String get checkInConfirmTitle => "Confirme le check-in";
@override String get checkInChangeDateCTA => "Changer la date";
@override String get checkInSelectQuantity => "Selectionnes la quantité";
@override String get checkInNoQuantitySelected => "Sélectionnes une quantité pour confirmer le check-in";
@override String get checkInSelectQuantity => "Selectionne la quantité";
@override String get checkInNoQuantitySelected => "Sélectionne une quantité pour confirmer le check-in";
@override String get checkInConfirmCTA => "Check-in";
@override String get checkInConfirmDefaultPoints => "Encore une bière";
@override String get checkInConfirmFirstTimeBeer => "Première fois avec cette bière";
Expand Down
7 changes: 6 additions & 1 deletion lib/page/checkin/model.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:io';
import 'package:flutter/material.dart';

import 'package:beer_me_up/common/mvi/viewmodel.dart';
Expand Down Expand Up @@ -54,7 +55,11 @@ class CheckInViewModel extends BaseViewModel<CheckInState> {
printException(e, stackTrace, "Error looking for beers matching $userInput");
currentPredictions.clear();

setState(CheckInState.error(e.toString()));
if( e is HttpException ) {
setState(CheckInState.error("An error occurred while processing the request."));
} else {
setState(CheckInState.error(e.toString()));
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ packages:
name: synchronized
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.0"
version: "1.5.0+1"
term_glyph:
dependency: transitive
description:
Expand Down

0 comments on commit 594395e

Please sign in to comment.