Skip to content

Commit

Permalink
Added files before it got deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHCJ committed Mar 9, 2024
0 parents commit 1c335da
Show file tree
Hide file tree
Showing 357 changed files with 46,156 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Editor configuration, see http://editorconfig.org
root = true

[*.dart]
max_line_length = 120
110 changes: 110 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Bug report
description: Create a bug report to help Quacker improve
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thank you for helping to make Quacker better by reporting a bug. :hugs:
Please fill in as much information as possible about your bug so that we don't have to play "information ping-pong" and can help you immediately.
- type: checkboxes
id: checklist
attributes:
label: "Checklist"
options:
- label: "I am able to reproduce the bug with the [latest version](https://github.com/thehcj/quacker/releases)."
required: true
- label: "I made sure that there are *no existing issues* - [open](https://github.com/thehcj/quacker/issues) or [closed](https://github.com/thehcj/quacker/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
required: true
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
required: true
- label: "This issue contains only one bug."
required: true

- type: input
id: app-version
attributes:
label: Affected version
description: "In which Quacker version did you encounter the bug?"
placeholder: "x.x.x+x - Can be seen in the app from the 'About' section in settings"
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce the bug
description: |
What did you do for the bug to show up?
If you can't cause the bug to show up again reliably (and hence don't have a proper set of steps to give us), please still try to give as many details as possible on how you think you encountered the bug.
placeholder: |
1. Go to '...'
2. Press on '....'
3. Swipe down to '....'
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: |
Tell us what you expect to happen.
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: |
Tell us what happens with the steps given above.
- type: textarea
id: screen-media
attributes:
label: Screenshots/Screen recordings
description: |
A picture or video is worth a thousand words.
If applicable, add screenshots or a screen recording to help explain your problem.
GitHub supports uploading them directly in the text box.
If your file is too big for Github to accept, try to compress it (ZIP-file) or feel free to paste a link to an image/video hoster here instead.
:heavy_exclamation_mark: DON'T POST SCREENSHOTS OF THE ERROR PAGE.
Instead, follow the instructions in the "Logs" section below.
- type: textarea
id: logs
attributes:
label: Logs
description: |
If your bug includes a crash (where you're shown the Error Report page with a bunch of info), tap on "Copy formatted report" at the bottom and paste it here.
- type: input
id: device-os-info
attributes:
label: Affected Android/Custom ROM version
description: |
With what operating system (+ version) did you encounter the bug?
placeholder: "Example: Android 12 / LineageOS 18.1"

- type: input
id: device-model-info
attributes:
label: Affected device model
description: |
On what device did you encounter the bug?
placeholder: "Example: Huawei P20 lite (ANE-LX1) / Samsung Galaxy S20"

- type: textarea
id: additional-information
attributes:
label: Additional information
description: |
Any other information you'd like to include, for instance that
* the affected device is foldable or a TV
* you have disabled all animations on your device
* your cat disabled your network connection
* ...
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: ❓ Question
url: https://github.com/thehcj/quacker/discussions/new?category=q-a
about: Ask about anything Quacker-related
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Feature request
description: Suggest an idea for Quacker
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
Thank you for helping to make Quacker better by suggesting a feature. :hugs:
Your ideas are highly welcome! The app is made for you, the users, after all.
- type: checkboxes
id: checklist
attributes:
label: "Checklist"
options:
- label: "I made sure that there are *no existing issues* - [open](https://github.com/thehcj/Quacker/issues) or [closed](https://github.com/thehcj/Quacker/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
required: true
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
required: true
- label: "This issue contains only one feature request."
required: true


- type: textarea
id: feature-description
attributes:
label: Feature description
description: |
Explain how you want the app's look or behavior to change to suit your needs.
validations:
required: true

- type: textarea
id: why-is-the-feature-requested
attributes:
label: Why do you want this feature?
description: |
Describe any problem or limitation you come across while using the app which would be solved by this feature.
validations:
required: true

- type: textarea
id: additional-information
attributes:
label: Additional information
description: Any other information you'd like to include, for instance sketches, mockups, pictures of cats, etc.
129 changes: 129 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
name: ci

on:
workflow_dispatch:
push:
branches:
- master

jobs:
android:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Clone the repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install and set up Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '14.x'

- name: Install and set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.2'
cache: true

- name: Set up signing key
run: echo $SIGNING_KEY | base64 -d > android/app/key.jks
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

- name: Cache build directory
uses: actions/cache@v3
with:
path: build
key: ${{ runner.os }}-build-${{ hashFiles('**/build') }}
restore-keys: |
${{ runner.os }}-build-
- name: Build
run: |
flutter clean
flutter config --no-analytics
flutter pub get
flutter pub run flutter_oss_licenses:generate.dart
flutter pub run intl_utils:generate
# Create a directory for our release APKs
mkdir -pv build/app/outputs/release
# Build our big boy APK, and move it into the release APKs folder
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons
mv build/app/outputs/flutter-apk/*-release.apk build/app/outputs/release
# Build our ABI-specific APKs and move them into the release APKs folder
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons --split-per-abi --target-platform=android-x64,android-arm,android-arm64
mv build/app/outputs/flutter-apk/*-release.apk build/app/outputs/release
env:
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PATH: key.jks

- name: Archive big APK
uses: actions/upload-artifact@v2
with:
name: apk
path: build/app/outputs/release/app-release.apk

- name: Archive arm APK
uses: actions/upload-artifact@v2
with:
name: apk-arm
path: build/app/outputs/release/app-armeabi-v7a-release.apk

- name: Archive arm64 APK
uses: actions/upload-artifact@v2
with:
name: apk-arm64
path: build/app/outputs/release/app-arm64-v8a-release.apk

- name: Archive x86_64 APK
uses: actions/upload-artifact@v2
with:
name: apk-x86_64
path: build/app/outputs/release/app-x86_64-release.apk

# ios:
# runs-on: macos-latest
# steps:
# - name: Clone the repository
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
#
# - name: Install and set up Java
# uses: actions/setup-java@v1
# with:
# java-version: '14.x'
#
# - name: Install and set up Flutter
# uses: subosito/flutter-action@v1
# with:
# flutter-version: '2.2.1'
#
# - name: Build
# run: |
# flutter config --no-analytics
# flutter pub get
# flutter pub run flutter_oss_licenses:generate.dart
# flutter build ipa --debug
# flutter build ipa --release

# - name: Archive debug APK
# uses: actions/upload-artifact@v2
# with:
# name: apk-debug
# path: build/app/outputs/flutter-apk/app-debug.apk
#
# - name: Archive release APK
# uses: actions/upload-artifact@v2
# with:
# name: apk-release
# path: build/app/outputs/flutter-ipa/iphoneos/app.ipa
# path: build/app/outputs/flutter-apk/app-release.apk
89 changes: 89 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: release

on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install and set up Java
uses: actions/setup-java@v1
with:
java-version: '14.x'

- name:
run: echo $SIGNING_KEY | base64 -d > android/app/key.jks
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

- name: Install and set up Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.10.2'

- name: Set env
if: github.event_name == 'push'
run: |
APP_VERSION=$(echo ${{github.ref_name}} | sed 's/v//g')
echo "APPLICATION_VERSION=$APP_VERSION" >> $GITHUB_ENV
APP_BUILD_BASE=300000000
COMMIT_NUMBER=$(git rev-list HEAD --count)
APP_BUILD_NUMBER=$((APP_BUILD_BASE+COMMIT_NUMBER))
echo "APPLICATION_BUILD_NUMBER=$APP_BUILD_NUMBER" >> $GITHUB_ENV
- name: Build APKs
run: |
flutter config --no-analytics
flutter pub get
flutter pub run flutter_oss_licenses:generate.dart
flutter pub run intl_utils:generate
# Create a directory for our release APKs
mkdir -pv build/app/outputs/release
# Build our big boy APK, and move it into the release APKs folder
if [[ ${{github.event_name}} == 'push' ]]; then
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons --build-name=${{env.APPLICATION_VERSION}} --build-number=${{env.APPLICATION_BUILD_NUMBER}}
else
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons
fi
mv build/app/outputs/apk/release/*.apk build/app/outputs/release
# Build our ABI-specific APKs and move them into the release APKs folder
if [[ ${{github.event_name}} == 'push' ]]; then
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons --split-per-abi --target-platform=android-x64,android-arm,android-arm64 --build-name=${{env.APPLICATION_VERSION}} --build-number=${{env.APPLICATION_BUILD_NUMBER}}
else
flutter build apk --dart-define=app.flavor=github --release --no-tree-shake-icons --split-per-abi --target-platform=android-x64,android-arm,android-arm64
fi
mv build/app/outputs/apk/release/*.apk build/app/outputs/release
env:
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PATH: key.jks

- name: Create release
id: upload-release-assets
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: false
files: |
build/app/outputs/release/*.apk
- name: Publish the release
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.upload-release-assets.outputs.id }}
Loading

0 comments on commit 1c335da

Please sign in to comment.