Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordeveloper committed May 27, 2021
0 parents commit b279b64
Show file tree
Hide file tree
Showing 174 changed files with 10,603 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ignore:
- '**/**/**/*.g.dart'
- '**/**/**/*.freezed.dart'
- '**/**/**/**/*.g.dart'
- '**/**/**/**/*.freezed.dart'
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_KEY=
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: release

on:
push:
tags:
- 'v*'

env:
flutter_version: "2.2.0"

jobs:
build_deploy:
name: Build apk and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.flutter_version }}
channel: 'stable'
- run: flutter pub get
# build Android version
- name: Create env file
run: |
touch .env
echo API_KEY=${{ secrets.API_KEY }} >> .env
cat .env
- run: flutter build apk --split-per-abi
# This action will create a github release and optionally upload an artifact to it.
# https://github.com/ncipollo/release-action
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.extract-release-notes.outputs.release_notes }}

128 changes: 128 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#The name of your workflow.
name: test
# Trigger the workflow on push or pull request
on: [push,pull_request_review]
env:
flutter_version: "2.2.0"

#A workflow run is made up of one or more jobs. Jobs run in parallel by default.
jobs:

unit-testing:
#The type of machine to run the job on. [windows,macos, ubuntu , self-hosted]
runs-on: ubuntu-latest
#sequence of tasks called
steps:
# The branch or tag ref that triggered the workflow will be checked out.
# https://github.com/actions/checkout
- uses: actions/checkout@v1
# Setup a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v1
with:
flutter-version: '${{ env.flutter_version }}'
channel: 'stable'
- name: Create env file
run: |
touch .env
echo API_KEY=${{ secrets.API_KEY }} >> .env
cat .env
- run: flutter pub get
# run static analys code
- run: flutter analyze
# run flutter widgets tests and unit tests
- run: flutter test --coverage
# Upload coverage reports to Codecov
# https://github.com/marketplace/actions/codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info
ios-integration:
#creates a build matrix for your jobs
strategy:
#set of different configurations of the virtual environment.
matrix:
device:
- "iPhone 8 (14.4)"
- "iPhone 12 Pro Max (14.4)"
fail-fast: false
runs-on: macos-latest
#Identifies any jobs that must complete successfully before this job will run.
needs: unit-testing
steps:
- name: List all simulators
run: xcrun instruments -s
# get UUID simulator and boot a simulator on mac from command line
- name: Start Simulator
run: |
UDID=$(
xcrun instruments -s |
awk \
-F ' *[][]' \
-v 'device=${{ matrix.device }}' \
'$1 == device { print $2 }'
)
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- uses: actions/checkout@v1
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v1
with:
flutter-version: '${{ env.flutter_version }}'
channel: 'stable'

- name: Create env file
run: |
touch .env
echo API_KEY=${{ secrets.API_KEY }} >> .env
cat .env
- run: flutter pub get
# Run flutter integrate tests
- name: Run Flutter Driver tests
run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart

android-integration:
runs-on: macos-latest
#creates a build matrix for your jobs
strategy:
#set of different configurations of the virtual environment.
matrix:
api-level: [21, 29]
target: [default]
needs: unit-testing
steps:
- uses: actions/checkout@v1
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- uses: subosito/flutter-action@v1
with:
flutter-version: '${{ env.flutter_version }}'
channel: 'stable'
- name: Create env file
run: |
touch .env
echo API_KEY=${{ secrets.API_KEY }} >> .env
cat .env
- name: Run Flutter Driver tests
#GitHub Action for installing, configuring and running Android Emulators (work only Mac OS)
#https://github.com/ReactiveCircus/android-emulator-runner
uses: reactivecircus/android-emulator-runner@v1
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
script: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# 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
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Folder generated by flutter test --coverage
coverage/

.env
10 changes: 10 additions & 0 deletions .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: 1aafb3a8b9b0c36241c5f5b34ee914770f015818
channel: stable

project_type: app
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "app_crypto",
"request": "launch",
"type": "dart"
},
{
"name": "App Crypto",
"program": "lib/main.dart",
"request": "launch",
"type": "dart",
"args": []
}
]
}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]

## [1.0.0] - 2021-05-27
### First version

## Features
- API REST (CryptoWatch)
- Linear Graph View (Hour, Day, Week, etc)
- OHLC Graph
- Search
- Light / Dark Theme
- Multi Lenguage
- Exchange Selection
- Favorite Pair


21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Salvador Valverde

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit b279b64

Please sign in to comment.