-
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.
- Loading branch information
0 parents
commit 4b45d24
Showing
102 changed files
with
4,934 additions
and
0 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,199 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
*.env* | ||
!*.env*.example | ||
*_env.g.dart | ||
|
||
# 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/ | ||
|
||
# Visual Studio Code launch profile is not included in version control | ||
# because it may contain machine specific configuration. | ||
# .vscode/launch.json | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
coverage/ | ||
pubspec_overrides.yaml | ||
.mason/ | ||
mason-lock.json | ||
|
||
# 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 | ||
|
||
# Flutter Version Management | ||
.fvm/flutter_sdk | ||
|
||
# Monarch related | ||
.monarch/ | ||
.vscode/settings.json | ||
|
||
# Generated files | ||
**/android/local.properties | ||
**/ios/Flutter/flutter_export_environment.sh | ||
**/ios/Flutter/Generated.xcconfig | ||
**/macos/Flutter/ephemeral/Flutter-Generated.xcconfig | ||
**/macos/Flutter/ephemeral/flutter_export_environment.sh | ||
|
||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# Visual Studio Code related | ||
.classpath | ||
.project | ||
.settings/ | ||
|
||
# Flutter repo-specific | ||
/bin/cache/ | ||
/bin/internal/bootstrap.bat | ||
/bin/internal/bootstrap.sh | ||
/bin/mingit/ | ||
/dev/benchmarks/mega_gallery/ | ||
/dev/bots/.recipe_deps | ||
/dev/bots/android_tools/ | ||
/dev/devicelab/ABresults*.json | ||
/dev/docs/doc/ | ||
/dev/docs/flutter.docs.zip | ||
/dev/docs/lib/ | ||
/dev/docs/pubspec.yaml | ||
/dev/integration_tests/**/xcuserdata | ||
/dev/integration_tests/**/Pods | ||
/packages/flutter/coverage/ | ||
version | ||
analysis_benchmark.json | ||
|
||
# packages file containing multi-root paths | ||
.packages.generated | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
**/generated_plugin_registrant.dart | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
build/ | ||
linked_*.ds | ||
unlinked.ds | ||
unlinked_spec.ds | ||
# pubspec.lock | ||
|
||
# Android related | ||
**/android/**/gradle-wrapper.jar | ||
.gradle/ | ||
**/android/captures/ | ||
**/android/gradlew | ||
**/android/gradlew.bat | ||
**/android/local.properties | ||
**/android/**/GeneratedPluginRegistrant.java | ||
**/android/key.properties | ||
*.jks | ||
|
||
# iOS/XCode related | ||
**/ios/**/*.mode1v3 | ||
**/ios/**/*.mode2v3 | ||
**/ios/**/*.moved-aside | ||
**/ios/**/*.pbxuser | ||
**/ios/**/*.perspectivev3 | ||
**/ios/**/*sync/ | ||
**/ios/**/.sconsign.dblite | ||
**/ios/**/.tags* | ||
**/ios/**/.vagrant/ | ||
**/ios/**/DerivedData/ | ||
**/ios/**/Icon? | ||
**/ios/**/Pods/ | ||
**/ios/**/.symlinks/ | ||
**/ios/**/profile | ||
**/ios/**/xcuserdata | ||
**/ios/.generated/ | ||
**/ios/Flutter/.last_build_id | ||
**/ios/Flutter/App.framework | ||
**/ios/Flutter/Flutter.framework | ||
**/ios/Flutter/Flutter.podspec | ||
**/ios/Flutter/Generated.xcconfig | ||
**/ios/Flutter/ephemeral | ||
**/ios/Flutter/app.flx | ||
**/ios/Flutter/app.zip | ||
**/ios/Flutter/flutter_assets/ | ||
**/ios/Flutter/flutter_export_environment.sh | ||
**/ios/ServiceDefinitions.json | ||
**/ios/Runner/GeneratedPluginRegistrant.* | ||
**/Podfile.lock | ||
|
||
# macOS | ||
**/Flutter/ephemeral/ | ||
**/Pods/ | ||
**/macos/Flutter/GeneratedPluginRegistrant.swift | ||
**/macos/Flutter/ephemeral | ||
**/xcuserdata/ | ||
|
||
# Windows | ||
**/windows/flutter/generated_plugin_registrant.cc | ||
**/windows/flutter/generated_plugin_registrant.h | ||
**/windows/flutter/generated_plugins.cmake | ||
|
||
# Linux | ||
**/linux/flutter/generated_plugin_registrant.cc | ||
**/linux/flutter/generated_plugin_registrant.h | ||
**/linux/flutter/generated_plugins.cmake | ||
|
||
# Coverage | ||
coverage/ | ||
|
||
# Symbols | ||
app.*.symbols | ||
|
||
# Exceptions to above rules. | ||
!**/ios/**/default.mode1v3 | ||
!**/ios/**/default.mode2v3 | ||
!**/ios/**/default.pbxuser | ||
!**/ios/**/default.perspectivev3 |
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,36 @@ | ||
# 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: "ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
- platform: android | ||
create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
- platform: ios | ||
create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
- platform: web | ||
create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
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,101 @@ | ||
# riverpod_rnd | ||
|
||
A new Flutter project. | ||
|
||
## Getting Started | ||
|
||
### Requirements | ||
|
||
- Dart: 3.1.0 | ||
- Flutter SDK: 3.13.0 | ||
|
||
# Building from Source | ||
|
||
- Sync dependencies | ||
|
||
```bash | ||
flutter pub get | ||
``` | ||
|
||
- Run code generator | ||
|
||
```bash | ||
dart run build_runner build --delete-conflicting-outputs | ||
``` | ||
|
||
- Generate translation | ||
|
||
```bash | ||
dart run slang | ||
``` | ||
|
||
- Run the app with your favorite IDE/PDE. or from shell: | ||
|
||
```bash | ||
flutter run | ||
``` | ||
|
||
## Libraries | ||
|
||
### Melos | ||
|
||
This project uses [Melos](https://pub.dev/packages/melos) to manage the monorepo. | ||
|
||
```bash | ||
flutter pub get | ||
# Install melos globally | ||
dart pub global activate melos | ||
# Setup local dependency overrides for packages in the monorepo | ||
melos bootstrap | ||
|
||
# Or if dart executables are not on your path | ||
dart pub global run melos bootstrap | ||
``` | ||
|
||
#### Scripts | ||
|
||
Pub: | ||
|
||
- `melos run pub` - Run `pub get` in all packages. | ||
- `melos run dart:pkg` - Run `dart pub get` in the selected dart package. | ||
- `melos run flutter:pkg` - Run `flutter pub get` in the selected flutter package. | ||
- `melos run upgrade` - Run `pub upgrade` in all packages. | ||
- `melos run upgrade:pkg` - Run `pub upgrade` in the selected package. | ||
|
||
Code Generation: | ||
|
||
- `dart run build_runner watch -d` - Watch and generate code for the app, does not work with subpackages | ||
- `melos run generate` - Run `build_runner build` in all packages that depend on `build_runner`. | ||
- `melos run generate:pkg` - Run `build_runner build` for a specific package (except `envied` packages). | ||
- `melos run watch:pkg` - Run `build_runner watch` for a specific package (except `envied` packages). It will not work if you choose "all" in the package selection prompt. | ||
- `melos run assets` - Run `assets_gen build` in all packages that depend on `assets_gen`. | ||
- `melos run assets:pkg` - Run `assets_gen build` for a specific package. | ||
- `melos run env` - Run `build_runner` in all packages that depends on `envied`. | ||
- `melos run env:pkg` - Run `build_runner` in a specific package that depends on `envied`. | ||
- `melos run loc` - Run `flutter gen-l10n` in the localization package to generate | ||
the localized strings from the arb files. | ||
|
||
### Protip | ||
|
||
- Run [build_runner](https://pub.dev/packages/build_runner) after editing some areas that needs a code generator such as entities and routing. | ||
- Run [slang](https://pub.dev/packages/slang) after editing translation files (\*.i18n.json). | ||
- [build_runner](https://pub.dev/packages/build_runner) and [slang](https://pub.dev/packages/slang) has some features that will be helpful during development such as auto-rebuild and translation analysis, so it's highly recommended to check the documentations and familiarize yourself with it. | ||
|
||
# Translation | ||
|
||
### Translating untranslated strings | ||
|
||
- Run slang analyzer to check for missing translations | ||
|
||
```bash | ||
dart run slang analyze --outdir=i18n | ||
``` | ||
|
||
- Open [i18n/\_missing_translations.json](i18n/_missing_translations.json) and then translate your language of choice. | ||
|
||
- After editing the file, you can apply it to the actual json translation file by running: | ||
|
||
```bash | ||
dart run slang apply --outdir=i18n | ||
|
||
dart run slang analyze --outdir=i18n # update analyzation result files |
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,17 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
linter: | ||
rules: | ||
|
||
analyzer: | ||
plugins: | ||
- custom_lint | ||
exclude: | ||
- "**/*.g.dart" | ||
- "**/*.gr.dart" | ||
- "**/*.freezed.dart" | ||
- "**/*.config.dart" | ||
- "**/*.gen.dart" | ||
|
||
errors: | ||
invalid_annotation_target: ignore |
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,13 @@ | ||
gradle-wrapper.jar | ||
/.gradle | ||
/captures/ | ||
/gradlew | ||
/gradlew.bat | ||
/local.properties | ||
GeneratedPluginRegistrant.java | ||
|
||
# Remember to never publicly share your keystore. | ||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app | ||
key.properties | ||
**/*.keystore | ||
**/*.jks |
Oops, something went wrong.