├── .DS_Store ├── .github └── workflows │ └── search_micro_app.yml ├── .vscode └── launch.json ├── README.md ├── __docs ├── 1.png ├── 2.png └── micro-front-ends.drawio ├── base_app ├── .github │ └── workflows │ │ ├── ci-cd.yml │ │ └── ci.yml ├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── Runner-Bridging-Header.h ├── lib │ └── main.dart ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ └── MainMenu.xib │ │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements ├── pubspec.lock └── pubspec.yaml ├── micro_apps ├── home │ ├── .flutter-plugins │ ├── .flutter-plugins-dependencies │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── lib │ │ ├── app │ │ │ ├── home_events.dart │ │ │ ├── home_inject.dart │ │ │ ├── home_resolver.dart │ │ │ └── presenter │ │ │ │ ├── home_view.dart │ │ │ │ └── widgets │ │ │ │ └── bottom_sheet.dart │ │ └── home.dart │ └── pubspec.yaml ├── login │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── lib │ │ ├── app │ │ │ ├── login_events.dart │ │ │ ├── login_inject.dart │ │ │ ├── login_resolver.dart │ │ │ └── presenter │ │ │ │ └── login_view.dart │ │ └── login.dart │ └── pubspec.yaml └── search │ ├── .flutter-plugins │ ├── .flutter-plugins-dependencies │ ├── .github │ └── workflows │ │ └── ci.yml │ ├── .gitignore │ ├── README.md │ ├── lib │ ├── app │ │ ├── presenter │ │ │ ├── search_button.dart │ │ │ └── search_results.dart │ │ ├── search_events.dart │ │ ├── search_inject.dart │ │ └── search_resolver.dart │ └── search.dart │ ├── pubspec.yaml │ └── test │ └── some_test.dart ├── micro_commons └── dependencies │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── lib │ └── dependencies.dart │ └── pubspec.yaml └── micro_core ├── .flutter-plugins ├── .flutter-plugins-dependencies ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── lib ├── micro_core.dart ├── services │ ├── custom_event_bus │ │ └── custom_event_bus.dart │ └── routing │ │ ├── generate_route.dart │ │ ├── route_events.dart │ │ ├── routes.dart │ │ ├── routing.dart │ │ └── routing_transitions.dart ├── src │ ├── base_app.dart │ ├── micro_app.dart │ ├── micro_core_utils.dart │ └── widgets_registry.dart └── utils │ ├── enum.dart │ └── usecases │ ├── README.md │ ├── failures.dart │ └── usecase.dart └── pubspec.yaml /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/.DS_Store -------------------------------------------------------------------------------- /.github/workflows/search_micro_app.yml: -------------------------------------------------------------------------------- 1 | name: CI [Search Mico App] # <- change micro app name here 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - develop 7 | - master 8 | - main 9 | 10 | defaults: 11 | run: 12 | working-directory: ./micro_apps/search # <- change micro app folder name here 13 | 14 | jobs: 15 | labelPR: 16 | name: Label PR With Repo(s) 17 | runs-on: ubuntu-latest 18 | steps: 19 | - uses: TinkurLab/monorepo-pr-labeler-action@3.1.0 20 | name: Label PRs 21 | env: 22 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 23 | BASE_DIRS: 'micro_apps' 24 | 25 | flutter_test: 26 | name: Run Flutter analyze and test 27 | runs-on: ubuntu-latest 28 | steps: 29 | - uses: actions/checkout@v2 30 | - uses: actions/setup-java@v1 31 | with: 32 | java-version: "12.x" 33 | - uses: subosito/flutter-action@v2 34 | with: 35 | flutter-version: '2.8.0' 36 | channel: "stable" 37 | - run: flutter clean 38 | - run: flutter pub get 39 | - run: flutter analyze 40 | - run: flutter format --dry-run --set-exit-if-changed lib/ 41 | - run: flutter format --dry-run --set-exit-if-changed test/ 42 | - run: flutter test --coverage 43 | - run: flutter test --machine > test-results.json 44 | - uses: dorny/test-reporter@v1.5.0 45 | with: 46 | name: test-results 47 | path: ./micro_apps/search/test-results.json # <- change micro app folder name here 48 | reporter: flutter-json 49 | # - uses: VeryGoodOpenSource/very_good_coverage@v1.2.0 50 | # with: 51 | # min_coverage: 40 52 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "base_app", 9 | "cwd": "base_app", 10 | "request": "launch", 11 | "type": "dart" 12 | }, 13 | { 14 | "name": "base_app (profile mode)", 15 | "cwd": "base_app", 16 | "request": "launch", 17 | "type": "dart", 18 | "flutterMode": "profile" 19 | }, 20 | { 21 | "name": "micro_core", 22 | "cwd": "micro_core", 23 | "request": "launch", 24 | "type": "dart" 25 | }, 26 | { 27 | "name": "micro_core (profile mode)", 28 | "cwd": "micro_core", 29 | "request": "launch", 30 | "type": "dart", 31 | "flutterMode": "profile" 32 | }, 33 | { 34 | "name": "home", 35 | "cwd": "micro_apps/home", 36 | "request": "launch", 37 | "type": "dart" 38 | }, 39 | { 40 | "name": "home (profile mode)", 41 | "cwd": "micro_apps/home", 42 | "request": "launch", 43 | "type": "dart", 44 | "flutterMode": "profile" 45 | }, 46 | { 47 | "name": "login", 48 | "cwd": "micro_apps/login", 49 | "request": "launch", 50 | "type": "dart" 51 | }, 52 | { 53 | "name": "login (profile mode)", 54 | "cwd": "micro_apps/login", 55 | "request": "launch", 56 | "type": "dart", 57 | "flutterMode": "profile" 58 | } 59 | ] 60 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Micro Front Ends Architecture 2 | 3 | 4 | This is a proposal of a micro front end implementation for Flutter apps. 5 | 6 | As in per the micro services architecture, the micro apps can't know about the existence of other micro apps. 7 | 8 | They must be as simple as possible and be responsible for only one task of a subdomain (DDD). 9 | 10 | It uses **Events** for communication between micro apps and also a **Router Manager** for generating and implementing the routing system. 11 | 12 | 13 | See the diagrams below for a better overview. 14 | 15 | 16 | 17 | 18 | 19 | ## Example 20 | 21 | Run the app from the `base_app/` directory. 22 | 23 | ## Creating a Micro App 24 | 25 | To create a micro app you can user the [**Flutter Micro Front End Scaffolding Tool**](https://github.com/nobrefelipe/flutter-micro-front-end-scaffolding-tool). 26 | 27 | 28 | Click on the link above and follow installation instructions, then in your micro apps folder run: 29 | ``` 30 | $ scaffold mf 31 | ``` 32 | 33 | 34 | ## Communication between micro front ends 35 | 36 | The communication between micro front ends occurs via Events. 37 | 38 | Every micro app can register as many events as they need. The events are registred in the main app via the micro app resolver. 39 | ```dart 40 | // login_app_resolver.dart 41 | @override 42 | void initEventListeners() { 43 | CustomEventBus.on((event) { 44 | print('LOGGED OUT'); 45 | }); 46 | } 47 | ``` 48 | 49 | 50 | ### **Registering an event** 51 | 52 | When you create a micro app with the `scaffold cli` it will create a `*_events.dart` file for you (eg.: search_events.dart) with some dummy events registred there to be used as examples. 53 | 54 | Here is where you should register all events for your micro app. 55 | 56 | ```dart 57 | // search_events.dart 58 | 59 | class SearchDummyEvent extends RouteEvent { 60 | final String user; 61 | SearchDummyEvent(this.user); 62 | } 63 | 64 | class SearchNotFountEvent extends RouteEvent{} 65 | ``` 66 | 67 | Then you need to export the events, so they are made available for the whole app. 68 | 69 | We can export the events as functions that receive parameters that will be passed to the event itself or as getters. 70 | 71 | ```dart 72 | // search_events.dart 73 | 74 | class SearchEvents extends RouteEvent { 75 | RouteEvent dummyEvent(String user) => SearchDummyEvent(user); 76 | RouteEvent get searchNotFountEvent => SearchNotFountEvent(); 77 | // More Search Events here 78 | } 79 | ``` 80 | 81 | We listen to events using the CustomEventBus class. 82 | 83 | The code below listens to the `UserLoggedInEvent` and navigates to the home page as a reaction. 84 | ```dart 85 | CustomEventBus.on((event) { 86 | Routing.pushNamed(Routes.home, arguments: event); 87 | }); 88 | ``` 89 | 90 | ## **Navigation** 91 | 92 | Routing between micro front ends are managed by the Routing class. 93 | 94 | We must register every route of the system in Routes. 95 | 96 | ```dart 97 | // Routes 98 | class Routes extends Enum { 99 | static Routes home = Routes(HomeResolver().microAppName); 100 | } 101 | 102 | // Navigate to home 103 | Routing.pushNamed(Routes.home, arguments: someArgs); 104 | 105 | ``` 106 | ### **Passing Arguments** 107 | 108 | When you navigate using named routes you can pass arguments via contructor when you set up the routes for the micro app. 109 | 110 | In the **micro app resolver** you register the routes in the `routes` getter and also define the arguments the view will receive. 111 | 112 | The arguments must be of type `RouteEvent`. This is because we can navigate using the `Routing` class or via `Event`. 113 | 114 | ```dart 115 | // home_resolver.dart 116 | 117 | @override 118 | Map get routes => { 119 | microAppName: (context, args) => HomeView(args as UserLoggedInEvent), //home_view.dart 120 | }; 121 | 122 | ``` 123 | 124 | And you can get the argument passed like so: 125 | 126 | ```dart 127 | //home_view.dart 128 | 129 | class HomeView extends StatelessWidget { 130 | 131 | final UserLoggedInEvent args; 132 | HomeView(this.args); 133 | 134 | //... 135 | } 136 | ``` 137 | 138 | Then when you need to navigate to the Home Micro App: 139 | 140 | ```dart 141 | // See Using Micro Apps section below to konw how to register routes. 142 | 143 | Routing.pushNamed( 144 | Routes.home, 145 | arguments: RouteEvents.homeEvents.userLoggedInEvent('Felipe'), 146 | ); 147 | ``` 148 | 149 | 150 | 151 | ### **Route Tansitions** 152 | 153 | You can use define the route transition for a micro app like so: 154 | ```dart 155 | //micro_app_resolver.dart 156 | 157 | @override 158 | TransitionType get transitionType => TransitionType.slideUp; 159 | ``` 160 | 161 | 162 | `TransitionType` is an enum with predefined transitions: 163 | ```dart 164 | enum TransitionType { 165 | defaultTransition, 166 | none, 167 | fade, 168 | slideDown, 169 | slideUp, 170 | slideLeft, 171 | slideRight, 172 | } 173 | ``` 174 | 175 | 176 | 177 | ## Using Micro Apps 178 | When you create a micro app you need to register it in two places. 179 | 180 | This step is done manually so we can make available the right naming routes and events throughout the app. 181 | 182 | * In the `base_app` (main.dart) `microApps` getter: 183 | ```dart 184 | @override 185 | List get microApps => [ 186 | //Register Micro Apps Resolvers here 187 | LoginResolver(), 188 | HomeResolver(), 189 | SearchResolver(), 190 | ]; 191 | ``` 192 | * In the `routes.dart` in `micro_core/lib/services/routing/`: 193 | ```dart 194 | class Routes extends Enum { 195 | Routes(String value) : super(value); 196 | 197 | //Register Micro Apps routes here 198 | static Routes home = Routes(HomeResolver().microAppName); 199 | } 200 | 201 | class RouteEvents { 202 | 203 | //Register Micro Apps events here 204 | static LoginEvents get loginEvents => LoginResolver().microAppEvents(); 205 | } 206 | 207 | ``` 208 | Then we can use the routes and events like this: 209 | ```dart 210 | // Navigate to Login VIew 211 | Routing.pushNamed(Routes.login); 212 | 213 | // Emit UserLoggedOutEvent 214 | CustomEventBus.emit(RouteEvents.loginEvents.userLoggedOutEvent); 215 | 216 | ``` 217 | ## Using a Micro App as a Widget 218 | Sometimes you might need to export your micro app as a widget, meaning that you might not have an initial route for that or it's simply not a view. 219 | 220 | For instance, you can have a `search_micro_app.dart` that exports a search text field that will navigate to a seach results page upon tapping on it. 221 | 222 | In this case you can use the `microAppWidget()` method of your micro app. This method will export a widget that can be used by other micro apps. 223 | Eg.: 224 | ```dart 225 | // in SearchMicroAppResolver 226 | @override 227 | Widget microAppWidget() => SearchButton(); 228 | ``` 229 | The `microAppWidget()` method will be registred on the `WidgetsRegistry` when the base app is built and will be available to be used across the application like so: 230 | ```dart 231 | // in home_micro_app.dart 232 | Column: ( 233 | children: [ 234 | // Outputs the search micro app widget. 235 | // note: the Home micro app has no idea what this will output. 236 | // The WidgetsRegistry is generated when the app builds. 237 | // This means we can include a Widget dynamicaly based on what an api tells us. 238 | WidgetsRegistry['/search'], 239 | ] 240 | ) 241 | 242 | ``` 243 | This gives us a very powefull tool for **Feature Toggle** and **AB Testing**. The API can respond with a dynamic value for the widget making it easy to toggle a feature from the back end or showing different widgets based on the user. 244 | ```dart 245 | final String topBarWidget = someApiRespose(); // search 246 | WidgetsRegistry[topBarWidget], 247 | ``` 248 | Immagine we have a search API and somehow it breaks. Instead of showing erros to the user or breaking the app, we could just make that endpoint return another 249 | widget that could replace it for the time being. 250 | -------------------------------------------------------------------------------- /__docs/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/__docs/1.png -------------------------------------------------------------------------------- /__docs/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/__docs/2.png -------------------------------------------------------------------------------- /base_app/.github/workflows/ci-cd.yml: -------------------------------------------------------------------------------- 1 | name: CI/CD 2 | 3 | on: 4 | push: 5 | tags: 6 | - * 7 | 8 | jobs: 9 | flutter_test: 10 | name: Run Flutter analyze and test 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v2 14 | - uses: actions/setup-java@v1 15 | with: 16 | java-version: "12.x" 17 | - uses: subosito/flutter-action@v2 18 | with: 19 | java-version: "12.x" 20 | channel: "stable" 21 | - run: flutter pub get 22 | - run: flutter analyze 23 | - run: flutter format --dry-run --set-exit-if-changed lib/ 24 | - run: flutter format --dry-run --set-exit-if-changed test/ 25 | - run: flutter test --coverage 26 | - run: flutter test --machine > test-results.json 27 | - uses: dorny/test-reporter@v1.4.2 28 | with: 29 | name: test-results 30 | path: test-results.json 31 | reporter: flutter-json 32 | - uses: VeryGoodOpenSource/very_good_coverage@v1.1.1 33 | with: 34 | min_coverage: 0 35 | 36 | build_ios: 37 | name: Build Flutter (iOS) 38 | needs: [flutter_test] 39 | runs-on: macos-latest 40 | steps: 41 | - uses: actions/checkout@v2 42 | - uses: actions/setup-java@v1 43 | with: 44 | java-version: "12.x" 45 | - uses: subosito/flutter-action@v2 46 | with: 47 | java-version: "12.x" 48 | channel: "stable" 49 | - run: flutter pub get 50 | - run: flutter clean 51 | - run: flutter build ios --release --no-codesign 52 | 53 | build_appbundle: 54 | name: Build Flutter (Android) 55 | needs: [flutter_test] 56 | runs-on: ubuntu-latest 57 | steps: 58 | - uses: actions/checkout@v2 59 | - uses: actions/setup-java@v1 60 | with: 61 | java-version: "12.x" 62 | - uses: subosito/flutter-action@v2 63 | with: 64 | java-version: "12.x" 65 | channel: "stable" 66 | - run: flutter pub get 67 | - run: flutter clean 68 | - run: flutter build appbundle 69 | - name: Upload appbundle 70 | uses: actions/upload-artifact@v2.1.4 71 | with: 72 | name: appbundle 73 | path: build/app/outputs/bundle/release/app-release.aab -------------------------------------------------------------------------------- /base_app/.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - develop 7 | - master 8 | pull_request: 9 | branches: 10 | - develop 11 | - master 12 | 13 | jobs: 14 | flutter_test: 15 | name: Run Flutter analyze and test 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v2 19 | - uses: actions/setup-java@v1 20 | with: 21 | java-version: "12.x" 22 | - uses: subosito/flutter-action@v2 23 | with: 24 | flutter-version: '2.8.0' 25 | channel: "stable" 26 | - run: flutter pub get 27 | - run: flutter analyze 28 | - run: flutter format --dry-run --set-exit-if-changed lib/ 29 | - run: flutter format --dry-run --set-exit-if-changed test/ 30 | - run: flutter test --coverage 31 | - run: flutter test --machine > test-results.json 32 | - uses: dorny/test-reporter@v1.4.2 33 | with: 34 | name: test-results 35 | path: test-results.json 36 | reporter: flutter-json 37 | - uses: VeryGoodOpenSource/very_good_coverage@v1.1.1 38 | with: 39 | min_coverage: 0 -------------------------------------------------------------------------------- /base_app/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /base_app/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /base_app/README.md: -------------------------------------------------------------------------------- 1 | # base_app 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /base_app/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /base_app/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /base_app/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /base_app/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /base_app/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - shared_preferences (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `Flutter`) 8 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: Flutter 13 | shared_preferences: 14 | :path: ".symlinks/plugins/shared_preferences/ios" 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 18 | shared_preferences: 5033afbb22d372e15aff8ff766df9021b845f273 19 | 20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c 21 | 22 | COCOAPODS: 1.11.2 23 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | E6ECBA43CAD6B9AB0D63327A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 585B1441282B9AA9AC97F036 /* Pods_Runner.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 585B1441282B9AA9AC97F036 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 8DF683D01670E92A2199D3B4 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | B0073E55FC9B3EEE5F1BDC63 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 49 | E81633D8A92932BC6F63AEF4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | E6ECBA43CAD6B9AB0D63327A /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 38380E5CAE5822AA25FEA607 /* Pods */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 8DF683D01670E92A2199D3B4 /* Pods-Runner.debug.xcconfig */, 68 | E81633D8A92932BC6F63AEF4 /* Pods-Runner.release.xcconfig */, 69 | B0073E55FC9B3EEE5F1BDC63 /* Pods-Runner.profile.xcconfig */, 70 | ); 71 | name = Pods; 72 | path = Pods; 73 | sourceTree = ""; 74 | }; 75 | 42DABF452E1E7CE95826C228 /* Frameworks */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 585B1441282B9AA9AC97F036 /* Pods_Runner.framework */, 79 | ); 80 | name = Frameworks; 81 | sourceTree = ""; 82 | }; 83 | 9740EEB11CF90186004384FC /* Flutter */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 90 | ); 91 | name = Flutter; 92 | sourceTree = ""; 93 | }; 94 | 97C146E51CF9000F007C117D = { 95 | isa = PBXGroup; 96 | children = ( 97 | 9740EEB11CF90186004384FC /* Flutter */, 98 | 97C146F01CF9000F007C117D /* Runner */, 99 | 97C146EF1CF9000F007C117D /* Products */, 100 | 38380E5CAE5822AA25FEA607 /* Pods */, 101 | 42DABF452E1E7CE95826C228 /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 97C146EF1CF9000F007C117D /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146EE1CF9000F007C117D /* Runner.app */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 97C146F01CF9000F007C117D /* Runner */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 119 | 97C147021CF9000F007C117D /* Info.plist */, 120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 124 | ); 125 | path = Runner; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | 937747DFD605BE0350CEDD0F /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | 7AAD074C42DD79318D9CF37A /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1300; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 214 | }; 215 | 7AAD074C42DD79318D9CF37A /* [CP] Embed Pods Frameworks */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputFileListPaths = ( 221 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 222 | ); 223 | name = "[CP] Embed Pods Frameworks"; 224 | outputFileListPaths = ( 225 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 230 | showEnvVarsInLog = 0; 231 | }; 232 | 937747DFD605BE0350CEDD0F /* [CP] Check Pods Manifest.lock */ = { 233 | isa = PBXShellScriptBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | inputFileListPaths = ( 238 | ); 239 | inputPaths = ( 240 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 241 | "${PODS_ROOT}/Manifest.lock", 242 | ); 243 | name = "[CP] Check Pods Manifest.lock"; 244 | outputFileListPaths = ( 245 | ); 246 | outputPaths = ( 247 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | shellPath = /bin/sh; 251 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 252 | showEnvVarsInLog = 0; 253 | }; 254 | 9740EEB61CF901F6004384FC /* Run Script */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Run Script"; 262 | outputPaths = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | DEVELOPMENT_TEAM = 37U25CB54V; 360 | ENABLE_BITCODE = NO; 361 | INFOPLIST_FILE = Runner/Info.plist; 362 | LD_RUNPATH_SEARCH_PATHS = ( 363 | "$(inherited)", 364 | "@executable_path/Frameworks", 365 | ); 366 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseApp; 367 | PRODUCT_NAME = "$(TARGET_NAME)"; 368 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 369 | SWIFT_VERSION = 5.0; 370 | VERSIONING_SYSTEM = "apple-generic"; 371 | }; 372 | name = Profile; 373 | }; 374 | 97C147031CF9000F007C117D /* Debug */ = { 375 | isa = XCBuildConfiguration; 376 | buildSettings = { 377 | ALWAYS_SEARCH_USER_PATHS = NO; 378 | CLANG_ANALYZER_NONNULL = YES; 379 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 380 | CLANG_CXX_LIBRARY = "libc++"; 381 | CLANG_ENABLE_MODULES = YES; 382 | CLANG_ENABLE_OBJC_ARC = YES; 383 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 384 | CLANG_WARN_BOOL_CONVERSION = YES; 385 | CLANG_WARN_COMMA = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 388 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 389 | CLANG_WARN_EMPTY_BODY = YES; 390 | CLANG_WARN_ENUM_CONVERSION = YES; 391 | CLANG_WARN_INFINITE_RECURSION = YES; 392 | CLANG_WARN_INT_CONVERSION = YES; 393 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 394 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 398 | CLANG_WARN_STRICT_PROTOTYPES = YES; 399 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = dwarf; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 417 | GCC_WARN_UNDECLARED_SELECTOR = YES; 418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 419 | GCC_WARN_UNUSED_FUNCTION = YES; 420 | GCC_WARN_UNUSED_VARIABLE = YES; 421 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 422 | MTL_ENABLE_DEBUG_INFO = YES; 423 | ONLY_ACTIVE_ARCH = YES; 424 | SDKROOT = iphoneos; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | }; 427 | name = Debug; 428 | }; 429 | 97C147041CF9000F007C117D /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ALWAYS_SEARCH_USER_PATHS = NO; 433 | CLANG_ANALYZER_NONNULL = YES; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 443 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 444 | CLANG_WARN_EMPTY_BODY = YES; 445 | CLANG_WARN_ENUM_CONVERSION = YES; 446 | CLANG_WARN_INFINITE_RECURSION = YES; 447 | CLANG_WARN_INT_CONVERSION = YES; 448 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 453 | CLANG_WARN_STRICT_PROTOTYPES = YES; 454 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 455 | CLANG_WARN_UNREACHABLE_CODE = YES; 456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 458 | COPY_PHASE_STRIP = NO; 459 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 460 | ENABLE_NS_ASSERTIONS = NO; 461 | ENABLE_STRICT_OBJC_MSGSEND = YES; 462 | GCC_C_LANGUAGE_STANDARD = gnu99; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 465 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 466 | GCC_WARN_UNDECLARED_SELECTOR = YES; 467 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 468 | GCC_WARN_UNUSED_FUNCTION = YES; 469 | GCC_WARN_UNUSED_VARIABLE = YES; 470 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 471 | MTL_ENABLE_DEBUG_INFO = NO; 472 | SDKROOT = iphoneos; 473 | SUPPORTED_PLATFORMS = iphoneos; 474 | SWIFT_COMPILATION_MODE = wholemodule; 475 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 476 | TARGETED_DEVICE_FAMILY = "1,2"; 477 | VALIDATE_PRODUCT = YES; 478 | }; 479 | name = Release; 480 | }; 481 | 97C147061CF9000F007C117D /* Debug */ = { 482 | isa = XCBuildConfiguration; 483 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 484 | buildSettings = { 485 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 486 | CLANG_ENABLE_MODULES = YES; 487 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 488 | DEVELOPMENT_TEAM = 37U25CB54V; 489 | ENABLE_BITCODE = NO; 490 | INFOPLIST_FILE = Runner/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = ( 492 | "$(inherited)", 493 | "@executable_path/Frameworks", 494 | ); 495 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseApp; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 498 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 499 | SWIFT_VERSION = 5.0; 500 | VERSIONING_SYSTEM = "apple-generic"; 501 | }; 502 | name = Debug; 503 | }; 504 | 97C147071CF9000F007C117D /* Release */ = { 505 | isa = XCBuildConfiguration; 506 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 507 | buildSettings = { 508 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 509 | CLANG_ENABLE_MODULES = YES; 510 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 511 | DEVELOPMENT_TEAM = 37U25CB54V; 512 | ENABLE_BITCODE = NO; 513 | INFOPLIST_FILE = Runner/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "@executable_path/Frameworks", 517 | ); 518 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseApp; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 521 | SWIFT_VERSION = 5.0; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | }; 524 | name = Release; 525 | }; 526 | /* End XCBuildConfiguration section */ 527 | 528 | /* Begin XCConfigurationList section */ 529 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 97C147031CF9000F007C117D /* Debug */, 533 | 97C147041CF9000F007C117D /* Release */, 534 | 249021D3217E4FDB00AE95B9 /* Profile */, 535 | ); 536 | defaultConfigurationIsVisible = 0; 537 | defaultConfigurationName = Release; 538 | }; 539 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | 97C147061CF9000F007C117D /* Debug */, 543 | 97C147071CF9000F007C117D /* Release */, 544 | 249021D4217E4FDB00AE95B9 /* Profile */, 545 | ); 546 | defaultConfigurationIsVisible = 0; 547 | defaultConfigurationName = Release; 548 | }; 549 | /* End XCConfigurationList section */ 550 | }; 551 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 552 | } 553 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /base_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /base_app/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Base App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | base_app 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /base_app/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /base_app/lib/main.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: use_key_in_widget_constructors 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:home/app/home_resolver.dart'; 5 | import 'package:login/app/login_resolver.dart'; 6 | import 'package:micro_core/micro_core.dart'; 7 | import 'package:search/app/search_resolver.dart'; 8 | 9 | void main() { 10 | runApp(MyApp()); 11 | } 12 | 13 | class MyApp extends StatelessWidget with BaseApp { 14 | @override 15 | Widget build(BuildContext context) { 16 | super.initialiseRouting(); 17 | 18 | return MaterialApp( 19 | title: 'Flutter Demo', 20 | theme: ThemeData( 21 | primarySwatch: Colors.blue, 22 | ), 23 | navigatorKey: navigatorKey, 24 | onGenerateRoute: super.generateRoute, 25 | initialRoute: Routes.login.value, 26 | ); 27 | } 28 | 29 | @override 30 | Map get baseRoutes => {}; 31 | 32 | @override 33 | List get microApps => [ 34 | LoginResolver(), 35 | HomeResolver(), 36 | SearchResolver(), 37 | ]; 38 | } 39 | -------------------------------------------------------------------------------- /base_app/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /base_app/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import shared_preferences_macos 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /base_app/macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.11' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_macos_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /base_app/macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FlutterMacOS (1.0.0) 3 | - shared_preferences_macos (0.0.1): 4 | - FlutterMacOS 5 | 6 | DEPENDENCIES: 7 | - FlutterMacOS (from `Flutter/ephemeral`) 8 | - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`) 9 | 10 | EXTERNAL SOURCES: 11 | FlutterMacOS: 12 | :path: Flutter/ephemeral 13 | shared_preferences_macos: 14 | :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos 15 | 16 | SPEC CHECKSUMS: 17 | FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424 18 | shared_preferences_macos: 480ce071d0666e37cef23fe6c702293a3d21799e 19 | 20 | PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c 21 | 22 | COCOAPODS: 1.11.2 23 | -------------------------------------------------------------------------------- /base_app/macos/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; 13 | buildPhases = ( 14 | 33CC111E2044C6BF0003C045 /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | ); 18 | name = "Flutter Assemble"; 19 | productName = FLX; 20 | }; 21 | /* End PBXAggregateTarget section */ 22 | 23 | /* Begin PBXBuildFile section */ 24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; 25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; 26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 29 | F7422D494F21A90EC46DD7D7 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 88814D20F99FE68F86C7D5F1 /* Pods_Runner.framework */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 38 | remoteInfo = FLX; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXCopyFilesBuildPhase section */ 43 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 44 | isa = PBXCopyFilesBuildPhase; 45 | buildActionMask = 2147483647; 46 | dstPath = ""; 47 | dstSubfolderSpec = 10; 48 | files = ( 49 | ); 50 | name = "Bundle Framework"; 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | /* End PBXCopyFilesBuildPhase section */ 54 | 55 | /* Begin PBXFileReference section */ 56 | 2B2C1F573645B33EBFDD65D8 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 57 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 58 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 59 | 33CC10ED2044A3C60003C045 /* base_app.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = base_app.app; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 61 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 62 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 63 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 64 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 65 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 66 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 67 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 68 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 69 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 70 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 71 | 5E1930118D5A09448B83C0D6 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 72 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 73 | 88814D20F99FE68F86C7D5F1 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 75 | B303F4B58000447B062E2EC6 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | F7422D494F21A90EC46DD7D7 /* Pods_Runner.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 33BA886A226E78AF003329D5 /* Configs */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 96 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 97 | ); 98 | path = Configs; 99 | sourceTree = ""; 100 | }; 101 | 33CC10E42044A3C60003C045 = { 102 | isa = PBXGroup; 103 | children = ( 104 | 33FAB671232836740065AC1E /* Runner */, 105 | 33CEB47122A05771004F2AC0 /* Flutter */, 106 | 33CC10EE2044A3C60003C045 /* Products */, 107 | D73912EC22F37F3D000D13A0 /* Frameworks */, 108 | 3BFEB00583237713FF9E5294 /* Pods */, 109 | ); 110 | sourceTree = ""; 111 | }; 112 | 33CC10EE2044A3C60003C045 /* Products */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 33CC10ED2044A3C60003C045 /* base_app.app */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | 33CC11242044D66E0003C045 /* Resources */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 124 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 125 | 33CC10F72044A3C60003C045 /* Info.plist */, 126 | ); 127 | name = Resources; 128 | path = ..; 129 | sourceTree = ""; 130 | }; 131 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 135 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 136 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 137 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 138 | ); 139 | path = Flutter; 140 | sourceTree = ""; 141 | }; 142 | 33FAB671232836740065AC1E /* Runner */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 146 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 147 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 148 | 33E51914231749380026EE4D /* Release.entitlements */, 149 | 33CC11242044D66E0003C045 /* Resources */, 150 | 33BA886A226E78AF003329D5 /* Configs */, 151 | ); 152 | path = Runner; 153 | sourceTree = ""; 154 | }; 155 | 3BFEB00583237713FF9E5294 /* Pods */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 5E1930118D5A09448B83C0D6 /* Pods-Runner.debug.xcconfig */, 159 | B303F4B58000447B062E2EC6 /* Pods-Runner.release.xcconfig */, 160 | 2B2C1F573645B33EBFDD65D8 /* Pods-Runner.profile.xcconfig */, 161 | ); 162 | name = Pods; 163 | path = Pods; 164 | sourceTree = ""; 165 | }; 166 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 88814D20F99FE68F86C7D5F1 /* Pods_Runner.framework */, 170 | ); 171 | name = Frameworks; 172 | sourceTree = ""; 173 | }; 174 | /* End PBXGroup section */ 175 | 176 | /* Begin PBXNativeTarget section */ 177 | 33CC10EC2044A3C60003C045 /* Runner */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 180 | buildPhases = ( 181 | 468D08868C1EB9B75D997B93 /* [CP] Check Pods Manifest.lock */, 182 | 33CC10E92044A3C60003C045 /* Sources */, 183 | 33CC10EA2044A3C60003C045 /* Frameworks */, 184 | 33CC10EB2044A3C60003C045 /* Resources */, 185 | 33CC110E2044A8840003C045 /* Bundle Framework */, 186 | 3399D490228B24CF009A79C7 /* ShellScript */, 187 | 0709805E386E5C8A0BE02C7A /* [CP] Embed Pods Frameworks */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 193 | ); 194 | name = Runner; 195 | productName = Runner; 196 | productReference = 33CC10ED2044A3C60003C045 /* base_app.app */; 197 | productType = "com.apple.product-type.application"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | 33CC10E52044A3C60003C045 /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastSwiftUpdateCheck = 0920; 206 | LastUpgradeCheck = 1300; 207 | ORGANIZATIONNAME = ""; 208 | TargetAttributes = { 209 | 33CC10EC2044A3C60003C045 = { 210 | CreatedOnToolsVersion = 9.2; 211 | LastSwiftMigration = 1100; 212 | ProvisioningStyle = Automatic; 213 | SystemCapabilities = { 214 | com.apple.Sandbox = { 215 | enabled = 1; 216 | }; 217 | }; 218 | }; 219 | 33CC111A2044C6BA0003C045 = { 220 | CreatedOnToolsVersion = 9.2; 221 | ProvisioningStyle = Manual; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 226 | compatibilityVersion = "Xcode 9.3"; 227 | developmentRegion = en; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 33CC10E42044A3C60003C045; 234 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 33CC10EC2044A3C60003C045 /* Runner */, 239 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 33CC10EB2044A3C60003C045 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 250 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXResourcesBuildPhase section */ 255 | 256 | /* Begin PBXShellScriptBuildPhase section */ 257 | 0709805E386E5C8A0BE02C7A /* [CP] Embed Pods Frameworks */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputFileListPaths = ( 263 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 264 | ); 265 | name = "[CP] Embed Pods Frameworks"; 266 | outputFileListPaths = ( 267 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 272 | showEnvVarsInLog = 0; 273 | }; 274 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 275 | isa = PBXShellScriptBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | inputFileListPaths = ( 280 | ); 281 | inputPaths = ( 282 | ); 283 | outputFileListPaths = ( 284 | ); 285 | outputPaths = ( 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | shellPath = /bin/sh; 289 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; 290 | }; 291 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 292 | isa = PBXShellScriptBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | inputFileListPaths = ( 297 | Flutter/ephemeral/FlutterInputs.xcfilelist, 298 | ); 299 | inputPaths = ( 300 | Flutter/ephemeral/tripwire, 301 | ); 302 | outputFileListPaths = ( 303 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 304 | ); 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; 310 | }; 311 | 468D08868C1EB9B75D997B93 /* [CP] Check Pods Manifest.lock */ = { 312 | isa = PBXShellScriptBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | inputFileListPaths = ( 317 | ); 318 | inputPaths = ( 319 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 320 | "${PODS_ROOT}/Manifest.lock", 321 | ); 322 | name = "[CP] Check Pods Manifest.lock"; 323 | outputFileListPaths = ( 324 | ); 325 | outputPaths = ( 326 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | shellPath = /bin/sh; 330 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 331 | showEnvVarsInLog = 0; 332 | }; 333 | /* End PBXShellScriptBuildPhase section */ 334 | 335 | /* Begin PBXSourcesBuildPhase section */ 336 | 33CC10E92044A3C60003C045 /* Sources */ = { 337 | isa = PBXSourcesBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 341 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 342 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | /* End PBXSourcesBuildPhase section */ 347 | 348 | /* Begin PBXTargetDependency section */ 349 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 350 | isa = PBXTargetDependency; 351 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 352 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 353 | }; 354 | /* End PBXTargetDependency section */ 355 | 356 | /* Begin PBXVariantGroup section */ 357 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 358 | isa = PBXVariantGroup; 359 | children = ( 360 | 33CC10F52044A3C60003C045 /* Base */, 361 | ); 362 | name = MainMenu.xib; 363 | path = Runner; 364 | sourceTree = ""; 365 | }; 366 | /* End PBXVariantGroup section */ 367 | 368 | /* Begin XCBuildConfiguration section */ 369 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 370 | isa = XCBuildConfiguration; 371 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 377 | CLANG_CXX_LIBRARY = "libc++"; 378 | CLANG_ENABLE_MODULES = YES; 379 | CLANG_ENABLE_OBJC_ARC = YES; 380 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 386 | CLANG_WARN_EMPTY_BODY = YES; 387 | CLANG_WARN_ENUM_CONVERSION = YES; 388 | CLANG_WARN_INFINITE_RECURSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 395 | CODE_SIGN_IDENTITY = "-"; 396 | COPY_PHASE_STRIP = NO; 397 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 398 | ENABLE_NS_ASSERTIONS = NO; 399 | ENABLE_STRICT_OBJC_MSGSEND = YES; 400 | GCC_C_LANGUAGE_STANDARD = gnu11; 401 | GCC_NO_COMMON_BLOCKS = YES; 402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 404 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 405 | GCC_WARN_UNUSED_FUNCTION = YES; 406 | GCC_WARN_UNUSED_VARIABLE = YES; 407 | MACOSX_DEPLOYMENT_TARGET = 10.11; 408 | MTL_ENABLE_DEBUG_INFO = NO; 409 | SDKROOT = macosx; 410 | SWIFT_COMPILATION_MODE = wholemodule; 411 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 412 | }; 413 | name = Profile; 414 | }; 415 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 416 | isa = XCBuildConfiguration; 417 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 418 | buildSettings = { 419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 420 | CLANG_ENABLE_MODULES = YES; 421 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 422 | CODE_SIGN_STYLE = Automatic; 423 | COMBINE_HIDPI_IMAGES = YES; 424 | INFOPLIST_FILE = Runner/Info.plist; 425 | LD_RUNPATH_SEARCH_PATHS = ( 426 | "$(inherited)", 427 | "@executable_path/../Frameworks", 428 | ); 429 | PROVISIONING_PROFILE_SPECIFIER = ""; 430 | SWIFT_VERSION = 5.0; 431 | }; 432 | name = Profile; 433 | }; 434 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | CODE_SIGN_STYLE = Manual; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | }; 440 | name = Profile; 441 | }; 442 | 33CC10F92044A3C60003C045 /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 445 | buildSettings = { 446 | ALWAYS_SEARCH_USER_PATHS = NO; 447 | CLANG_ANALYZER_NONNULL = YES; 448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 450 | CLANG_CXX_LIBRARY = "libc++"; 451 | CLANG_ENABLE_MODULES = YES; 452 | CLANG_ENABLE_OBJC_ARC = YES; 453 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 454 | CLANG_WARN_BOOL_CONVERSION = YES; 455 | CLANG_WARN_CONSTANT_CONVERSION = YES; 456 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 467 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 468 | CODE_SIGN_IDENTITY = "-"; 469 | COPY_PHASE_STRIP = NO; 470 | DEBUG_INFORMATION_FORMAT = dwarf; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | ENABLE_TESTABILITY = YES; 473 | GCC_C_LANGUAGE_STANDARD = gnu11; 474 | GCC_DYNAMIC_NO_PIC = NO; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_OPTIMIZATION_LEVEL = 0; 477 | GCC_PREPROCESSOR_DEFINITIONS = ( 478 | "DEBUG=1", 479 | "$(inherited)", 480 | ); 481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | MACOSX_DEPLOYMENT_TARGET = 10.11; 487 | MTL_ENABLE_DEBUG_INFO = YES; 488 | ONLY_ACTIVE_ARCH = YES; 489 | SDKROOT = macosx; 490 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 491 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 492 | }; 493 | name = Debug; 494 | }; 495 | 33CC10FA2044A3C60003C045 /* Release */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 498 | buildSettings = { 499 | ALWAYS_SEARCH_USER_PATHS = NO; 500 | CLANG_ANALYZER_NONNULL = YES; 501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 503 | CLANG_CXX_LIBRARY = "libc++"; 504 | CLANG_ENABLE_MODULES = YES; 505 | CLANG_ENABLE_OBJC_ARC = YES; 506 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 507 | CLANG_WARN_BOOL_CONVERSION = YES; 508 | CLANG_WARN_CONSTANT_CONVERSION = YES; 509 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 510 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 511 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 512 | CLANG_WARN_EMPTY_BODY = YES; 513 | CLANG_WARN_ENUM_CONVERSION = YES; 514 | CLANG_WARN_INFINITE_RECURSION = YES; 515 | CLANG_WARN_INT_CONVERSION = YES; 516 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 517 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 518 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 519 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 520 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 521 | CODE_SIGN_IDENTITY = "-"; 522 | COPY_PHASE_STRIP = NO; 523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 524 | ENABLE_NS_ASSERTIONS = NO; 525 | ENABLE_STRICT_OBJC_MSGSEND = YES; 526 | GCC_C_LANGUAGE_STANDARD = gnu11; 527 | GCC_NO_COMMON_BLOCKS = YES; 528 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 529 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 530 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 531 | GCC_WARN_UNUSED_FUNCTION = YES; 532 | GCC_WARN_UNUSED_VARIABLE = YES; 533 | MACOSX_DEPLOYMENT_TARGET = 10.11; 534 | MTL_ENABLE_DEBUG_INFO = NO; 535 | SDKROOT = macosx; 536 | SWIFT_COMPILATION_MODE = wholemodule; 537 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 538 | }; 539 | name = Release; 540 | }; 541 | 33CC10FC2044A3C60003C045 /* Debug */ = { 542 | isa = XCBuildConfiguration; 543 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 544 | buildSettings = { 545 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 546 | CLANG_ENABLE_MODULES = YES; 547 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 548 | CODE_SIGN_STYLE = Automatic; 549 | COMBINE_HIDPI_IMAGES = YES; 550 | INFOPLIST_FILE = Runner/Info.plist; 551 | LD_RUNPATH_SEARCH_PATHS = ( 552 | "$(inherited)", 553 | "@executable_path/../Frameworks", 554 | ); 555 | PROVISIONING_PROFILE_SPECIFIER = ""; 556 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 557 | SWIFT_VERSION = 5.0; 558 | }; 559 | name = Debug; 560 | }; 561 | 33CC10FD2044A3C60003C045 /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 564 | buildSettings = { 565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 566 | CLANG_ENABLE_MODULES = YES; 567 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 568 | CODE_SIGN_STYLE = Automatic; 569 | COMBINE_HIDPI_IMAGES = YES; 570 | INFOPLIST_FILE = Runner/Info.plist; 571 | LD_RUNPATH_SEARCH_PATHS = ( 572 | "$(inherited)", 573 | "@executable_path/../Frameworks", 574 | ); 575 | PROVISIONING_PROFILE_SPECIFIER = ""; 576 | SWIFT_VERSION = 5.0; 577 | }; 578 | name = Release; 579 | }; 580 | 33CC111C2044C6BA0003C045 /* Debug */ = { 581 | isa = XCBuildConfiguration; 582 | buildSettings = { 583 | CODE_SIGN_STYLE = Manual; 584 | PRODUCT_NAME = "$(TARGET_NAME)"; 585 | }; 586 | name = Debug; 587 | }; 588 | 33CC111D2044C6BA0003C045 /* Release */ = { 589 | isa = XCBuildConfiguration; 590 | buildSettings = { 591 | CODE_SIGN_STYLE = Automatic; 592 | PRODUCT_NAME = "$(TARGET_NAME)"; 593 | }; 594 | name = Release; 595 | }; 596 | /* End XCBuildConfiguration section */ 597 | 598 | /* Begin XCConfigurationList section */ 599 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 600 | isa = XCConfigurationList; 601 | buildConfigurations = ( 602 | 33CC10F92044A3C60003C045 /* Debug */, 603 | 33CC10FA2044A3C60003C045 /* Release */, 604 | 338D0CE9231458BD00FA5F75 /* Profile */, 605 | ); 606 | defaultConfigurationIsVisible = 0; 607 | defaultConfigurationName = Release; 608 | }; 609 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 610 | isa = XCConfigurationList; 611 | buildConfigurations = ( 612 | 33CC10FC2044A3C60003C045 /* Debug */, 613 | 33CC10FD2044A3C60003C045 /* Release */, 614 | 338D0CEA231458BD00FA5F75 /* Profile */, 615 | ); 616 | defaultConfigurationIsVisible = 0; 617 | defaultConfigurationName = Release; 618 | }; 619 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 620 | isa = XCConfigurationList; 621 | buildConfigurations = ( 622 | 33CC111C2044C6BA0003C045 /* Debug */, 623 | 33CC111D2044C6BA0003C045 /* Release */, 624 | 338D0CEB231458BD00FA5F75 /* Profile */, 625 | ); 626 | defaultConfigurationIsVisible = 0; 627 | defaultConfigurationName = Release; 628 | }; 629 | /* End XCConfigurationList section */ 630 | }; 631 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 632 | } 633 | -------------------------------------------------------------------------------- /base_app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /base_app/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /base_app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nobrefelipe/flutter-micro-frontends-architecture/016dab459e5cc8ce694f240740f7b21055ae52d3/base_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /base_app/macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = base_app 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseApp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /base_app/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /base_app/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /base_app/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /base_app/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | args: 5 | dependency: transitive 6 | description: 7 | name: args 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.3.0" 11 | asn1lib: 12 | dependency: transitive 13 | description: 14 | name: asn1lib 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.1.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.8.2" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0" 32 | characters: 33 | dependency: transitive 34 | description: 35 | name: characters 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.2.0" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.3.1" 46 | clock: 47 | dependency: transitive 48 | description: 49 | name: clock 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0" 53 | collection: 54 | dependency: transitive 55 | description: 56 | name: collection 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.15.0" 60 | convert: 61 | dependency: transitive 62 | description: 63 | name: convert 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "3.0.1" 67 | crypto: 68 | dependency: transitive 69 | description: 70 | name: crypto 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "3.0.1" 74 | cupertino_icons: 75 | dependency: "direct main" 76 | description: 77 | name: cupertino_icons 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.0.4" 81 | dependencies: 82 | dependency: transitive 83 | description: 84 | path: "../micro_commons/dependencies" 85 | relative: true 86 | source: path 87 | version: "0.0.1" 88 | dio: 89 | dependency: transitive 90 | description: 91 | name: dio 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "4.0.4" 95 | encrypt: 96 | dependency: transitive 97 | description: 98 | name: encrypt 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "5.0.1" 102 | equatable: 103 | dependency: transitive 104 | description: 105 | name: equatable 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "2.0.3" 109 | event_bus: 110 | dependency: transitive 111 | description: 112 | name: event_bus 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.0.0" 116 | fake_async: 117 | dependency: transitive 118 | description: 119 | name: fake_async 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.2.0" 123 | ffi: 124 | dependency: transitive 125 | description: 126 | name: ffi 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.1.2" 130 | file: 131 | dependency: transitive 132 | description: 133 | name: file 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "6.1.2" 137 | flagsmith: 138 | dependency: transitive 139 | description: 140 | name: flagsmith 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.0.1+2" 144 | flutter: 145 | dependency: "direct main" 146 | description: flutter 147 | source: sdk 148 | version: "0.0.0" 149 | flutter_lints: 150 | dependency: "direct dev" 151 | description: 152 | name: flutter_lints 153 | url: "https://pub.dartlang.org" 154 | source: hosted 155 | version: "1.0.4" 156 | flutter_test: 157 | dependency: "direct dev" 158 | description: flutter 159 | source: sdk 160 | version: "0.0.0" 161 | flutter_web_plugins: 162 | dependency: transitive 163 | description: flutter 164 | source: sdk 165 | version: "0.0.0" 166 | home: 167 | dependency: "direct main" 168 | description: 169 | path: "../micro_apps/home" 170 | relative: true 171 | source: path 172 | version: "0.0.1" 173 | http_parser: 174 | dependency: transitive 175 | description: 176 | name: http_parser 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "4.0.0" 180 | js: 181 | dependency: transitive 182 | description: 183 | name: js 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "0.6.3" 187 | json_annotation: 188 | dependency: transitive 189 | description: 190 | name: json_annotation 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "4.4.0" 194 | lints: 195 | dependency: transitive 196 | description: 197 | name: lints 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.0.1" 201 | login: 202 | dependency: "direct main" 203 | description: 204 | path: "../micro_apps/login" 205 | relative: true 206 | source: path 207 | version: "0.0.1" 208 | matcher: 209 | dependency: transitive 210 | description: 211 | name: matcher 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "0.12.11" 215 | meta: 216 | dependency: transitive 217 | description: 218 | name: meta 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.7.0" 222 | micro_core: 223 | dependency: "direct main" 224 | description: 225 | path: "../micro_core" 226 | relative: true 227 | source: path 228 | version: "0.0.1" 229 | path: 230 | dependency: transitive 231 | description: 232 | name: path 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.8.0" 236 | path_provider_linux: 237 | dependency: transitive 238 | description: 239 | name: path_provider_linux 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "2.1.5" 243 | path_provider_platform_interface: 244 | dependency: transitive 245 | description: 246 | name: path_provider_platform_interface 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.0.3" 250 | path_provider_windows: 251 | dependency: transitive 252 | description: 253 | name: path_provider_windows 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.0.5" 257 | platform: 258 | dependency: transitive 259 | description: 260 | name: platform 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "3.1.0" 264 | plugin_platform_interface: 265 | dependency: transitive 266 | description: 267 | name: plugin_platform_interface 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.1.2" 271 | pointycastle: 272 | dependency: transitive 273 | description: 274 | name: pointycastle 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "3.5.0" 278 | process: 279 | dependency: transitive 280 | description: 281 | name: process 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "4.2.4" 285 | rxdart: 286 | dependency: transitive 287 | description: 288 | name: rxdart 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.27.2" 292 | search: 293 | dependency: "direct main" 294 | description: 295 | path: "../micro_apps/search" 296 | relative: true 297 | source: path 298 | version: "0.0.1" 299 | shared_preferences: 300 | dependency: transitive 301 | description: 302 | name: shared_preferences 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "2.0.8" 306 | shared_preferences_linux: 307 | dependency: transitive 308 | description: 309 | name: shared_preferences_linux 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "2.0.4" 313 | shared_preferences_macos: 314 | dependency: transitive 315 | description: 316 | name: shared_preferences_macos 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "2.0.2" 320 | shared_preferences_platform_interface: 321 | dependency: transitive 322 | description: 323 | name: shared_preferences_platform_interface 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "2.0.0" 327 | shared_preferences_web: 328 | dependency: transitive 329 | description: 330 | name: shared_preferences_web 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "2.0.3" 334 | shared_preferences_windows: 335 | dependency: transitive 336 | description: 337 | name: shared_preferences_windows 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "2.0.4" 341 | sky_engine: 342 | dependency: transitive 343 | description: flutter 344 | source: sdk 345 | version: "0.0.99" 346 | source_span: 347 | dependency: transitive 348 | description: 349 | name: source_span 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "1.8.1" 353 | stack_trace: 354 | dependency: transitive 355 | description: 356 | name: stack_trace 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.10.0" 360 | stream_channel: 361 | dependency: transitive 362 | description: 363 | name: stream_channel 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "2.1.0" 367 | string_scanner: 368 | dependency: transitive 369 | description: 370 | name: string_scanner 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "1.1.0" 374 | term_glyph: 375 | dependency: transitive 376 | description: 377 | name: term_glyph 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "1.2.0" 381 | test_api: 382 | dependency: transitive 383 | description: 384 | name: test_api 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "0.4.3" 388 | typed_data: 389 | dependency: transitive 390 | description: 391 | name: typed_data 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "1.3.0" 395 | vector_math: 396 | dependency: transitive 397 | description: 398 | name: vector_math 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "2.1.1" 402 | win32: 403 | dependency: transitive 404 | description: 405 | name: win32 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "2.3.10" 409 | xdg_directories: 410 | dependency: transitive 411 | description: 412 | name: xdg_directories 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "0.2.0+1" 416 | sdks: 417 | dart: ">=2.15.0 <3.0.0" 418 | flutter: ">=2.5.0" 419 | -------------------------------------------------------------------------------- /base_app/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: base_app 2 | description: A new Flutter project. 3 | publish_to: 'none' 4 | 5 | version: 1.0.0+1 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | 10 | dependencies: 11 | micro_core: 12 | path: ../micro_core 13 | login: 14 | path: ../micro_apps/login 15 | home: 16 | path: ../micro_apps/home 17 | search: 18 | path: ../micro_apps/search 19 | flutter: 20 | sdk: flutter 21 | 22 | cupertino_icons: ^1.0.2 23 | 24 | dev_dependencies: 25 | flutter_test: 26 | sdk: flutter 27 | 28 | 29 | flutter_lints: ^1.0.0 30 | flutter: 31 | uses-material-design: true 32 | -------------------------------------------------------------------------------- /micro_apps/home/.flutter-plugins: -------------------------------------------------------------------------------- 1 | # This is a generated file; do not edit or check into version control. 2 | path_provider_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/ 3 | path_provider_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/ 4 | shared_preferences=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/ 5 | shared_preferences_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/ 6 | shared_preferences_macos=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/ 7 | shared_preferences_web=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/ 8 | shared_preferences_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/ 9 | -------------------------------------------------------------------------------- /micro_apps/home/.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2022-02-04 15:02:57.868606","version":"2.8.1"} -------------------------------------------------------------------------------- /micro_apps/home/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 25 | /pubspec.lock 26 | **/doc/api/ 27 | .dart_tool/ 28 | .packages 29 | build/ 30 | -------------------------------------------------------------------------------- /micro_apps/home/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /micro_apps/home/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /micro_apps/home/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /micro_apps/home/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /micro_apps/home/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /micro_apps/home/lib/app/home_events.dart: -------------------------------------------------------------------------------- 1 | import 'package:micro_core/micro_core.dart'; 2 | 3 | /// * Micro App Events 4 | /// Register the micro app events here 5 | /// so we provide them in [RouteEvents] to be fired from accross the micro apps. 6 | /// The [initRouteListeners] method above will listen to the events listened here. 7 | /// 8 | 9 | class UserLoggedInEvent extends RouteEvent { 10 | final String user; 11 | UserLoggedInEvent(this.user); 12 | } 13 | 14 | class UserCreatedEvent extends RouteEvent {} 15 | 16 | class OpenBottomSheetEvent extends RouteEvent { 17 | final String title; 18 | OpenBottomSheetEvent(this.title); 19 | } 20 | 21 | /// 22 | /// Exports the events in a class so we dont need to import 23 | /// them from other micro apps. LoginEvents will be used by [RouteEvents] 24 | /// 25 | class HomeEvents extends RouteEvent { 26 | RouteEvent userLoggedInEvent(String user) => UserLoggedInEvent(user); 27 | RouteEvent openBottomSheet(String title) => OpenBottomSheetEvent(title); 28 | } 29 | -------------------------------------------------------------------------------- /micro_apps/home/lib/app/home_inject.dart: -------------------------------------------------------------------------------- 1 | class Inject { 2 | static initialize() { 3 | // Dependency injection here 4 | // GetIt getIt = GetIt.instance; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /micro_apps/home/lib/app/home_resolver.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:micro_core/micro_core.dart'; 3 | 4 | import 'home_events.dart'; 5 | import 'home_inject.dart'; 6 | import 'presenter/home_view.dart'; 7 | import 'presenter/widgets/bottom_sheet.dart'; 8 | 9 | class HomeResolver implements MicroApp { 10 | @override 11 | String get microAppName => "/home"; 12 | 13 | @override 14 | Map get routes => { 15 | microAppName: (context, args) => HomeView(args as UserLoggedInEvent), 16 | }; 17 | 18 | @override 19 | void initEventListeners() { 20 | CustomEventBus.on((event) { 21 | Routing.pushNamed(Routes.home, arguments: event); 22 | }); 23 | CustomEventBus.on((OpenBottomSheetEvent event) async { 24 | await showBottonSheetEvent(event.title); 25 | }); 26 | } 27 | 28 | @override 29 | HomeEvents microAppEvents() => HomeEvents(); 30 | 31 | @override 32 | Widget? microAppWidget() => null; 33 | 34 | @override 35 | void injectionsRegister() => Inject.initialize(); 36 | 37 | @override 38 | TransitionType? get transitionType => TransitionType.fade; 39 | } 40 | -------------------------------------------------------------------------------- /micro_apps/home/lib/app/presenter/home_view.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: prefer_const_constructors_in_immutables, use_key_in_widget_constructors, prefer_const_constructors 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:micro_core/micro_core.dart'; 6 | 7 | import '../home_events.dart'; 8 | 9 | class HomeView extends StatelessWidget { 10 | final UserLoggedInEvent args; 11 | HomeView(this.args); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Scaffold( 16 | appBar: AppBar( 17 | title: Text('Hi ${args.user}'), 18 | backgroundColor: Colors.red, 19 | automaticallyImplyLeading: false, 20 | ), 21 | body: Center( 22 | child: Column( 23 | children: [ 24 | Spacer(), 25 | Text('Hi ${args.user}', style: TextStyle(fontSize: 24)), 26 | SizedBox(height: 30), 27 | 28 | /// 29 | /// Outputs the search micro app widget. 30 | /// note: the Home micro app has no idea what this will output. 31 | /// THe WidgetsRegistry is generated when the app builds by providing to the base app the micro apps resolvers. 32 | /// This means we can include a Widget dynamicaly based on what an api tells us. 33 | /// It's also good for AB Testing, etc.. 34 | /// 35 | WidgetsRegistry['/search'] ?? SizedBox.shrink(), 36 | // 37 | SizedBox(height: 30), 38 | CupertinoButton( 39 | child: const Text('logout'), 40 | onPressed: () { 41 | /// 42 | /// Navigating to Login Screen via routing 43 | /// 44 | Routing.pushNamed(Routes.login); 45 | 46 | /// 47 | /// Emit UserLoggedOutEvent listened by the Login view 48 | /// 49 | CustomEventBus.emit(RouteEvents.loginEvents.userLoggedOutEvent); 50 | }, 51 | ), 52 | CupertinoButton( 53 | child: const Text('open bottom sheet'), 54 | onPressed: () { 55 | /// 56 | /// Open a bottom sheet via OpenBottomSheetEvent 57 | /// 58 | CustomEventBus.emit(OpenBottomSheetEvent('Home')); 59 | }, 60 | ), 61 | Spacer(), 62 | ], 63 | ), 64 | ), 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /micro_apps/home/lib/app/presenter/widgets/bottom_sheet.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:micro_core/micro_core.dart'; 3 | 4 | Future showBottonSheetEvent(String title) async { 5 | return showModalBottomSheet( 6 | context: navigatorKey.currentContext!, 7 | builder: (context) { 8 | return Container( 9 | padding: const EdgeInsets.all(30), 10 | height: 300, 11 | child: Column( 12 | crossAxisAlignment: CrossAxisAlignment.center, 13 | children: [ 14 | const Text( 15 | 'Bottom sheet opened via Event (OpenBottomSheetEvent) from the', 16 | style: TextStyle( 17 | fontSize: 16, 18 | color: Colors.black54, 19 | ), 20 | textAlign: TextAlign.center, 21 | ), 22 | const SizedBox(height: 10), 23 | Text( 24 | '$title micro app', 25 | style: const TextStyle( 26 | fontSize: 22, 27 | ), 28 | ), 29 | ], 30 | ), 31 | ); 32 | }, 33 | ); 34 | } 35 | -------------------------------------------------------------------------------- /micro_apps/home/lib/home.dart: -------------------------------------------------------------------------------- 1 | library home; 2 | 3 | export 'app/home_events.dart'; 4 | export 'app/home_resolver.dart'; 5 | -------------------------------------------------------------------------------- /micro_apps/home/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: home 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | publish_to: none 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | flutter: ">=1.17.0" 10 | 11 | dependencies: 12 | micro_core: 13 | path: ../../micro_core 14 | dependencies: 15 | path: ../../micro_commons/dependencies 16 | 17 | flutter: 18 | sdk: flutter 19 | 20 | dev_dependencies: 21 | flutter_test: 22 | sdk: flutter 23 | flutter_lints: ^1.0.0 24 | 25 | flutter: -------------------------------------------------------------------------------- /micro_apps/login/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 25 | /pubspec.lock 26 | **/doc/api/ 27 | .dart_tool/ 28 | .packages 29 | build/ 30 | -------------------------------------------------------------------------------- /micro_apps/login/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /micro_apps/login/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /micro_apps/login/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /micro_apps/login/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /micro_apps/login/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /micro_apps/login/lib/app/login_events.dart: -------------------------------------------------------------------------------- 1 | import 'package:micro_core/micro_core.dart'; 2 | 3 | /// * Micro App Events 4 | /// Register the micro app events here 5 | /// so we provide them in [RouteEvents] to be fired from accross the micro apps. 6 | /// The [initRouteListeners] method above will listen to the events listened here. 7 | /// 8 | 9 | class UserLoggedOutEvent extends RouteEvent {} 10 | 11 | class UserForgotPasswordEvent extends RouteEvent {} 12 | 13 | /// 14 | /// Exports the events in a class so we dont need to import 15 | /// them from other micro apps. LoginEvents will be used by [RouteEvents] 16 | /// 17 | class LoginEvents extends RouteEvent { 18 | RouteEvent userLoggedOutEvent = UserLoggedOutEvent(); 19 | RouteEvent userForgotPasswordEvent = UserForgotPasswordEvent(); 20 | } 21 | -------------------------------------------------------------------------------- /micro_apps/login/lib/app/login_inject.dart: -------------------------------------------------------------------------------- 1 | class Inject { 2 | static initialize() { 3 | // Dependency injection here 4 | // GetIt getIt = GetIt.instance; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /micro_apps/login/lib/app/login_resolver.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:micro_core/micro_core.dart'; 3 | 4 | import 'login_events.dart'; 5 | import 'login_inject.dart'; 6 | import 'presenter/login_view.dart'; 7 | 8 | class LoginResolver implements MicroApp { 9 | @override 10 | String get microAppName => "/login"; 11 | 12 | @override 13 | Map get routes => { 14 | microAppName: (context, args) => const LoginView(), 15 | }; 16 | 17 | @override 18 | void initEventListeners() { 19 | CustomEventBus.on((event) { 20 | // we can use events to navigate as well. 21 | // Routing.pushNamed(Routes.login); 22 | print('LOGGED OUT'); 23 | }); 24 | } 25 | 26 | @override 27 | LoginEvents microAppEvents() => LoginEvents(); 28 | 29 | @override 30 | Widget? microAppWidget() => null; 31 | 32 | @override 33 | void injectionsRegister() => Inject.initialize(); 34 | 35 | @override 36 | TransitionType? get transitionType => TransitionType.fade; 37 | } 38 | -------------------------------------------------------------------------------- /micro_apps/login/lib/app/presenter/login_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:micro_core/micro_core.dart'; 4 | 5 | class LoginView extends StatelessWidget { 6 | const LoginView({Key? key}) : super(key: key); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | final textController = TextEditingController(); 11 | 12 | return Scaffold( 13 | appBar: AppBar( 14 | title: const Text('LOGIN'), 15 | automaticallyImplyLeading: false, 16 | ), 17 | body: Center( 18 | child: Container( 19 | padding: const EdgeInsets.all(15.0), 20 | height: 200, 21 | child: Column( 22 | children: [ 23 | CupertinoTextField( 24 | padding: const EdgeInsets.all(15.0), 25 | placeholder: 'Name', 26 | controller: textController, 27 | ), 28 | Align( 29 | alignment: Alignment.center, 30 | child: CupertinoButton( 31 | child: const Text('Login'), 32 | onPressed: () { 33 | /// 34 | /// Navigating to Home Screen via UserLoggedInEvent 35 | /// 36 | Routing.pushNamed( 37 | Routes.home, 38 | arguments: RouteEvents.homeEvents.userLoggedInEvent(textController.text), 39 | ); 40 | 41 | /// 42 | /// Emit OpenBottomSheetEvent | Home micro front end is listening to it 43 | /// 44 | CustomEventBus.emit(RouteEvents.homeEvents.openBottomSheet('Login')); 45 | }, 46 | ), 47 | ), 48 | ], 49 | ), 50 | ), 51 | ), 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /micro_apps/login/lib/login.dart: -------------------------------------------------------------------------------- 1 | library login; 2 | 3 | export 'app/login_events.dart'; 4 | export 'app/login_resolver.dart'; 5 | -------------------------------------------------------------------------------- /micro_apps/login/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: login 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | publish_to: none 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | flutter: ">=1.17.0" 10 | 11 | dependencies: 12 | micro_core: 13 | path: ../../micro_core 14 | dependencies: 15 | path: ../../micro_commons/dependencies 16 | 17 | 18 | flutter: 19 | sdk: flutter 20 | 21 | dev_dependencies: 22 | flutter_test: 23 | sdk: flutter 24 | flutter_lints: ^1.0.0 25 | 26 | flutter: 27 | -------------------------------------------------------------------------------- /micro_apps/search/.flutter-plugins: -------------------------------------------------------------------------------- 1 | # This is a generated file; do not edit or check into version control. 2 | path_provider_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/ 3 | path_provider_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/ 4 | shared_preferences=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/ 5 | shared_preferences_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/ 6 | shared_preferences_macos=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/ 7 | shared_preferences_web=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/ 8 | shared_preferences_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/ 9 | -------------------------------------------------------------------------------- /micro_apps/search/.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2022-02-07 12:25:23.460513","version":"2.8.1"} -------------------------------------------------------------------------------- /micro_apps/search/.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - develop 7 | - master 8 | pull_request: 9 | branches: 10 | - develop 11 | - master 12 | 13 | jobs: 14 | flutter_test: 15 | name: Run Flutter analyze and test 16 | runs-on: ubuntu-latest 17 | steps: 18 | - uses: actions/checkout@v2 19 | - uses: actions/setup-java@v1 20 | with: 21 | java-version: "12.x" 22 | - uses: subosito/flutter-action@v2 23 | with: 24 | flutter-version: '2.8.0' 25 | channel: "stable" 26 | - run: flutter pub get 27 | - run: flutter analyze 28 | - run: flutter format --dry-run --set-exit-if-changed lib/ 29 | - run: flutter format --dry-run --set-exit-if-changed test/ 30 | - run: flutter test --coverage 31 | - run: flutter test --machine > test-results.json 32 | - uses: dorny/test-reporter@v1.4.2 33 | with: 34 | name: test-results 35 | path: test-results.json 36 | reporter: flutter-json 37 | - uses: VeryGoodOpenSource/very_good_coverage@v1.1.1 38 | with: 39 | min_coverage: 0 -------------------------------------------------------------------------------- /micro_apps/search/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm_debug.log 3 | 4 | # Miscellaneous 5 | *.class 6 | *.log 7 | *.pyc 8 | *.swp 9 | .DS_Store 10 | .atom/ 11 | .buildlog/ 12 | .history 13 | .svn/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .packages 32 | build/ 33 | -------------------------------------------------------------------------------- /micro_apps/search/README.md: -------------------------------------------------------------------------------- 1 | # Search 2 | 3 | add documentation for this micro front end here -------------------------------------------------------------------------------- /micro_apps/search/lib/app/presenter/search_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:micro_core/micro_core.dart'; 3 | 4 | import 'search_results.dart'; 5 | 6 | class SearchButton extends StatefulWidget { 7 | @override 8 | State createState() => _SearchButtonState(); 9 | } 10 | 11 | class _SearchButtonState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return GestureDetector( 15 | child: Container( 16 | width: 150, 17 | height: 100, 18 | padding: const EdgeInsets.all(10), 19 | color: Colors.red, 20 | child: FittedBox( 21 | child: const Text( 22 | 'Search Component', 23 | style: TextStyle( 24 | color: Colors.white, 25 | ), 26 | ), 27 | ), 28 | ), 29 | onTap: () { 30 | Routing.pushCustom( 31 | SearchResults(), 32 | transitionType: TransitionType.slideUp, 33 | ); 34 | }, 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /micro_apps/search/lib/app/presenter/search_results.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SearchResults extends StatelessWidget { 4 | SearchResults({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: Text('Search results'), 11 | ), 12 | backgroundColor: Colors.red, 13 | body: Container(), 14 | ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /micro_apps/search/lib/app/search_events.dart: -------------------------------------------------------------------------------- 1 | import 'package:micro_core/micro_core.dart'; 2 | 3 | /// * Micro App Events 4 | /// Register the micro app events here 5 | /// so we provide them in [RouteEvents] to be fired from accross the micro apps. 6 | /// The [initRouteListeners] method above will listen to the events listened here. 7 | /// 8 | 9 | class SearchDummyEvent extends RouteEvent { 10 | final String user; 11 | SearchDummyEvent( 12 | this.user, 13 | ); 14 | } // DUMMY EVENT 15 | 16 | /// 17 | /// Exports the events in a class so we dont need to import 18 | /// them from other micro apps. LoginEvents will be used by [RouteEvents] 19 | /// 20 | class SearchEvents extends RouteEvent { 21 | RouteEvent dummyEvent(String user) => SearchDummyEvent(user); 22 | // Search events here 23 | } 24 | -------------------------------------------------------------------------------- /micro_apps/search/lib/app/search_inject.dart: -------------------------------------------------------------------------------- 1 | class Inject { 2 | static initialize() { 3 | // Dependency injection here 4 | // GetIt getIt = GetIt.instance; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /micro_apps/search/lib/app/search_resolver.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:micro_core/micro_core.dart'; 3 | 4 | import 'presenter/search_button.dart'; 5 | import 'presenter/search_results.dart'; 6 | import 'search_events.dart'; 7 | import 'search_inject.dart'; 8 | 9 | class SearchResolver implements MicroApp { 10 | @override 11 | String get microAppName => "/search"; 12 | 13 | @override 14 | Map get routes => { 15 | '$microAppName/results': (context, args) => SearchResults(), 16 | }; 17 | 18 | @override 19 | void initEventListeners() { 20 | CustomEventBus.on((event) { 21 | print(event.user); 22 | }); 23 | } 24 | 25 | @override 26 | SearchEvents microAppEvents() => SearchEvents(); 27 | 28 | @override 29 | Widget microAppWidget() => SearchButton(); 30 | 31 | @override 32 | void injectionsRegister() => Inject.initialize(); 33 | 34 | @override 35 | TransitionType? get transitionType => null; 36 | } 37 | -------------------------------------------------------------------------------- /micro_apps/search/lib/search.dart: -------------------------------------------------------------------------------- 1 | library search; 2 | 3 | export 'app/search_events.dart'; 4 | export 'app/search_resolver.dart'; 5 | -------------------------------------------------------------------------------- /micro_apps/search/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: search 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | publish_to: none 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | flutter: ">=1.17.0" 10 | 11 | dependencies: 12 | micro_core: 13 | path: ../../micro_core 14 | dependencies: 15 | path: ../../micro_commons/dependencies 16 | 17 | 18 | flutter: 19 | sdk: flutter 20 | 21 | dev_dependencies: 22 | flutter_test: 23 | sdk: flutter 24 | flutter_lints: ^1.0.0 25 | 26 | flutter: 27 | -------------------------------------------------------------------------------- /micro_apps/search/test/some_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | 3 | main() { 4 | test('Some Testy Test', () async { 5 | final int a = 1; 6 | final int b = 2; 7 | final int r = a + b; 8 | expect(r, 3); 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /micro_commons/dependencies/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 25 | /pubspec.lock 26 | **/doc/api/ 27 | .dart_tool/ 28 | .packages 29 | build/ 30 | -------------------------------------------------------------------------------- /micro_commons/dependencies/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /micro_commons/dependencies/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /micro_commons/dependencies/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /micro_commons/dependencies/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /micro_commons/dependencies/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /micro_commons/dependencies/lib/dependencies.dart: -------------------------------------------------------------------------------- 1 | library dependencies; 2 | 3 | export 'package:flagsmith/flagsmith.dart'; 4 | -------------------------------------------------------------------------------- /micro_commons/dependencies/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: dependencies 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | publish_to: none 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | flutter: ">=1.17.0" 10 | 11 | dependencies: 12 | flagsmith: ^2.0.1+2 13 | 14 | 15 | -------------------------------------------------------------------------------- /micro_core/.flutter-plugins: -------------------------------------------------------------------------------- 1 | # This is a generated file; do not edit or check into version control. 2 | path_provider_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/ 3 | path_provider_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/ 4 | shared_preferences=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/ 5 | shared_preferences_linux=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/ 6 | shared_preferences_macos=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/ 7 | shared_preferences_web=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/ 8 | shared_preferences_windows=/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/ 9 | -------------------------------------------------------------------------------- /micro_core/.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.8/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.2/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.4/","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.4/","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"/Users/felipenobre/Development/_/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2022-02-04 15:02:54.439462","version":"2.8.1"} -------------------------------------------------------------------------------- /micro_core/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 25 | /pubspec.lock 26 | **/doc/api/ 27 | .dart_tool/ 28 | .packages 29 | build/ 30 | -------------------------------------------------------------------------------- /micro_core/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /micro_core/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /micro_core/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /micro_core/README.md: -------------------------------------------------------------------------------- 1 | 13 | 14 | TODO: Put a short description of the package here that helps potential users 15 | know whether this package might be useful for them. 16 | 17 | ## Features 18 | 19 | TODO: List what your package can do. Maybe include images, gifs, or videos. 20 | 21 | ## Getting started 22 | 23 | TODO: List prerequisites and provide or point to information on how to 24 | start using the package. 25 | 26 | ## Usage 27 | 28 | TODO: Include short and useful examples for package users. Add longer examples 29 | to `/example` folder. 30 | 31 | ```dart 32 | const like = 'sample'; 33 | ``` 34 | 35 | ## Additional information 36 | 37 | TODO: Tell users more about the package: where to find more information, how to 38 | contribute to the package, how to file issues, what response they can expect 39 | from the package authors, and more. 40 | -------------------------------------------------------------------------------- /micro_core/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /micro_core/lib/micro_core.dart: -------------------------------------------------------------------------------- 1 | library micro_core; 2 | 3 | export 'services/custom_event_bus/custom_event_bus.dart'; 4 | export 'services/routing/route_events.dart'; 5 | export 'services/routing/routes.dart'; 6 | export 'services/routing/routing.dart'; 7 | export 'src/base_app.dart'; 8 | export 'src/micro_app.dart'; 9 | export 'src/micro_core_utils.dart'; 10 | export 'src/widgets_registry.dart'; 11 | export 'utils/enum.dart'; 12 | -------------------------------------------------------------------------------- /micro_core/lib/services/custom_event_bus/custom_event_bus.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: constant_identifier_names, prefer_final_fields 2 | 3 | import 'package:event_bus/event_bus.dart'; 4 | import 'package:micro_core/services/routing/route_events.dart'; 5 | 6 | class CustomEventBus { 7 | CustomEventBus._internal(); 8 | static final CustomEventBus _singleton = CustomEventBus._internal(); 9 | factory CustomEventBus() => _singleton; 10 | 11 | EventBus _bus = EventBus(); 12 | 13 | static EventBus get bus => _singleton._bus; 14 | 15 | static emit(RouteEvent event) { 16 | _singleton._bus.fire(event); 17 | } 18 | 19 | /// 20 | /// Listen to the fired event and execute a function 21 | /// 22 | static on(Function f) { 23 | _singleton._bus.on().listen((T event) { 24 | f(event); 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /micro_core/lib/services/routing/generate_route.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../micro_core.dart'; 4 | 5 | /// 6 | /// * On Generate Route 7 | /// This function is resonsible for generating the routes navigation 8 | /// based on [TransitionType]. 9 | /// Each [MicroApp] will define its transition type. 10 | /// 11 | PageRoute onGenerateRoute({ 12 | required Widget Function(BuildContext, Object?)? widget, 13 | required Widget Function(BuildContext, Object?) navigateTo, 14 | required RouteSettings settings, 15 | TransitionType? transitionType, 16 | Object? arguments, 17 | }) { 18 | switch (transitionType) { 19 | case TransitionType.fade: 20 | return PageRouteBuilder( 21 | settings: settings, 22 | pageBuilder: (context, __, ___) => (widget!)(context, settings.arguments), 23 | transitionsBuilder: (_, a, __, c) => FadeTransition(opacity: a, child: c), 24 | ); 25 | case TransitionType.slideUp: 26 | return PageRouteBuilder( 27 | settings: settings, 28 | pageBuilder: (context, __, ___) => (widget!)(context, settings.arguments), 29 | transitionsBuilder: (_, a, __, c) => SlideTransition( 30 | position: Tween( 31 | begin: const Offset(0.0, 1.0), 32 | end: const Offset(0.0, 0.0), 33 | ).animate(a), 34 | child: c, 35 | ), 36 | ); 37 | case TransitionType.none: 38 | return PageRouteBuilder( 39 | settings: settings, 40 | pageBuilder: (context, __, ___) => (widget!)(context, settings.arguments), 41 | ); 42 | case TransitionType.defaultTransition: 43 | return MaterialPageRoute( 44 | settings: RouteSettings(name: settings.name), 45 | builder: (context) => navigateTo.call(context, settings.arguments), 46 | ); 47 | default: 48 | return MaterialPageRoute( 49 | settings: RouteSettings(name: settings.name), 50 | builder: (context) => navigateTo.call(context, settings.arguments), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /micro_core/lib/services/routing/route_events.dart: -------------------------------------------------------------------------------- 1 | abstract class RouteEvent {} 2 | -------------------------------------------------------------------------------- /micro_core/lib/services/routing/routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:home/home.dart'; 2 | import 'package:login/login.dart'; 3 | 4 | import '../../utils/enum.dart'; 5 | 6 | /// 7 | /// * All NAMED ROUTES must be registred here 8 | /// 9 | class Routes extends Enum { 10 | Routes(String value) : super(value); 11 | 12 | static Routes home = Routes(HomeResolver().microAppName); 13 | static Routes login = Routes(LoginResolver().microAppName); 14 | } 15 | 16 | /// 17 | /// * All ROUTE EVENTS must be registred here 18 | /// 19 | class RouteEvents { 20 | static LoginEvents get loginEvents => LoginResolver().microAppEvents(); 21 | static HomeEvents get homeEvents => HomeResolver().microAppEvents(); 22 | } 23 | -------------------------------------------------------------------------------- /micro_core/lib/services/routing/routing.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../micro_core.dart'; 4 | 5 | export 'routing_transitions.dart'; 6 | 7 | abstract class Routing { 8 | /// Push Named Route 9 | static pushNamed(Routes route, {RouteEvent? arguments}) { 10 | return navigatorKey.currentState?.pushNamed(route.value, arguments: arguments); 11 | } 12 | 13 | /// Back 14 | static back() { 15 | final bool canPop = navigatorKey.currentState != null && navigatorKey.currentState!.canPop(); 16 | 17 | if (canPop) { 18 | return navigatorKey.currentState?.pop(); 19 | } 20 | } 21 | 22 | /// Push With Custom Transition 23 | static pushCustom( 24 | Widget page, { 25 | TransitionType transitionType = TransitionType.defaultTransition, 26 | }) { 27 | return navigatorKey.currentState?.push( 28 | Transitions( 29 | transitionType: transitionType, 30 | widget: page, 31 | ), 32 | ); 33 | } 34 | 35 | static offAllNamed( 36 | Routes route, { 37 | bool Function(Route)? predicate, 38 | dynamic arguments, 39 | }) { 40 | return navigatorKey.currentState?.pushNamedAndRemoveUntil( 41 | route.value, 42 | predicate ?? (_) => false, 43 | arguments: arguments, 44 | ); 45 | } 46 | 47 | static get current { 48 | String? currentPath; 49 | navigatorKey.currentState?.popUntil((route) { 50 | currentPath = route.settings.name; 51 | return true; 52 | }); 53 | 54 | return currentPath; 55 | } 56 | // Add more routing type here if necessary 57 | } 58 | -------------------------------------------------------------------------------- /micro_core/lib/services/routing/routing_transitions.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// 4 | /// Define transition types 5 | /// 6 | enum TransitionType { 7 | defaultTransition, 8 | none, 9 | fade, 10 | slideDown, 11 | slideUp, 12 | slideLeft, 13 | slideRight, 14 | } 15 | 16 | /// 17 | /// * Route Transitions 18 | /// 19 | /// Define some out of the box page transitions. 20 | /// 21 | /// Eg.: SlideUp, SLideDown, SlideRight, SlideLeft and Fade. 22 | /// 23 | /// ``` 24 | /// Routing.pushCustom(SearchResults(), transitionType: TransitionType.slideUp); 25 | /// ``` 26 | /// 27 | class Transitions extends PageRouteBuilder { 28 | final TransitionType transitionType; 29 | final Curve curve; 30 | final Curve reverseCurve; 31 | final Duration duration; 32 | final Widget widget; 33 | 34 | Transitions({ 35 | required this.transitionType, 36 | required this.widget, 37 | this.curve = Curves.fastOutSlowIn, 38 | this.reverseCurve = Curves.fastOutSlowIn, 39 | this.duration = const Duration(milliseconds: 350), 40 | }) : super( 41 | transitionDuration: duration, 42 | pageBuilder: ( 43 | BuildContext context, 44 | Animation animation, 45 | Animation secondaryAnimation, 46 | ) { 47 | return widget; 48 | }, 49 | transitionsBuilder: ( 50 | BuildContext context, 51 | Animation animation, 52 | Animation secondaryAnimation, 53 | Widget child, 54 | ) { 55 | animation = CurvedAnimation(parent: animation, curve: curve, reverseCurve: reverseCurve); 56 | 57 | switch (transitionType) { 58 | case TransitionType.defaultTransition: 59 | case TransitionType.none: 60 | return child; 61 | 62 | case TransitionType.fade: 63 | return FadeTransition( 64 | opacity: animation, 65 | child: child, 66 | ); 67 | 68 | case TransitionType.slideDown: 69 | return SlideTransition( 70 | position: Tween( 71 | begin: const Offset(0.0, -1.0), 72 | end: const Offset(0.0, 0.0), 73 | ).animate(animation), 74 | child: child, 75 | ); 76 | 77 | case TransitionType.slideUp: 78 | return SlideTransition( 79 | position: Tween( 80 | begin: const Offset(0.0, 1.0), 81 | end: const Offset(0.0, 0.0), 82 | ).animate(animation), 83 | child: child, 84 | ); 85 | 86 | case TransitionType.slideLeft: 87 | return SlideTransition( 88 | position: Tween( 89 | begin: const Offset(1.0, 0.0), 90 | end: const Offset(0.0, 0.0), 91 | ).animate(animation), 92 | child: child, 93 | ); 94 | 95 | case TransitionType.slideRight: 96 | return SlideTransition( 97 | position: Tween( 98 | begin: const Offset(-1.0, 0.0), 99 | end: const Offset(0.0, 0.0), 100 | ).animate(animation), 101 | child: child, 102 | ); 103 | default: 104 | return FadeTransition(opacity: animation, child: child); 105 | } 106 | }, 107 | ); 108 | } 109 | -------------------------------------------------------------------------------- /micro_core/lib/src/base_app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../micro_core.dart'; 4 | import '../services/routing/generate_route.dart'; 5 | 6 | /// * Base App 7 | /// 8 | /// Responsible for initializing the project and setting up the routing. 9 | /// 10 | /// It's the only one to know all micro apps. 11 | /// 12 | abstract class BaseApp { 13 | /// 14 | /// * Micro Apps 15 | /// 16 | /// A list of [MicroApp]. Here is where we declare all micro apps resolvers from the Base App 17 | /// 18 | List get microApps; 19 | 20 | /// 21 | /// * Base Routes 22 | /// 23 | /// Here we can register routes that are not part of a micro app 24 | /// 25 | Map get baseRoutes; 26 | 27 | final Map routes = {}; 28 | 29 | /// 30 | /// * Initialise Routing 31 | /// 32 | /// Responsible for initialising the routes for each micro app resolver. 33 | /// 34 | /// It also initializes the event listeners. And register widgets experoted as micro front ends. 35 | /// 36 | void initialiseRouting() { 37 | if (baseRoutes.isNotEmpty) routes.addAll(baseRoutes); 38 | if (microApps.isNotEmpty && routes.isEmpty) { 39 | for (MicroApp microapp in microApps) { 40 | routes.addAll(microapp.routes); 41 | microapp.initEventListeners(); 42 | microapp.injectionsRegister(); 43 | if (microapp.microAppWidget() != null) { 44 | WidgetsRegistry[microapp.microAppName] = microapp.microAppWidget(); 45 | } 46 | } 47 | } 48 | } 49 | 50 | /// 51 | /// * Generate Route 52 | /// 53 | /// Generate the Flutter routing, registering all micro apps routes 54 | /// 55 | Route? generateRoute(RouteSettings settings) { 56 | var routerName = settings.name; 57 | 58 | var navigateTo = routes[routerName]; 59 | if (navigateTo == null) return null; 60 | 61 | for (MicroApp microapp in microApps) { 62 | for (var page in microapp.routes.keys) { 63 | if (settings.name == page) { 64 | return onGenerateRoute( 65 | widget: microapp.routes[page], 66 | navigateTo: navigateTo, 67 | settings: settings, 68 | arguments: settings.arguments, 69 | transitionType: microapp.transitionType, 70 | ); 71 | } 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /micro_core/lib/src/micro_app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | import '../micro_core.dart'; 4 | 5 | /// 6 | /// * MicroApp 7 | /// 8 | /// A micro app is a contract that all micro front ends must implement. 9 | /// 10 | /// Here we have all it's needed for a micro app to work. 11 | /// 12 | /// A MicroApp is implemented by the Resolver of each micro front end. 13 | /// 14 | abstract class MicroApp { 15 | /// 16 | /// The micro app name, used for routing. 17 | /// 18 | String get microAppName; 19 | 20 | /// 21 | /// Register the routes for this micro app here. 22 | /// 23 | /// This getter will be used in the [BaseApp] to register all routes. 24 | /// 25 | Map get routes; 26 | 27 | /// 28 | /// The transition animation type this route will be using 29 | /// eg.: SlideUp, Fade, DefaultTransition, etc... 30 | /// TO add more transition types go to `routing/generate_route.dart` 31 | /// 32 | TransitionType? get transitionType; 33 | 34 | /// 35 | /// * Micro App Widget 36 | /// 37 | /// Sometimes our micro app is just a widget and not a view. 38 | /// 39 | /// In this case we gestister the widget here instead of creating a route for it. 40 | /// 41 | /// The widget gets registred in the WidgetsRegistry. Then we can call for this getter from other micro apps. 42 | /// 43 | Widget? microAppWidget(); 44 | 45 | /// 46 | /// * Init Route Listeners 47 | /// 48 | /// Initialize the listeners for this micro app. 49 | /// 50 | /// This is where we listen to events and take action based on it. 51 | /// 52 | /// eg.: On UserLoggedOutEvent navigate to login screen, 53 | /// 54 | /// ``` 55 | /// CustomEventBus.bus.on().listen((UserLoggedOutEvent event) { 56 | /// Routing.pushNamed(Routes.login); 57 | /// }); 58 | /// ``` 59 | /// 60 | void initEventListeners(); 61 | 62 | /// 63 | /// * Micro App Events 64 | /// 65 | /// A method that returns an RouteEvent class. 66 | /// 67 | /// [RouteEvent] should register all the events the micro app needs to work properly. 68 | /// 69 | /// Thise object will be registred on the base app so all micro app can communicate between each other. 70 | /// 71 | /// Eg: 72 | /// ``` 73 | /// @override 74 | /// LoginEvents microAppEvents() => LoginEvents(); 75 | /// ``` 76 | /// 77 | RouteEvent microAppEvents(); 78 | 79 | /// 80 | /// * Injections Register 81 | /// 82 | void injectionsRegister(); 83 | } 84 | -------------------------------------------------------------------------------- /micro_core/lib/src/micro_core_utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | typedef WidgetBuilderArgs = Widget Function(BuildContext context, Object? args); 4 | late GlobalKey navigatorKey = GlobalKey(); 5 | -------------------------------------------------------------------------------- /micro_core/lib/src/widgets_registry.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names 2 | 3 | import 'package:flutter/widgets.dart'; 4 | 5 | Map WidgetsRegistry = {}; 6 | -------------------------------------------------------------------------------- /micro_core/lib/utils/enum.dart: -------------------------------------------------------------------------------- 1 | abstract class Enum { 2 | final T _value; 3 | const Enum(this._value); 4 | T get value => _value; 5 | } 6 | -------------------------------------------------------------------------------- /micro_core/lib/utils/usecases/README.md: -------------------------------------------------------------------------------- 1 | # Usecase 2 | This class serves as the default interface to create usecases for our features. 3 | 4 | **All usecases must** extend it. 5 | 6 | The contract for this interface is the callable method `call`. 7 | ``` 8 | Future> call(Input params); 9 | ``` 10 | You can see that it requires the exceptions to be of type `IFailure` 11 | 12 | ## Implementation 13 | ``` 14 | // create the class extending Usecase 15 | // providing the Input and Output types 16 | class MyUseCase extends Usecase{} 17 | 18 | // Provide you input type 19 | class DateParams extends Params { 20 | final ShiftDateTime date; 21 | DateParams(this.date); 22 | } 23 | 24 | // Provide you exception type 25 | class MyException extends IFailure { 26 | MyException(String message) : super(message); 27 | @override 28 | List get props => [message]; 29 | } 30 | 31 | ``` 32 | 33 | ## How to use 34 | When you extend `Usecase` you must provide `Input` and `Output` type. 35 | 36 | 37 | ### Input 38 | The `Input` must extend the `Params` interface. 39 | 40 | Eg.: 41 | If you need a usecase that receives a `ShiftDateTime` as input parameter 42 | 43 | you need to create a `Params` type class and receive the arguments in the constructor: 44 | ``` 45 | class DateParams extends Params { 46 | final ShiftDateTime date; 47 | DateParams(this.date); 48 | } 49 | ``` 50 | 51 | If you don't needd a parameter you can just pass `Params` as type or create a `NoParams` type 52 | 53 | ### Output 54 | The `Output` can be any type you want. 55 | 56 | ### Exceptions 57 | The exceptions musht extend from `IFailure` class. 58 | ``` 59 | class MyException extends IFailure { 60 | MyException(String message) : super(message); 61 | @override 62 | List get props => [message]; 63 | } 64 | ``` -------------------------------------------------------------------------------- /micro_core/lib/utils/usecases/failures.dart: -------------------------------------------------------------------------------- 1 | // import 'package:dependencies/dependencies.dart'; 2 | // import 'package:legacy/legacy.dart'; 3 | 4 | // import '../../infrastructure.dart'; 5 | 6 | // //! to be removed 7 | // class Failure extends IFailure { 8 | // Failure(String message) : super(message); 9 | // @override 10 | // List get props => [message]; 11 | // } 12 | 13 | // abstract class IFailure extends Equatable implements Exception { 14 | // final String message; 15 | // final StackTrace? stackTrace; 16 | 17 | // IFailure(this.message, [this.stackTrace]) { 18 | // ErrorHandler().logException(this.message, this.stackTrace); 19 | // } 20 | 21 | // void showErrorSnacbar() { 22 | // final _showErrorMessage = ShowErrorMessage(); 23 | // _showErrorMessage(message); 24 | // } 25 | // } 26 | -------------------------------------------------------------------------------- /micro_core/lib/utils/usecases/usecase.dart: -------------------------------------------------------------------------------- 1 | // import 'package:dependencies/dependencies.dart'; 2 | 3 | // import '../errors/failures.dart'; 4 | 5 | // abstract class Usecase { 6 | // Usecase() { 7 | // /// 8 | // /// Make sure who implements this class 9 | // /// always specify an Input and Output. 10 | // /// 11 | // assert(Input != dynamic && Output != dynamic); 12 | // } 13 | 14 | // /// 15 | // /// This mehtod is the contract when we extend [Usecase] 16 | // /// Here is where we execute the code of out usecase. 17 | // /// 18 | // Future> call(Input params); 19 | // } 20 | 21 | // /// 22 | // /// Because we need to pass a [Input] type to [Usecase], 23 | // /// when we dont need to pass params we use the generic [NoParams] class. 24 | // /// 25 | // class NoParams extends Params { 26 | // @override 27 | // List get props => []; 28 | // } 29 | 30 | // abstract class Params extends Equatable { 31 | // @override 32 | // List get props => []; 33 | // } 34 | -------------------------------------------------------------------------------- /micro_core/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: micro_core 2 | description: A new Flutter package project. 3 | version: 0.0.1 4 | homepage: 5 | publish_to: none 6 | 7 | environment: 8 | sdk: ">=2.15.0 <3.0.0" 9 | flutter: ">=1.17.0" 10 | 11 | dependencies: 12 | login: 13 | path: ../micro_apps/login 14 | home: 15 | path: ../micro_apps/home 16 | search: 17 | path: ../micro_apps/search 18 | 19 | equatable: ^2.0.3 20 | event_bus: 21 | flutter: 22 | sdk: flutter 23 | 24 | dev_dependencies: 25 | flutter_test: 26 | sdk: flutter 27 | flutter_lints: ^1.0.0 28 | 29 | flutter: --------------------------------------------------------------------------------