Skip to content

Commit

Permalink
Merge pull request #11 from Position-Platform:BorisGautier/issue1
Browse files Browse the repository at this point in the history
Feature : Configure App Environment and Package
  • Loading branch information
BorisGautier authored Sep 1, 2022
2 parents f21c757 + e0aedf6 commit d2b397e
Show file tree
Hide file tree
Showing 63 changed files with 2,477 additions and 161 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<application
android:label="position"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/open_sans/OpenSans-bold.ttf
Binary file not shown.
Binary file added assets/fonts/open_sans/OpenSans-light.ttf
Binary file not shown.
Binary file added assets/fonts/open_sans/OpenSans-semibold.ttf
Binary file not shown.
Binary file added assets/fonts/open_sans/OpenSans.ttf
Binary file not shown.
Binary file added assets/images/png/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -478,4 +478,4 @@
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions lib/blocobserver.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// ignore_for_file: file_names, avoid_print

import 'package:flutter_bloc/flutter_bloc.dart';

//This class is used to manage everything that happens inside the blocks,
//it is initiated when the application is launched
class SimpleBlocObserver extends BlocObserver {
@override
void onEvent(Bloc bloc, Object? event) {
super.onEvent(bloc, event);
print('${bloc.runtimeType} $event');
}

@override
void onChange(BlocBase bloc, Change change) {
super.onChange(bloc, change);
print('${bloc.runtimeType} $change');
}

@override
void onTransition(Bloc bloc, Transition transition) {
super.onTransition(bloc, transition);
print('${bloc.runtimeType} $transition');
}

@override
void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
print('${bloc.runtimeType} $error $stackTrace');
super.onError(bloc, error, stackTrace);
}
}
66 changes: 66 additions & 0 deletions lib/generated/intl/messages_all.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that looks up messages for specific locales by
// delegating to the appropriate library.

// Ignore issues from commonly used lints in this file.
// ignore_for_file:implementation_imports, file_names, unnecessary_new
// ignore_for_file:unnecessary_brace_in_string_interps, directives_ordering
// ignore_for_file:argument_type_not_assignable, invalid_assignment
// ignore_for_file:prefer_single_quotes, prefer_generic_function_type_aliases
// ignore_for_file:comment_references

import 'dart:async';

import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';
import 'package:intl/src/intl_helpers.dart';

import 'messages_en.dart' as messages_en;
import 'messages_fr.dart' as messages_fr;

typedef Future<dynamic> LibraryLoader();
Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new Future.value(null),
'fr': () => new Future.value(null),
};

MessageLookupByLibrary? _findExact(String localeName) {
switch (localeName) {
case 'en':
return messages_en.messages;
case 'fr':
return messages_fr.messages;
default:
return null;
}
}

/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) async {
var availableLocale = Intl.verifiedLocale(
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return new Future.value(false);
}
var lib = _deferredLibraries[availableLocale];
await (lib == null ? new Future.value(false) : lib());
initializeInternalMessageLookup(() => new CompositeMessageLookup());
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
return new Future.value(true);
}

bool _messagesExistFor(String locale) {
try {
return _findExact(locale) != null;
} catch (e) {
return false;
}
}

MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale =
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}
114 changes: 114 additions & 0 deletions lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a en locale. All the
// messages from the main program should be duplicated here with the same
// function name.

// Ignore issues from commonly used lints in this file.
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes

import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';

final messages = new MessageLookup();

typedef String MessageIfAbsent(String messageStr, List<dynamic> args);

class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"addEmail":
MessageLookupByLibrary.simpleMessage("Fill in the email address"),
"addEtablissement":
MessageLookupByLibrary.simpleMessage("Add a New Company"),
"adress": MessageLookupByLibrary.simpleMessage("Adress"),
"alreadyAccount":
MessageLookupByLibrary.simpleMessage("I already have an account"),
"appname": MessageLookupByLibrary.simpleMessage("Position"),
"askAccess": MessageLookupByLibrary.simpleMessage("Request access"),
"back": MessageLookupByLibrary.simpleMessage("Back"),
"batimentDownload":
MessageLookupByLibrary.simpleMessage("Loading of Buildings..."),
"chooseTheme": MessageLookupByLibrary.simpleMessage("Choose a Theme"),
"connexion": MessageLookupByLibrary.simpleMessage("Login"),
"cpassword": MessageLookupByLibrary.simpleMessage("Confirm Password"),
"createAccount":
MessageLookupByLibrary.simpleMessage("Create an account"),
"dark": MessageLookupByLibrary.simpleMessage("Dark Theme"),
"dashboard": MessageLookupByLibrary.simpleMessage("Home"),
"delete": MessageLookupByLibrary.simpleMessage("Delete"),
"disabledAccount": MessageLookupByLibrary.simpleMessage(
"Your account has been deactivated"),
"editEtablissement":
MessageLookupByLibrary.simpleMessage("Edit a Company"),
"email": MessageLookupByLibrary.simpleMessage("Email"),
"emailNoSend":
MessageLookupByLibrary.simpleMessage("Email error. Try again!!!"),
"emailSend": MessageLookupByLibrary.simpleMessage(
"A reset email has been sent to you"),
"enableGps": MessageLookupByLibrary.simpleMessage(
"Please make sure you enable GPS"),
"findPosition":
MessageLookupByLibrary.simpleMessage("Find my position"),
"forgotPass":
MessageLookupByLibrary.simpleMessage("Forgot your password?"),
"getdata": MessageLookupByLibrary.simpleMessage("Online data recovery"),
"go": MessageLookupByLibrary.simpleMessage("Go ahead"),
"gpsAccess":
MessageLookupByLibrary.simpleMessage("GPS access is required"),
"hintEmail": MessageLookupByLibrary.simpleMessage("yourmail@xyz.com"),
"hintName": MessageLookupByLibrary.simpleMessage("Your Name"),
"hintPhone": MessageLookupByLibrary.simpleMessage("Phone number"),
"invalidEmail": MessageLookupByLibrary.simpleMessage("Invalid Email"),
"invalidMail": MessageLookupByLibrary.simpleMessage("Invalid Email"),
"invalidPass": MessageLookupByLibrary.simpleMessage("Invalid Password"),
"invalidPhone": MessageLookupByLibrary.simpleMessage("Invalid Phone"),
"light": MessageLookupByLibrary.simpleMessage("Theme Light"),
"loaded": MessageLookupByLibrary.simpleMessage("Loaded Buildings"),
"loggin": MessageLookupByLibrary.simpleMessage("Connection..."),
"login": MessageLookupByLibrary.simpleMessage("LOGIN"),
"loginFailed": MessageLookupByLibrary.simpleMessage("Login Failed"),
"loginSuccess":
MessageLookupByLibrary.simpleMessage("Login successful"),
"logout": MessageLookupByLibrary.simpleMessage("Logout"),
"myAdress": MessageLookupByLibrary.simpleMessage("My Adress"),
"next": MessageLookupByLibrary.simpleMessage("Next"),
"noAccount": MessageLookupByLibrary.simpleMessage("No Account yet? "),
"noData": MessageLookupByLibrary.simpleMessage("No data found"),
"noInternet":
MessageLookupByLibrary.simpleMessage("No internet connection"),
"noLocation":
MessageLookupByLibrary.simpleMessage("Cannot get current location"),
"passError":
MessageLookupByLibrary.simpleMessage("Different passwords"),
"password": MessageLookupByLibrary.simpleMessage("Password"),
"phone": MessageLookupByLibrary.simpleMessage("Phone Number"),
"register": MessageLookupByLibrary.simpleMessage("Register"),
"registerFailed":
MessageLookupByLibrary.simpleMessage("Account creation failed"),
"registerSuccess": MessageLookupByLibrary.simpleMessage(
"Successful account creation check your emails..."),
"registering":
MessageLookupByLibrary.simpleMessage("Account creation..."),
"search": MessageLookupByLibrary.simpleMessage(
"Search for a place, an establishment or a category"),
"selectLayer": MessageLookupByLibrary.simpleMessage("Select Layer"),
"serverError":
MessageLookupByLibrary.simpleMessage("An error has occurred"),
"shareContent": MessageLookupByLibrary.simpleMessage(
"I use the Position application to guide me. Follow my position on the map"),
"shareMyPosition":
MessageLookupByLibrary.simpleMessage("Share My Position"),
"sharePosition": MessageLookupByLibrary.simpleMessage("Share Position"),
"skip": MessageLookupByLibrary.simpleMessage("Skip"),
"step": MessageLookupByLibrary.simpleMessage("Step"),
"tryAgain": MessageLookupByLibrary.simpleMessage("Try again"),
"username": MessageLookupByLibrary.simpleMessage("User name"),
"welcome": MessageLookupByLibrary.simpleMessage("Welcome")
};
}
124 changes: 124 additions & 0 deletions lib/generated/intl/messages_fr.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a fr locale. All the
// messages from the main program should be duplicated here with the same
// function name.

// Ignore issues from commonly used lints in this file.
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes

import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';

final messages = new MessageLookup();

typedef String MessageIfAbsent(String messageStr, List<dynamic> args);

class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'fr';

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"addEmail":
MessageLookupByLibrary.simpleMessage("Remplissez l\'adresse mail"),
"addEtablissement": MessageLookupByLibrary.simpleMessage(
"Ajout d\'une Nouvelle Entreprise"),
"adress": MessageLookupByLibrary.simpleMessage("Adresse"),
"alreadyAccount":
MessageLookupByLibrary.simpleMessage("J\'ai déja un compte"),
"appname": MessageLookupByLibrary.simpleMessage("Position"),
"askAccess": MessageLookupByLibrary.simpleMessage("Demandez l\'access"),
"back": MessageLookupByLibrary.simpleMessage("Retour"),
"batimentDownload":
MessageLookupByLibrary.simpleMessage("Chargement des Batiments..."),
"chooseTheme": MessageLookupByLibrary.simpleMessage("Choisir un Thème"),
"connexion": MessageLookupByLibrary.simpleMessage("Connexion"),
"cpassword":
MessageLookupByLibrary.simpleMessage("Confirmer le Mot de Passe"),
"createAccount":
MessageLookupByLibrary.simpleMessage("Creer un compte"),
"dark": MessageLookupByLibrary.simpleMessage("Theme Sombre"),
"dashboard": MessageLookupByLibrary.simpleMessage("Accueil"),
"delete": MessageLookupByLibrary.simpleMessage("Supprimer"),
"disabledAccount": MessageLookupByLibrary.simpleMessage(
"Votre compte a été désactivé"),
"editEtablissement":
MessageLookupByLibrary.simpleMessage("Modifier une entreprise"),
"email": MessageLookupByLibrary.simpleMessage("Adresse Mail"),
"emailNoSend":
MessageLookupByLibrary.simpleMessage("Erreur de mail. Reesayez!!!"),
"emailSend": MessageLookupByLibrary.simpleMessage(
"Un mail de reinitialisation vous a été envoyé"),
"enableGps": MessageLookupByLibrary.simpleMessage(
"Assurez-vous d\'activer le GPS."),
"findPosition":
MessageLookupByLibrary.simpleMessage("Trouvez ma Position"),
"forgotPass":
MessageLookupByLibrary.simpleMessage("Mot de Passe oublié ?"),
"getdata": MessageLookupByLibrary.simpleMessage(
"Récupération des données en ligne"),
"go": MessageLookupByLibrary.simpleMessage("Allez-y"),
"gpsAccess":
MessageLookupByLibrary.simpleMessage("Un accès GPS est nécessaire"),
"hintEmail": MessageLookupByLibrary.simpleMessage("votremail@xyz.com"),
"hintName": MessageLookupByLibrary.simpleMessage("Votre Nom Complet"),
"hintPhone":
MessageLookupByLibrary.simpleMessage("Numéro de Téléphone"),
"invalidEmail": MessageLookupByLibrary.simpleMessage("Email Invalide"),
"invalidMail": MessageLookupByLibrary.simpleMessage("Email Invalide"),
"invalidPass":
MessageLookupByLibrary.simpleMessage("Mot de Passe Invalide"),
"invalidPhone":
MessageLookupByLibrary.simpleMessage("Téléphone Invalide"),
"light": MessageLookupByLibrary.simpleMessage("Theme Light"),
"loaded": MessageLookupByLibrary.simpleMessage("Batiments Chargés"),
"loggin": MessageLookupByLibrary.simpleMessage("Connexion..."),
"login": MessageLookupByLibrary.simpleMessage("CONNECTEZ VOUS"),
"loginFailed":
MessageLookupByLibrary.simpleMessage("Echec de Connexion"),
"loginSuccess":
MessageLookupByLibrary.simpleMessage("Connexion reussie"),
"logout": MessageLookupByLibrary.simpleMessage("Deconnexion"),
"myAdress": MessageLookupByLibrary.simpleMessage("Mon Adresse"),
"next": MessageLookupByLibrary.simpleMessage("Suivant"),
"noAccount":
MessageLookupByLibrary.simpleMessage("Pas encore de Compte? "),
"noData":
MessageLookupByLibrary.simpleMessage("Aucune données trouvées"),
"noInternet":
MessageLookupByLibrary.simpleMessage("Pas de connexion internet"),
"noLocation": MessageLookupByLibrary.simpleMessage(
"Impossible d\'obtenir l\'emplacement actuel"),
"passError":
MessageLookupByLibrary.simpleMessage("Mots de passes differents"),
"password": MessageLookupByLibrary.simpleMessage("Mot de Passe"),
"phone": MessageLookupByLibrary.simpleMessage("Numéro de Téléphone"),
"register": MessageLookupByLibrary.simpleMessage("Creer un compte"),
"registerFailed":
MessageLookupByLibrary.simpleMessage("Echec de création de compte"),
"registerSuccess": MessageLookupByLibrary.simpleMessage(
"Création du compte reussie verifiez vos mails..."),
"registering":
MessageLookupByLibrary.simpleMessage("Création du compte..."),
"search": MessageLookupByLibrary.simpleMessage(
"Rechercher un lieu un etablissement ou une catégorie"),
"selectLayer":
MessageLookupByLibrary.simpleMessage("Choisir un fond de carte"),
"serverError":
MessageLookupByLibrary.simpleMessage("Une erreur est survenue"),
"shareContent": MessageLookupByLibrary.simpleMessage(
"J\'utilise l\'application Position pour me guider. Suivez ma position sur la carte"),
"shareMyPosition":
MessageLookupByLibrary.simpleMessage("Partager Ma Position"),
"sharePosition":
MessageLookupByLibrary.simpleMessage("Partager La Position"),
"skip": MessageLookupByLibrary.simpleMessage("Passer"),
"step": MessageLookupByLibrary.simpleMessage("Etape"),
"tryAgain": MessageLookupByLibrary.simpleMessage("Reesayez"),
"username": MessageLookupByLibrary.simpleMessage("Nom d\'utilisateur"),
"welcome": MessageLookupByLibrary.simpleMessage("Bienvenue")
};
}
Loading

0 comments on commit d2b397e

Please sign in to comment.