├── .flutter-plugins-dependencies
├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_clean_architecture
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ ├── Flutter.podspec
│ ├── Release.xcconfig
│ └── flutter_export_environment.sh
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── 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
│ └── main.m
├── lib
├── core
│ ├── error
│ │ ├── exception.dart
│ │ ├── failure.dart
│ │ └── no_params.dart
│ ├── http
│ │ ├── http_client.dart
│ │ ├── http_client_impl.dart
│ │ ├── network_info.dart
│ │ └── network_info_impl.dart
│ └── persistence
│ │ ├── key_value_store.dart
│ │ └── key_value_store_impl.dart
├── features
│ └── feed
│ │ ├── data
│ │ ├── datasources
│ │ │ ├── feed_local_data_source.dart
│ │ │ ├── feed_local_data_source_impl.dart
│ │ │ ├── feed_remote_data_source.dart
│ │ │ └── feed_remote_data_source_impl.dart
│ │ ├── models
│ │ │ └── feed_item_model.dart
│ │ └── repositories
│ │ │ └── feeds_repository_impl.dart
│ │ ├── domain
│ │ ├── entities
│ │ │ └── feed_item.dart
│ │ └── repositories
│ │ │ └── feeds_repository.dart
│ │ └── presentation
│ │ ├── bloc
│ │ ├── feeds_bloc.dart
│ │ └── feeds_state.dart
│ │ ├── screens
│ │ └── feeds_screen.dart
│ │ └── widgets
│ │ ├── feed_description.dart
│ │ ├── feed_header.dart
│ │ ├── feed_image_view.dart
│ │ ├── feed_list.dart
│ │ └── feed_list_item.dart
├── injection_container.dart
└── main.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"shared_preferences","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 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/ServiceDefinitions.json
65 | **/ios/Runner/GeneratedPluginRegistrant.*
66 |
67 | # Exceptions to above rules.
68 | !**/ios/**/default.mode1v3
69 | !**/ios/**/default.mode2v3
70 | !**/ios/**/default.pbxuser
71 | !**/ios/**/default.perspectivev3
72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
73 |
--------------------------------------------------------------------------------
/.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: e4ebcdf6f4facee5779c38a04d91d08dc58ea7a4
8 | channel: dev
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://gitter.im/flutter-twgeekday/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
2 |
3 | # Flutter Clean Architecture
4 |
5 | A new Flutter project.
6 |
7 | ## Getting Started
8 |
9 | This project is a starting point for a Flutter application.
10 |
11 | A few resources to get you started if this is your first Flutter project:
12 |
13 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
14 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
15 |
16 | For help getting started with Flutter, view our
17 | [online documentation](https://flutter.dev/docs), which offers tutorials,
18 | samples, guidance on mobile development, and a full API reference.
19 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 28
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.example.flutter_clean_architecture"
37 | minSdkVersion 16
38 | targetSdkVersion 28
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | testImplementation 'junit:junit:4.12'
59 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61 | }
62 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/flutter_clean_architecture/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.flutter_clean_architecture;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.2.1'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Flutter.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # NOTE: This podspec is NOT to be published. It is only used as a local source!
3 | #
4 |
5 | Pod::Spec.new do |s|
6 | s.name = 'Flutter'
7 | s.version = '1.0.0'
8 | s.summary = 'High-performance, high-fidelity mobile apps.'
9 | s.description = <<-DESC
10 | Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS.
11 | DESC
12 | s.homepage = 'https://flutter.io'
13 | s.license = { :type => 'MIT' }
14 | s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
15 | s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
16 | s.ios.deployment_target = '8.0'
17 | s.vendored_frameworks = 'Flutter.framework'
18 | end
19 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/flutter_export_environment.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # This is a generated file; do not edit or check into version control.
3 | export "FLUTTER_ROOT=/Users/Chandru/flutter"
4 | export "FLUTTER_APPLICATION_PATH=/Users/Chandru/Desktop/Flutter/opensource/flutter_clean_architecture"
5 | export "FLUTTER_TARGET=/Users/Chandru/Desktop/Flutter/opensource/flutter_clean_architecture/lib/main.dart"
6 | export "FLUTTER_BUILD_DIR=build"
7 | export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8 | export "FLUTTER_FRAMEWORK_DIR=/Users/Chandru/flutter/bin/cache/artifacts/engine/ios"
9 | export "FLUTTER_BUILD_NAME=1.0.0"
10 | export "FLUTTER_BUILD_NUMBER=1"
11 | export "TRACK_WIDGET_CREATION=true"
12 |
--------------------------------------------------------------------------------
/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 parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | pods_ary = []
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) { |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | pods_ary.push({:name => podname, :path => podpath});
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | }
32 | return pods_ary
33 | end
34 |
35 | target 'Runner' do
36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
37 | # referring to absolute paths on developers' machines.
38 | system('rm -rf .symlinks')
39 | system('mkdir -p .symlinks/plugins')
40 |
41 | # Flutter Pods
42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
43 | if generated_xcode_build_settings.empty?
44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
45 | end
46 | generated_xcode_build_settings.map { |p|
47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
48 | symlink = File.join('.symlinks', 'flutter')
49 | File.symlink(File.dirname(p[:path]), symlink)
50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
51 | end
52 | }
53 |
54 | # Plugin Pods
55 | plugin_pods = parse_KV_file('../.flutter-plugins')
56 | plugin_pods.map { |p|
57 | symlink = File.join('.symlinks', 'plugins', p[:name])
58 | File.symlink(p[:path], symlink)
59 | pod p[:name], :path => File.join(symlink, 'ios')
60 | }
61 | end
62 |
63 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
64 | install! 'cocoapods', :disable_input_output_paths => true
65 |
66 | post_install do |installer|
67 | installer.pods_project.targets.each do |target|
68 | target.build_configurations.each do |config|
69 | config.build_settings['ENABLE_BITCODE'] = 'NO'
70 | end
71 | end
72 | end
73 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - shared_preferences (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `.symlinks/flutter/ios`)
8 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: ".symlinks/flutter/ios"
13 | shared_preferences:
14 | :path: ".symlinks/plugins/shared_preferences/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18 | shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01
19 |
20 | PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
21 |
22 | COCOAPODS: 1.6.1
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 6A954460C38A523C4987B0A9 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D4E23BCA34968C837DE4AF97 /* libPods-Runner.a */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
23 | /* End PBXBuildFile section */
24 |
25 | /* Begin PBXCopyFilesBuildPhase section */
26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
27 | isa = PBXCopyFilesBuildPhase;
28 | buildActionMask = 2147483647;
29 | dstPath = "";
30 | dstSubfolderSpec = 10;
31 | files = (
32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
34 | );
35 | name = "Embed Frameworks";
36 | runOnlyForDeploymentPostprocessing = 0;
37 | };
38 | /* End PBXCopyFilesBuildPhase section */
39 |
40 | /* Begin PBXFileReference section */
41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
43 | 339DD21DA85AEBE545A6A056 /* 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 = ""; };
44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
49 | 8E20707F11344D3FFD7BB7F3 /* 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 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
54 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
59 | A7FFB0D757DA053DF95E441F /* 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 = ""; };
60 | D4E23BCA34968C837DE4AF97 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
61 | /* End PBXFileReference section */
62 |
63 | /* Begin PBXFrameworksBuildPhase section */
64 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
65 | isa = PBXFrameworksBuildPhase;
66 | buildActionMask = 2147483647;
67 | files = (
68 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
69 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
70 | 6A954460C38A523C4987B0A9 /* libPods-Runner.a in Frameworks */,
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | /* End PBXFrameworksBuildPhase section */
75 |
76 | /* Begin PBXGroup section */
77 | 2B613C98B3D9435FDF9E52A4 /* Pods */ = {
78 | isa = PBXGroup;
79 | children = (
80 | 339DD21DA85AEBE545A6A056 /* Pods-Runner.debug.xcconfig */,
81 | 8E20707F11344D3FFD7BB7F3 /* Pods-Runner.release.xcconfig */,
82 | A7FFB0D757DA053DF95E441F /* Pods-Runner.profile.xcconfig */,
83 | );
84 | name = Pods;
85 | path = Pods;
86 | sourceTree = "";
87 | };
88 | 9740EEB11CF90186004384FC /* Flutter */ = {
89 | isa = PBXGroup;
90 | children = (
91 | 3B80C3931E831B6300D905FE /* App.framework */,
92 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
93 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
96 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
97 | );
98 | name = Flutter;
99 | sourceTree = "";
100 | };
101 | 97C146E51CF9000F007C117D = {
102 | isa = PBXGroup;
103 | children = (
104 | 9740EEB11CF90186004384FC /* Flutter */,
105 | 97C146F01CF9000F007C117D /* Runner */,
106 | 97C146EF1CF9000F007C117D /* Products */,
107 | 2B613C98B3D9435FDF9E52A4 /* Pods */,
108 | CA37A7A40B4612D48ACA43E0 /* Frameworks */,
109 | );
110 | sourceTree = "";
111 | };
112 | 97C146EF1CF9000F007C117D /* Products */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 97C146EE1CF9000F007C117D /* Runner.app */,
116 | );
117 | name = Products;
118 | sourceTree = "";
119 | };
120 | 97C146F01CF9000F007C117D /* Runner */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
124 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
125 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
126 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
127 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
128 | 97C147021CF9000F007C117D /* Info.plist */,
129 | 97C146F11CF9000F007C117D /* Supporting Files */,
130 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
131 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
132 | );
133 | path = Runner;
134 | sourceTree = "";
135 | };
136 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
137 | isa = PBXGroup;
138 | children = (
139 | 97C146F21CF9000F007C117D /* main.m */,
140 | );
141 | name = "Supporting Files";
142 | sourceTree = "";
143 | };
144 | CA37A7A40B4612D48ACA43E0 /* Frameworks */ = {
145 | isa = PBXGroup;
146 | children = (
147 | D4E23BCA34968C837DE4AF97 /* libPods-Runner.a */,
148 | );
149 | name = Frameworks;
150 | sourceTree = "";
151 | };
152 | /* End PBXGroup section */
153 |
154 | /* Begin PBXNativeTarget section */
155 | 97C146ED1CF9000F007C117D /* Runner */ = {
156 | isa = PBXNativeTarget;
157 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
158 | buildPhases = (
159 | B5742468FFB31CEF475D1D7A /* [CP] Check Pods Manifest.lock */,
160 | 9740EEB61CF901F6004384FC /* Run Script */,
161 | 97C146EA1CF9000F007C117D /* Sources */,
162 | 97C146EB1CF9000F007C117D /* Frameworks */,
163 | 97C146EC1CF9000F007C117D /* Resources */,
164 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
165 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
166 | A09A74B0A59336EFC6DFF164 /* [CP] Embed Pods Frameworks */,
167 | );
168 | buildRules = (
169 | );
170 | dependencies = (
171 | );
172 | name = Runner;
173 | productName = Runner;
174 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
175 | productType = "com.apple.product-type.application";
176 | };
177 | /* End PBXNativeTarget section */
178 |
179 | /* Begin PBXProject section */
180 | 97C146E61CF9000F007C117D /* Project object */ = {
181 | isa = PBXProject;
182 | attributes = {
183 | LastUpgradeCheck = 1020;
184 | ORGANIZATIONNAME = "The Chromium Authors";
185 | TargetAttributes = {
186 | 97C146ED1CF9000F007C117D = {
187 | CreatedOnToolsVersion = 7.3.1;
188 | };
189 | };
190 | };
191 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
192 | compatibilityVersion = "Xcode 3.2";
193 | developmentRegion = en;
194 | hasScannedForEncodings = 0;
195 | knownRegions = (
196 | en,
197 | Base,
198 | );
199 | mainGroup = 97C146E51CF9000F007C117D;
200 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
201 | projectDirPath = "";
202 | projectRoot = "";
203 | targets = (
204 | 97C146ED1CF9000F007C117D /* Runner */,
205 | );
206 | };
207 | /* End PBXProject section */
208 |
209 | /* Begin PBXResourcesBuildPhase section */
210 | 97C146EC1CF9000F007C117D /* Resources */ = {
211 | isa = PBXResourcesBuildPhase;
212 | buildActionMask = 2147483647;
213 | files = (
214 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
215 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
216 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
219 | );
220 | runOnlyForDeploymentPostprocessing = 0;
221 | };
222 | /* End PBXResourcesBuildPhase section */
223 |
224 | /* Begin PBXShellScriptBuildPhase section */
225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
226 | isa = PBXShellScriptBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | );
230 | inputPaths = (
231 | );
232 | name = "Thin Binary";
233 | outputPaths = (
234 | );
235 | runOnlyForDeploymentPostprocessing = 0;
236 | shellPath = /bin/sh;
237 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
238 | };
239 | 9740EEB61CF901F6004384FC /* Run Script */ = {
240 | isa = PBXShellScriptBuildPhase;
241 | buildActionMask = 2147483647;
242 | files = (
243 | );
244 | inputPaths = (
245 | );
246 | name = "Run Script";
247 | outputPaths = (
248 | );
249 | runOnlyForDeploymentPostprocessing = 0;
250 | shellPath = /bin/sh;
251 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
252 | };
253 | A09A74B0A59336EFC6DFF164 /* [CP] Embed Pods Frameworks */ = {
254 | isa = PBXShellScriptBuildPhase;
255 | buildActionMask = 2147483647;
256 | files = (
257 | );
258 | inputFileListPaths = (
259 | );
260 | inputPaths = (
261 | );
262 | name = "[CP] Embed Pods Frameworks";
263 | outputFileListPaths = (
264 | );
265 | outputPaths = (
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | shellPath = /bin/sh;
269 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
270 | showEnvVarsInLog = 0;
271 | };
272 | B5742468FFB31CEF475D1D7A /* [CP] Check Pods Manifest.lock */ = {
273 | isa = PBXShellScriptBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | );
277 | inputFileListPaths = (
278 | );
279 | inputPaths = (
280 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
281 | "${PODS_ROOT}/Manifest.lock",
282 | );
283 | name = "[CP] Check Pods Manifest.lock";
284 | outputFileListPaths = (
285 | );
286 | outputPaths = (
287 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
288 | );
289 | runOnlyForDeploymentPostprocessing = 0;
290 | shellPath = /bin/sh;
291 | 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";
292 | showEnvVarsInLog = 0;
293 | };
294 | /* End PBXShellScriptBuildPhase section */
295 |
296 | /* Begin PBXSourcesBuildPhase section */
297 | 97C146EA1CF9000F007C117D /* Sources */ = {
298 | isa = PBXSourcesBuildPhase;
299 | buildActionMask = 2147483647;
300 | files = (
301 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
302 | 97C146F31CF9000F007C117D /* main.m in Sources */,
303 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
304 | );
305 | runOnlyForDeploymentPostprocessing = 0;
306 | };
307 | /* End PBXSourcesBuildPhase section */
308 |
309 | /* Begin PBXVariantGroup section */
310 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
311 | isa = PBXVariantGroup;
312 | children = (
313 | 97C146FB1CF9000F007C117D /* Base */,
314 | );
315 | name = Main.storyboard;
316 | sourceTree = "";
317 | };
318 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
319 | isa = PBXVariantGroup;
320 | children = (
321 | 97C147001CF9000F007C117D /* Base */,
322 | );
323 | name = LaunchScreen.storyboard;
324 | sourceTree = "";
325 | };
326 | /* End PBXVariantGroup section */
327 |
328 | /* Begin XCBuildConfiguration section */
329 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
330 | isa = XCBuildConfiguration;
331 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
332 | buildSettings = {
333 | ALWAYS_SEARCH_USER_PATHS = NO;
334 | CLANG_ANALYZER_NONNULL = YES;
335 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
336 | CLANG_CXX_LIBRARY = "libc++";
337 | CLANG_ENABLE_MODULES = YES;
338 | CLANG_ENABLE_OBJC_ARC = YES;
339 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
340 | CLANG_WARN_BOOL_CONVERSION = YES;
341 | CLANG_WARN_COMMA = YES;
342 | CLANG_WARN_CONSTANT_CONVERSION = YES;
343 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
344 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
345 | CLANG_WARN_EMPTY_BODY = YES;
346 | CLANG_WARN_ENUM_CONVERSION = YES;
347 | CLANG_WARN_INFINITE_RECURSION = YES;
348 | CLANG_WARN_INT_CONVERSION = YES;
349 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
350 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
351 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
352 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
353 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
354 | CLANG_WARN_STRICT_PROTOTYPES = YES;
355 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
356 | CLANG_WARN_UNREACHABLE_CODE = YES;
357 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
358 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
359 | COPY_PHASE_STRIP = NO;
360 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
361 | ENABLE_NS_ASSERTIONS = NO;
362 | ENABLE_STRICT_OBJC_MSGSEND = YES;
363 | GCC_C_LANGUAGE_STANDARD = gnu99;
364 | GCC_NO_COMMON_BLOCKS = YES;
365 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
366 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
367 | GCC_WARN_UNDECLARED_SELECTOR = YES;
368 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
369 | GCC_WARN_UNUSED_FUNCTION = YES;
370 | GCC_WARN_UNUSED_VARIABLE = YES;
371 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
372 | MTL_ENABLE_DEBUG_INFO = NO;
373 | SDKROOT = iphoneos;
374 | TARGETED_DEVICE_FAMILY = "1,2";
375 | VALIDATE_PRODUCT = YES;
376 | };
377 | name = Profile;
378 | };
379 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
380 | isa = XCBuildConfiguration;
381 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
382 | buildSettings = {
383 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
384 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
385 | ENABLE_BITCODE = NO;
386 | FRAMEWORK_SEARCH_PATHS = (
387 | "$(inherited)",
388 | "$(PROJECT_DIR)/Flutter",
389 | );
390 | INFOPLIST_FILE = Runner/Info.plist;
391 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
392 | LIBRARY_SEARCH_PATHS = (
393 | "$(inherited)",
394 | "$(PROJECT_DIR)/Flutter",
395 | );
396 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterCleanArchitecture;
397 | PRODUCT_NAME = "$(TARGET_NAME)";
398 | VERSIONING_SYSTEM = "apple-generic";
399 | };
400 | name = Profile;
401 | };
402 | 97C147031CF9000F007C117D /* Debug */ = {
403 | isa = XCBuildConfiguration;
404 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
405 | buildSettings = {
406 | ALWAYS_SEARCH_USER_PATHS = NO;
407 | CLANG_ANALYZER_NONNULL = YES;
408 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
409 | CLANG_CXX_LIBRARY = "libc++";
410 | CLANG_ENABLE_MODULES = YES;
411 | CLANG_ENABLE_OBJC_ARC = YES;
412 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
413 | CLANG_WARN_BOOL_CONVERSION = YES;
414 | CLANG_WARN_COMMA = YES;
415 | CLANG_WARN_CONSTANT_CONVERSION = YES;
416 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
418 | CLANG_WARN_EMPTY_BODY = YES;
419 | CLANG_WARN_ENUM_CONVERSION = YES;
420 | CLANG_WARN_INFINITE_RECURSION = YES;
421 | CLANG_WARN_INT_CONVERSION = YES;
422 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
423 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
424 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
425 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
426 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
427 | CLANG_WARN_STRICT_PROTOTYPES = YES;
428 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
429 | CLANG_WARN_UNREACHABLE_CODE = YES;
430 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
431 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
432 | COPY_PHASE_STRIP = NO;
433 | DEBUG_INFORMATION_FORMAT = dwarf;
434 | ENABLE_STRICT_OBJC_MSGSEND = YES;
435 | ENABLE_TESTABILITY = YES;
436 | GCC_C_LANGUAGE_STANDARD = gnu99;
437 | GCC_DYNAMIC_NO_PIC = NO;
438 | GCC_NO_COMMON_BLOCKS = YES;
439 | GCC_OPTIMIZATION_LEVEL = 0;
440 | GCC_PREPROCESSOR_DEFINITIONS = (
441 | "DEBUG=1",
442 | "$(inherited)",
443 | );
444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
445 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
446 | GCC_WARN_UNDECLARED_SELECTOR = YES;
447 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
448 | GCC_WARN_UNUSED_FUNCTION = YES;
449 | GCC_WARN_UNUSED_VARIABLE = YES;
450 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
451 | MTL_ENABLE_DEBUG_INFO = YES;
452 | ONLY_ACTIVE_ARCH = YES;
453 | SDKROOT = iphoneos;
454 | TARGETED_DEVICE_FAMILY = "1,2";
455 | };
456 | name = Debug;
457 | };
458 | 97C147041CF9000F007C117D /* Release */ = {
459 | isa = XCBuildConfiguration;
460 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
461 | buildSettings = {
462 | ALWAYS_SEARCH_USER_PATHS = NO;
463 | CLANG_ANALYZER_NONNULL = YES;
464 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
465 | CLANG_CXX_LIBRARY = "libc++";
466 | CLANG_ENABLE_MODULES = YES;
467 | CLANG_ENABLE_OBJC_ARC = YES;
468 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
469 | CLANG_WARN_BOOL_CONVERSION = YES;
470 | CLANG_WARN_COMMA = YES;
471 | CLANG_WARN_CONSTANT_CONVERSION = YES;
472 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
473 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
474 | CLANG_WARN_EMPTY_BODY = YES;
475 | CLANG_WARN_ENUM_CONVERSION = YES;
476 | CLANG_WARN_INFINITE_RECURSION = YES;
477 | CLANG_WARN_INT_CONVERSION = YES;
478 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
479 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
480 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
482 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
483 | CLANG_WARN_STRICT_PROTOTYPES = YES;
484 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
485 | CLANG_WARN_UNREACHABLE_CODE = YES;
486 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
487 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
488 | COPY_PHASE_STRIP = NO;
489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
490 | ENABLE_NS_ASSERTIONS = NO;
491 | ENABLE_STRICT_OBJC_MSGSEND = YES;
492 | GCC_C_LANGUAGE_STANDARD = gnu99;
493 | GCC_NO_COMMON_BLOCKS = YES;
494 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
495 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
496 | GCC_WARN_UNDECLARED_SELECTOR = YES;
497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
498 | GCC_WARN_UNUSED_FUNCTION = YES;
499 | GCC_WARN_UNUSED_VARIABLE = YES;
500 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
501 | MTL_ENABLE_DEBUG_INFO = NO;
502 | SDKROOT = iphoneos;
503 | TARGETED_DEVICE_FAMILY = "1,2";
504 | VALIDATE_PRODUCT = YES;
505 | };
506 | name = Release;
507 | };
508 | 97C147061CF9000F007C117D /* Debug */ = {
509 | isa = XCBuildConfiguration;
510 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
511 | buildSettings = {
512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
513 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
514 | ENABLE_BITCODE = NO;
515 | FRAMEWORK_SEARCH_PATHS = (
516 | "$(inherited)",
517 | "$(PROJECT_DIR)/Flutter",
518 | );
519 | INFOPLIST_FILE = Runner/Info.plist;
520 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
521 | LIBRARY_SEARCH_PATHS = (
522 | "$(inherited)",
523 | "$(PROJECT_DIR)/Flutter",
524 | );
525 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterCleanArchitecture;
526 | PRODUCT_NAME = "$(TARGET_NAME)";
527 | VERSIONING_SYSTEM = "apple-generic";
528 | };
529 | name = Debug;
530 | };
531 | 97C147071CF9000F007C117D /* Release */ = {
532 | isa = XCBuildConfiguration;
533 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
534 | buildSettings = {
535 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
536 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
537 | ENABLE_BITCODE = NO;
538 | FRAMEWORK_SEARCH_PATHS = (
539 | "$(inherited)",
540 | "$(PROJECT_DIR)/Flutter",
541 | );
542 | INFOPLIST_FILE = Runner/Info.plist;
543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
544 | LIBRARY_SEARCH_PATHS = (
545 | "$(inherited)",
546 | "$(PROJECT_DIR)/Flutter",
547 | );
548 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterCleanArchitecture;
549 | PRODUCT_NAME = "$(TARGET_NAME)";
550 | VERSIONING_SYSTEM = "apple-generic";
551 | };
552 | name = Release;
553 | };
554 | /* End XCBuildConfiguration section */
555 |
556 | /* Begin XCConfigurationList section */
557 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
558 | isa = XCConfigurationList;
559 | buildConfigurations = (
560 | 97C147031CF9000F007C117D /* Debug */,
561 | 97C147041CF9000F007C117D /* Release */,
562 | 249021D3217E4FDB00AE95B9 /* Profile */,
563 | );
564 | defaultConfigurationIsVisible = 0;
565 | defaultConfigurationName = Release;
566 | };
567 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
568 | isa = XCConfigurationList;
569 | buildConfigurations = (
570 | 97C147061CF9000F007C117D /* Debug */,
571 | 97C147071CF9000F007C117D /* Release */,
572 | 249021D4217E4FDB00AE95B9 /* Profile */,
573 | );
574 | defaultConfigurationIsVisible = 0;
575 | defaultConfigurationName = Release;
576 | };
577 | /* End XCConfigurationList section */
578 | };
579 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
580 | }
581 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_clean_architecture
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/core/error/exception.dart:
--------------------------------------------------------------------------------
1 | class APIException implements Exception {}
2 |
3 | class CacheException implements Exception {}
4 |
--------------------------------------------------------------------------------
/lib/core/error/failure.dart:
--------------------------------------------------------------------------------
1 | class Failure {
2 | Failure({this.message});
3 | final String message;
4 | }
5 |
6 | class APIFailure extends Failure {
7 | APIFailure({String message}) : super(message: message);
8 | }
9 |
10 | class CacheFailure extends Failure {
11 | CacheFailure({String message}) : super(message: message);
12 | }
13 |
--------------------------------------------------------------------------------
/lib/core/error/no_params.dart:
--------------------------------------------------------------------------------
1 | class NoParams {}
--------------------------------------------------------------------------------
/lib/core/http/http_client.dart:
--------------------------------------------------------------------------------
1 | abstract class HttpClient {
2 | Future get(String url, {Map headers});
3 | }
4 |
--------------------------------------------------------------------------------
/lib/core/http/http_client_impl.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clean_architecture/core/http/http_client.dart';
3 | import 'package:http/http.dart' as http;
4 |
5 | class HttpClientImpl implements HttpClient {
6 | HttpClientImpl({@required this.client});
7 | final http.Client client;
8 |
9 | @override
10 | Future get(String url, {Map headers}) async {
11 | final response = await client.get(url, headers: headers);
12 | return response;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/core/http/network_info.dart:
--------------------------------------------------------------------------------
1 | abstract class NetworkInfo {
2 | Future get isConnected;
3 | }
4 |
--------------------------------------------------------------------------------
/lib/core/http/network_info_impl.dart:
--------------------------------------------------------------------------------
1 | import 'package:data_connection_checker/data_connection_checker.dart';
2 | import 'package:flutter_clean_architecture/core/http/network_info.dart';
3 |
4 | class NetworkInfoImpl implements NetworkInfo {
5 | NetworkInfoImpl(this.connectionChecker);
6 | final DataConnectionChecker connectionChecker;
7 | @override
8 | Future get isConnected => connectionChecker.hasConnection;
9 | }
10 |
--------------------------------------------------------------------------------
/lib/core/persistence/key_value_store.dart:
--------------------------------------------------------------------------------
1 | abstract class KeyValueStore {
2 | Future setString({String value, String key});
3 | Future getString({String key});
4 | }
5 |
--------------------------------------------------------------------------------
/lib/core/persistence/key_value_store_impl.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clean_architecture/core/persistence/key_value_store.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 |
5 | class KeyValueStoreImpl implements KeyValueStore {
6 | static const FEED = 'FEED';
7 |
8 | KeyValueStoreImpl({@required this.sharedPreferences});
9 | final SharedPreferences sharedPreferences;
10 |
11 | @override
12 | Future getString({String key}) {
13 | return sharedPreferences.get(key);
14 | }
15 |
16 | @override
17 | Future setString({String value, String key}) {
18 | return sharedPreferences.setString(key, value);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/features/feed/data/datasources/feed_local_data_source.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
2 |
3 | abstract class FeedLocalDataSource {
4 | Future> getLastFeed();
5 | Future saveFeed(List feed);
6 | }
7 |
--------------------------------------------------------------------------------
/lib/features/feed/data/datasources/feed_local_data_source_impl.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_clean_architecture/core/error/exception.dart';
5 | import 'package:flutter_clean_architecture/core/persistence/key_value_store.dart';
6 | import 'package:flutter_clean_architecture/core/persistence/key_value_store_impl.dart';
7 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_local_data_source.dart';
8 | import 'package:flutter_clean_architecture/features/feed/data/models/feed_item_model.dart';
9 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
10 |
11 | class FeedLocalDataSourceImpl implements FeedLocalDataSource {
12 | FeedLocalDataSourceImpl({@required this.keyValueStore});
13 | final KeyValueStore keyValueStore;
14 |
15 | @override
16 | Future> getLastFeed() async {
17 | final jsonString =
18 | await keyValueStore.getString(key: KeyValueStoreImpl.FEED);
19 | if (jsonString != null) {
20 | return Future.value(feedFromJson(json.decode(jsonString)));
21 | } else {
22 | throw CacheException();
23 | }
24 | }
25 |
26 | @override
27 | Future saveFeed(List feed) {
28 | return keyValueStore.setString(
29 | key: KeyValueStoreImpl.FEED,
30 | value: json.encode(feedToJson(feed)),
31 | );
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/features/feed/data/datasources/feed_remote_data_source.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clean_architecture/features/feed/data/models/feed_item_model.dart';
2 |
3 | abstract class FeedRemoteDataSource {
4 | Future> getFeed();
5 | }
6 |
--------------------------------------------------------------------------------
/lib/features/feed/data/datasources/feed_remote_data_source_impl.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter_clean_architecture/core/error/exception.dart';
4 | import 'package:flutter_clean_architecture/core/http/http_client.dart';
5 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_remote_data_source.dart';
6 | import 'package:flutter_clean_architecture/features/feed/data/models/feed_item_model.dart';
7 |
8 | class FeedRemoteDataSourceImpl implements FeedRemoteDataSource {
9 | FeedRemoteDataSourceImpl({this.httpClient});
10 |
11 | final HttpClient httpClient;
12 |
13 | @override
14 | Future> getFeed() async {
15 | final response = await httpClient
16 | .get('http://www.mocky.io/v2/5da9ee773100006c184e0c8b', headers: {});
17 | if (response.statusCode == 200) {
18 | return feedFromJson(json.decode(response.body));
19 | } else {
20 | throw APIException();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/features/feed/data/models/feed_item_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
3 |
4 | List feedFromJson(List jsonItem) =>
5 | List.from(jsonItem.map((x) => FeedItemModel.fromJson(x)));
6 |
7 | List feedToJson(List feed) {
8 | List jsonItems = List();
9 | feed.map((item) => jsonItems.add(item.toJson())).toList();
10 | return jsonItems;
11 | }
12 |
13 | class FeedItemModel extends FeedItem {
14 | FeedItemModel(
15 | {@required int id,
16 | @required String name,
17 | @required String imageUrl,
18 | @required String profileImageUrl,
19 | @required String description})
20 | : super(
21 | id: id,
22 | name: name,
23 | imageUrl: imageUrl,
24 | profileImageUrl: profileImageUrl,
25 | description: description);
26 |
27 | factory FeedItemModel.fromJson(Map json) {
28 | return FeedItemModel(
29 | id: json['id'],
30 | name: json['name'],
31 | imageUrl: json['imageUrl'],
32 | profileImageUrl: json['profileImageUrl'],
33 | description: json['description']);
34 | }
35 |
36 | Map toJson() {
37 | return {
38 | 'id': id,
39 | 'name': name,
40 | 'imageUrl': imageUrl,
41 | 'profileImageUrl': profileImageUrl,
42 | 'description': description
43 | };
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/features/feed/data/repositories/feeds_repository_impl.dart:
--------------------------------------------------------------------------------
1 | import 'package:dartz/dartz.dart';
2 | import 'package:flutter/foundation.dart';
3 | import 'package:flutter_clean_architecture/core/error/exception.dart';
4 | import 'package:flutter_clean_architecture/core/error/failure.dart';
5 | import 'package:flutter_clean_architecture/core/http/network_info.dart';
6 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_local_data_source.dart';
7 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_remote_data_source.dart';
8 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
9 | import 'package:flutter_clean_architecture/features/feed/domain/repositories/feeds_repository.dart';
10 |
11 | class FeedsRepositoryImpl implements FeedsRepository {
12 | FeedsRepositoryImpl(
13 | {@required this.remoteDataSource,
14 | @required this.localDataSource,
15 | @required this.networkInfo});
16 |
17 | final FeedRemoteDataSource remoteDataSource;
18 | final FeedLocalDataSource localDataSource;
19 | final NetworkInfo networkInfo;
20 |
21 | @override
22 | Future>> getFeeds() async {
23 | bool isConnected = await networkInfo.isConnected;
24 | if (!isConnected) {
25 | try {
26 | final lastFeed = await localDataSource.getLastFeed();
27 | return Right(lastFeed);
28 | } on CacheException {
29 | return Left(CacheFailure(message: 'Cache Error'));
30 | }
31 | }
32 | try {
33 | final feed = await remoteDataSource.getFeed();
34 | localDataSource.saveFeed(feed);
35 | return Right(feed);
36 | } on APIException {
37 | return Left(APIFailure(message: 'Api Error'));
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/features/feed/domain/entities/feed_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:meta/meta.dart';
2 |
3 | class FeedItem {
4 | final int id;
5 | final String name;
6 | final String imageUrl;
7 | final String profileImageUrl;
8 | final String description;
9 |
10 | FeedItem({
11 | @required this.id,
12 | @required this.name,
13 | @required this.imageUrl,
14 | @required this.profileImageUrl,
15 | @required this.description,
16 | });
17 | }
18 |
--------------------------------------------------------------------------------
/lib/features/feed/domain/repositories/feeds_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:dartz/dartz.dart';
2 | import 'package:flutter_clean_architecture/core/error/failure.dart';
3 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
4 |
5 | abstract class FeedsRepository {
6 | Future>> getFeeds();
7 | }
--------------------------------------------------------------------------------
/lib/features/feed/presentation/bloc/feeds_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 | import 'package:flutter_clean_architecture/core/error/no_params.dart';
3 | import 'package:flutter_clean_architecture/features/feed/domain/repositories/feeds_repository.dart';
4 | import 'package:flutter_clean_architecture/features/feed/presentation/bloc/feeds_state.dart';
5 | import 'package:meta/meta.dart';
6 |
7 | class FeedsBloc extends Bloc {
8 | FeedsBloc({@required this.repository});
9 |
10 | FeedsRepository repository;
11 |
12 | @override
13 | FeedsState get initialState => FeedsInitial();
14 |
15 | @override
16 | Stream mapEventToState(NoParams event) async* {
17 | yield FeedsLoading();
18 | final output = await repository.getFeeds();
19 | yield* output.fold((failure) async* {
20 | yield FeedsError("Something wrong!");
21 | }, (feedItems) async* {
22 | yield FeedsLoaded(feedItems);
23 | });
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/bloc/feeds_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
2 |
3 | abstract class FeedsState {}
4 |
5 | class FeedsInitial extends FeedsState {}
6 |
7 | class FeedsLoading extends FeedsState {}
8 |
9 | class FeedsLoaded extends FeedsState {
10 | final List feedItems;
11 | FeedsLoaded(this.feedItems);
12 | }
13 |
14 | class FeedsError extends FeedsState {
15 | final String message;
16 | FeedsError(this.message);
17 | }
18 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/screens/feeds_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:flutter_clean_architecture/core/error/no_params.dart';
4 | import 'package:flutter_clean_architecture/features/feed/domain/repositories/feeds_repository.dart';
5 | import 'package:flutter_clean_architecture/features/feed/presentation/bloc/feeds_bloc.dart';
6 | import 'package:flutter_clean_architecture/features/feed/presentation/bloc/feeds_state.dart';
7 | import 'package:flutter_clean_architecture/features/feed/presentation/widgets/feed_list.dart';
8 | import 'package:flutter_clean_architecture/injection_container.dart';
9 |
10 | class FeedsScreen extends StatefulWidget {
11 | @override
12 | _FeedsScreenState createState() => _FeedsScreenState();
13 | }
14 |
15 | class _FeedsScreenState extends State {
16 | FeedsBloc bloc;
17 |
18 | @override
19 | void initState() {
20 | super.initState();
21 | bloc = FeedsBloc(repository: sl());
22 | }
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | bloc.add(NoParams());
27 | return Scaffold(
28 | body: BlocBuilder(
29 | bloc: bloc,
30 | builder: (BuildContext context, FeedsState feedState) {
31 | if (feedState is FeedsLoading) {
32 | return Center(child: CircularProgressIndicator());
33 | } else if (feedState is FeedsError) {
34 | return Text('Ayo! Error');
35 | } else if (feedState is FeedsLoaded) {
36 | return FeedList(feeds: feedState.feedItems);
37 | }
38 | return Container(
39 | color: Colors.orangeAccent,
40 | height: double.infinity,
41 | width: double.infinity);
42 | }),
43 | );
44 | }
45 |
46 | @override
47 | void dispose() {
48 | bloc.close();
49 | super.dispose();
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/widgets/feed_description.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FeedDescription extends StatelessWidget {
4 | String description;
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | width: double.infinity,
10 | color: Colors.black54,
11 | height: 80,
12 | padding: EdgeInsets.all(16),
13 | child: Text(
14 | description,
15 | style: TextStyle(color: Colors.white, fontSize: 16),
16 | ));
17 | }
18 |
19 | FeedDescription({this.description});
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/widgets/feed_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FeedHeader extends StatelessWidget {
4 | String name, profileImageUrl;
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | color: Colors.black87,
10 | child: ListTile(
11 | title: Text(name, style: TextStyle(color: Colors.white)),
12 | leading: CircleAvatar(
13 | child: Image.network(
14 | profileImageUrl))),
15 | );
16 | }
17 |
18 | FeedHeader({this.name, this.profileImageUrl});
19 | }
20 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/widgets/feed_image_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FeedImageView extends StatelessWidget {
4 | String url;
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return SizedBox(
9 | width: double.infinity,
10 | height: 200,
11 | child: Image.network(url, fit: BoxFit.cover));
12 | }
13 |
14 | FeedImageView({this.url});
15 | }
16 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/widgets/feed_list.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_clean_architecture/features/feed/domain/entities/feed_item.dart';
3 | import 'package:flutter_clean_architecture/features/feed/presentation/widgets/feed_description.dart';
4 | import 'package:flutter_clean_architecture/features/feed/presentation/widgets/feed_header.dart';
5 | import 'package:flutter_clean_architecture/features/feed/presentation/widgets/feed_image_view.dart';
6 | import 'package:flutter_clean_architecture/features/feed/presentation/widgets/feed_list_item.dart';
7 |
8 | class FeedList extends StatelessWidget {
9 |
10 | List feeds;
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return ListView.builder(
15 | itemBuilder: (BuildContext context, int index) {
16 | final feed = feeds[index];
17 | return FeedListItem(header: FeedHeader(name: feed.name, profileImageUrl: feed.profileImageUrl), stackChildren: [
18 | FeedImageView(url: feed.imageUrl),
19 | FeedDescription(description: feed.description)
20 | ],);
21 | },
22 | itemCount: feeds.length,
23 | );
24 | }
25 |
26 | FeedList({this.feeds});
27 | }
28 |
--------------------------------------------------------------------------------
/lib/features/feed/presentation/widgets/feed_list_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FeedListItem extends StatelessWidget {
4 |
5 | final List stackChildren;
6 | final Widget header;
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Padding(
11 | padding: const EdgeInsets.fromLTRB(10, 8, 10, 8),
12 | child: Column(
13 | children: [
14 | header,
15 | Stack(
16 | alignment: Alignment.bottomCenter,
17 | children: stackChildren,
18 | ),
19 | ],
20 | ),
21 | );
22 | }
23 |
24 | FeedListItem({this.header, this.stackChildren});
25 | }
--------------------------------------------------------------------------------
/lib/injection_container.dart:
--------------------------------------------------------------------------------
1 | import 'package:data_connection_checker/data_connection_checker.dart';
2 | import 'package:flutter_clean_architecture/core/http/http_client.dart';
3 | import 'package:flutter_clean_architecture/core/http/http_client_impl.dart';
4 | import 'package:flutter_clean_architecture/core/http/network_info.dart';
5 | import 'package:flutter_clean_architecture/core/http/network_info_impl.dart';
6 | import 'package:flutter_clean_architecture/core/persistence/key_value_store.dart';
7 | import 'package:flutter_clean_architecture/core/persistence/key_value_store_impl.dart';
8 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_local_data_source.dart';
9 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_local_data_source_impl.dart';
10 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_remote_data_source.dart';
11 | import 'package:flutter_clean_architecture/features/feed/data/datasources/feed_remote_data_source_impl.dart';
12 | import 'package:flutter_clean_architecture/features/feed/data/repositories/feeds_repository_impl.dart';
13 | import 'package:flutter_clean_architecture/features/feed/domain/repositories/feeds_repository.dart';
14 | import 'package:flutter_clean_architecture/features/feed/presentation/bloc/feeds_bloc.dart';
15 | import 'package:get_it/get_it.dart';
16 | import 'package:http/http.dart' as http;
17 | import 'package:shared_preferences/shared_preferences.dart';
18 |
19 |
20 | final sl = GetIt.instance;
21 |
22 | Future init() async {
23 | sl.registerFactory(
24 | () => FeedsBloc(
25 | repository: sl(),
26 | ),
27 | );
28 |
29 | // Repository
30 | sl.registerLazySingleton(
31 | () => FeedsRepositoryImpl(
32 | localDataSource: sl(),
33 | networkInfo: sl(),
34 | remoteDataSource: sl(),
35 | ),
36 | );
37 |
38 | // Data sources
39 | sl.registerLazySingleton(
40 | () => FeedRemoteDataSourceImpl(httpClient: sl()),
41 | );
42 |
43 | sl.registerLazySingleton(
44 | () => FeedLocalDataSourceImpl(keyValueStore: sl()),
45 | );
46 | sl.registerLazySingleton(() => KeyValueStoreImpl(sharedPreferences: sl()));
47 |
48 | //! Core
49 | sl.registerLazySingleton(() => NetworkInfoImpl(sl()));
50 |
51 | //! External
52 | final sharedPreferences = await SharedPreferences.getInstance();
53 | sl.registerLazySingleton(() => sharedPreferences);
54 | sl.registerLazySingleton(() => http.Client());
55 | sl.registerLazySingleton(() => HttpClientImpl(client: sl()));
56 | sl.registerLazySingleton(() => DataConnectionChecker());
57 |
58 | }
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'features/feed/presentation/screens/feeds_screen.dart';
4 | import 'injection_container.dart' as di;
5 |
6 | void main() async {
7 | WidgetsFlutterBinding.ensureInitialized();
8 | await di.init();
9 | runApp(MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | @override
14 | Widget build(BuildContext context) {
15 | return MaterialApp(
16 | title: 'Flutter Demo',
17 | theme: ThemeData(
18 | primarySwatch: Colors.blue,
19 | ),
20 | home: FeedsScreen(),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.11"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.5.2"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.4.0"
25 | bloc:
26 | dependency: transitive
27 | description:
28 | name: bloc
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "0.16.1"
32 | boolean_selector:
33 | dependency: transitive
34 | description:
35 | name: boolean_selector
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.0.5"
39 | charcode:
40 | dependency: transitive
41 | description:
42 | name: charcode
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.2"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.14.11"
53 | convert:
54 | dependency: transitive
55 | description:
56 | name: convert
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.1.1"
60 | crypto:
61 | dependency: transitive
62 | description:
63 | name: crypto
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "2.1.3"
67 | cupertino_icons:
68 | dependency: "direct main"
69 | description:
70 | name: cupertino_icons
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.1.2"
74 | dartz:
75 | dependency: "direct main"
76 | description:
77 | name: dartz
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "0.8.7"
81 | data_connection_checker:
82 | dependency: "direct main"
83 | description:
84 | name: data_connection_checker
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "0.3.4"
88 | flutter:
89 | dependency: "direct main"
90 | description: flutter
91 | source: sdk
92 | version: "0.0.0"
93 | flutter_bloc:
94 | dependency: "direct main"
95 | description:
96 | name: flutter_bloc
97 | url: "https://pub.dartlang.org"
98 | source: hosted
99 | version: "0.22.1"
100 | flutter_test:
101 | dependency: "direct dev"
102 | description: flutter
103 | source: sdk
104 | version: "0.0.0"
105 | get_it:
106 | dependency: "direct main"
107 | description:
108 | name: get_it
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "3.0.1"
112 | http:
113 | dependency: "direct main"
114 | description:
115 | name: http
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "0.12.0+2"
119 | http_parser:
120 | dependency: transitive
121 | description:
122 | name: http_parser
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "3.1.3"
126 | image:
127 | dependency: transitive
128 | description:
129 | name: image
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "2.1.4"
133 | matcher:
134 | dependency: transitive
135 | description:
136 | name: matcher
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "0.12.6"
140 | meta:
141 | dependency: transitive
142 | description:
143 | name: meta
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "1.1.8"
147 | path:
148 | dependency: transitive
149 | description:
150 | name: path
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "1.6.4"
154 | pedantic:
155 | dependency: transitive
156 | description:
157 | name: pedantic
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "1.8.0+1"
161 | petitparser:
162 | dependency: transitive
163 | description:
164 | name: petitparser
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "2.4.0"
168 | provider:
169 | dependency: transitive
170 | description:
171 | name: provider
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "3.1.0+1"
175 | quiver:
176 | dependency: transitive
177 | description:
178 | name: quiver
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "2.0.5"
182 | rxdart:
183 | dependency: transitive
184 | description:
185 | name: rxdart
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "0.22.4"
189 | shared_preferences:
190 | dependency: "direct main"
191 | description:
192 | name: shared_preferences
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "0.5.3+5"
196 | sky_engine:
197 | dependency: transitive
198 | description: flutter
199 | source: sdk
200 | version: "0.0.99"
201 | source_span:
202 | dependency: transitive
203 | description:
204 | name: source_span
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "1.5.5"
208 | stack_trace:
209 | dependency: transitive
210 | description:
211 | name: stack_trace
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "1.9.3"
215 | stream_channel:
216 | dependency: transitive
217 | description:
218 | name: stream_channel
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "2.0.0"
222 | string_scanner:
223 | dependency: transitive
224 | description:
225 | name: string_scanner
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "1.0.5"
229 | term_glyph:
230 | dependency: transitive
231 | description:
232 | name: term_glyph
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "1.1.0"
236 | test_api:
237 | dependency: transitive
238 | description:
239 | name: test_api
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "0.2.11"
243 | typed_data:
244 | dependency: transitive
245 | description:
246 | name: typed_data
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.1.6"
250 | vector_math:
251 | dependency: transitive
252 | description:
253 | name: vector_math
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "2.0.8"
257 | xml:
258 | dependency: transitive
259 | description:
260 | name: xml
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "3.5.0"
264 | sdks:
265 | dart: ">=2.4.0 <3.0.0"
266 | flutter: ">=1.5.0 <2.0.0"
267 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_clean_architecture
2 | description: A new Flutter project.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 |
23 | # The following adds the Cupertino Icons font to your application.
24 | # Use with the CupertinoIcons class for iOS style icons.
25 | cupertino_icons: ^0.1.2
26 | dartz: ^0.8.7
27 | http: 0.12.0+2
28 | data_connection_checker: ^0.3.4
29 | shared_preferences: 0.5.3+5
30 | flutter_bloc: ^0.22.1
31 | get_it: ^3.0.1
32 |
33 | dev_dependencies:
34 | flutter_test:
35 | sdk: flutter
36 |
37 | # For information on the generic Dart part of this file, see the
38 | # following page: https://dart.dev/tools/pub/pubspec
39 |
40 | # The following section is specific to Flutter.
41 | flutter:
42 | # The following line ensures that the Material Icons font is
43 | # included with your application, so that you can use the icons in
44 | # the material Icons class.
45 | uses-material-design: true
46 | # To add assets to your application, add an assets section, like this:
47 | # assets:
48 | # - images/a_dot_burr.jpeg
49 | # - images/a_dot_ham.jpeg
50 |
51 | # An image asset can refer to one or more resolution-specific "variants", see
52 | # https://flutter.dev/assets-and-images/#resolution-aware.
53 |
54 | # For details regarding adding assets from package dependencies, see
55 | # https://flutter.dev/assets-and-images/#from-packages
56 |
57 | # To add custom fonts to your application, add a fonts section here,
58 | # in this "flutter" section. Each entry in this list should have a
59 | # "family" key with the font family name, and a "fonts" key with a
60 | # list giving the asset and other descriptors for the font. For
61 | # example:
62 | # fonts:
63 | # - family: Schyler
64 | # fonts:
65 | # - asset: fonts/Schyler-Regular.ttf
66 | # - asset: fonts/Schyler-Italic.ttf
67 | # style: italic
68 | # - family: Trajan Pro
69 | # fonts:
70 | # - asset: fonts/TrajanPro.ttf
71 | # - asset: fonts/TrajanPro_Bold.ttf
72 | # weight: 700
73 | #
74 | # For details regarding fonts from package dependencies,
75 | # see https://flutter.dev/custom-fonts/#from-packages
76 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ckdevrel/flutter-clean-architecture/45e7bebb5d730ace71fa6ddb80a4b79be6679048/test/widget_test.dart
--------------------------------------------------------------------------------