-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: github workflow action and testing
Signed-off-by: phanatagama <[email protected]>
- Loading branch information
1 parent
9129910
commit 6ac8de0
Showing
74 changed files
with
5,053 additions
and
1,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Flutter CI | ||
|
||
# This workflow is triggered on pushes to the repository. | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# on: push # Default will running for every branch. | ||
|
||
jobs: | ||
build: | ||
# This job will run on ubuntu virtual machine | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Setup Java environment in order to build the Android app. | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '8.0.302' | ||
|
||
# Setup the flutter environment. | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: 'stable' # 'dev', 'alpha', default to: 'stable' | ||
flutter-version: '2.2.3' # you can also specify exact version of flutter | ||
|
||
# Get flutter dependencies. | ||
- run: flutter pub get | ||
- run: flutter packages get | ||
|
||
# Check for any formatting issues in the code. | ||
- run: flutter format . --set-exit-if-changed . | ||
|
||
# Statically analyze the Dart code for any errors. | ||
- run: flutter analyze . | ||
|
||
# Run widget tests for our flutter project. | ||
- run: flutter test core movies tv | ||
|
||
# Build apk. | ||
- run: flutter build apk | ||
|
||
# Upload generated apk to the artifacts. | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-apk | ||
path: build/app/outputs/apk/release/app-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,98 @@ | ||
# a199-flutter-expert-project | ||
 | ||
 | ||
<p align="center"> | ||
<img src="https://img.shields.io/badge/dart-%230175C2.svg?style=for-the-badge&logo=dart&logoColor=white" /> | ||
<img src="https://img.shields.io/badge/Flutter-%2302569B.svg?style=for-the-badge&logo=Flutter&logoColor=white" /> | ||
<img src="https://img.shields.io/badge/firebase-%23039BE5.svg?style=for-the-badge&logo=firebase" /> | ||
<img src="https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white" /> | ||
<img src="https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white" /> | ||
<img src="https://img.shields.io/badge/Android%20Studio-3DDC84.svg?style=for-the-badge&logo=android-studio&logoColor=white" /> | ||
</p> | ||
<p align="center"> | ||
Ditonton adalah aplikasi yang menampilkan informasi film serta serial tv | ||
<br /> | ||
<a href="https://github.com/phanatagama/Ditonton/releases/download/v.1.0.0-beta/app-release.apk">Download App</a> | ||
· | ||
<a href="https://github.com/phanatagama/Ditonton/issues/new">Report Bug</a> | ||
· | ||
<a href="https://github.com/phanatagama/Ditonton/issues/new">Request Features</a> | ||
</p> | ||
|
||
## 💡 Background | ||
Dalam rangka menyelesaikan submission Menjadi Flutter Developer Expert, Project ini dibangun dengan mengikuti clean architecture | ||
dan menyesuaikan kriteria kelulusan kelas Dicoding. | ||
|
||
## ♻️ Project Goals | ||
Aplikasi ini dibuat dengan tujuan menyelesaikan submission @dicoding kelas Menjadi Flutter Developer Expert | ||
|
||
## 🤯 Challenges we faced | ||
Selama melakukan pengembangan diharuskan melakukan migrasi state management provider menjadi BloC/Cubit dan membuat beberapa testing, memastikan kode yang ditulis mengikuti konvensi yang tersedia dan menerapkan keamanan berupa SSL Pinning. | ||
|
||
## 🧐 How we built our project | ||
Ditonton adalah aplikasi mobile yang menggunakan Flutter sebagai framework. Data yang ditampilkan diambil melalui 'api.themovidb.org/3' kemudian menggunakan sqflite sebagai penyimpanan lokal. | ||
|
||
## 🛠️ Tech Stack Used | ||
| Dart | Flutter |Firebase | Android Studio | | ||
|------------|-------------|-------------|-------------| | ||
| <img src="https://avatars.githubusercontent.com/u/1609975?s=280&v=4" width="150"> | <img src="https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_500,q_auto:good,w_500/v1/gcs/platform-data-dsc/events/1_ilC2Aqp5sZd1wi0CopD1Hw_zT8WoJh.png" width="150"> | <img src="https://www.gstatic.com/devrel-devsite/prod/v84e6f6a61298bbae5bb110c196e834c7f21fe3fb34e722925433ddb936d280c9/firebase/images/touchicon-180.png" width="150"> | <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e3/Android_Studio_Icon_%282014-2019%29.svg/1200px-Android_Studio_Icon_%282014-2019%29.svg.png" width="150"> | | ||
|
||
Project ini telah terintegrasi dengan Firebase Analytics dan Firebase Crashlytics | ||
<!-- ### Extra Library --> | ||
<!-- - [GoogleFonts](https://pub.dev/packages/google_fonts) for Material-Design style --> | ||
|
||
|
||
<!-- ## 🔧 The problems and how we deal with it --> | ||
<!-- Tentu saja keterbatasan waktu adalah sebuah masalah bagi kami. Beberapa perencanaan harus kami tunda/hilangkan untuk mempersingkat waktu seperti pembangunan [REST API](https://github.com/MochArisandiJayanto/Flarax/blob/master/API_Design_Architecture.md) yang harus terhenti. Kami memutuskan untuk melakukan query secara langsung dengan database Firebase menggunakan future dan stream. --> | ||
|
||
## 🧑🎓 What we learned | ||
Membangun project dengan modular adalah hal baru bagi saya, di beberapa bagian saya perlu menuliskan testing terlebih dahulu seperti teori TDD. Penerapan SSL Pinning pada project flutter hingga integrasi project dengan firebase analytics & crashlytics menjadi pembelajaran yang cukup menyenangkan. | ||
|
||
## 🐾 Conventional Commit | ||
Dalam proyek ini, saya berusaha untuk mengikuti [konvensi commit](https://www.conventionalcommits.org/en/v1.0.0/) sehingga pesan commit lebih bersih dan lebih mudah dibaca. Saya pikir itu luar biasa dan memudahkan saya secara praktis untuk dapat mundur ke setiap penyebaran commit. | ||
|
||
<!-- ## 📘 Resource --> | ||
<!-- ### Image Assets --> | ||
<!-- - [Undraw](http://undraw.co) --> | ||
<!-- - [Unsplash](http://unsplash.com) --> | ||
|
||
<!-- ### Related Article --> | ||
<!-- - [Barang Menumpuk Tak Terpakai? Akali Dengan 5 Trik Ini | Orami](https://www.orami.co.id/magazine/barang-menumpuk-tak-terpakai-akali-dengan-5-trik-ini/) --> | ||
<!-- - [Bagaimana cara membuang barang bekas berukuran besar, misal kasur, kulkas, mesin cuci? Kemana perabot/barang bekasmu saat kamu membeli perabot baru? - Quora](https://id.quora.com/Bagaimana-cara-membuang-barang-bekas-berukuran-besar-misal-kasur-kulkas-mesin-cuci-Kemana-perabot-barang-bekasmu-saat-kamu-membeli-perabot-baru) --> | ||
<!-- - [Bagaimana caramu membuang barang-barang yang sudah tidak terpakai lagi (misalnya pakaian bekas yang sudah tidak layak pakai)? - Quora](https://id.quora.com/Bagaimana-caramu-membuang-barang-barang-yang-sudah-tidak-terpakai-lagi-misalnya-pakaian-bekas-yang-sudah-tidak-layak-pakai) --> | ||
<!-- - [Bagaimana cara membuang sampah ukuran besar seperti kasur dan lemari secara legal? - Quora](https://bit.ly/3eoe6rK) --> | ||
<!-- - [Cara Mendapatkan Barang Gratis Dari Internet - Blog Orang IT (helmykediri.com)](https://bit.ly/3FuCeVn) --> | ||
<!-- - [Barang Gratis Bisa Kamu Dapatkan di 6 Situs Ini Lho! (lifepal.co.id)](https://lifepal.co.id/media/doyan-berburu-barang-gratisan-cek-6-situs-nih/) --> | ||
|
||
<!-- ## 👁️ Preview/Screenshots --> | ||
|
||
<!-- - More Application Design in [Figma](https://www.figma.com/file/eISf5jqPckik2Js0NIm7TX/Flarax-App-Prototype?node-id=0%3A1) --> | ||
|
||
<!-- |  **Landing Page** |  **Login Page** |  **Register Page** |  **User Profile** | --> | ||
<!-- | :--: | :--: | :--: | :--: | --> | ||
<!-- |  **Home Page** |  **Detail Product** |  **Product Page** |  **Add/Edit Product** | --> | ||
<!-- | --> | ||
|
||
<!-- ## License --> | ||
<!-- This project is licensed under the GNU GPLv3. --> | ||
|
||
<!-- ## Contributors ✨ --> | ||
|
||
<!-- Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): --> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<!-- <table> --> | ||
<!-- <tr> --> | ||
<!-- <td align="center"><a href="https://github.com/phanatagama"><img src="https://avatars.githubusercontent.com/u/48324618?s=100?v=4" width="100px;" alt=""/><br /><sub><b>Cahyadi Setia Phanatagama</b></sub></a><br /><a href="https://github.com/MochArisandiJayanto/Flarax/commits?author=phanatagama" title="Code">💻</a> <a href="#infra-phanatagama" title="Infrastructure (Databases, Build-Tools, etc)">🚇</a></td> --> | ||
<!-- <td align="center"><a href="https://github.com/MochArisandiJayanto"><img src="https://avatars.githubusercontent.com/u/30518462?v=4?s=100" width="100px;" alt=""/><br /><sub><b>MOCH. ARISANDI JAYANTO</b></sub></a><br /><a href="https://github.com/MochArisandiJayanto/Flarax/commits?author=MochArisandiJayanto" title="Code">💻</a> <a href="#infra-mocharisandijayanto" title="Infrastructure (Build-Tools, etc)">🚇</a></td> --> | ||
<!-- <td align="center"><a href="https://github.com/mrgvnn"><img src="https://avatars.githubusercontent.com/u/81848181?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Samira Rahma Aziza</b></sub></a><br /><a href="https://github.com/MochArisandiJayanto/Flarax/commits?author=mrgvnn" title="Code">💻</a> <a href="#design-mrgvnn" title="Design">🎨</a></td> --> | ||
<!-- </tr> --> | ||
<!-- </table> --> | ||
|
||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.