Skip to content

Commit 7626211

Browse files
authored
Merge pull request #46 from nimblehq/release/0.1.0
[Release] 0.1.0
2 parents 06a59ef + 2abca76 commit 7626211

File tree

124 files changed

+4955
-85
lines changed

Some content is hidden

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

124 files changed

+4955
-85
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SECRET=
2+
REST_API_ENDPOINT=

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Team
2+
# @minhnimble is the Engineering Lead
3+
# @nkhanh44 is the Team Lead
4+
* @nkhanh44 @Thieurom @doannimble @minhnimble

.github/ISSUE_TEMPLATE/bug_template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ labels: "type : bug"
77

88
## Issue
99

10-
Describe the issue you are facing. Show us the implementation: screenshots, GIFs, etc.
11-
10+
Describe the issue you are facing. Show us the implementation: screenshots, gif, etc.
11+
1212
## Expected
1313

14-
Describe what should be the correct behavior.
15-
14+
Describe what should be the correct behaviour.
15+
1616
## Steps to reproduce
1717

1818
1.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: "Chore"
3-
about: "Open a chore issue for a minor update."
3+
about: "Open a Chore for minor update."
44
title: "Update "
55
labels: "type : chore"
66
---
77

88
## Why
99

10-
Describe the update in detail and why it is needed.
11-
10+
Describe the update details and why it's needed.
11+
1212
## Who Benefits?
1313

1414
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients...

.github/ISSUE_TEMPLATE/feature_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ labels: "type : feature"
77

88
## Why
99

10-
Describe the big picture of the feature and why it is needed.
11-
10+
Describe the big picture of the feature and why it's needed.
11+
1212
## Who Benefits?
1313

1414
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients...

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
## What happened 👀
44

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.
5+
Describe the big picture of your changes here to communicate to the team why we should accept this pull request.
66

77
## Insight 📝
88

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.
9+
Describe in details how to test the changes, which solution you tried but did not go with, referenced documentation is
10+
welcome as well.
1011

1112
## Proof Of Work 📹
1213

13-
Show us the implementation: screenshots, GIFs, etc.
14+
Show us the implementation: screenshots, gif, etc.
15+
16+
<img src="URL_GOES_HERE" width=200 />

.github/PULL_REQUEST_TEMPLATE/release_template.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
Link to the milestone on Github e.g. https://github.com/nimblehq/git-templates/milestone/41?closed=1
2-
or
3-
Link to the project management tool for the release
1+
Link to the milestone on Github e.g. https://github.com/nimblehq/survey-flutter/milestone/41?closed=1
2+
or Link to the project management tool for the release
43

54
## Features
65

76
Provide the ID and title of the issue in the section for each type (feature, chore and bug). The link is optional.
87

9-
- [sc-1234] As a user, I can log in
10-
or
11-
- [[sc-1234](https://app.shortcut.com/nimblehq/story/1234)] As a user, I can log in
8+
- [#1] As a user, I can log in or
9+
- [[#1](https://github.com/nimblehq/survey-flutter/issues/1)] As a user, I can log in
1210

1311
## Chores
1412
- Same structure as in ## Feature

.github/wiki/.keep

Whitespace-only changes.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Android - Deploy Production build to Firebase
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_deploy_android:
10+
name: Build & Deploy Android
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Java JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'adopt'
21+
java-version: '11'
22+
23+
- name: Set up Flutter environment
24+
uses: subosito/flutter-action@v2
25+
with:
26+
channel: 'stable'
27+
flutter-version: '3.10.5'
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: Set up .env
36+
env:
37+
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }}
38+
run: |
39+
echo $ENV_PRODUCTION > .env
40+
41+
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
42+
- name: Build Android apk
43+
run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER
44+
45+
- name: Deploy Android Production to Firebase
46+
uses: wzieba/[email protected]
47+
with:
48+
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_PRODUCTION }}
49+
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
50+
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
51+
file: build/app/outputs/flutter-apk/app-production-debug.apk
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Android - Deploy Production build to Play Store
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_deploy_android:
10+
name: Build & Deploy Android
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Java JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'adopt'
21+
java-version: '11'
22+
23+
- name: Set up Flutter environment
24+
uses: subosito/flutter-action@v2
25+
with:
26+
channel: 'stable'
27+
flutter-version: '3.10.5'
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: Set up .env
36+
env:
37+
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }}
38+
run: |
39+
echo $ENV_PRODUCTION > .env
40+
41+
- name: Build Production App Bundle
42+
run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER
43+
44+
- name: Upload Android Production Release bundle to Play Store
45+
uses: r0adkll/upload-google-play@v1
46+
with:
47+
serviceAccountJson: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
48+
packageName: co.nimblehq.khanhthieu.survey
49+
releaseFile: build/app/outputs/bundle/productionRelease/app-production-release.aab
50+
track: internal
51+
userFraction: 1.0
52+
whatsNewDirectory: .github/workflows/whatsnew

0 commit comments

Comments
 (0)