Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 0 additions & 2 deletions App/README.md

This file was deleted.

5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Apparule Contribution Guide

1. Fork and Clone.
2. Create a feature branch: git checkout -b feature/name.
3. Run 'make setup' to install dependencies.
4. Ensure all tests pass before submitting a PR.
1 change: 0 additions & 1 deletion Home/.placeholder

This file was deleted.

44 changes: 44 additions & 0 deletions Makefile
Comment thread
adeboyefrancis marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@


# Dynamic path variables to guarantee cross-environment stability
ROOT_DIR := $(shell pwd)
FLUTTER_APP_DIR := $(ROOT_DIR)/app/flutter

# Define default automation target when typing just 'make'
.DEFAULT_GOAL := help

# Declare all non-file targets as .PHONY to prevent folder name execution conflicts
.PHONY: help setup clean get run-chrome test

## help: Print out all available automation targets and descriptions
help:
@echo "Apparule Monorepo Management Console"
@echo "Usage: make [target]"
@echo ""
@echo "Available Tasks:"
@sed -n 's/^## //p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's/^/ /'

## setup: Perform first-time initialization of environment and submodules
setup:
@echo "Initializing Monorepo structural environment..."
cd $(FLUTTER_APP_DIR) && flutter pub get

## get: Fetch latest dependency pack packages for the Flutter application
get:
@echo "Fetching Flutter dependencies..."
cd $(FLUTTER_APP_DIR) && flutter pub get

## clean: Wipe localized compilation artifacts and build caches safely
clean:
@echo "Purging build directories..."
cd $(FLUTTER_APP_DIR) && flutter clean

## run-chrome: Spin up localized preview build server targeted on Google Chrome
run-chrome:
@echo "Launching development build on local Chrome instance..."
cd $(FLUTTER_APP_DIR) && flutter run -d chrome

## test: Run structural unit validation suites across core logic elements
test:
@echo "Running test suites..."
cd $(FLUTTER_APP_DIR) && flutter test
File renamed without changes.
15 changes: 6 additions & 9 deletions App/apparule/.metadata → app/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "367f9ea16bfae1ca451b9cc27c1366870b187ae2"
revision: "559ffa3f75e7402d65a8def9c28389a9b2e6fe42"
channel: "stable"

project_type: app
Expand All @@ -13,14 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
base_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
- platform: android
create_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
base_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
- platform: ios
create_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
base_revision: 367f9ea16bfae1ca451b9cc27c1366870b187ae2
create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42
base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42
- platform: web
create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42
base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42

# User provided section

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
283 changes: 283 additions & 0 deletions app/lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/intl.dart' as intl;

import 'app_localizations_en.dart';
import 'app_localizations_sq.dart';

// ignore_for_file: type=lint

/// Callers can lookup localized strings with an instance of AppLocalizations
/// returned by `AppLocalizations.of(context)`.
///
/// Applications need to include `AppLocalizations.delegate()` in their app's
/// `localizationDelegates` list, and the locales they support in the app's
/// `supportedLocales` list. For example:
///
/// ```dart
/// import 'l10n/app_localizations.dart';
///
/// return MaterialApp(
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
/// supportedLocales: AppLocalizations.supportedLocales,
/// home: MyApplicationHome(),
/// );
/// ```
///
/// ## Update pubspec.yaml
///
/// Please make sure to update your pubspec.yaml to include the following
/// packages:
///
/// ```yaml
/// dependencies:
/// # Internationalization support.
/// flutter_localizations:
/// sdk: flutter
/// intl: any # Use the pinned version from flutter_localizations
///
/// # Rest of dependencies
/// ```
///
/// ## iOS Applications
///
/// iOS applications define key application metadata, including supported
/// locales, in an Info.plist file that is built into the application bundle.
/// To configure the locales supported by your app, you’ll need to edit this
/// file.
///
/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file.
/// Then, in the Project Navigator, open the Info.plist file under the Runner
/// project’s Runner folder.
///
/// Next, select the Information Property List item, select Add Item from the
/// Editor menu, then select Localizations from the pop-up menu.
///
/// Select and expand the newly-created Localizations item then, for each
/// locale your application supports, add a new item and select the locale
/// you wish to add from the pop-up menu in the Value field. This list should
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());

final String localeName;

static AppLocalizations? of(BuildContext context) {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}

static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();

/// A list of this localizations delegate along with the default localizations
/// delegates.
///
/// Returns a list of localizations delegates containing this delegate along with
/// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate,
/// and GlobalWidgetsLocalizations.delegate.
///
/// Additional delegates can be added by appending to this list in
/// MaterialApp. This list does not have to be used at all if a custom list
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];

/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('en'),
Locale('sq')
];

/// No description provided for @createAnAccount.
///
/// In en, this message translates to:
/// **'Create an Account'**
String get createAnAccount;

/// No description provided for @startYourJourney.
///
/// In en, this message translates to:
/// **'Start your journey toward perfect fits and customized style'**
String get startYourJourney;

/// No description provided for @fullName.
///
/// In en, this message translates to:
/// **'Full Name'**
String get fullName;

/// No description provided for @nameHint.
///
/// In en, this message translates to:
/// **'Enter your name'**
String get nameHint;

/// No description provided for @nameValidation.
///
/// In en, this message translates to:
/// **'Please enter a valid name'**
String get nameValidation;

/// No description provided for @emailAddress.
///
/// In en, this message translates to:
/// **'Email'**
String get emailAddress;

/// No description provided for @emailHint.
///
/// In en, this message translates to:
/// **'Enter your email address'**
String get emailHint;

/// No description provided for @emailValidation.
///
/// In en, this message translates to:
/// **'Please enter a valid email'**
String get emailValidation;

/// No description provided for @phoneNumber.
///
/// In en, this message translates to:
/// **'Phone Number'**
String get phoneNumber;

/// No description provided for @phoneNumberHint.
///
/// In en, this message translates to:
/// **'Enter your phone number'**
String get phoneNumberHint;

/// No description provided for @phoneValidation.
///
/// In en, this message translates to:
/// **'Phone Number must be up to 12 digits'**
String get phoneValidation;

/// No description provided for @password.
///
/// In en, this message translates to:
/// **'Password'**
String get password;

/// No description provided for @passwordHint.
///
/// In en, this message translates to:
/// **'Enter your password'**
String get passwordHint;

/// No description provided for @passwordValidation.
///
/// In en, this message translates to:
/// **'Password must contain an uppercase, lowercase, numeric digit and special character'**
String get passwordValidation;

/// No description provided for @requiredField.
///
/// In en, this message translates to:
/// **'You have to fill all the fields properly.'**
String get requiredField;

/// No description provided for @signUp.
///
/// In en, this message translates to:
/// **'Sign Up'**
String get signUp;

/// No description provided for @loading.
///
/// In en, this message translates to:
/// **'Loading...'**
String get loading;

/// No description provided for @continueWithGoogle.
///
/// In en, this message translates to:
/// **'Continue with Google'**
String get continueWithGoogle;

/// No description provided for @alreadyHaveAnAccount.
///
/// In en, this message translates to:
/// **'Already have an account?'**
String get alreadyHaveAnAccount;

/// No description provided for @signIn.
///
/// In en, this message translates to:
/// **'Sign In'**
String get signIn;

/// No description provided for @verifyYourAccount.
///
/// In en, this message translates to:
/// **'Verify Your Account'**
String get verifyYourAccount;

/// No description provided for @howToVerify.
///
/// In en, this message translates to:
/// **'To verify your account, please choose how you\'d like to receive your verification code'**
String get howToVerify;

/// No description provided for @receiveSms.
///
/// In en, this message translates to:
/// **'Receive the code via SMS '**
String get receiveSms;

/// No description provided for @receiveEmail.
///
/// In en, this message translates to:
/// **'Receive the code in your email inbox'**
String get receiveEmail;

/// No description provided for @next.
///
/// In en, this message translates to:
/// **'Next'**
String get next;
}

class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();

@override
Future<AppLocalizations> load(Locale locale) {
return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));
}

@override
bool isSupported(Locale locale) =>
<String>['en', 'sq'].contains(locale.languageCode);

@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
}

AppLocalizations lookupAppLocalizations(Locale locale) {
// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en':
return AppLocalizationsEn();
case 'sq':
return AppLocalizationsSq();
}

throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
}
Loading