Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/upstream/master' into Fix_…
Browse files Browse the repository at this point in the history
…passkeys_logout_issue
  • Loading branch information
ilya-deriv committed Jun 28, 2024
2 parents 070255a + 01aec1e commit ccd1454
Show file tree
Hide file tree
Showing 26 changed files with 1,027 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/all_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Set SSH Key
uses: webfactory/ssh-agent@fd34b8dee206fe74b288a5e61bc95fba2f1911eb
with:
ssh-private-key: ${{secrets.SSH_PRIVATE_KEY}}
ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY }}
${{ secrets.SSH_CHART_PRIVATE_KEY }}
- name: Install Melos and run pub get
uses: bluefireteam/melos-action@dd3c344d731938d2ab2567a261f54a19a68b5f6a
Expand Down
30 changes: 30 additions & 0 deletions packages/deriv_mobile_chart_wrapper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
.dart_tool/
.packages
build/
10 changes: 10 additions & 0 deletions packages/deriv_mobile_chart_wrapper/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
channel: stable

project_type: package
3 changes: 3 additions & 0 deletions packages/deriv_mobile_chart_wrapper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* Setup the package.
1 change: 1 addition & 0 deletions packages/deriv_mobile_chart_wrapper/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: Add your license here.
21 changes: 21 additions & 0 deletions packages/deriv_mobile_chart_wrapper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
A wrapper package around package _**deriv_chart**_ to implement any functionality specific to mobile and can be wrapped around the main chart package.
Since the main [chart package](https://github.com/regentmarkets/flutter-chart) is used in both mobile app and the web platform, for any feature that is specific to mobile, to keep the size of the main chart package small, we implement it in this package.

## Features
Menu and interfaces to add/remove indicators and drawing tools.

## Dependencies
- [deriv_chart](https://github.com/regentmarkets/flutter-chart)
- [deriv_theme](https://github.com/regentmarkets/flutter-deriv-packages/tree/master/packages/deriv_theme)
- [deriv_localizations](https://github.com/regentmarkets/flutter-deriv-packages/tree/master/packages/deriv_localizations)
- [deriv_ui](https://github.com/regentmarkets/flutter-deriv-packages/tree/master/packages/deriv_ui)

## Get started
```
dependencies:
deriv_mobile_chart_wrapper:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_mobile_chart_wrapper
ref: [latest_version]
```
4 changes: 4 additions & 0 deletions packages/deriv_mobile_chart_wrapper/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
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.
4 changes: 4 additions & 0 deletions packages/deriv_mobile_chart_wrapper/assets/icons/ic_macd.svg
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.
5 changes: 5 additions & 0 deletions packages/deriv_mobile_chart_wrapper/assets/icons/ic_rsi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
library deriv_mobile_chart_wrapper;

export 'src/mobile_chart_wrapper.dart';
export 'src/mobile_tools_ui/tools_controller.dart';
export 'src/mobile_tools_ui/indicator_menu_button.dart';
export 'package:deriv_chart/deriv_chart.dart';
7 changes: 7 additions & 0 deletions packages/deriv_mobile_chart_wrapper/lib/src/assets.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const String iconAssetsFolder = 'assets/icons/';

const String macdIcon = '${iconAssetsFolder}ic_macd.svg';
const String rsiIcon = '${iconAssetsFolder}ic_rsi.svg';
const String bollingerBandsIcon = '${iconAssetsFolder}ic_bollinger_bands.svg';
const String movingAverageIcon = '${iconAssetsFolder}ic_moving_average.svg';
const String indicatorsMenuIcon = '${iconAssetsFolder}ic_indicators_menu.svg';
12 changes: 12 additions & 0 deletions packages/deriv_mobile_chart_wrapper/lib/src/extensions.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'package:deriv_localizations/l10n/generated/deriv_mobile_chart_wrapper/deriv_mobile_chart_wrapper_localizations.dart';
import 'package:deriv_theme/deriv_theme.dart';
import 'package:flutter/material.dart';

/// Extension for [BuildContext].
extension ContextExtension on BuildContext {
/// Get DerivMobileChartWrapperLocalizations.
DerivMobileChartWrapperLocalizations get mobileChartWrapperLocalizations =>
DerivMobileChartWrapperLocalizations.of(this);

ThemeProvider get themeProvider => DerivThemeProvider.getTheme(this);
}
Loading

0 comments on commit ccd1454

Please sign in to comment.