Skip to content

Commit

Permalink
Merge branch 'master' into fix_login_provider_null_issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abedelaziz-deriv committed Jun 25, 2024
2 parents 2cb09c5 + c19c842 commit fff286d
Show file tree
Hide file tree
Showing 19 changed files with 118 additions and 36 deletions.
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,52 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 2024-06-25

### Changes

---

Packages with breaking changes:

- There are no breaking changes in this release.

Packages with other changes:

- [`deriv_auth` - `v6.7.0`](#deriv_auth---v670)
- [`deriv_web_view` - `v0.2.2+2`](#deriv_web_view---v0222)
- [`update_checker` - `v1.4.0`](#update_checker---v140)
- [`deriv_ui` - `v0.0.7+8`](#deriv_ui---v0078)
- [`deriv_widgetbook` - `v0.0.2+8`](#deriv_widgetbook---v0028)
- [`deriv_passkeys` - `v0.0.2+2`](#deriv_passkeys---v0022)
- [`deriv_language_selector` - `v0.0.2+6`](#deriv_language_selector---v0026)

Packages with dependency updates only:

> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
- `deriv_ui` - `v0.0.7+8`
- `deriv_widgetbook` - `v0.0.2+8`
- `deriv_passkeys` - `v0.0.2+2`
- `deriv_language_selector` - `v0.0.2+6`

---

#### `deriv_auth` - `v6.7.0`

- **FIX**(deriv_web_view): update deriv ui version in deriv auth ([#639](https://github.com/regentmarkets/flutter-deriv-packages/issues/639)). ([11b46a9f](https://github.com/regentmarkets/flutter-deriv-packages/commit/11b46a9f7bd00482d3cac7820cf4cd5d61da0cad))
- **FEAT**(deriv_auth): add log in user tracking events. ([#620](https://github.com/regentmarkets/flutter-deriv-packages/issues/620)). ([ae9556cf](https://github.com/regentmarkets/flutter-deriv-packages/commit/ae9556cf3af98196bb22e351d9a8eccbf534889c))

#### `deriv_web_view` - `v0.2.2+2`

- **FIX**(deriv_web_view): update deriv web view readme file ([#637](https://github.com/regentmarkets/flutter-deriv-packages/issues/637)). ([b0b66dad](https://github.com/regentmarkets/flutter-deriv-packages/commit/b0b66dadb6cb1b30dc3ad759f2eee031673b6bbf))
- **FIX**(deriv_webview): add language parameter to needed classes ([#600](https://github.com/regentmarkets/flutter-deriv-packages/issues/600)). ([9b857999](https://github.com/regentmarkets/flutter-deriv-packages/commit/9b857999f479486830671f8b8e8b7fc26dcd769b))

#### `update_checker` - `v1.4.0`

- **FEAT**(update_checker): add the ability to change the key from the app side ([#628](https://github.com/regentmarkets/flutter-deriv-packages/issues/628)). ([b18609a0](https://github.com/regentmarkets/flutter-deriv-packages/commit/b18609a00533aaab6d6962eb89f323e2f560df8b))


## 2024-06-24

### Changes
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ This repository contains private packages & plugins that are used by the company

## Using the packages

Each package has been released as git tag with convention as **packageName-vVersionNumber**`(Example: deriv_auth-v6.6.9)`. To use the package, add the following to your pubspec.yaml file:
Each package has been released as git tag with convention as **packageName-vVersionNumber**`(Example: deriv_auth-v6.7.0)`. To use the package, add the following to your pubspec.yaml file:


```yaml
deriv_ui:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7 #your prefered version
ref: deriv_ui-v0.0.7+8 #your prefered version
```
## Packages
| Name | Description | Version |
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [analytics](./packages/analytics) | Used to collect and send analytical information to 'Firebase' and 'Segment'. | [v2.0.0](./packages/analytics/CHANGELOG.md) |
| [deriv_auth](./packages/deriv_auth) | A Dart package that provides Authentication logic for Deriv applications. | [v6.6.9 ](./packages/deriv_auth/CHANGELOG.md) |
| [deriv_auth](./packages/deriv_auth) | A Dart package that provides Authentication logic for Deriv applications. | [v6.7.0 ](./packages/deriv_auth/CHANGELOG.md) |
| [deriv_banner](./packages/deriv_banner) | A widget to show banner in apps. | [v0.0.1+1](./packages/deriv_banner/CHANGELOG.md) |
| [deriv_bloc_manager](./packages/deriv_bloc_manager) | Provides some tools to manage blocs. | [v0.0.1](./packages/deriv_bloc_manager/CHANGELOG.md) |
| [deriv_datadog](./packages/deriv_datadog) | A package that helps you monitor the performance and user interactions of your Flutter app by sending data to Datadog. | [v0.0.1](./packages/deriv_datadog/CHANGELOG.md) |
Expand All @@ -31,20 +31,20 @@ deriv_ui:
| [deriv_http_client](./packages/deriv_http_client) | A package that provides a wrapper for http package. | [v2.0.0](./packages/deriv_http_client/CHANGELOG.md) |
| [deriv_lint](./packages/deriv_lint) | A Dart package that provides lint rules for Dart and Flutter. | [v1.0.0](./packages/deriv_lint/CHANGELOG.md) |
| [deriv_live_chat](./packages/deriv_live_chat) | A plugin for live chat SDK support to dart. | [v0.0.1+2](./packages/deriv_live_chat/CHANGELOG.md) |
| [deriv_language_selector](./packages/deriv_language_selector) | A package to handle language change of the app. | [v0.0.2+5](./packages/deriv_language_selector/CHANGELOG.md) |
| [deriv_language_selector](./packages/deriv_language_selector) | A package to handle language change of the app. | [v0.0.2+6](./packages/deriv_language_selector/CHANGELOG.md) |
| [deriv_localizations](./packages/deriv_localizations) | A Package that contains the localization arb(coming from Crowdin) and dart generated files for flutter_deriv_packages. | [v1.1.1](./packages/deriv_localizations/CHANGELOG.md) | | [v1.4.4](./packages/deriv_localizations/CHANGELOG.md) |
| [deriv_numpad](./packages/deriv_numpad) | Number Pad Widget for number input. | [v1.1.5](./packages/deriv_numpad/CHANGELOG.md) |
| [deriv_rudderstack](./packages/deriv_rudderstack) | A plugin that add RudderStack SDK support to Flutter. | [v1.1.0](./packages/deriv_rudderstack/CHANGELOG.md) |
| [deriv_store_launcher](./packages/deriv_store_launcher) | A plugin to launch app stores base on platform and manufacturer. | [v0.0.1+1](./packages/deriv_store_launcher/CHANGELOG.md) |
| [deriv_technical_analysis](./packages/deriv_technical_analysis) | A Dart package for Technical Analysis. | [v0.0.1](./packages/deriv_technical_analysis/CHANGELOG.md) |
| [deriv_theme](./packages/deriv_theme) | A package that contains the theme used by Deriv products. | [v2.4.0](./packages/deriv_theme/CHANGELOG.md) |
| [deriv_ui](./packages/deriv_ui) | A package that contains the UI components used by Deriv products. | [v0.0.7+7](./packages/deriv_ui/CHANGELOG.md) |
| [deriv_ui](./packages/deriv_ui) | A package that contains the UI components used by Deriv products. | [v0.0.7+8](./packages/deriv_ui/CHANGELOG.md) |
| [deriv_utilities](./packages/deriv_utilities) | A package that contains the utilities including helper functions, mixins, and extensions. | [v1.0.0](./packages/deriv_utilities/CHANGELOG.md) |
| [deriv_websocket](./packages/deriv_web_socket_client) | A package that provides a easy to use websocket client. | [v1.0.1](./packages/deriv_web_socket_client/CHANGELOG.md) |
| [deriv_web_view](./packages/deriv_web_view) | Deriv web view package. | [v0.2.2+1](./packages/deriv_web_view/CHANGELOG.md) |
| [deriv_widgetbook](./packages/deriv_widgetbook) |Storybook for Deriv UI Widgets and Components | [v0.0.2+7](./packages/deriv_widgetbook/CHANGELOG.md) |
| [deriv_web_view](./packages/deriv_web_view) | Deriv web view package. | [v0.2.2+2](./packages/deriv_web_view/CHANGELOG.md) |
| [deriv_widgetbook](./packages/deriv_widgetbook) |Storybook for Deriv UI Widgets and Components | [v0.0.2+8](./packages/deriv_widgetbook/CHANGELOG.md) |
| [form_builder](./packages/form_builder) | A simpler and cleaner way to create, validate and submit forms. | [v1.0.0+1](./packages/form_builder/CHANGELOG.md) |
| [update_checker](./packages/update_checker) | Check and retrieve update information from the server for the given package. | [v1.3.0](./packages/update_checker/CHANGELOG.md) |
| [update_checker](./packages/update_checker) | Check and retrieve update information from the server for the given package. | [v1.4.0](./packages/update_checker/CHANGELOG.md) |
| [deriv_feature_flag](./packages/deriv_feature_flag) | A package to provide feature flag functionality for apps. | [v0.1.1](./packages/deriv_feature_flag/CHANGELOG.md) |
## Environment Setup
Expand Down
5 changes: 5 additions & 0 deletions packages/deriv_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 6.7.0

- **FIX**(deriv_web_view): update deriv ui version in deriv auth ([#639](https://github.com/regentmarkets/flutter-deriv-packages/issues/639)). ([11b46a9f](https://github.com/regentmarkets/flutter-deriv-packages/commit/11b46a9f7bd00482d3cac7820cf4cd5d61da0cad))
- **FEAT**(deriv_auth): add log in user tracking events. ([#620](https://github.com/regentmarkets/flutter-deriv-packages/issues/620)). ([ae9556cf](https://github.com/regentmarkets/flutter-deriv-packages/commit/ae9556cf3af98196bb22e351d9a8eccbf534889c))

## 6.6.9

- Update a dependency to the latest release.
Expand Down
10 changes: 0 additions & 10 deletions packages/deriv_auth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ dependencies:
flutter_bloc: ^8.1.3
http: ^0.13.6
device_preview: ^1.1.0
deriv_http_client:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_http_client
ref: deriv_http_client-v2.0.1
deriv_ui:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7

dev_dependencies:
flutter_test:
Expand Down
12 changes: 6 additions & 6 deletions packages/deriv_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deriv_auth
description: Provides deriv authentication functionalities for dart/flutter apps.
version: 6.6.9
version: 6.7.0

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down Expand Up @@ -28,7 +28,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7
ref: deriv_ui-v0.0.7+8

deriv_http_client:
git:
Expand All @@ -45,7 +45,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_web_view
ref: deriv_web_view-v0.2.2+1
ref: deriv_web_view-v0.2.2+2

deriv_localizations:
git:
Expand All @@ -57,13 +57,13 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_passkeys
ref: deriv_passkeys-v0.0.2+1
ref: deriv_passkeys-v0.0.2+2

deriv_language_selector:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_language_selector
ref: deriv_language_selector-v0.0.2+5
ref: deriv_language_selector-v0.0.2+6

flutter_bloc: ^8.1.3
flutter_svg: ^2.0.7
Expand All @@ -79,7 +79,7 @@ dependency_overrides:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7
ref: deriv_ui-v0.0.7+8

dev_dependencies:
mocktail: ^1.0.3
Expand Down
4 changes: 4 additions & 0 deletions packages/deriv_language_selector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.2+6

- Update a dependency to the latest release.

## 0.0.2+5

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/deriv_language_selector/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deriv_language_selector
description: A package to select language for the app. It provides both UI and logic for language selection.
version: 0.0.2+5
version: 0.0.2+6
publish_to: "none"

environment:
Expand All @@ -14,7 +14,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7
ref: deriv_ui-v0.0.7+8
shared_preferences: ^2.2.2
flutter_bloc: ^8.1.4
equatable: ^2.0.5
Expand Down
4 changes: 4 additions & 0 deletions packages/deriv_passkeys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.2+2

- Update a dependency to the latest release.

## 0.0.2+1

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/deriv_passkeys/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deriv_passkeys
description: Deriv Passkeys Flutter Plugin
version: 0.0.2+1
version: 0.0.2+2
publish_to: "none"

environment:
Expand Down Expand Up @@ -32,7 +32,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7
ref: deriv_ui-v0.0.7+8

deriv_http_client:
git:
Expand Down
4 changes: 4 additions & 0 deletions packages/deriv_ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.7+8

- Update a dependency to the latest release.

## 0.0.7+7

- **REFACTOR**(deriv_ui): [DERG-3500] return inputted amount based on the formatter in numpad ([#624](https://github.com/regentmarkets/flutter-deriv-packages/issues/624)). ([fdf4df19](https://github.com/regentmarkets/flutter-deriv-packages/commit/fdf4df1979ddb8710dba8925ef779cca25d60615))
Expand Down
4 changes: 2 additions & 2 deletions packages/deriv_ui/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deriv_ui
description: A new Flutter package project.
version: 0.0.7+7
version: 0.0.7+8
publish_to: none

environment:
Expand All @@ -23,7 +23,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_web_view
ref: deriv_web_view-v0.2.2+1
ref: deriv_web_view-v0.2.2+2

flutter_svg: ^2.0.7
intl: ^0.18.0
Expand Down
5 changes: 5 additions & 0 deletions packages/deriv_web_view/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.2+2

- **FIX**(deriv_web_view): update deriv web view readme file ([#637](https://github.com/regentmarkets/flutter-deriv-packages/issues/637)). ([b0b66dad](https://github.com/regentmarkets/flutter-deriv-packages/commit/b0b66dadb6cb1b30dc3ad759f2eee031673b6bbf))
- **FIX**(deriv_webview): add language parameter to needed classes ([#600](https://github.com/regentmarkets/flutter-deriv-packages/issues/600)). ([9b857999](https://github.com/regentmarkets/flutter-deriv-packages/commit/9b857999f479486830671f8b8e8b7fc26dcd769b))

## 0.2.2+1

- **FIX**(deriv_web_view): update PTA model ([#557](https://github.com/regentmarkets/flutter-deriv-packages/issues/557)). ([49583f82](https://github.com/regentmarkets/flutter-deriv-packages/commit/49583f823fdac9c3ec3a85529fad9ab9f6784c67))
Expand Down
2 changes: 1 addition & 1 deletion packages/deriv_web_view/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: deriv_web_view
description: Deriv Web View package project.

version: 0.2.2+1
version: 0.2.2+2

homepage: https://deriv.com/
publish_to: "none"
Expand Down
4 changes: 4 additions & 0 deletions packages/deriv_widgetbook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.2+8

- Update a dependency to the latest release.

## 0.0.2+7

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/deriv_widgetbook/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: deriv_widgetbook
description: Storybook for Deriv UI widgets and components.
publish_to: "none"
version: 0.0.2+7
version: 0.0.2+8

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -16,7 +16,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_ui
ref: deriv_ui-v0.0.7+7
ref: deriv_ui-v0.0.7+8
deriv_theme:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
Expand Down
4 changes: 4 additions & 0 deletions packages/update_checker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.0

- **FEAT**(update_checker): add the ability to change the key from the app side ([#628](https://github.com/regentmarkets/flutter-deriv-packages/issues/628)). ([b18609a0](https://github.com/regentmarkets/flutter-deriv-packages/commit/b18609a00533aaab6d6962eb89f323e2f560df8b))

## 1.3.0

- **FEAT**(deriv_logger): add ability to print prettified logs in console and UI ([#608](https://github.com/regentmarkets/flutter-deriv-packages/issues/608)). ([5a91c24b](https://github.com/regentmarkets/flutter-deriv-packages/commit/5a91c24bde607ff37940edf18f8dfac67d3fc4fa))
Expand Down
14 changes: 14 additions & 0 deletions packages/update_checker/lib/src/presentation/update_checker.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:firebase_remote_config/firebase_remote_config.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:update_checker/src/repositories/base_firebase.dart';
Expand Down Expand Up @@ -43,6 +44,19 @@ class _UpdateCheckerState extends State<UpdateChecker> {
@override
void initState() {
super.initState();
// Configure fetch settings
FirebaseRemoteConfig.instance.setConfigSettings(RemoteConfigSettings(
fetchTimeout: const Duration(seconds: 10),
// Default fetch timeout

// As google set a limit of 5 call per hour for each device,
// we set the minimumFetchInterval to 15 minutes
// to avoid Throttling error,
// check: https://firebase.google.com/docs/remote-config/get-started?platform=ios#throttling
minimumFetchInterval:
const Duration(minutes: 15), // Minimum fetch interval set to 0
));

_updateBloc = UpdateBloc(firebaseRepository: widget.firebaseRepository);
_updateBloc.add(UpdateFetchEvent());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import 'package:update_checker/src/repositories/base_firebase.dart';
/// the firebase database.
class FirebaseRemoteConfigRepository implements BaseFirebase {
/// Initializes the Firebase Database repository
const FirebaseRemoteConfigRepository();
FirebaseRemoteConfigRepository(
{String versionControlKey = 'app_version_control'})
: _versionControlKey = versionControlKey;

static const String _versionControlKey = 'app_version_control';
late final String _versionControlKey;

/// Fetches the update information from the database.
@override
Expand Down
Loading

0 comments on commit fff286d

Please sign in to comment.