-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from milind-mevada-stl/develop
Develop
- Loading branch information
Showing
33 changed files
with
1,527 additions
and
225 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 |
---|---|---|
@@ -1,16 +1,57 @@ | ||
# flutter_base_project | ||
# Flutter base Scaffold Project | ||
|
||
Scaffold project with all basic setup. | ||
This is a base flutter scaffold project that has all configuration & setup created. So we can reduce the efforts of basic project setup & project level boilerplate code. | ||
|
||
## Getting Started | ||
## Features | ||
|
||
### Flavors (Flutter + Native) | ||
Production, Staging, Development (with abstract properties) | ||
Modes: Debug, Release, Profile. | ||
|
||
### Localization | ||
Localization support based on [Easy Localization](https://pub.dev/packages/easy_localization) | ||
|
||
### Custom Logger (Default Sentry) | ||
Abstract layer for a custom logger. It has default implementation of [Sentry](https://sentry.io/welcome/). | ||
It can again be replaced with any other services. | ||
|
||
### Firebase Crashalytics | ||
Crashalytics that works in Release and Profile Mode. | ||
|
||
### Analytics (Default Firebase) | ||
Abstract layer for a Custom event logging. It has default implementation of Firebase Analytics. It can again be replaced with any other services. | ||
|
||
### Firebase Performance Monitor | ||
Firebase performance integration to check App freezing, network latency monitoring. (Integrated firebase_performance_interceptor) | ||
|
||
### Remote Config | ||
Integration of firebase remote config. | ||
|
||
### Pedantic | ||
Analysis_options setup for strict lint checks. | ||
|
||
### Flavor-wise installable build | ||
Flavor wise application-id overridden. So that same application with different flavor can be installed simultaneously. | ||
|
||
### App Update Prompts (Flexible + Immediate) | ||
Force upgrade setup based on Firebase Remote config. | ||
|
||
Currently it has two configuration | ||
1. Latest App Version (Build Number) | ||
2. Latest Stable App Version (Build Number) | ||
|
||
If latest app version is greater then current version it will trigger Flexible Update (Snackbar Promot.) | ||
|
||
If current app version is below latest stable version, then it will trigger a Immediate (Force) update. | ||
|
||
### Other Useful dependencies | ||
- [Connectivity](https://pub.dev/packages/connectivity) | ||
- [Shared Preferences](https://pub.dev/packages/shared_preferences) | ||
- [Path Provider](https://pub.dev/packages/path_provider) | ||
- [Provider](https://pub.dev/packages/provider) | ||
- [Permission Handler](https://pub.dev/packages/permission_handler) | ||
- [Cached Network Image](https://pub.dev/packages/cached_network_image) | ||
|
||
This project is a starting point for a Flutter application. | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
|
||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. |
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,30 @@ | ||
include: package:pedantic/analysis_options.yaml | ||
|
||
analyzer: | ||
exclude: | ||
- lib/**.g.dart | ||
|
||
linter: | ||
rules: | ||
- camel_case_types | ||
- empty_constructor_bodies | ||
- cancel_subscriptions | ||
- close_sinks | ||
- unnecessary_await_in_return | ||
- unnecessary_new | ||
- unnecessary_null_aware_assignments | ||
- no_duplicate_case_values | ||
- throw_in_finally | ||
- avoid_print | ||
- control_flow_in_finally | ||
- unnecessary_statements | ||
- always_declare_return_types | ||
- always_put_control_body_on_new_line | ||
- list_remove_unrelated_type | ||
- avoid_renaming_method_parameters | ||
- avoid_void_async | ||
- empty_catches | ||
- prefer_final_in_for_each | ||
- prefer_is_not_empty | ||
- prefer_is_empty | ||
- unawaited_futures |
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
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
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
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,139 @@ | ||
workflows: | ||
development: | ||
name: Development | ||
environment: | ||
flutter: stable | ||
cache: | ||
cache_paths: | ||
- $FCI_BUILD_DIR/build | ||
scripts: | ||
- | | ||
# fetch codemagic helper scripts | ||
rm -rf ~/codemagic-build-scripts | ||
git clone https://github.com/NevercodeHQ/codemagic-build-scripts.git ~/codemagic-build-scripts/ --depth 1 | ||
- | | ||
# set up debug keystore | ||
rm -f ~/.android/debug.keystore | ||
keytool -genkeypair \ | ||
-alias androiddebugkey \ | ||
-keypass android \ | ||
-keystore ~/.android/debug.keystore \ | ||
-storepass android \ | ||
-dname 'CN=Android Debug,O=Android,C=US' \ | ||
-keyalg 'RSA' \ | ||
-keysize 2048 \ | ||
-validity 10000 | ||
- | | ||
# set up local properties | ||
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties" | ||
- flutter packages pub get | ||
- flutter build appbundle --release -flavor development -t main_dev.dart | ||
- | | ||
# generate universal apk signed with debug key | ||
'~/codemagic-build-scripts/android/generate-universal-apks' \ | ||
--ks ~/.android/debug.keystore \ | ||
--ks-pass android \ | ||
--ks-key-alias androiddebugkey \ | ||
--key-pass android \ | ||
--pattern 'build/**/outputs/**/*.aab' | ||
artifacts: | ||
- build/**/outputs/**/*.apk | ||
- build/**/outputs/**/*.aab | ||
- build/**/outputs/**/mapping.txt | ||
- flutter_drive.log | ||
publishing: | ||
email: | ||
recipients: | ||
- milind.mevada@solutelabs.com | ||
staging: | ||
name: Staging | ||
environment: | ||
flutter: stable | ||
cache: | ||
cache_paths: | ||
- $FCI_BUILD_DIR/build | ||
scripts: | ||
- | | ||
# fetch codemagic helper scripts | ||
rm -rf ~/codemagic-build-scripts | ||
git clone https://github.com/NevercodeHQ/codemagic-build-scripts.git ~/codemagic-build-scripts/ --depth 1 | ||
- | | ||
# set up debug keystore | ||
rm -f ~/.android/debug.keystore | ||
keytool -genkeypair \ | ||
-alias androiddebugkey \ | ||
-keypass android \ | ||
-keystore ~/.android/debug.keystore \ | ||
-storepass android \ | ||
-dname 'CN=Android Debug,O=Android,C=US' \ | ||
-keyalg 'RSA' \ | ||
-keysize 2048 \ | ||
-validity 10000 | ||
- | | ||
# set up local properties | ||
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties" | ||
- flutter packages pub get | ||
- flutter build appbundle --release -flavor staging -t main_staging.dart | ||
- | | ||
# generate universal apk signed with debug key | ||
'~/codemagic-build-scripts/android/generate-universal-apks' \ | ||
--ks ~/.android/debug.keystore \ | ||
--ks-pass android \ | ||
--ks-key-alias androiddebugkey \ | ||
--key-pass android \ | ||
--pattern 'build/**/outputs/**/*.aab' | ||
artifacts: | ||
- build/**/outputs/**/*.apk | ||
- build/**/outputs/**/*.aab | ||
- build/**/outputs/**/mapping.txt | ||
- flutter_drive.log | ||
publishing: | ||
email: | ||
recipients: | ||
- milind.mevada@solutelabs.com | ||
production: | ||
name: Production | ||
environment: | ||
flutter: stable | ||
cache: | ||
cache_paths: | ||
- $FCI_BUILD_DIR/build | ||
scripts: | ||
- | | ||
# fetch codemagic helper scripts | ||
rm -rf ~/codemagic-build-scripts | ||
git clone https://github.com/NevercodeHQ/codemagic-build-scripts.git ~/codemagic-build-scripts/ --depth 1 | ||
- | | ||
# set up debug keystore | ||
rm -f ~/.android/debug.keystore | ||
keytool -genkeypair \ | ||
-alias androiddebugkey \ | ||
-keypass android \ | ||
-keystore ~/.android/debug.keystore \ | ||
-storepass android \ | ||
-dname 'CN=Android Debug,O=Android,C=US' \ | ||
-keyalg 'RSA' \ | ||
-keysize 2048 \ | ||
-validity 10000 | ||
- | | ||
# set up local properties | ||
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties" | ||
- flutter packages pub get | ||
- flutter build appbundle --release -flavor production -t main_prod.dart | ||
- | | ||
# generate universal apk signed with debug key | ||
'~/codemagic-build-scripts/android/generate-universal-apks' \ | ||
--ks ~/.android/debug.keystore \ | ||
--ks-pass android \ | ||
--ks-key-alias androiddebugkey \ | ||
--key-pass android \ | ||
--pattern 'build/**/outputs/**/*.aab' | ||
artifacts: | ||
- build/**/outputs/**/*.apk | ||
- build/**/outputs/**/*.aab | ||
- build/**/outputs/**/mapping.txt | ||
- flutter_drive.log | ||
publishing: | ||
email: | ||
recipients: | ||
- milind.mevada@solutelabs.com |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
Oops, something went wrong.