Skip to content

junddao/flutter_clean_architecture_folder_brick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean_architecture_folders_miro

A brick to create Clean Architecture Folders.

Generated by mason 🧱

Getting Started 🚀

 mason make clean_architecture_folders

Variables ✨

Variable Description Required Type
name The App Title Yes string

Output 📦

Generated folder architecture

📦lib
 ┣ 📂core
 ┃ ┣ 📂error
 ┃ ┃ ┣ 📜exceptions.dart
 ┃ ┃ ┗ 📜failure.dart
 ┃ ┣ 📂model
 ┃ ┣ 📂presentation
 ┃ ┣ 📂provider
 ┃ ┣ 📂resources
 ┃ ┣ 📂routes
 ┃ ┣ 📂themes
 ┃ ┣ 📜app_core.dart
 ┃ ┗ 📜app_strings.dart
 ┣ 📂feature
 ┃ ┣ 📂home
 ┃ ┃ ┣ 📂data
 ┃ ┃ ┃ ┣ 📂datasources
 ┃ ┃ ┃ ┃ ┣ 📂local
 ┃ ┃ ┃ ┃ ┗ 📂remote
 ┃ ┃ ┃ ┣ 📂models
 ┃ ┃ ┃ ┣ 📂repositories
 ┃ ┃ ┣ 📂domain
 ┃ ┃ ┃ ┣ 📂entities
 ┃ ┃ ┃ ┣ 📂repositories
 ┃ ┃ ┃ ┗ 📂usecases
 ┃ ┃ ┗ 📂presentation
 ┃ ┃   ┣ 📂providers
 ┃ ┃   ┣ 📂pages
 ┃ ┃   ┗ 📂widgets
 ┃ ┗ 📂more
 ┣ 📜app.dart
 ┣ 📜flavors.dart
 ┣ 📜index.dart
 ┣ 📜main_dev.dart
 ┣ 📜main_prod.dart
 ┣ 📜main.dart

execute after install this brick

1. add multiDexEnable flag in build.gradle (app side)

alt text

2. set your firebase setting

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.dongnesosik"
        // You can update the following values to match your application needs.
        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

3. create flavor with firebase files

  • script.sh -> 5

4. create icon file for app

  • script.sh -> 6

About

프로젝트 시작시 mason으로 폴더 구조 생성

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors