Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dyakov committed May 27, 2024
1 parent 730e7f0 commit da11932
Show file tree
Hide file tree
Showing 90 changed files with 1,600 additions and 1,460 deletions.
File renamed without changes.
34 changes: 22 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.VSCodeCounter

# Miscellaneous
*.class
*.log
Expand All @@ -11,12 +9,14 @@
.history
.svn/
.gradle/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
.env

# VS Code related
.vscode/
Expand All @@ -33,8 +33,14 @@
/build/
pubspec.lock

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
/android/app/keystore
/android/key.properties

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols
Expand All @@ -43,14 +49,18 @@ app.*.symbols
app.*.map.json

# Code generation
# **/*.g.dart
# **/*.gr.dart
# **/*.gen.dart
# **/*.hive.dart
# **/*.freezed.dart
# **/*.select.dart
**/*.g.dart
**/*.gr.dart
**/*.gen.dart
**/*.freezed.dart
**/*.select.dart
**/*.swagger.dart
**/*.chopper.dart
**/*.hive.dart
**/*.mocks.dart
lib/src/core/gen/swagger/output/**
lib/src/core/gen/l10n/**
coverage/**

# Flutter Version Manager related
.fvm/flutter_sdk

coverage/
.fvm/flutter_sdk
13 changes: 0 additions & 13 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# 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: "ba393198430278b6595976de84fe170f553cc728"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
Expand All @@ -18,13 +12,6 @@ migration:
- platform: ios
create_revision: ba393198430278b6595976de84fe170f553cc728
base_revision: ba393198430278b6595976de84fe170f553cc728

# 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'
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Zahar Podyakov
Copyright (c) 2024 Zakhar Podyakov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
82 changes: 82 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Without FVM

gen:
@echo "Running build runner"
@flutter pub run build_runner build --delete-conflicting-outputs

init:
@echo "Getting latest dependencies"
@flutter pub get
@echo "Running build runner"
@flutter pub run build_runner build --delete-conflicting-outputs
@echo "Generating automated localizations"
@flutter gen-l10n

get:
@echo "Getting latest dependencies"
@flutter pub get

upgrade:
@echo "Upgrading dependencies"
@flutter pub upgrade

upgrademajor:
@echo "Upgrading dependencies --major-versions"
@flutter pub upgrade --major-versions

clean:
@echo "Cleaning the project"
@flutter clean
@make finit

format:
@echo "Formatting code"
@dart fix --apply
@dart format -l 120 --fix .

genicon:
@echo "Generating app icons"
@flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons.yaml

ln:
@echo "Generating automated localizations"
@flutter gen-l10n

# With FVM

fgen:
@echo "Running build runner"
@fvm flutter pub run build_runner build --delete-conflicting-outputs

finit:
@echo "Getting latest dependencies"
@fvm flutter pub get
@echo "Running build runner"
@fvm flutter pub run build_runner build --delete-conflicting-outputs
@echo "Generating automated localizations"
@fvm flutter gen-l10n

fget:
@echo "Getting latest dependencies"
@fvm flutter pub get

fupgrade:
@echo "Upgrading dependencies"
@fvm flutter pub upgrade

fupgrademajor:
@echo "Upgrading dependencies --major-versions"
@fvm flutter pub upgrade --major-versions

fclean:
@echo "Cleaning the project"
@fvm flutter clean
@make finit

fgenicon:
@echo "Generating app icons"
@fvm flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons.yaml

fln:
@echo "Generating automated localizations"
@fvm flutter gen-l10n
59 changes: 47 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,52 @@
# Shop

## Screenshots
# Приложение магазина на Flutter

<p align="left" width="100%">
<img src="https://user-images.githubusercontent.com/80569772/208469437-292222dd-0ea3-4706-89bf-d0989b28a063.png" width="32%"/>
<img src="https://user-images.githubusercontent.com/80569772/208469492-57b27a8b-28b5-425d-a01c-329240e8c5df.png" width="32%"/>
<img src="https://user-images.githubusercontent.com/80569772/208469513-bafd991a-6155-414a-b6e9-9d1cf4bff890.png" width="32%"/>
<img src="https://user-images.githubusercontent.com/80569772/208469437-292222dd-0ea3-4706-89bf-d0989b28a063.png" width="30%"/>
<img src="https://user-images.githubusercontent.com/80569772/208469492-57b27a8b-28b5-425d-a01c-329240e8c5df.png" width="30%"/>
<img src="https://user-images.githubusercontent.com/80569772/208469513-bafd991a-6155-414a-b6e9-9d1cf4bff890.png" width="30%"/>
</p>

## Stack
---
## Документация
- [Adding Core Dependency]()
- [Architecture]()
- [Automation]()
- [Best Practices]()
- [Branch Design]()
- [Code Generation]()
- [Code Review]()
- [Commit Design]()
- [Creating New Features]()
- [Files Structure]()
- [Git Flow]()
- [Layers]()
- [Pull Request Design]()
- [Tools]()

# Запуск приложения
## Программы
Перед запуском проекта необходимо установить:
- [Choco](https://chocolatey.org/install) (с помощью данной утилиты можно установить все остальные программы)
- [Make](https://www.gnu.org/software/make/#download) (необходимо для работы автоматизации команд)
- [Flutter](https://docs.flutter.dev/get-started/install) (`choco install flutter`)
- [FVM](https://fvm.app/) ([`choco install fvm --version 2.4.2-dev0 -y`](https://github.com/leoafarias/fvm/issues/557))
- [Dart](https://dart.dev/get-dart) (`choco install dart-sdk`)
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) (`choco install git.install`)
- [Flutter Gen](https://pub.dev/packages/flutter_gen) (`dart pub global activate flutter_gen`)


## Commands
После установки всех необходимых программ нужно выполнить следующие команды:

git clone https://github.com/p0dyakov/shop.git
cd shop
make init

или

- flutter
- dart
- stream_bloc
- freezed
- auto_route
git clone https://github.com/p0dyakov/shop.git
cd shop
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter gen-l10n

Loading

0 comments on commit da11932

Please sign in to comment.