Skip to content

Commit

Permalink
Merge branch 'regentmarkets:dev' into glitch_on_livechat_icon_DERG_750
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaan-deriv authored Oct 18, 2023
2 parents 55ac06d + 71f1990 commit 56105d5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 132 deletions.
113 changes: 0 additions & 113 deletions .circleci/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,3 @@ This repository contains private packages & plugins that are used by the company
| [form_builder](./packages/form_builder) | A simpler and cleaner way to create, validate and submit forms. |
| [update_checker](./packages/update_checker) | Check and retrieve update information from the server for the given package. |

# Add New Package in CI Configuration(config.yml)

This repository contains packages with CI configuration to run basic flutter commands, if we add new package under flutter-deriv-packages/packages we have to add package in .circleci/config.yml file.

Steps to add new package in config.yml

1. Open root of the package flutter-deriv-packages
2. Go to circleci/config.yml
3. Go to Steps and add

- run:
working_directory: ~/flutter-deriv-packages/packages/[new_package_name]
command: flutter pub get && flutter analyze && flutter test
name: [new_package_name] analysis

4. Edit Commands as per new package requirements.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ class DerivAuthLoggedInState extends DerivAuthState {
final DerivAuthModel authModel;

/// Indicates if the user is migrated to wallets or not.
///
/// The user is considered migrated if at least one of their accounts
/// is [AccountCategoryEnum.wallet]
bool get isMigratedToWallets =>
authModel.authorizeEntity.linkedTo?.isNotEmpty ?? false;
authModel.authorizeEntity.accountList?.any((AccountListItem account) =>
account.accountCategory == AccountCategoryEnum.wallet) ??
false;
}

/// Logged out state.
Expand Down
2 changes: 1 addition & 1 deletion packages/deriv_auth_ui/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_auth
ref: dev
ref: d5bef178341a318f911b42b8105d8c3d50c6b63e
deriv_theme:
path: ../../deriv_theme
# git:
Expand Down
2 changes: 1 addition & 1 deletion packages/deriv_auth_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_auth
ref: dev
ref: d5bef178341a318f911b42b8105d8c3d50c6b63e
deriv_theme:
path: ../deriv_theme
# git:
Expand Down
3 changes: 3 additions & 0 deletions packages/deriv_theme/lib/src/dimens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class Dimens {
/// 18 pixels margin
static const double margin18 = 18;

/// 20 pixels margin.
static const double margin20 = 20;

/// 24 pixels margin
static const double margin24 = 24;

Expand Down
2 changes: 2 additions & 0 deletions packages/deriv_theme/lib/theme_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class ThemeProvider {

static const double margin18 = Dimens.margin18;

static const double margin20 = Dimens.margin20;

static const double margin24 = Dimens.margin24;

static const double margin32 = Dimens.margin32;
Expand Down

0 comments on commit 56105d5

Please sign in to comment.