Skip to content

Commit 8218551

Browse files
Merge pull request #46 from hoangnguyen92dn/release/0.1.0
Release - 0.1.0
2 parents 805fbf3 + 655b934 commit 8218551

File tree

136 files changed

+5726
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+5726
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Team
2+
* @hoangnguyen92dn @Wadeewee
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "Bug Report"
3+
about: "You found something that is not working. Report it so that it can be fixed. 👷‍"
4+
title: "Fix: "
5+
labels: "type : bug"
6+
---
7+
8+
## Issue
9+
10+
Describe the issue you are facing. Show us the implementation: screenshots, gif, etc.
11+
12+
## Expected
13+
14+
Describe what should be the correct behaviour.
15+
16+
## Steps to reproduce
17+
18+
1.
19+
2.
20+
3.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: "Chore"
3+
about: "Open a Chore for minor update."
4+
title: "Update "
5+
labels: "type : chore"
6+
---
7+
8+
## Why
9+
10+
Describe the update details and why it's needed.
11+
12+
## Who Benefits?
13+
14+
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: "Feature"
3+
about: "Open a feature issue to add new functionalities."
4+
title: "Add "
5+
labels: "type : feature"
6+
---
7+
8+
## Why
9+
10+
Describe the big picture of the feature and why it's needed.
11+
12+
## Who Benefits?
13+
14+
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients...
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: "Story"
3+
about: "Open a feature story"
4+
title: "[Type] As a user, I can "
5+
labels: "type : feature"
6+
---
7+
8+
## Why
9+
10+
Describe the idea of the user story as in what the motive of the user story is.
11+
12+
## Acceptance Criteria
13+
14+
List down how the user story will be tested and what criteria are necessary for the user story to be accepted.
15+
16+
## Design
17+
18+
(Optional) Add design screenshots or Figma links for UI/UX-related stories.
19+
20+
## Resources
21+
22+
(Optional) Add useful resources such as links to documentation, implementation ideas, or best practices.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Close # https://github.com/hoangnguyen92dn/survey-flutter-ic/issues/??
2+
3+
## What happened 👀
4+
5+
Provide a description of the changes this pull request brings to the codebase. Additionally, when the pull request is still being worked on, a checklist of the planned changes is welcome to track progress.
6+
7+
## Insight 📝
8+
9+
Describe in detail why this solution is the most appropriate, which solution you tried but did not go with, and how to test the changes. References to relevant documentation are welcome as well.
10+
11+
## Proof Of Work 📹
12+
13+
Show us the implementation: screenshots, gif, etc.
14+
15+
<img src="URL_GOES_HERE" width=200 />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Link to the milestone on Github e.g. https://github.com/hoangnguyen92dn/survey-flutter-ic/milestone/41?closed=1
2+
or Link to the project management tool for the release
3+
4+
## Features
5+
6+
Provide the ID and title of the issue in the section for each type (feature, chore and bug). The link is optional.
7+
8+
- [#1] As a user, I can log in or
9+
- [[#1](https://github.com/hoangnguyen92dn/survey-flutter-ic/issues/1)] As a user, I can log in
10+
11+
## Chores
12+
- Same structure as in ## Feature
13+
14+
## Bugs
15+
- Same structure as in ## Feature
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Android - Deploy Production build to Firebase
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release/**'
7+
8+
jobs:
9+
build_and_deploy_android:
10+
name: Build & Deploy Android
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup Java JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: 'adopt'
19+
java-version: '11'
20+
21+
- name: Setup Flutter environment
22+
uses: subosito/flutter-action@v2
23+
with:
24+
channel: 'stable'
25+
flutter-version: '3.7.7'
26+
27+
- name: Get flutter dependencies
28+
run: flutter pub get
29+
30+
- name: Run code generator.
31+
run: flutter packages pub run build_runner build --delete-conflicting-outputs
32+
33+
- name: Setup .env
34+
env:
35+
ENV_STAGING: ${{ secrets.ENV }}
36+
run: |
37+
echo $ENV > .env
38+
39+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
40+
- name: Build Android apk
41+
run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER
42+
43+
- name: Deploy Android Staging to Firebase
44+
uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0
45+
with:
46+
appId: ${{secrets.FIREBASE_ANDROID_APP_ID}}
47+
serviceCredentialsFileContent: ${{secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON}}
48+
groups: nimble
49+
file: build/app/outputs/flutter-apk/app-production-debug.apk
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Android - Deploy Staging build to Firebase
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build_and_deploy_android:
10+
name: Build & Deploy Android
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup Java JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: 'adopt'
19+
java-version: '11'
20+
21+
- name: Setup Flutter environment
22+
uses: subosito/flutter-action@v2
23+
with:
24+
channel: 'stable'
25+
flutter-version: '3.7.7'
26+
27+
- name: Get flutter dependencies
28+
run: flutter pub get
29+
30+
- name: Run code generator.
31+
run: flutter packages pub run build_runner build --delete-conflicting-outputs
32+
33+
- name: Setup .env.staging
34+
env:
35+
ENV_STAGING: ${{ secrets.ENV_STAGING }}
36+
run: |
37+
echo $ENV_STAGING > .env.staging
38+
39+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
40+
- name: Build Android apk
41+
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER
42+
43+
- name: Deploy Android Staging to Firebase
44+
uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0
45+
with:
46+
appId: ${{secrets.FIREBASE_ANDROID_APP_ID_STAGING}}
47+
serviceCredentialsFileContent: ${{secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON}}
48+
groups: nimble
49+
file: build/app/outputs/flutter-apk/app-staging-debug.apk
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: iOS - Deploy Production build to TestFlight
2+
on:
3+
# Trigger the workflow on push action
4+
push:
5+
branches:
6+
- 'release/**'
7+
8+
jobs:
9+
build_and_upload_to_testflight:
10+
name: Build And Upload iOS Application To TestFlight
11+
runs-on: macOS-latest
12+
env:
13+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
14+
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
15+
steps:
16+
- uses: actions/checkout@v1
17+
18+
- name: Install SSH key
19+
uses: webfactory/ssh-agent@v0.4.1
20+
with:
21+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
22+
23+
- name: Setup Flutter environment
24+
uses: subosito/flutter-action@v2
25+
with:
26+
channel: 'stable'
27+
flutter-version: '3.7.7'
28+
29+
- name: Get flutter dependencies
30+
run: flutter pub get
31+
32+
- name: Run code generator
33+
run: flutter packages pub run build_runner build --delete-conflicting-outputs
34+
35+
- name: Bundle install
36+
run: cd ./ios && bundle install
37+
38+
- name: Pod install
39+
run: cd ./ios && bundle exec pod install
40+
41+
- name: Match AppStore
42+
run: cd ./ios && bundle exec fastlane sync_appstore_production_signing
43+
44+
- name: Deploy to TestFlight
45+
run: |
46+
cd ./ios && bundle exec fastlane build_and_upload_testflight_production_app

0 commit comments

Comments
 (0)