Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mirland authored Sep 13, 2023
0 parents commit 2710f67
Show file tree
Hide file tree
Showing 251 changed files with 14,226 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.13.2",
"flavors": {}
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.freezed.dart linguist-generated=true
*.g.dart linguist-generated=true
*.gr.dart linguist-generated=true
pubspec.lock linguist-generated=true
Gemfile.lock linguist-generated=true
46 changes: 46 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Support for pub is in beta, and thus, we are aware of some limitations. For example, security updates are not supported in this release but will be in the future.
#
# Other known limitations:
#
# - No support for updating git-dependencies
# - If the version found is ignored (by dependabot config) no update will happen (even if, an earlier version could be used)
# - No support for private package repositories

version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: 'pub'
directory: '/'
schedule:
interval: 'daily'
open-pull-requests-limit: 2
commit-message:
prefix: 'chore: '
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
open-pull-requests-limit: 2
commit-message:
prefix: 'chore: '
- package-ecosystem: 'bundler'
directory: '/'
schedule:
interval: 'daily'
open-pull-requests-limit: 2
commit-message:
prefix: 'chore: '
- package-ecosystem: 'bundler'
directory: '/ios/'
schedule:
interval: 'daily'
open-pull-requests-limit: 2
commit-message:
prefix: 'chore: '
- package-ecosystem: 'bundler'
directory: '/android/'
schedule:
interval: 'daily'
open-pull-requests-limit: 2
commit-message:
prefix: 'chore: '
4 changes: 4 additions & 0 deletions .github/hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

printf "\e[33;1m%s\e[0m\n" 'Running the Pre-push checks'
./scripts/checks.sh
15 changes: 15 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"LABEL": {
"name": "Title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["fix: ", "feat: ", "docs: ", "refactor: ", "test: ", "chore: "],
"ignoreLabels" : ["meta"]
},
"MESSAGES": {
"success": "All OK",
"failure": "Failing CI test",
"notice": ""
}
}
55 changes: 55 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!---
Generic PR Template
Leave one the following titles if applies
-->

# :wrench: Bugfixes

# :recycle: Refactor

# :star: Feature

---

#### :pencil2: Description:

Add a description of the feature or bug you are tackling. First in high level perspective and then you can describe your solution. Include acceptance criteria, diagrams of the code, or anything else you consider that might help other developers understand your decisions.

---

#### :movie_camera: Screen record:

#### iOS

<p align="center">
<img src="https://link-to-image" width="300">
</p>

#### Android

<p align="center">
<img src="https://link-to-image" width="300">
</p>

---

#### :pushpin: Notes:

- Include pending tasks, TODOs, assumptions, or comments like 'Needs migrating', or 'Requires ENV vars: [..]'

---

#### :heavy_check_mark: Tasks:

- Include a medium-level tasking that summarizes the changes in the code

---

#### :warning: Warnings:

- Include a list of considerations for reviewers or future developers. For example:
- The feature in production triggers a service call so it will charge the account credit card
- The service X is mocked so this part is not tested

---
60 changes: 60 additions & 0 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Flutter CI
on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: dart-lang/[email protected]
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Cache FVM & Flutter
uses: actions/cache@v3
with:
path: /home/runner/fvm/versions/
key: ${{ runner.os }}-${{ hashFiles('**/fvm_config.json') }}
- name: Cache pub cache
uses: actions/cache@v3
with:
path: /home/runner/.pub-cache/
key: ${{ runner.os }}-pub-cache
- name: Install FVM && Flutter
run: dart pub global activate fvm --verbose && fvm install --verbose && fvm use --force --verbose
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Activate arb_utils
run: |
dart pub global activate arb_utils
- name: Get dependencies
uses: maierj/[email protected]
with:
lane: 'fetch_dependencies'
- name: 'Run lints'
uses: maierj/[email protected]
with:
lane: 'lints'
- name: 'Check generated code'
uses: maierj/[email protected]
with:
lane: 'ensure_no_change_in_generated_code'
- name: 'Run tests'
uses: maierj/[email protected]
with:
lane: 'tests'
- name: 'Build android app'
uses: maierj/[email protected]
with:
lane: 'android build_dev_debug_apk'
subdirectory: 'android'
19 changes: 19 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "PR Title Checker"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr-title-checker-config.json"
65 changes: 65 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# Mason
.mason/
mason-lock.json

# 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

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# Environment files
*.env
*.env.default

# Fvm
.fvm/flutter_sdk

# fastlane specific
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output
.bundle/
vendor/bundle/
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: 18116933e77adc82f80866c928266a5b4f1ed645
channel: stable

project_type: app
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.2
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

gem "fastlane"
gem 'fastlane-plugin-flutter_version'
gem 'cocoapods'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading

0 comments on commit 2710f67

Please sign in to comment.