├── .gitattributes
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── getx_clean_architecture
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── 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-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
└── Clean-Architecture-Flutter-Diagram.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── app
│ ├── config
│ │ ├── app_colors.dart
│ │ ├── app_constants.dart
│ │ └── app_text_styles.dart
│ ├── core
│ │ └── usecases
│ │ │ ├── no_param_usecase.dart
│ │ │ └── pram_usecase.dart
│ ├── extensions
│ │ └── color.dart
│ ├── services
│ │ └── local_storage.dart
│ ├── types
│ │ ├── category_type.dart
│ │ └── tab_type.dart
│ └── util
│ │ ├── dependency.dart
│ │ └── util.dart
├── data
│ ├── models
│ │ ├── article_model.dart
│ │ ├── article_model.g.dart
│ │ └── paging_model.dart
│ ├── providers
│ │ ├── database
│ │ │ └── firebase_database_provider.dart
│ │ └── network
│ │ │ ├── api_endpoint.dart
│ │ │ ├── api_provider.dart
│ │ │ ├── api_request_representable.dart
│ │ │ └── apis
│ │ │ ├── article_api.dart
│ │ │ └── auth_api.dart
│ └── repositories
│ │ ├── article_repository.dart
│ │ └── auth_repository.dart
├── domain
│ ├── entities
│ │ ├── article.dart
│ │ ├── paging.dart
│ │ └── user.dart
│ ├── repositories
│ │ ├── article_repository.dart
│ │ └── auth_repository.dart
│ └── usecases
│ │ ├── fetch_headline_use_case.dart
│ │ ├── fetch_news_use_case.dart
│ │ └── signup_use_case.dart
├── generated_plugin_registrant.dart
├── main.dart
└── presentation
│ ├── app.dart
│ ├── controllers
│ ├── auth
│ │ ├── auth_binding.dart
│ │ └── auth_controller.dart
│ ├── headline
│ │ ├── headline_binding.dart
│ │ └── headline_controller.dart
│ └── news
│ │ ├── news_binding.dart
│ │ └── news_controller.dart
│ └── pages
│ ├── detail
│ └── detail_page.dart
│ ├── headline
│ ├── headline_page.dart
│ └── views
│ │ └── article_cell.dart
│ ├── home
│ └── home_page.dart
│ ├── news
│ └── news_page.dart
│ └── profile
│ └── profile_page.dart
├── pubspec.lock
├── pubspec.yaml
├── test
├── data
│ ├── headline_sample.json
│ └── news_sample.json
├── repositories
│ ├── mock_article_repository.dart
│ └── mock_auth_repository.dart
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter-getx-clean-architecture
2 | A Flutter Clean Architecture Using [GetX](https://github.com/jonataslaw/getx).
3 |
4 | ## Work Flow
5 | 
6 | ## Project Structure
7 | ```
8 | |-- lib
9 | |-- main.dart
10 | |-- app
11 | |-- core
12 | |-- usecases
13 | |-- config
14 | |-- app_constants.dart
15 | |-- app_colors.dart
16 | | -- app_text_styles.dart
17 | |-- services
18 | |-- util
19 | |-- types
20 | |-- extensitons
21 | |-- data
22 | |-- models
23 | |-- repositories
24 | |-- providers
25 | |-- database
26 | |-- network
27 | |-- apis
28 | |-- api_endpoints.dart
29 | |-- api_provider.dart
30 | |-- api_representable.dart
31 | |-- domain
32 | |-- entities
33 | |-- repositories
34 | |-- usecases
35 | |-- presentation
36 | |-- controllers
37 | |-- pages
38 | |-- views
39 | |-- app.dart
40 | ```
41 |
42 | ## Features
43 | - Integrating Unit Test.
44 | - Create an easy to use API provider with [GetConnect](https://github.com/jonataslaw/getx#getconnect).
45 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/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 plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.getx_clean_architecture"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
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 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/getx_clean_architecture/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.getx_clean_architecture
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | tasks.register("clean", Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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-7.6.1-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/Clean-Architecture-Flutter-Diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/assets/Clean-Architecture-Flutter-Diagram.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.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/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '11.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - FMDB (2.7.5):
4 | - FMDB/standard (= 2.7.5)
5 | - FMDB/standard (2.7.5)
6 | - path_provider_ios (0.0.1):
7 | - Flutter
8 | - shared_preferences_ios (0.0.1):
9 | - Flutter
10 | - sqflite (0.0.2):
11 | - Flutter
12 | - FMDB (>= 2.7.5)
13 |
14 | DEPENDENCIES:
15 | - Flutter (from `Flutter`)
16 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
17 | - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
18 | - sqflite (from `.symlinks/plugins/sqflite/ios`)
19 |
20 | SPEC REPOS:
21 | trunk:
22 | - FMDB
23 |
24 | EXTERNAL SOURCES:
25 | Flutter:
26 | :path: Flutter
27 | path_provider_ios:
28 | :path: ".symlinks/plugins/path_provider_ios/ios"
29 | shared_preferences_ios:
30 | :path: ".symlinks/plugins/shared_preferences_ios/ios"
31 | sqflite:
32 | :path: ".symlinks/plugins/sqflite/ios"
33 |
34 | SPEC CHECKSUMS:
35 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
36 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
37 | path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
38 | shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
39 | sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
40 |
41 | PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
42 |
43 | COCOAPODS: 1.13.0
44 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
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 | 59338DFFFAC6ED200E895419 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23107FCC4ADD2F5C1072CB90 /* Pods_Runner.framework */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 23107FCC4ADD2F5C1072CB90 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
40 | 9637645FF0BE5257435AD11B /* 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 = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | B29F88C3632740DF5E8E7E48 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
49 | B5485E231E2A57BAE687419C /* 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 = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 59338DFFFAC6ED200E895419 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 6E0AA953ACAB9AAC9C6AC78A /* Pods */ = {
65 | isa = PBXGroup;
66 | children = (
67 | B5485E231E2A57BAE687419C /* Pods-Runner.debug.xcconfig */,
68 | 9637645FF0BE5257435AD11B /* Pods-Runner.release.xcconfig */,
69 | B29F88C3632740DF5E8E7E48 /* Pods-Runner.profile.xcconfig */,
70 | );
71 | name = Pods;
72 | path = Pods;
73 | sourceTree = "";
74 | };
75 | 91917628A17759DC3FA4CA88 /* Frameworks */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 23107FCC4ADD2F5C1072CB90 /* Pods_Runner.framework */,
79 | );
80 | name = Frameworks;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 6E0AA953ACAB9AAC9C6AC78A /* Pods */,
101 | 91917628A17759DC3FA4CA88 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
124 | );
125 | path = Runner;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | 4F4F210C2A389E9CFFBC1FDA /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | F077A86143457CB90C6E9739 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1430;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | alwaysOutOfDate = 1;
204 | buildActionMask = 2147483647;
205 | files = (
206 | );
207 | inputPaths = (
208 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
209 | );
210 | name = "Thin Binary";
211 | outputPaths = (
212 | );
213 | runOnlyForDeploymentPostprocessing = 0;
214 | shellPath = /bin/sh;
215 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
216 | };
217 | 4F4F210C2A389E9CFFBC1FDA /* [CP] Check Pods Manifest.lock */ = {
218 | isa = PBXShellScriptBuildPhase;
219 | buildActionMask = 2147483647;
220 | files = (
221 | );
222 | inputFileListPaths = (
223 | );
224 | inputPaths = (
225 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
226 | "${PODS_ROOT}/Manifest.lock",
227 | );
228 | name = "[CP] Check Pods Manifest.lock";
229 | outputFileListPaths = (
230 | );
231 | outputPaths = (
232 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
233 | );
234 | runOnlyForDeploymentPostprocessing = 0;
235 | shellPath = /bin/sh;
236 | 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";
237 | showEnvVarsInLog = 0;
238 | };
239 | 9740EEB61CF901F6004384FC /* Run Script */ = {
240 | isa = PBXShellScriptBuildPhase;
241 | alwaysOutOfDate = 1;
242 | buildActionMask = 2147483647;
243 | files = (
244 | );
245 | inputPaths = (
246 | );
247 | name = "Run Script";
248 | outputPaths = (
249 | );
250 | runOnlyForDeploymentPostprocessing = 0;
251 | shellPath = /bin/sh;
252 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
253 | };
254 | F077A86143457CB90C6E9739 /* [CP] Embed Pods Frameworks */ = {
255 | isa = PBXShellScriptBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | );
259 | inputFileListPaths = (
260 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
261 | );
262 | name = "[CP] Embed Pods Frameworks";
263 | outputFileListPaths = (
264 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | shellPath = /bin/sh;
268 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
269 | showEnvVarsInLog = 0;
270 | };
271 | /* End PBXShellScriptBuildPhase section */
272 |
273 | /* Begin PBXSourcesBuildPhase section */
274 | 97C146EA1CF9000F007C117D /* Sources */ = {
275 | isa = PBXSourcesBuildPhase;
276 | buildActionMask = 2147483647;
277 | files = (
278 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
279 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | /* End PBXSourcesBuildPhase section */
284 |
285 | /* Begin PBXVariantGroup section */
286 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
287 | isa = PBXVariantGroup;
288 | children = (
289 | 97C146FB1CF9000F007C117D /* Base */,
290 | );
291 | name = Main.storyboard;
292 | sourceTree = "";
293 | };
294 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
295 | isa = PBXVariantGroup;
296 | children = (
297 | 97C147001CF9000F007C117D /* Base */,
298 | );
299 | name = LaunchScreen.storyboard;
300 | sourceTree = "";
301 | };
302 | /* End PBXVariantGroup section */
303 |
304 | /* Begin XCBuildConfiguration section */
305 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
336 | ENABLE_NS_ASSERTIONS = NO;
337 | ENABLE_STRICT_OBJC_MSGSEND = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_NO_COMMON_BLOCKS = YES;
340 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
341 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
342 | GCC_WARN_UNDECLARED_SELECTOR = YES;
343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
344 | GCC_WARN_UNUSED_FUNCTION = YES;
345 | GCC_WARN_UNUSED_VARIABLE = YES;
346 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
347 | MTL_ENABLE_DEBUG_INFO = NO;
348 | SDKROOT = iphoneos;
349 | SUPPORTED_PLATFORMS = iphoneos;
350 | TARGETED_DEVICE_FAMILY = "1,2";
351 | VALIDATE_PRODUCT = YES;
352 | };
353 | name = Profile;
354 | };
355 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
356 | isa = XCBuildConfiguration;
357 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
358 | buildSettings = {
359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
360 | CLANG_ENABLE_MODULES = YES;
361 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
362 | ENABLE_BITCODE = NO;
363 | INFOPLIST_FILE = Runner/Info.plist;
364 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
365 | PRODUCT_BUNDLE_IDENTIFIER = com.example.getxCleanArchitecture;
366 | PRODUCT_NAME = "$(TARGET_NAME)";
367 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
368 | SWIFT_VERSION = 5.0;
369 | VERSIONING_SYSTEM = "apple-generic";
370 | };
371 | name = Profile;
372 | };
373 | 97C147031CF9000F007C117D /* Debug */ = {
374 | isa = XCBuildConfiguration;
375 | buildSettings = {
376 | ALWAYS_SEARCH_USER_PATHS = NO;
377 | CLANG_ANALYZER_NONNULL = YES;
378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
379 | CLANG_CXX_LIBRARY = "libc++";
380 | CLANG_ENABLE_MODULES = YES;
381 | CLANG_ENABLE_OBJC_ARC = YES;
382 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
383 | CLANG_WARN_BOOL_CONVERSION = YES;
384 | CLANG_WARN_COMMA = YES;
385 | CLANG_WARN_CONSTANT_CONVERSION = YES;
386 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
388 | CLANG_WARN_EMPTY_BODY = YES;
389 | CLANG_WARN_ENUM_CONVERSION = YES;
390 | CLANG_WARN_INFINITE_RECURSION = YES;
391 | CLANG_WARN_INT_CONVERSION = YES;
392 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
393 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
394 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
395 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
396 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
397 | CLANG_WARN_STRICT_PROTOTYPES = YES;
398 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
399 | CLANG_WARN_UNREACHABLE_CODE = YES;
400 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
401 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
402 | COPY_PHASE_STRIP = NO;
403 | DEBUG_INFORMATION_FORMAT = dwarf;
404 | ENABLE_STRICT_OBJC_MSGSEND = YES;
405 | ENABLE_TESTABILITY = YES;
406 | GCC_C_LANGUAGE_STANDARD = gnu99;
407 | GCC_DYNAMIC_NO_PIC = NO;
408 | GCC_NO_COMMON_BLOCKS = YES;
409 | GCC_OPTIMIZATION_LEVEL = 0;
410 | GCC_PREPROCESSOR_DEFINITIONS = (
411 | "DEBUG=1",
412 | "$(inherited)",
413 | );
414 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
415 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
416 | GCC_WARN_UNDECLARED_SELECTOR = YES;
417 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
418 | GCC_WARN_UNUSED_FUNCTION = YES;
419 | GCC_WARN_UNUSED_VARIABLE = YES;
420 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
421 | MTL_ENABLE_DEBUG_INFO = YES;
422 | ONLY_ACTIVE_ARCH = YES;
423 | SDKROOT = iphoneos;
424 | TARGETED_DEVICE_FAMILY = "1,2";
425 | };
426 | name = Debug;
427 | };
428 | 97C147041CF9000F007C117D /* Release */ = {
429 | isa = XCBuildConfiguration;
430 | buildSettings = {
431 | ALWAYS_SEARCH_USER_PATHS = NO;
432 | CLANG_ANALYZER_NONNULL = YES;
433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
434 | CLANG_CXX_LIBRARY = "libc++";
435 | CLANG_ENABLE_MODULES = YES;
436 | CLANG_ENABLE_OBJC_ARC = YES;
437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
438 | CLANG_WARN_BOOL_CONVERSION = YES;
439 | CLANG_WARN_COMMA = YES;
440 | CLANG_WARN_CONSTANT_CONVERSION = YES;
441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
443 | CLANG_WARN_EMPTY_BODY = YES;
444 | CLANG_WARN_ENUM_CONVERSION = YES;
445 | CLANG_WARN_INFINITE_RECURSION = YES;
446 | CLANG_WARN_INT_CONVERSION = YES;
447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
448 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
449 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
451 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
452 | CLANG_WARN_STRICT_PROTOTYPES = YES;
453 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
454 | CLANG_WARN_UNREACHABLE_CODE = YES;
455 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
457 | COPY_PHASE_STRIP = NO;
458 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
459 | ENABLE_NS_ASSERTIONS = NO;
460 | ENABLE_STRICT_OBJC_MSGSEND = YES;
461 | GCC_C_LANGUAGE_STANDARD = gnu99;
462 | GCC_NO_COMMON_BLOCKS = YES;
463 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
464 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
465 | GCC_WARN_UNDECLARED_SELECTOR = YES;
466 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
467 | GCC_WARN_UNUSED_FUNCTION = YES;
468 | GCC_WARN_UNUSED_VARIABLE = YES;
469 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
470 | MTL_ENABLE_DEBUG_INFO = NO;
471 | SDKROOT = iphoneos;
472 | SUPPORTED_PLATFORMS = iphoneos;
473 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
474 | TARGETED_DEVICE_FAMILY = "1,2";
475 | VALIDATE_PRODUCT = YES;
476 | };
477 | name = Release;
478 | };
479 | 97C147061CF9000F007C117D /* Debug */ = {
480 | isa = XCBuildConfiguration;
481 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
482 | buildSettings = {
483 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
484 | CLANG_ENABLE_MODULES = YES;
485 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
486 | ENABLE_BITCODE = NO;
487 | INFOPLIST_FILE = Runner/Info.plist;
488 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
489 | PRODUCT_BUNDLE_IDENTIFIER = com.example.getxCleanArchitecture;
490 | PRODUCT_NAME = "$(TARGET_NAME)";
491 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
492 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
493 | SWIFT_VERSION = 5.0;
494 | VERSIONING_SYSTEM = "apple-generic";
495 | };
496 | name = Debug;
497 | };
498 | 97C147071CF9000F007C117D /* Release */ = {
499 | isa = XCBuildConfiguration;
500 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
501 | buildSettings = {
502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
503 | CLANG_ENABLE_MODULES = YES;
504 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
505 | ENABLE_BITCODE = NO;
506 | INFOPLIST_FILE = Runner/Info.plist;
507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
508 | PRODUCT_BUNDLE_IDENTIFIER = com.example.getxCleanArchitecture;
509 | PRODUCT_NAME = "$(TARGET_NAME)";
510 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
511 | SWIFT_VERSION = 5.0;
512 | VERSIONING_SYSTEM = "apple-generic";
513 | };
514 | name = Release;
515 | };
516 | /* End XCBuildConfiguration section */
517 |
518 | /* Begin XCConfigurationList section */
519 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
520 | isa = XCConfigurationList;
521 | buildConfigurations = (
522 | 97C147031CF9000F007C117D /* Debug */,
523 | 97C147041CF9000F007C117D /* Release */,
524 | 249021D3217E4FDB00AE95B9 /* Profile */,
525 | );
526 | defaultConfigurationIsVisible = 0;
527 | defaultConfigurationName = Release;
528 | };
529 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
530 | isa = XCConfigurationList;
531 | buildConfigurations = (
532 | 97C147061CF9000F007C117D /* Debug */,
533 | 97C147071CF9000F007C117D /* Release */,
534 | 249021D4217E4FDB00AE95B9 /* Profile */,
535 | );
536 | defaultConfigurationIsVisible = 0;
537 | defaultConfigurationName = Release;
538 | };
539 | /* End XCConfigurationList section */
540 | };
541 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
542 | }
543 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/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.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/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 | getx_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 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/app/config/app_colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:getx_clean_architecture/app/extensions/color.dart';
3 |
4 | class AppColors {
5 | static Color primary = HexColor("05101A");
6 | static Color lightGray = HexColor("D3D3D3");
7 | }
8 |
--------------------------------------------------------------------------------
/lib/app/config/app_constants.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/app/config/app_text_styles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | /// AppTextStyle format as follows:
4 | /// [fontWeight][fontSize][colorName][opacity]
5 | /// Example: bold18White05
6 | ///
7 | class AppTextStyles {
8 | static TextStyle title = TextStyle(
9 | fontSize: 16,
10 | fontWeight: FontWeight.w500,
11 | color: Colors.black,
12 | );
13 |
14 | static TextStyle body = TextStyle(
15 | fontSize: 13,
16 | color: Colors.grey,
17 | );
18 | }
19 |
--------------------------------------------------------------------------------
/lib/app/core/usecases/no_param_usecase.dart:
--------------------------------------------------------------------------------
1 | abstract class NoParamUseCase {
2 | Future execute();
3 | }
4 |
--------------------------------------------------------------------------------
/lib/app/core/usecases/pram_usecase.dart:
--------------------------------------------------------------------------------
1 | abstract class ParamUseCase {
2 | Future execute(Params params);
3 | }
4 |
--------------------------------------------------------------------------------
/lib/app/extensions/color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class HexColor extends Color {
4 | static int _getColorFromHex(String hexColor) {
5 | hexColor = hexColor.toUpperCase().replaceAll("#", "");
6 | if (hexColor.length == 6) {
7 | hexColor = "FF" + hexColor;
8 | }
9 | return int.parse(hexColor, radix: 16);
10 | }
11 |
12 | HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
13 | }
14 |
--------------------------------------------------------------------------------
/lib/app/services/local_storage.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:get/get.dart';
4 | import 'package:getx_clean_architecture/domain/entities/user.dart';
5 | import 'package:shared_preferences/shared_preferences.dart';
6 |
7 | enum _Key {
8 | user,
9 | }
10 |
11 | class LocalStorageService extends GetxService {
12 | SharedPreferences? _sharedPreferences;
13 | Future init() async {
14 | _sharedPreferences = await SharedPreferences.getInstance();
15 | return this;
16 | }
17 |
18 | User? get user {
19 | final rawJson = _sharedPreferences?.getString(_Key.user.toString());
20 | if (rawJson == null) {
21 | return null;
22 | }
23 | Map map = jsonDecode(rawJson);
24 | return User.fromJson(map);
25 | }
26 |
27 | set user(User? value) {
28 | if (value != null) {
29 | _sharedPreferences?.setString(
30 | _Key.user.toString(), json.encode(value.toJson()));
31 | } else {
32 | _sharedPreferences?.remove(_Key.user.toString());
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/app/types/category_type.dart:
--------------------------------------------------------------------------------
1 | enum CategoryType { bitcoin, apple, earthquake, animal }
2 |
3 | extension CategoryKeyword on CategoryType {
4 | String get keyword {
5 | switch (this) {
6 | case CategoryType.bitcoin:
7 | return "bitcoin";
8 | case CategoryType.apple:
9 | return "apple";
10 | case CategoryType.earthquake:
11 | return "earthquake";
12 | case CategoryType.animal:
13 | return "animal";
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/lib/app/types/tab_type.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | enum TabType { headline, news, profile }
4 |
5 | extension TabItem on TabType {
6 | Icon get icon {
7 | switch (this) {
8 | case TabType.headline:
9 | return Icon(CupertinoIcons.home, size: 25);
10 | case TabType.news:
11 | return Icon(CupertinoIcons.news, size: 25);
12 | case TabType.profile:
13 | return Icon(CupertinoIcons.person, size: 25);
14 | }
15 | }
16 |
17 | String get title {
18 | switch (this) {
19 | case TabType.headline:
20 | return "Headline";
21 | case TabType.news:
22 | return "News";
23 | case TabType.profile:
24 | return "Profile";
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/app/util/dependency.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/data/repositories/auth_repository.dart';
3 | import 'package:getx_clean_architecture/data/repositories/article_repository.dart';
4 |
5 | class DependencyCreator {
6 | static init() {
7 | Get.lazyPut(() => AuthenticationRepositoryIml());
8 | Get.lazyPut(() => ArticleRepositoryIml());
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lib/app/util/util.dart:
--------------------------------------------------------------------------------
1 | class Utils {
2 | static String getImagePath(String name, {String format: 'png'}) {
3 | return 'assets/images/$name.$format';
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/lib/data/models/article_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/article.dart';
2 | import 'package:json_annotation/json_annotation.dart';
3 | part 'article_model.g.dart';
4 |
5 | @JsonSerializable()
6 | class ArticleModel extends Article {
7 | ArticleModel({
8 | this.author,
9 | this.title,
10 | this.description,
11 | this.url,
12 | this.urlToImage,
13 | this.publishedAt,
14 | this.content,
15 | }) : super(
16 | author: author,
17 | title: title,
18 | description: description,
19 | url: url,
20 | urlToImage: urlToImage,
21 | publishedAt: publishedAt,
22 | content: content);
23 |
24 | String? author;
25 | String? title;
26 | String? description;
27 | String? url;
28 | String? urlToImage;
29 | DateTime? publishedAt;
30 | String? content;
31 |
32 | factory ArticleModel.fromJson(Map json) =>
33 | _$ArticleModelFromJson(json);
34 | Map toJson() => _$ArticleModelToJson(this);
35 | }
36 |
--------------------------------------------------------------------------------
/lib/data/models/article_model.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'article_model.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | ArticleModel _$ArticleModelFromJson(Map json) {
10 | return ArticleModel(
11 | author: json['author'] as String?,
12 | title: json['title'] as String?,
13 | description: json['description'] as String?,
14 | url: json['url'] as String?,
15 | urlToImage: json['urlToImage'] as String?,
16 | publishedAt: json['publishedAt'] == null
17 | ? null
18 | : DateTime.parse(json['publishedAt'] as String),
19 | content: json['content'] as String?,
20 | );
21 | }
22 |
23 | Map _$ArticleModelToJson(ArticleModel instance) =>
24 | {
25 | 'author': instance.author,
26 | 'title': instance.title,
27 | 'description': instance.description,
28 | 'url': instance.url,
29 | 'urlToImage': instance.urlToImage,
30 | 'publishedAt': instance.publishedAt?.toIso8601String(),
31 | 'content': instance.content,
32 | };
33 |
--------------------------------------------------------------------------------
/lib/data/models/paging_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/data/models/article_model.dart';
2 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
3 |
4 | class PagingModel extends Paging {
5 | PagingModel({
6 | required this.totalResults,
7 | required this.articles,
8 | }) : super(articles: articles, totalResults: totalResults);
9 |
10 | final int totalResults;
11 | final List articles;
12 |
13 | @override
14 | factory PagingModel.fromJson(Map json) => PagingModel(
15 | totalResults: json["totalResults"],
16 | articles:
17 | List.from(json["articles"].map((x) => ArticleModel.fromJson(x))),
18 | );
19 | }
20 |
--------------------------------------------------------------------------------
/lib/data/providers/database/firebase_database_provider.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/data/providers/network/api_endpoint.dart:
--------------------------------------------------------------------------------
1 | class APIEndpoint {
2 | static String get newsapi => "https://newsapi.org/v2";
3 | }
4 |
--------------------------------------------------------------------------------
/lib/data/providers/network/api_provider.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:io';
3 | import 'package:get/get_connect/connect.dart';
4 | import 'package:getx_clean_architecture/data/providers/network/api_request_representable.dart';
5 |
6 | class APIProvider {
7 | static const requestTimeOut = Duration(seconds: 25);
8 | final _client = GetConnect(timeout: requestTimeOut);
9 |
10 | static final _singleton = APIProvider();
11 | static APIProvider get instance => _singleton;
12 |
13 | Future request(APIRequestRepresentable request) async {
14 | try {
15 | final response = await _client.request(
16 | request.url,
17 | request.method.string,
18 | headers: request.headers,
19 | query: request.query,
20 | body: request.body,
21 | );
22 | return _returnResponse(response);
23 | } on TimeoutException catch (_) {
24 | throw TimeOutException(null);
25 | } on SocketException {
26 | throw FetchDataException('No Internet connection');
27 | }
28 | }
29 |
30 | dynamic _returnResponse(Response response) {
31 | switch (response.statusCode) {
32 | case 200:
33 | return response.body;
34 | case 400:
35 | throw BadRequestException(response.body.toString());
36 | case 401:
37 | case 403:
38 | throw UnauthorisedException(response.body.toString());
39 | case 404:
40 | throw BadRequestException('Not found');
41 | case 500:
42 | throw FetchDataException('Internal Server Error');
43 | default:
44 | throw FetchDataException(
45 | 'Error occured while Communication with Server with StatusCode : ${response.statusCode}');
46 | }
47 | }
48 | }
49 |
50 | class AppException implements Exception {
51 | final code;
52 | final message;
53 | final details;
54 |
55 | AppException({this.code, this.message, this.details});
56 |
57 | String toString() {
58 | return "[$code]: $message \n $details";
59 | }
60 | }
61 |
62 | class FetchDataException extends AppException {
63 | FetchDataException(String? details)
64 | : super(
65 | code: "fetch-data",
66 | message: "Error During Communication",
67 | details: details,
68 | );
69 | }
70 |
71 | class BadRequestException extends AppException {
72 | BadRequestException(String? details)
73 | : super(
74 | code: "invalid-request",
75 | message: "Invalid Request",
76 | details: details,
77 | );
78 | }
79 |
80 | class UnauthorisedException extends AppException {
81 | UnauthorisedException(String? details)
82 | : super(
83 | code: "unauthorised",
84 | message: "Unauthorised",
85 | details: details,
86 | );
87 | }
88 |
89 | class InvalidInputException extends AppException {
90 | InvalidInputException(String? details)
91 | : super(
92 | code: "invalid-input",
93 | message: "Invalid Input",
94 | details: details,
95 | );
96 | }
97 |
98 | class AuthenticationException extends AppException {
99 | AuthenticationException(String? details)
100 | : super(
101 | code: "authentication-failed",
102 | message: "Authentication Failed",
103 | details: details,
104 | );
105 | }
106 |
107 | class TimeOutException extends AppException {
108 | TimeOutException(String? details)
109 | : super(
110 | code: "request-timeout",
111 | message: "Request TimeOut",
112 | details: details,
113 | );
114 | }
115 |
--------------------------------------------------------------------------------
/lib/data/providers/network/api_request_representable.dart:
--------------------------------------------------------------------------------
1 | enum HTTPMethod { get, post, delete, put, patch }
2 |
3 | extension HTTPMethodString on HTTPMethod {
4 | String get string {
5 | switch (this) {
6 | case HTTPMethod.get:
7 | return "get";
8 | case HTTPMethod.post:
9 | return "post";
10 | case HTTPMethod.delete:
11 | return "delete";
12 | case HTTPMethod.patch:
13 | return "patch";
14 | case HTTPMethod.put:
15 | return "put";
16 | }
17 | }
18 | }
19 |
20 | abstract class APIRequestRepresentable {
21 | String get url;
22 | String get endpoint;
23 | String get path;
24 | HTTPMethod get method;
25 | Map? get headers;
26 | Map? get query;
27 | dynamic get body;
28 | Future request();
29 | }
30 |
--------------------------------------------------------------------------------
/lib/data/providers/network/apis/article_api.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:getx_clean_architecture/data/providers/network/api_endpoint.dart';
3 | import 'package:getx_clean_architecture/data/providers/network/api_provider.dart';
4 | import 'package:getx_clean_architecture/data/providers/network/api_request_representable.dart';
5 |
6 | enum ArticleType { fetchHeadline, fetchNews }
7 |
8 | class ArticleAPI implements APIRequestRepresentable {
9 | final ArticleType type;
10 | String? keyword;
11 | int? page;
12 | int? pageSize;
13 |
14 | ArticleAPI._({required this.type, this.keyword, this.page, this.pageSize});
15 |
16 | ArticleAPI.fetchHeadline(int page, int pageSize)
17 | : this._(type: ArticleType.fetchHeadline, page: page, pageSize: pageSize);
18 | ArticleAPI.fetchNews(String keyword, int page, int pageSize)
19 | : this._(
20 | type: ArticleType.fetchNews,
21 | keyword: keyword,
22 | page: page,
23 | pageSize: pageSize);
24 |
25 | @override
26 | String get endpoint => APIEndpoint.newsapi;
27 |
28 | String get path {
29 | switch (type) {
30 | case ArticleType.fetchHeadline:
31 | return "/top-headlines";
32 | case ArticleType.fetchNews:
33 | return "/top-headlines";
34 | }
35 | }
36 |
37 | @override
38 | HTTPMethod get method {
39 | return HTTPMethod.get;
40 | }
41 |
42 | Map get headers =>
43 | {"X-Api-Key": "d809d6a547734a67af23365ce5bc8c02"};
44 |
45 | Map get query {
46 | switch (type) {
47 | case ArticleType.fetchHeadline:
48 | return {"country": "us", "page": "$page", "pageSize": "$pageSize"};
49 | case ArticleType.fetchNews:
50 | return {"page": "$page", "pageSize": "$pageSize", "q": keyword ?? ""};
51 | }
52 | }
53 |
54 | @override
55 | get body => null;
56 |
57 | Future request() {
58 | return APIProvider.instance.request(this);
59 | }
60 |
61 | @override
62 | String get url => endpoint + path;
63 | }
64 |
--------------------------------------------------------------------------------
/lib/data/providers/network/apis/auth_api.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:getx_clean_architecture/data/providers/network/api_endpoint.dart';
3 | import 'package:getx_clean_architecture/data/providers/network/api_provider.dart';
4 | import 'package:getx_clean_architecture/data/providers/network/api_request_representable.dart';
5 |
6 | enum AuthType { login, logout }
7 |
8 | class AuthAPI implements APIRequestRepresentable {
9 | final AuthType type;
10 | String? username;
11 | String? password;
12 |
13 | AuthAPI._({required this.type, this.password, this.username});
14 |
15 | AuthAPI.login(String username, String repo) : this._(type: AuthType.login);
16 | AuthAPI.register(String password, String username)
17 | : this._(type: AuthType.login, username: username, password: password);
18 |
19 | @override
20 | String get endpoint => APIEndpoint.newsapi;
21 |
22 | String get path {
23 | switch (type) {
24 | case AuthType.login:
25 | return "/$username/$username";
26 | case AuthType.logout:
27 | return "/login";
28 | default:
29 | return "";
30 | }
31 | }
32 |
33 | @override
34 | HTTPMethod get method {
35 | return HTTPMethod.post;
36 | }
37 |
38 | Map get headers =>
39 | {HttpHeaders.contentTypeHeader: 'application/json'};
40 |
41 | Map get query {
42 | return {HttpHeaders.contentTypeHeader: 'application/json'};
43 | }
44 |
45 | @override
46 | get body => null;
47 |
48 | Future request() {
49 | return APIProvider.instance.request(this);
50 | }
51 |
52 | @override
53 | String get url => endpoint + path;
54 | }
55 |
--------------------------------------------------------------------------------
/lib/data/repositories/article_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/data/models/paging_model.dart';
2 | import 'package:getx_clean_architecture/data/providers/network/apis/article_api.dart';
3 | import 'package:getx_clean_architecture/domain/repositories/article_repository.dart';
4 |
5 | class ArticleRepositoryIml extends ArticleRepository {
6 | @override
7 | Future fetchHeadline(int page, int pageSize) async {
8 | final response = await ArticleAPI.fetchHeadline(page, pageSize).request();
9 | return PagingModel.fromJson(response);
10 | }
11 |
12 | @override
13 | Future fetchNewsByCategory(
14 | String keyword, int page, int pageSize) async {
15 | final response =
16 | await ArticleAPI.fetchNews(keyword, page, pageSize).request();
17 | return PagingModel.fromJson(response);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/lib/data/repositories/auth_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/user.dart';
2 | import 'package:getx_clean_architecture/domain/repositories/auth_repository.dart';
3 |
4 | class AuthenticationRepositoryIml extends AuthenticationRepository {
5 | @override
6 | Future signUp(String username) async {
7 | //Fake sign up action
8 | await Future.delayed(Duration(seconds: 1));
9 | return User(username: username);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lib/domain/entities/article.dart:
--------------------------------------------------------------------------------
1 | class Article {
2 | Article({
3 | this.author,
4 | this.title,
5 | this.description,
6 | this.url,
7 | this.urlToImage,
8 | this.publishedAt,
9 | this.content,
10 | });
11 |
12 | String? author;
13 | String? title;
14 | String? description;
15 | String? url;
16 | String? urlToImage;
17 | DateTime? publishedAt;
18 | String? content;
19 | }
20 |
--------------------------------------------------------------------------------
/lib/domain/entities/paging.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/article.dart';
2 |
3 | class Paging {
4 | Paging({
5 | required this.totalResults,
6 | required this.articles,
7 | });
8 |
9 | int totalResults;
10 | List articles;
11 | }
12 |
--------------------------------------------------------------------------------
/lib/domain/entities/user.dart:
--------------------------------------------------------------------------------
1 | class User {
2 | User({this.username});
3 |
4 | String? username;
5 |
6 | factory User.fromJson(Map? json) {
7 | return User(
8 | username: json?['username'] as String?,
9 | );
10 | }
11 |
12 | Map toJson() => {
13 | 'username': username,
14 | };
15 | }
16 |
--------------------------------------------------------------------------------
/lib/domain/repositories/article_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
2 |
3 | abstract class ArticleRepository {
4 | Future fetchHeadline(int page, int pageSize);
5 | Future fetchNewsByCategory(String keyword, int page, int pageSize);
6 | }
7 |
--------------------------------------------------------------------------------
/lib/domain/repositories/auth_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/user.dart';
2 |
3 | abstract class AuthenticationRepository {
4 | Future signUp(String username);
5 | }
6 |
--------------------------------------------------------------------------------
/lib/domain/usecases/fetch_headline_use_case.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/app/core/usecases/pram_usecase.dart';
2 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
3 | import 'package:getx_clean_architecture/domain/repositories/article_repository.dart';
4 | import 'package:tuple/tuple.dart';
5 |
6 | class FetchHeadlineUseCase extends ParamUseCase> {
7 | final ArticleRepository _repo;
8 | FetchHeadlineUseCase(this._repo);
9 |
10 | @override
11 | Future execute(Tuple2 param) {
12 | return _repo.fetchHeadline(param.item1, param.item2);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/domain/usecases/fetch_news_use_case.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/app/core/usecases/pram_usecase.dart';
2 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
3 | import 'package:getx_clean_architecture/domain/repositories/article_repository.dart';
4 | import 'package:tuple/tuple.dart';
5 |
6 | class FetchNewsUseCase extends ParamUseCase> {
7 | final ArticleRepository _repo;
8 | FetchNewsUseCase(this._repo);
9 |
10 | @override
11 | Future execute(Tuple3 param) {
12 | return _repo.fetchNewsByCategory(param.item1, param.item2, param.item3);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/domain/usecases/signup_use_case.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/app/core/usecases/pram_usecase.dart';
2 | import 'package:getx_clean_architecture/domain/entities/user.dart';
3 | import 'package:getx_clean_architecture/domain/repositories/auth_repository.dart';
4 |
5 | class SignUpUseCase extends ParamUseCase {
6 | final AuthenticationRepository _repo;
7 | SignUpUseCase(this._repo);
8 |
9 | @override
10 | Future execute(String username) {
11 | return _repo.signUp(username);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/lib/generated_plugin_registrant.dart:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // ignore_for_file: lines_longer_than_80_chars
6 |
7 | import 'package:shared_preferences_web/shared_preferences_web.dart';
8 |
9 | import 'package:flutter_web_plugins/flutter_web_plugins.dart';
10 |
11 | // ignore: public_member_api_docs
12 | void registerPlugins(Registrar registrar) {
13 | SharedPreferencesPlugin.registerWith(registrar);
14 | registrar.registerMessageHandler();
15 | }
16 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:getx_clean_architecture/app/services/local_storage.dart';
4 | import 'package:getx_clean_architecture/app/util/dependency.dart';
5 | import 'package:getx_clean_architecture/presentation/app.dart';
6 |
7 | void main() async {
8 | DependencyCreator.init();
9 | WidgetsFlutterBinding.ensureInitialized();
10 | await initServices();
11 | runApp(App());
12 | }
13 |
14 | initServices() async {
15 | print('starting services ...');
16 | await Get.putAsync(() => LocalStorageService().init());
17 | print('All services started...');
18 | }
19 |
--------------------------------------------------------------------------------
/lib/presentation/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:getx_clean_architecture/presentation/controllers/auth/auth_binding.dart';
4 | import 'package:getx_clean_architecture/presentation/pages/home/home_page.dart';
5 |
6 | class App extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return GetCupertinoApp(
10 | debugShowCheckedModeBanner: false,
11 | initialRoute: "/",
12 | initialBinding: AuthBinding(),
13 | home: HomePage(),
14 | );
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/auth/auth_binding.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/data/repositories/auth_repository.dart';
3 | import 'package:getx_clean_architecture/domain/usecases/signup_use_case.dart';
4 | import 'package:getx_clean_architecture/presentation/controllers/auth/auth_controller.dart';
5 |
6 | class AuthBinding extends Bindings {
7 | @override
8 | void dependencies() {
9 | Get.lazyPut(() => SignUpUseCase(Get.find()));
10 | Get.put(AuthController(Get.find()), permanent: true);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/auth/auth_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/app/services/local_storage.dart';
3 | import 'package:getx_clean_architecture/domain/entities/user.dart';
4 | import 'package:getx_clean_architecture/domain/usecases/signup_use_case.dart';
5 |
6 | class AuthController extends GetxController {
7 | AuthController(this._loginUseCase);
8 | final SignUpUseCase _loginUseCase;
9 | final store = Get.find();
10 | var isLoggedIn = false.obs;
11 |
12 | User? get user => store.user;
13 |
14 | @override
15 | void onInit() async {
16 | super.onInit();
17 | isLoggedIn.value = store.user != null;
18 | }
19 |
20 | signUpWith(String username) async {
21 | try {
22 | final user = await _loginUseCase.execute(username);
23 | store.user = user;
24 | isLoggedIn.value = true;
25 | isLoggedIn.refresh();
26 | } catch (error) {}
27 | }
28 |
29 | logout() {
30 | store.user = null;
31 | isLoggedIn.value = false;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/headline/headline_binding.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/domain/usecases/fetch_headline_use_case.dart';
3 | import 'package:getx_clean_architecture/data/repositories/article_repository.dart';
4 | import 'package:getx_clean_architecture/presentation/controllers/headline/headline_controller.dart';
5 |
6 | class HeadlineBinding extends Bindings {
7 | @override
8 | void dependencies() {
9 | Get.lazyPut(() => FetchHeadlineUseCase(Get.find()));
10 | Get.lazyPut(() => HeadlineController(Get.find()));
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/headline/headline_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/domain/entities/article.dart';
3 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
4 | import 'package:getx_clean_architecture/domain/usecases/fetch_headline_use_case.dart';
5 | import 'package:tuple/tuple.dart';
6 |
7 | class HeadlineController extends GetxController {
8 | HeadlineController(this._fetchHeadlineUseCase);
9 | final FetchHeadlineUseCase _fetchHeadlineUseCase;
10 | int _currentPage = 1;
11 | int _pageSize = 20;
12 | var _isLoadMore = false;
13 | var _paging = Rx(null);
14 |
15 | var articles = RxList([]);
16 |
17 | fetchData() async {
18 | final newPaging =
19 | await _fetchHeadlineUseCase.execute(Tuple2(_currentPage, _pageSize));
20 | articles.assignAll(newPaging.articles);
21 | _paging.value = newPaging;
22 | }
23 |
24 | loadMore() async {
25 | final totalResults = _paging.value?.totalResults ?? 0;
26 | if (totalResults / _pageSize <= _currentPage) return;
27 | if (_isLoadMore) return;
28 | _isLoadMore = true;
29 | _currentPage += 1;
30 | final newPaging =
31 | await _fetchHeadlineUseCase.execute(Tuple2(_currentPage, _pageSize));
32 | articles.addAll(newPaging.articles);
33 | _paging.value?.totalResults = newPaging.totalResults;
34 | _isLoadMore = false;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/news/news_binding.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/data/repositories/article_repository.dart';
3 | import 'package:getx_clean_architecture/domain/usecases/fetch_news_use_case.dart';
4 | import 'package:getx_clean_architecture/presentation/controllers/news/news_controller.dart';
5 |
6 | class NewsBinding extends Bindings {
7 | @override
8 | void dependencies() {
9 | Get.lazyPut(() => FetchNewsUseCase(Get.find()));
10 | Get.lazyPut(() => NewsController(Get.find()));
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/lib/presentation/controllers/news/news_controller.dart:
--------------------------------------------------------------------------------
1 | import 'package:get/get.dart';
2 | import 'package:getx_clean_architecture/domain/entities/article.dart';
3 | import 'package:getx_clean_architecture/domain/entities/paging.dart';
4 | import 'package:getx_clean_architecture/domain/usecases/fetch_news_use_case.dart';
5 | import 'package:tuple/tuple.dart';
6 |
7 | class NewsController extends GetxController {
8 | NewsController(this._fetchNewlineUseCase);
9 | final FetchNewsUseCase _fetchNewlineUseCase;
10 | int _currentPage = 1;
11 | int _pageSize = 20;
12 | var _isLoadMore = false;
13 | var _paging = Rx(null);
14 |
15 | var articles = RxList([]);
16 |
17 | fetchData(String keyword) async {
18 | _currentPage = 1;
19 | final newPaging = await _fetchNewlineUseCase
20 | .execute(Tuple3(keyword, _currentPage, _pageSize));
21 | articles.assignAll(newPaging.articles);
22 | _paging.value = newPaging;
23 | }
24 |
25 | loadMore(String keyword) async {
26 | final totalResults = _paging.value?.totalResults ?? 0;
27 | if (totalResults / _pageSize <= _currentPage) return;
28 | if (_isLoadMore) return;
29 | _isLoadMore = true;
30 | _currentPage += 1;
31 | final newPaging = await _fetchNewlineUseCase
32 | .execute(Tuple3(keyword, _currentPage, _pageSize));
33 | articles.addAll(newPaging.articles);
34 | _paging.value?.totalResults = newPaging.totalResults;
35 | _isLoadMore = false;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/lib/presentation/pages/detail/detail_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:cached_network_image/cached_network_image.dart';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:getx_clean_architecture/app/config/app_text_styles.dart';
5 | import 'package:getx_clean_architecture/domain/entities/article.dart';
6 |
7 | class DetailPage extends StatelessWidget {
8 | final Article article;
9 |
10 | DetailPage({required this.article});
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return CupertinoPageScaffold(
15 | navigationBar: CupertinoNavigationBar(
16 | middle: Text('Detail'),
17 | ),
18 | child: SafeArea(
19 | child: Container(
20 | padding: const EdgeInsets.symmetric(horizontal: 5),
21 | child: Column(
22 | children: [
23 | Text(
24 | article.title ?? "",
25 | style: AppTextStyles.title,
26 | maxLines: null,
27 | ),
28 | SizedBox(
29 | height: 10,
30 | ),
31 | AspectRatio(
32 | aspectRatio: 16 / 9,
33 | child: CachedNetworkImage(
34 | memCacheHeight: 150,
35 | memCacheWidth: 150,
36 | imageBuilder: (context, imageProvider) => Container(
37 | decoration: BoxDecoration(
38 | image: DecorationImage(
39 | image: imageProvider,
40 | fit: BoxFit.cover,
41 | ),
42 | ),
43 | ),
44 | placeholder: (context, url) => CupertinoActivityIndicator(),
45 | errorWidget: (context, url, error) => Container(
46 | color: Colors.grey,
47 | ),
48 | imageUrl: article.urlToImage ?? "",
49 | ),
50 | ),
51 | SizedBox(
52 | height: 10,
53 | ),
54 | Text(
55 | article.content ?? "",
56 | style: AppTextStyles.body,
57 | ),
58 | ],
59 | ),
60 | ),
61 | ),
62 | );
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/lib/presentation/pages/headline/headline_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:get/get.dart';
3 | import 'package:getx_clean_architecture/presentation/controllers/headline/headline_controller.dart';
4 | import 'package:getx_clean_architecture/presentation/pages/detail/detail_page.dart';
5 | import 'package:getx_clean_architecture/presentation/pages/headline/views/article_cell.dart';
6 |
7 | class HeadlinePage extends GetView {
8 | final _scrollController = ScrollController();
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return GetX(
13 | init: controller,
14 | initState: (state) {
15 | controller.fetchData();
16 | },
17 | didUpdateWidget: (old, newState) {
18 | _scrollController.addListener(_scrollListener);
19 | },
20 | dispose: (state) {
21 | _scrollController.removeListener(_scrollListener);
22 | },
23 | builder: (_) {
24 | return CupertinoPageScaffold(
25 | navigationBar: CupertinoNavigationBar(
26 | middle: Text('Headline'),
27 | ),
28 | child: ListView.builder(
29 | controller: _scrollController,
30 | itemCount: controller.articles.length,
31 | itemBuilder: (context, index) {
32 | final article = controller.articles[index];
33 | return GestureDetector(
34 | onTap: () {
35 | Get.to(() => DetailPage(article: article));
36 | },
37 | child: ArticleCell(article: article),
38 | );
39 | },
40 | ),
41 | );
42 | },
43 | );
44 | }
45 |
46 | void _scrollListener() {
47 | if (_scrollController.position.extentAfter < 500) {
48 | print("load more");
49 | controller.loadMore();
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/presentation/pages/headline/views/article_cell.dart:
--------------------------------------------------------------------------------
1 | import 'package:cached_network_image/cached_network_image.dart';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:getx_clean_architecture/app/config/app_text_styles.dart';
5 | import 'package:jiffy/jiffy.dart';
6 | import 'package:getx_clean_architecture/domain/entities/article.dart';
7 |
8 | class ArticleCell extends StatelessWidget {
9 | final Article article;
10 | ArticleCell({required this.article});
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | padding: const EdgeInsets.all(10),
15 | height: 100,
16 | child: Row(
17 | children: [
18 | Container(
19 | margin: const EdgeInsets.only(right: 10),
20 | child: CachedNetworkImage(
21 | width: 120,
22 | memCacheHeight: 150,
23 | memCacheWidth: 150,
24 | imageBuilder: (context, imageProvider) => Container(
25 | decoration: BoxDecoration(
26 | image: DecorationImage(
27 | image: imageProvider,
28 | fit: BoxFit.cover,
29 | ),
30 | ),
31 | ),
32 | placeholder: (context, url) => CupertinoActivityIndicator(),
33 | errorWidget: (context, url, error) => Container(
34 | color: Colors.grey,
35 | ),
36 | imageUrl: article.urlToImage ?? "",
37 | ),
38 | ),
39 | Expanded(
40 | child: Column(
41 | crossAxisAlignment: CrossAxisAlignment.start,
42 | children: [
43 | Text(
44 | article.title ?? "",
45 | maxLines: 2,
46 | style: AppTextStyles.title,
47 | ),
48 | Spacer(),
49 | Text(
50 | article.author ?? "",
51 | maxLines: 1,
52 | style: AppTextStyles.body,
53 | ),
54 | Text(
55 | Jiffy(article.publishedAt).yMMMMd,
56 | maxLines: 1,
57 | style: AppTextStyles.body,
58 | ),
59 | ],
60 | ),
61 | ),
62 | ],
63 | ),
64 | );
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/lib/presentation/pages/home/home_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:get/get.dart';
3 | import 'package:getx_clean_architecture/app/config/app_colors.dart';
4 | import 'package:getx_clean_architecture/app/types/tab_type.dart';
5 | import 'package:getx_clean_architecture/presentation/controllers/auth/auth_controller.dart';
6 | import 'package:getx_clean_architecture/presentation/controllers/headline/headline_binding.dart';
7 | import 'package:getx_clean_architecture/presentation/controllers/news/news_binding.dart';
8 | import 'package:getx_clean_architecture/presentation/pages/headline/headline_page.dart';
9 | import 'package:getx_clean_architecture/presentation/pages/news/news_page.dart';
10 | import 'package:getx_clean_architecture/presentation/pages/profile/profile_page.dart';
11 |
12 | class HomePage extends GetView {
13 | @override
14 | Widget build(BuildContext context) {
15 | return CupertinoTabScaffold(
16 | tabBar: CupertinoTabBar(
17 | items: TabType.values
18 | .map((e) => BottomNavigationBarItem(icon: e.icon, label: e.title))
19 | .toList(),
20 | inactiveColor: AppColors.lightGray,
21 | activeColor: AppColors.primary,
22 | ),
23 | tabBuilder: (context, index) {
24 | final type = TabType.values[index];
25 | switch (type) {
26 | case TabType.headline:
27 | HeadlineBinding().dependencies();
28 | return HeadlinePage();
29 | case TabType.news:
30 | NewsBinding().dependencies();
31 | return NewsPage();
32 | case TabType.profile:
33 | return ProfilePage();
34 | }
35 | },
36 | );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/lib/presentation/pages/news/news_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:get/get.dart';
4 | import 'package:getx_clean_architecture/app/types/category_type.dart';
5 | import 'package:getx_clean_architecture/presentation/controllers/news/news_controller.dart';
6 | import 'package:getx_clean_architecture/presentation/pages/detail/detail_page.dart';
7 | import 'package:getx_clean_architecture/presentation/pages/headline/views/article_cell.dart';
8 |
9 | class NewsPage extends StatefulWidget {
10 | @override
11 | _NewsPagePage createState() => _NewsPagePage();
12 | }
13 |
14 | class _NewsPagePage extends State {
15 | final NewsController newsController = Get.find();
16 | final _scrollController = ScrollController();
17 | CategoryType _currentCategory = CategoryType.bitcoin;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return GetX(
22 | init: newsController,
23 | didUpdateWidget: (old, newState) {
24 | _scrollController.addListener(_scrollListener);
25 | },
26 | dispose: (state) {
27 | _scrollController.removeListener(_scrollListener);
28 | },
29 | builder: (_) {
30 | return CupertinoPageScaffold(
31 | navigationBar: CupertinoNavigationBar(
32 | middle: const Text('News'),
33 | trailing: TextButton(
34 | onPressed: () {
35 | _selectCategory(context);
36 | },
37 | child: Text(_currentCategory.keyword.capitalizeFirst ?? "")),
38 | ),
39 | child: ListView.builder(
40 | controller: _scrollController,
41 | itemCount: newsController.articles.length,
42 | itemBuilder: (context, index) {
43 | final article = newsController.articles[index];
44 | return GestureDetector(
45 | onTap: () {
46 | Get.to(() => DetailPage(article: article));
47 | },
48 | child: ArticleCell(article: article),
49 | );
50 | },
51 | ),
52 | );
53 | },
54 | );
55 | }
56 |
57 | _selectCategory(BuildContext context) {
58 | final actions = CategoryType.values
59 | .map(
60 | (e) => CupertinoActionSheetAction(
61 | child: Text(e.keyword.capitalizeFirst ?? ""),
62 | onPressed: () {
63 | setState(() {
64 | _currentCategory = e;
65 | });
66 | newsController.fetchData(e.keyword);
67 | Navigator.pop(context);
68 | },
69 | ),
70 | )
71 | .toList();
72 |
73 | showCupertinoModalPopup(
74 | context: context,
75 | builder: (BuildContext context) => CupertinoActionSheet(
76 | title: const Text('Select category'),
77 | actions: actions,
78 | ),
79 | );
80 | }
81 |
82 | _scrollListener() {
83 | if (_scrollController.position.extentAfter < 500) {
84 | newsController.loadMore(_currentCategory.keyword);
85 | }
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/presentation/pages/profile/profile_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:get/get.dart';
4 | import 'package:getx_clean_architecture/app/config/app_colors.dart';
5 | import 'package:getx_clean_architecture/app/config/app_text_styles.dart';
6 | import 'package:getx_clean_architecture/presentation/controllers/auth/auth_controller.dart';
7 |
8 | class ProfilePage extends GetView {
9 | @override
10 | Widget build(BuildContext context) {
11 | return GetX(
12 | init: controller,
13 | builder: (_) {
14 | return CupertinoPageScaffold(
15 | navigationBar: CupertinoNavigationBar(
16 | middle: Text('Profile'),
17 | ),
18 | child: controller.isLoggedIn.value
19 | ? SignInView()
20 | : SignUpView(
21 | onRegister: (username) {
22 | controller.signUpWith(username);
23 | },
24 | ),
25 | );
26 | },
27 | );
28 | }
29 | }
30 |
31 | class SignInView extends GetView {
32 | @override
33 | Widget build(BuildContext context) {
34 | return SafeArea(
35 | child: Container(
36 | padding: const EdgeInsets.symmetric(horizontal: 20),
37 | child: Column(
38 | crossAxisAlignment: CrossAxisAlignment.center,
39 | children: [
40 | SizedBox(height: 50),
41 | _buildItem(
42 | "Username:",
43 | Text(
44 | controller.user?.username ?? "",
45 | style: AppTextStyles.title,
46 | ),
47 | ),
48 | TextButton(onPressed: controller.logout, child: Text("Logout")),
49 | ],
50 | ),
51 | ),
52 | );
53 | }
54 |
55 | _buildItem(String title, Widget child) {
56 | return Row(
57 | children: [
58 | Text(
59 | title,
60 | style: AppTextStyles.title,
61 | ),
62 | SizedBox(
63 | width: 10,
64 | ),
65 | child
66 | ],
67 | );
68 | }
69 | }
70 |
71 | class SignUpView extends StatelessWidget {
72 | final _userNameController = TextEditingController();
73 | final Function(String) onRegister;
74 |
75 | SignUpView({required this.onRegister});
76 | @override
77 | Widget build(BuildContext context) {
78 | return SafeArea(
79 | child: Container(
80 | padding: EdgeInsets.symmetric(horizontal: 20),
81 | child: Column(
82 | mainAxisAlignment: MainAxisAlignment.start,
83 | children: [
84 | SizedBox(height: 50),
85 | SizedBox(
86 | height: 50,
87 | child: Text(
88 | "Register your username",
89 | style: AppTextStyles.title,
90 | ),
91 | ),
92 | SizedBox(height: 50),
93 | _buildLoginForm(context),
94 | SizedBox(height: 50),
95 | _buildLoginButton(),
96 | ],
97 | ),
98 | ),
99 | );
100 | }
101 |
102 | Widget _buildLoginForm(BuildContext context) {
103 | return Container(
104 | height: 50,
105 | child: CupertinoTextField(
106 | keyboardType: TextInputType.emailAddress,
107 | placeholder: "Enter username",
108 | controller: _userNameController,
109 | ),
110 | );
111 | }
112 |
113 | Widget _buildLoginButton() {
114 | return MaterialButton(
115 | onPressed: () {
116 | onRegister(_userNameController.text);
117 | },
118 | child: Text(
119 | "Register",
120 | style: AppTextStyles.body,
121 | ),
122 | color: AppColors.primary,
123 | elevation: 0,
124 | minWidth: 350,
125 | height: 55,
126 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
127 | );
128 | }
129 | }
130 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.11.0"
12 | boolean_selector:
13 | dependency: transitive
14 | description:
15 | name: boolean_selector
16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.1.1"
20 | cached_network_image:
21 | dependency: "direct main"
22 | description:
23 | name: cached_network_image
24 | sha256: be69fd8b429d48807102cee6ab4106a55e1f2f3e79a1b83abb8572bc06c64f26
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "3.2.2"
28 | cached_network_image_platform_interface:
29 | dependency: transitive
30 | description:
31 | name: cached_network_image_platform_interface
32 | sha256: bb2b8403b4ccdc60ef5f25c70dead1f3d32d24b9d6117cfc087f496b178594a7
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "2.0.0"
36 | cached_network_image_web:
37 | dependency: transitive
38 | description:
39 | name: cached_network_image_web
40 | sha256: b8eb814ebfcb4dea049680f8c1ffb2df399e4d03bf7a352c775e26fa06e02fa0
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.0.2"
44 | characters:
45 | dependency: transitive
46 | description:
47 | name: characters
48 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.3.0"
52 | clock:
53 | dependency: transitive
54 | description:
55 | name: clock
56 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.1.1"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.17.2"
68 | crypto:
69 | dependency: transitive
70 | description:
71 | name: crypto
72 | sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "3.0.2"
76 | cupertino_icons:
77 | dependency: "direct main"
78 | description:
79 | name: cupertino_icons
80 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "1.0.5"
84 | fake_async:
85 | dependency: transitive
86 | description:
87 | name: fake_async
88 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "1.3.1"
92 | ffi:
93 | dependency: transitive
94 | description:
95 | name: ffi
96 | sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "2.0.1"
100 | file:
101 | dependency: transitive
102 | description:
103 | name: file
104 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "6.1.4"
108 | flutter:
109 | dependency: "direct main"
110 | description: flutter
111 | source: sdk
112 | version: "0.0.0"
113 | flutter_blurhash:
114 | dependency: transitive
115 | description:
116 | name: flutter_blurhash
117 | sha256: "05001537bd3fac7644fa6558b09ec8c0a3f2eba78c0765f88912882b1331a5c6"
118 | url: "https://pub.dev"
119 | source: hosted
120 | version: "0.7.0"
121 | flutter_cache_manager:
122 | dependency: transitive
123 | description:
124 | name: flutter_cache_manager
125 | sha256: "32cd900555219333326a2d0653aaaf8671264c29befa65bbd9856d204a4c9fb3"
126 | url: "https://pub.dev"
127 | source: hosted
128 | version: "3.3.0"
129 | flutter_test:
130 | dependency: "direct dev"
131 | description: flutter
132 | source: sdk
133 | version: "0.0.0"
134 | flutter_web_plugins:
135 | dependency: transitive
136 | description: flutter
137 | source: sdk
138 | version: "0.0.0"
139 | get:
140 | dependency: "direct main"
141 | description:
142 | name: get
143 | sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a"
144 | url: "https://pub.dev"
145 | source: hosted
146 | version: "4.6.5"
147 | http:
148 | dependency: transitive
149 | description:
150 | name: http
151 | sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482"
152 | url: "https://pub.dev"
153 | source: hosted
154 | version: "0.13.5"
155 | http_parser:
156 | dependency: transitive
157 | description:
158 | name: http_parser
159 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
160 | url: "https://pub.dev"
161 | source: hosted
162 | version: "4.0.2"
163 | intl:
164 | dependency: transitive
165 | description:
166 | name: intl
167 | sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91"
168 | url: "https://pub.dev"
169 | source: hosted
170 | version: "0.17.0"
171 | jiffy:
172 | dependency: "direct main"
173 | description:
174 | name: jiffy
175 | sha256: "2b3d31a5ced81bdf0e2ae454e1dc5e265f1f1f02f122904ae84857d6a1aa614f"
176 | url: "https://pub.dev"
177 | source: hosted
178 | version: "4.1.0"
179 | json_annotation:
180 | dependency: "direct main"
181 | description:
182 | name: json_annotation
183 | sha256: "3520fa844009431b5d4491a5a778603520cdc399ab3406332dcc50f93547258c"
184 | url: "https://pub.dev"
185 | source: hosted
186 | version: "4.7.0"
187 | matcher:
188 | dependency: transitive
189 | description:
190 | name: matcher
191 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
192 | url: "https://pub.dev"
193 | source: hosted
194 | version: "0.12.16"
195 | material_color_utilities:
196 | dependency: transitive
197 | description:
198 | name: material_color_utilities
199 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
200 | url: "https://pub.dev"
201 | source: hosted
202 | version: "0.5.0"
203 | meta:
204 | dependency: transitive
205 | description:
206 | name: meta
207 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
208 | url: "https://pub.dev"
209 | source: hosted
210 | version: "1.9.1"
211 | octo_image:
212 | dependency: transitive
213 | description:
214 | name: octo_image
215 | sha256: "107f3ed1330006a3bea63615e81cf637433f5135a52466c7caa0e7152bca9143"
216 | url: "https://pub.dev"
217 | source: hosted
218 | version: "1.0.2"
219 | path:
220 | dependency: transitive
221 | description:
222 | name: path
223 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
224 | url: "https://pub.dev"
225 | source: hosted
226 | version: "1.8.3"
227 | path_provider:
228 | dependency: transitive
229 | description:
230 | name: path_provider
231 | sha256: "050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd"
232 | url: "https://pub.dev"
233 | source: hosted
234 | version: "2.0.11"
235 | path_provider_android:
236 | dependency: transitive
237 | description:
238 | name: path_provider_android
239 | sha256: "4d5542667150f5b779ba411dd5dc0b674a85d1355e45bda2877e0e82f4ad08d8"
240 | url: "https://pub.dev"
241 | source: hosted
242 | version: "2.0.20"
243 | path_provider_ios:
244 | dependency: transitive
245 | description:
246 | name: path_provider_ios
247 | sha256: "03d639406f5343478352433f00d3c4394d52dac8df3d847869c5e2333e0bbce8"
248 | url: "https://pub.dev"
249 | source: hosted
250 | version: "2.0.11"
251 | path_provider_linux:
252 | dependency: transitive
253 | description:
254 | name: path_provider_linux
255 | sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379
256 | url: "https://pub.dev"
257 | source: hosted
258 | version: "2.1.7"
259 | path_provider_macos:
260 | dependency: transitive
261 | description:
262 | name: path_provider_macos
263 | sha256: "2a97e7fbb7ae9dcd0dfc1220a78e9ec3e71da691912e617e8715ff2a13086ae8"
264 | url: "https://pub.dev"
265 | source: hosted
266 | version: "2.0.6"
267 | path_provider_platform_interface:
268 | dependency: transitive
269 | description:
270 | name: path_provider_platform_interface
271 | sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76
272 | url: "https://pub.dev"
273 | source: hosted
274 | version: "2.0.5"
275 | path_provider_windows:
276 | dependency: transitive
277 | description:
278 | name: path_provider_windows
279 | sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c
280 | url: "https://pub.dev"
281 | source: hosted
282 | version: "2.1.3"
283 | pedantic:
284 | dependency: transitive
285 | description:
286 | name: pedantic
287 | sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602"
288 | url: "https://pub.dev"
289 | source: hosted
290 | version: "1.11.1"
291 | platform:
292 | dependency: transitive
293 | description:
294 | name: platform
295 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
296 | url: "https://pub.dev"
297 | source: hosted
298 | version: "3.1.0"
299 | plugin_platform_interface:
300 | dependency: transitive
301 | description:
302 | name: plugin_platform_interface
303 | sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a
304 | url: "https://pub.dev"
305 | source: hosted
306 | version: "2.1.3"
307 | process:
308 | dependency: transitive
309 | description:
310 | name: process
311 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
312 | url: "https://pub.dev"
313 | source: hosted
314 | version: "4.2.4"
315 | rxdart:
316 | dependency: transitive
317 | description:
318 | name: rxdart
319 | sha256: "5d22055fd443806c03ef24a02000637cf51eae49c2a0168d38a43fc166b0209c"
320 | url: "https://pub.dev"
321 | source: hosted
322 | version: "0.27.5"
323 | shared_preferences:
324 | dependency: "direct main"
325 | description:
326 | name: shared_preferences
327 | sha256: "76917b7d4b9526b2ba416808a7eb9fb2863c1a09cf63ec85f1453da240fa818a"
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "2.0.15"
331 | shared_preferences_android:
332 | dependency: transitive
333 | description:
334 | name: shared_preferences_android
335 | sha256: "8e251f3c986002b65fed6396bce81f379fb63c27317d49743cf289fd0fd1ab97"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "2.0.14"
339 | shared_preferences_ios:
340 | dependency: transitive
341 | description:
342 | name: shared_preferences_ios
343 | sha256: "585a14cefec7da8c9c2fb8cd283a3bb726b4155c0952afe6a0caaa7b2272de34"
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "2.1.1"
347 | shared_preferences_linux:
348 | dependency: transitive
349 | description:
350 | name: shared_preferences_linux
351 | sha256: "28aefc1261746e7bad3d09799496054beb84e8c4ffcdfed7734e17b4ada459a5"
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "2.1.1"
355 | shared_preferences_macos:
356 | dependency: transitive
357 | description:
358 | name: shared_preferences_macos
359 | sha256: fbb94bf296576f49be37a1496d5951796211a8db0aa22cc0d68c46440dad808c
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "2.0.4"
363 | shared_preferences_platform_interface:
364 | dependency: transitive
365 | description:
366 | name: shared_preferences_platform_interface
367 | sha256: da9431745ede5ece47bc26d5d73a9d3c6936ef6945c101a5aca46f62e52c1cf3
368 | url: "https://pub.dev"
369 | source: hosted
370 | version: "2.1.0"
371 | shared_preferences_web:
372 | dependency: transitive
373 | description:
374 | name: shared_preferences_web
375 | sha256: a4b5bc37fe1b368bbc81f953197d55e12f49d0296e7e412dfe2d2d77d6929958
376 | url: "https://pub.dev"
377 | source: hosted
378 | version: "2.0.4"
379 | shared_preferences_windows:
380 | dependency: transitive
381 | description:
382 | name: shared_preferences_windows
383 | sha256: "97f7ab9a7da96d9cf19581f5de520ceb529548498bd6b5e0ccd02d68a0d15eba"
384 | url: "https://pub.dev"
385 | source: hosted
386 | version: "2.1.1"
387 | sky_engine:
388 | dependency: transitive
389 | description: flutter
390 | source: sdk
391 | version: "0.0.99"
392 | source_span:
393 | dependency: transitive
394 | description:
395 | name: source_span
396 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
397 | url: "https://pub.dev"
398 | source: hosted
399 | version: "1.10.0"
400 | sqflite:
401 | dependency: transitive
402 | description:
403 | name: sqflite
404 | sha256: f9120539a34725ebaa4523bbb6f060f256f7d30807437fa4480b08bef7d14e16
405 | url: "https://pub.dev"
406 | source: hosted
407 | version: "2.1.0+1"
408 | sqflite_common:
409 | dependency: transitive
410 | description:
411 | name: sqflite_common
412 | sha256: "0c7785befac2b5c40fc66b485be2f35396246a6fd6ccb89bb22614ddfb3d54a7"
413 | url: "https://pub.dev"
414 | source: hosted
415 | version: "2.3.0"
416 | stack_trace:
417 | dependency: transitive
418 | description:
419 | name: stack_trace
420 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
421 | url: "https://pub.dev"
422 | source: hosted
423 | version: "1.11.0"
424 | stream_channel:
425 | dependency: transitive
426 | description:
427 | name: stream_channel
428 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
429 | url: "https://pub.dev"
430 | source: hosted
431 | version: "2.1.1"
432 | string_scanner:
433 | dependency: transitive
434 | description:
435 | name: string_scanner
436 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
437 | url: "https://pub.dev"
438 | source: hosted
439 | version: "1.2.0"
440 | synchronized:
441 | dependency: transitive
442 | description:
443 | name: synchronized
444 | sha256: "7b530acd9cb7c71b0019a1e7fa22c4105e675557a4400b6a401c71c5e0ade1ac"
445 | url: "https://pub.dev"
446 | source: hosted
447 | version: "3.0.0+3"
448 | term_glyph:
449 | dependency: transitive
450 | description:
451 | name: term_glyph
452 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
453 | url: "https://pub.dev"
454 | source: hosted
455 | version: "1.2.1"
456 | test_api:
457 | dependency: transitive
458 | description:
459 | name: test_api
460 | sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
461 | url: "https://pub.dev"
462 | source: hosted
463 | version: "0.6.0"
464 | tuple:
465 | dependency: "direct main"
466 | description:
467 | name: tuple
468 | sha256: "0ea99cd2f9352b2586583ab2ce6489d1f95a5f6de6fb9492faaf97ae2060f0aa"
469 | url: "https://pub.dev"
470 | source: hosted
471 | version: "2.0.1"
472 | typed_data:
473 | dependency: transitive
474 | description:
475 | name: typed_data
476 | sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5"
477 | url: "https://pub.dev"
478 | source: hosted
479 | version: "1.3.1"
480 | uuid:
481 | dependency: transitive
482 | description:
483 | name: uuid
484 | sha256: "2469694ad079893e3b434a627970c33f2fa5adc46dfe03c9617546969a9a8afc"
485 | url: "https://pub.dev"
486 | source: hosted
487 | version: "3.0.6"
488 | vector_math:
489 | dependency: transitive
490 | description:
491 | name: vector_math
492 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
493 | url: "https://pub.dev"
494 | source: hosted
495 | version: "2.1.4"
496 | visibility_detector:
497 | dependency: "direct main"
498 | description:
499 | name: visibility_detector
500 | sha256: ec932527913f32f65aa01d3a393504240b9e9021ecc77123f017755605e48832
501 | url: "https://pub.dev"
502 | source: hosted
503 | version: "0.2.2"
504 | web:
505 | dependency: transitive
506 | description:
507 | name: web
508 | sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
509 | url: "https://pub.dev"
510 | source: hosted
511 | version: "0.1.4-beta"
512 | win32:
513 | dependency: transitive
514 | description:
515 | name: win32
516 | sha256: "9555cd63283445e101f0df32105862fdc0b30adb9b84fd0553e9433b3e074d4c"
517 | url: "https://pub.dev"
518 | source: hosted
519 | version: "3.0.1"
520 | xdg_directories:
521 | dependency: transitive
522 | description:
523 | name: xdg_directories
524 | sha256: "11541eedefbcaec9de35aa82650b695297ce668662bbd6e3911a7fabdbde589f"
525 | url: "https://pub.dev"
526 | source: hosted
527 | version: "0.2.0+2"
528 | sdks:
529 | dart: ">=3.1.0-185.0.dev <4.0.0"
530 | flutter: ">=3.3.0"
531 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: getx_clean_architecture
2 | description: A Flutter Clean Architecture Using GetX.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | get: ^4.1.4
27 | tuple: ^2.0.0
28 | cached_network_image: ^3.1.0
29 | json_annotation:
30 | jiffy: ^4.1.0
31 | shared_preferences: ^2.0.6
32 | visibility_detector: ^0.2.0
33 | # The following adds the Cupertino Icons font to your application.
34 | # Use with the CupertinoIcons class for iOS style icons.
35 | cupertino_icons: ^1.0.2
36 |
37 | dev_dependencies:
38 | flutter_test:
39 | sdk: flutter
40 |
41 | # For information on the generic Dart part of this file, see the
42 | # following page: https://dart.dev/tools/pub/pubspec
43 |
44 | # The following section is specific to Flutter.
45 | flutter:
46 | # The following line ensures that the Material Icons font is
47 | # included with your application, so that you can use the icons in
48 | # the material Icons class.
49 | uses-material-design: true
50 |
51 | # To add assets to your application, add an assets section, like this:
52 | assets:
53 | - assets/images/
54 | # assets:
55 | # - images/a_dot_burr.jpeg
56 | # - images/a_dot_ham.jpeg
57 |
58 | # An image asset can refer to one or more resolution-specific "variants", see
59 | # https://flutter.dev/assets-and-images/#resolution-aware.
60 |
61 | # For details regarding adding assets from package dependencies, see
62 | # https://flutter.dev/assets-and-images/#from-packages
63 |
64 | # To add custom fonts to your application, add a fonts section here,
65 | # in this "flutter" section. Each entry in this list should have a
66 | # "family" key with the font family name, and a "fonts" key with a
67 | # list giving the asset and other descriptors for the font. For
68 | # example:
69 | # fonts:
70 | # - family: Schyler
71 | # fonts:
72 | # - asset: fonts/Schyler-Regular.ttf
73 | # - asset: fonts/Schyler-Italic.ttf
74 | # style: italic
75 | # - family: Trajan Pro
76 | # fonts:
77 | # - asset: fonts/TrajanPro.ttf
78 | # - asset: fonts/TrajanPro_Bold.ttf
79 | # weight: 700
80 | #
81 | # For details regarding fonts from package dependencies,
82 | # see https://flutter.dev/custom-fonts/#from-packages
83 |
--------------------------------------------------------------------------------
/test/data/headline_sample.json:
--------------------------------------------------------------------------------
1 | {"status":"ok","totalResults":38,"articles":[{"source":{"id":"fox-news","name":"Fox News"},"author":"Jon Street","title":"Two more Texas Democrats test positive for COVID after fleeing election vote - Fox News","description":"Two more Texas Democrats have tested positive for coronavirus during the trip to Washington, D.C., just one day after three of their colleagues learned they had contracted the virus as well.","url":"https://www.foxnews.com/politics/texas-democrats-test-positive-for-covid-in-dc","urlToImage":"https://static.foxnews.com/foxnews.com/content/uploads/2021/07/image__9__720.png","publishedAt":"2021-07-19T01:59:01Z","content":"Two more Texas Democrats have tested positive for coronavirus during their trip to Washington, D.C., just one day after three of their colleagues learned they had contracted the virus as well. \r\nAcco… [+2105 chars]"},{"source":{"id":"cnn","name":"CNN"},"author":"Analysis by Paul LeBlanc, CNN","title":"Here's what vaccinated people need to know as Covid case counts rise - CNN ","description":"Biden takes aim at Facebook. President Joe Biden said Friday that social media platforms like Facebook are \"killing people\" with misinformation surrounding the Covid-19 pandemic.","url":"https://www.cnn.com/2021/07/18/politics/what-matters-for-july-18/index.html","urlToImage":"https://cdn.cnn.com/cnnnext/dam/assets/210714234335-vacuna-covid-variante-delta-super-tease.jpg","publishedAt":"2021-07-19T00:30:00Z","content":null},{"source":{"id":null,"name":"New York Times"},"author":"Matt Craig, Livia Albeck-Ripka","title":"Wary and Weary, Los Angeles Largely Accepts Restored Mask Mandate - The New York Times","description":"Los Angeles County on Sunday became the first major county to revert to requiring masks for all people indoors in public spaces.","url":"https://www.nytimes.com/2021/07/18/us/la-masks-covid.html","urlToImage":"https://static01.nyt.com/images/2021/07/18/us/18VIRUS-LAMASK-3/18VIRUS-LAMASK-3-facebookJumbo.jpg","publishedAt":"2021-07-19T00:23:04Z","content":"County health officials came under public pressure in January, when the decision to continue vaccinating only health care workers contradicted a state announcement of eligibility for adults age 65 an… [+1603 chars]"},{"source":{"id":null,"name":"PEOPLE"},"author":"Abigail Adams","title":"Jamie Lynn Spears Shares Cryptic Post About 'Peace' After Sister Britney Spears' Impassioned Instagram Message - Yahoo Entertainment","description":"The Zoey 101 star shared a message of her own alongside some mirror selfies in a revealing red ensemble on Sunday","url":"https://people.com/music/jamie-lynn-spears-preaches-peace-after-sister-britney-spears-message/","urlToImage":"https://imagesvc.meredithcorp.io/v3/mm/image?q=85&c=sc&poi=%5B980%2C306%5D&w=2000&h=1000&url=https%3A%2F%2Fstatic.onecms.io%2Fwp-content%2Fuploads%2Fsites%2F20%2F2020%2F11%2F11%2Fbritney-spears-2000.jpg","publishedAt":"2021-07-19T00:16:57Z","content":"Jamie Lynn Spears is taking some time to reflect.\r\nThe Zoey 101 star, 30, posed for some mirror selfies on Sunday after being publicly called out by her sister Britney Spears on Instagram Saturday.\r\n… [+3131 chars]"},{"source":{"id":"google-news","name":"Google News"},"author":null,"title":"Jeff Bezos & Blue Origin Prepare For Space Launch - NBC News","description":null,"url":"https://news.google.com/__i/rss/rd/articles/CBMiK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9TFRTSlFNb1Q5MHfSAQA?oc=5","urlToImage":null,"publishedAt":"2021-07-19T00:00:07Z","content":null},{"source":{"id":null,"name":"ESPN"},"author":null,"title":"United States vs. Canada - Football Match Report - July 18, 2021 - ESPN","description":"Get a report of the United States vs. Canada 2021 CONCACAF Gold Cup, Group Stage football match.","url":"https://www.espn.com/soccer/report/_/gameId/602704","urlToImage":"https://a2.espncdn.com/combiner/i?img=%2Fphoto%2F2021%2F0718%2Fr881912_1296x729_16%2D9.jpg","publishedAt":"2021-07-18T23:33:39Z","content":"Shaq Moore scored 20 seconds in and the United States beat Canada 1-0 on Sunday to win Group B at the CONCACAF Gold Cup.\r\nMoore's goal was the fastest in Gold Cup history and the fastest for the U.S.… [+2296 chars]"},{"source":{"id":"usa-today","name":"USA Today"},"author":"Bryan Alexander, USA TODAY","title":"LeBron James dunks on 'Space Jam: A New Legacy' haters, plus that epic Michael Jordan 'cameo' - USA TODAY","description":"LeBron James trash-talked \"Space Jam: A New Legacy\" haters on Twitter. All about that box-office burn and Michael Jordan's appearance. Spoilers ahead!","url":"https://www.usatoday.com/story/entertainment/movies/2021/07/18/space-jam-lebron-james-taunts-haters-plus-michael-jordan-spoilers/7988539002/","urlToImage":"https://www.gannett-cdn.com/presto/2021/07/18/USAT/88f58ee5-3cbe-4662-8b12-4fca33f52e68-rev-1-SJM-FP-0010_High_Res_JPEG.jpeg?auto=webp&crop=2904,1634,x1300,y36&format=pjpg&width=1200","publishedAt":"2021-07-18T23:04:30Z","content":"\"Space Jam: A New Legacy\" won the box office crown over \"Black Widow\" this weekend. LeBron James tweeted an article about the win, writing \"Hi Haters!\" with a laughing emoji. … [+3831 chars]"},{"source":{"id":"fox-news","name":"Fox News"},"author":"Brittany De Lea","title":"Biden poses with ice cream cone on 'national ice cream day' - Fox News","description":"President Biden on Sunday celebrated national ice cream day by posting an image of himself grabbing a large cone and posing for a selfie.","url":"https://www.foxnews.com/politics/biden-ice-cream-on-natonal-ice-cream-day","urlToImage":"https://static.foxnews.com/foxnews.com/content/uploads/2021/06/AP21166471478931.jpg","publishedAt":"2021-07-18T22:50:20Z","content":"President Joe Biden on Sunday celebrated national ice cream day by posting an image of himself grabbing a large cone and posing for a selfie.\r\nThe president posted the picture on Twitter with the cap… [+698 chars]"},{"source":{"id":null,"name":"CBS Sports"},"author":"","title":"NBA Finals: Monty Williams says Suns must be willing to 'do whatever it takes' to force Game 7 in Phoenix - CBS Sports","description":"After winning the first two games of the series, the Suns have lost three straight and are facing elimination","url":"https://www.cbssports.com/nba/news/nba-finals-monty-williams-says-suns-must-be-willing-to-do-whatever-it-takes-to-force-game-7-in-phoenix/","urlToImage":"https://sportshub.cbsistatic.com/i/r/2021/05/18/f239e087-d96b-4a20-b06c-d6355c9a4101/thumbnail/1200x675/032f88a2252f15fb9aa547c05e4b873d/monty-williams.jpg","publishedAt":"2021-07-18T22:49:00Z","content":"Things started off really well for the Phoenix Suns in the 2021 NBA Finals. They won the first two games of the series and appeared poised to win their first championship in franchise history. Howeve… [+2536 chars]"},{"source":{"id":null,"name":"NPR"},"author":"","title":"2 Weeks After Surgery, The Pope Is Back At St. Peter's Square - NPR","description":"The pope offered blessings for people affected by flooding in Western Europe, rioting in South Africa and protests in Cuba.","url":"https://www.npr.org/2021/07/18/1017646963/pope-francis-delivers-first-address-since-leaving-hospital","urlToImage":"https://media.npr.org/assets/img/2021/07/18/ap_21199392116038_wide-67bbab4e11e623e786fb3ae24ad207630f1ca775.jpg?s=1400","publishedAt":"2021-07-18T22:12:04Z","content":"Pope Francis salutes the crowd as he arrives for the Angelus noon prayer from the window of his studio overlooking St. Peter's Square at the Vatican on Sunday.\r\nAlessandra Tarantino/AP\r\nTwo weeks aft… [+2016 chars]"},{"source":{"id":"fox-news","name":"Fox News"},"author":"New York Post","title":"Athletes to sleep on ‘anti-sex’ cardboard beds at Olympic Games amid COVID - Fox News","description":"Lustful Olympic athletes should think twice before making the bed rock in Tokyo.","url":"https://www.foxnews.com/sports/athletes-to-sleep-on-anti-sex-cardboard-beds-at-olympic-games-amid-covid","urlToImage":"https://static.foxnews.com/foxnews.com/content/uploads/2020/03/Tokyo-Olympics11.jpg","publishedAt":"2021-07-18T22:07:28Z","content":"Lustful Olympic athletes should think twice before making the bed rock in Tokyo.\r\nThe worlds best sports competitors are set to spend their nights on cardboard beds allegedly designed to collapse und… [+2083 chars]"},{"source":{"id":"cnn","name":"CNN"},"author":"Rachel Trent, CNN","title":"Astronauts on International Space Station are growing chile peppers in a first for NASA - CNN ","description":"Astronauts on the International Space Station are trying to spice up their diets.","url":"https://www.cnn.com/2021/07/18/us/nasa-peppers-space-station-scn-trnd/index.html","urlToImage":"https://cdn.cnn.com/cnnnext/dam/assets/210718143641-nasa-peppers-space-station-trnd-super-tease.jpg","publishedAt":"2021-07-18T21:50:00Z","content":null},{"source":{"id":"nbc-news","name":"NBC News"},"author":"Dennis Romero, Kelcey Henderson","title":"Packing tape and empty bag of chips: NYPD officer aids stabbing victim - NBC News","description":"A New York police officer channeled MacGyver this month by using an empty chips bag go help save a Harlem stabbing victim.","url":"https://www.nbcnews.com/news/us-news/packing-tape-empty-bag-chips-nypd-officer-aids-stabbing-victim-n1274320","urlToImage":"https://media-cldnry.s-nbcnews.com/image/upload/t_nbcnews-fp-1200-630,f_auto,q_auto:best/newscms/2021_28/3492086/210718-nypd-cop-aids-stabbing-victim-jm-1535.jpg","publishedAt":"2021-07-18T21:29:00Z","content":"A New York police officer took a page from ingenious TV problem solver MacGyver, using an empty potato chip bag and tape to slow the bleeding of a stabbing victim, police said Sunday.\r\nPolice body ca… [+2073 chars]"},{"source":{"id":"fox-news","name":"Fox News"},"author":"Lindsay Kornick","title":"Washington Post report neglected spyware firm's Democratic connections in hacking investigation - Fox News","description":"The Washington Post neglected to reference an Israeli firm’s Democratic connections when releasing an investigation into a hacking scandal.","url":"https://www.foxnews.com/media/wapo-neglected-spyware-democratic-hacking-investigation","urlToImage":"https://static.foxnews.com/foxnews.com/content/uploads/2021/01/Anita-Dunn-GETTY.jpg","publishedAt":"2021-07-18T21:19:20Z","content":"The Washington Post neglected to reference an Israeli firms Democratic connections when releasing an investigation into a hacking scandal.\r\nOn Sunday, the Washington Post published an article titled … [+2914 chars]"},{"source":{"id":"the-washington-post","name":"The Washington Post"},"author":"Amy B Wang, Christopher Rowland","title":"Biden's surgeon general backs localized mask mandates as delta variant drives rise in covid cases - The Washington Post","description":"Democratic and Republican officials also spoke out against coronavirus misinformation, urging people to get vaccinated.","url":"https://www.washingtonpost.com/politics/2021/07/18/vivek-murthy-covid-vaccines/","urlToImage":"https://www.washingtonpost.com/wp-apps/imrs.php?src=https://arc-anglerfish-washpost-prod-washpost.s3.amazonaws.com/public/Z4UWATXFTEI6XCGFJ7LDQLCHZM.jpg&w=1440","publishedAt":"2021-07-18T21:14:35Z","content":"Its very reasonable for counties to take more mitigation measures like the mask rules you see coming out in L.A., and I anticipate that will happen in other parts of the country too, Murthy said on A… [+4449 chars]"},{"source":{"id":"the-hill","name":"The Hill"},"author":"Caroline Vakil","title":"More evacuations ordered after California wildfire jumps highway | TheHill - The Hill","description":"A fire in the Lake Tahoe, Calif., area jumped a highway and force...","url":"https://thehill.com/policy/energy-environment/563611-more-evacuations-ordered-after-california-wildfire-jumps-highway","urlToImage":"https://thehill.com/sites/default/files/wildfire_ca_getty102720.jpg","publishedAt":"2021-07-18T21:11:07Z","content":"A fire in the Lake Tahoe, Calif., area jumped a highway and forced additional evacuations and the cancellation of an intensive bike race, The Associated Press reported.\r\nThe Tamarack Fire, just south… [+1631 chars]"},{"source":{"id":null,"name":"WJXT News4JAX"},"author":"Steve Patrick, Marilyn Parker","title":"Greater Jacksonville driving Florida's COVID-19 surge - WJXT News4JAX ","description":"The rate of infections in Jacksonville and three nearby counties is even higher than the state average and surpassing the increases seen in the state’s first coronavirus spike last summer.","url":"https://www.news4jax.com/news/local/2021/07/18/greater-jacksonville-driving-floridas-covid-19-surge/","urlToImage":"https://www.news4jax.com/resizer/r7q0b5KUtiTCTdx0kxDTD3uFViY=/800x450/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/d1vhqlrjc8h82r.cloudfront.net/07-19-2021/t_c3acb0bb44ed49cfaede55616d01668d_name_Virus_Outbreak_US__scaled.jpg","publishedAt":"2021-07-18T20:51:06Z","content":"JACKSONVILLE, Fla. Floridas number of coronavirus cases diagnosed last week -- 45,449 -- is nearing the increases seen in last summers spike. That week-to-week growth rate of infections is the highes… [+2661 chars]"},{"source":{"id":null,"name":"Variety"},"author":"Rebecca Rubin","title":"Movie Theater Owners Blame Marvel’s ‘Black Widow’ Box Office ‘Collapse’ on Disney Plus Launch - Variety","description":"Movie theater operators did not mince words in asserting that Disney left money on the table by putting Marvel’s “Black Widow” on Disney Plus on the same day as its theatrical debut. Disney announced in March that “Black Widow,” among several of its 2021 film…","url":"https://variety.com/2021/film/news/movie-theater-owners-black-widow-disney-plus-1235022524/","urlToImage":"https://variety.com/wp-content/uploads/2021/07/Black-Widow-Marvel.jpg?w=1000","publishedAt":"2021-07-18T20:49:00Z","content":"Movie theater operators did not mince words in asserting that Disney left money on the table by putting Marvel’s “Black Widow” on Disney Plus on the same day as its theatrical debut.\r\nDisney announce… [+6149 chars]"},{"source":{"id":null,"name":"Fox Business"},"author":"Brittany De Lea","title":"Johnson & Johnson weighing bankruptcy plan as it considers offloading baby powder liabilities: report - Fox Business","description":"Retailer Johnson & Johnson is reportedly considering spinning off liabilities from its Baby Powder unit due ongoing litigation, with plans to seek bankruptcy protection for that new business.","url":"https://www.foxbusiness.com/retail/johnson-johnson-weighing-bankruptcy-plan-as-it-considers-offloading-baby-powder-liabilities-report","urlToImage":"https://a57.foxnews.com/static.foxbusiness.com/foxbusiness.com/content/uploads/2019/10/0/0/Baby-Powder-1.jpg?ve=1&tl=1","publishedAt":"2021-07-18T20:35:22Z","content":"Retailer Johnson & Johnson is reportedly considering spinning off liabilities from its Baby Powder unit due to ongoing litigation, with plans to seek bankruptcy protection for that new business.\r… [+1578 chars]"},{"source":{"id":"the-verge","name":"The Verge"},"author":"Kim Lyons","title":"New Steam Deck reservations now showing ‘expected order availability’ in Q2 and Q3 2022 - The Verge","description":"Valve revealed its handheld gaming device on Thursday, and was inundated with reservations when it first made them available. The company is planning to begin converting reservations to orders in December.","url":"https://www.theverge.com/2021/7/18/22582617/new-steam-deck-reservations-q2-q3-valve-hand-held","urlToImage":"https://cdn.vox-cdn.com/thumbor/j6TnsQXbwiyB1vypD3ZkyRZtqfY=/0x380:3684x2309/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/22720898/Steam_Deck_case.jpg","publishedAt":"2021-07-18T20:25:23Z","content":"Valve has opened up reservations for people without existing Steam accounts as well\r\nSteam Deck will start shipping in December 2021\r\nImage: Valve\r\nIf youre looking to reserve a Steam Deck and havent… [+1102 chars]"}]}
--------------------------------------------------------------------------------
/test/data/news_sample.json:
--------------------------------------------------------------------------------
1 | {"status":"ok","totalResults":3,"articles":[{"source":{"id":"t3n","name":"T3n"},"author":"Jörn Brien","title":"Schlag gegen Bitcoin-Miner: Mining-Rigs im Wert von 1 Million Euro plattgewalzt","description":"Malaysische Behörden haben Bitcoin-Mining-Rigs im Wert von über einer Million Euro mit einer Straßenwalze zers","url":"https://t3n.de/news/bitcoin-mining-rigs-plattgewalzt-1392327/","urlToImage":"https://t3n.de/news/wp-content/uploads/2018/08/mining.jpg","publishedAt":"2021-07-18T17:02:47Z","content":"Hinweis: Wir haben in diesem Artikel Provisions-Links verwendet und sie durch \"*\" gekennzeichnet. Erfolgt über diese Links eine Bestellung, erhält t3n.de eine Provision.\r\nMalaysische Behörden haben B… [+2923 chars]"},{"source":{"id":"new-scientist","name":"New Scientist"},"author":null,"title":"Coal-powered bitcoin mining soars in Kazakhstan following Chinese ban","description":"A Chinese bitcoin ban has seen power-hungry miners move to Kazakhstan, where fossil fuels including coal power make up more than 90 per cent of the nation's electricity supply","url":"https://www.newscientist.com/article/2284222-coal-powered-bitcoin-mining-soars-in-kazakhstan-following-chinese-ban/","urlToImage":"https://images.newscientist.com/wp-content/uploads/2021/07/16115544/15-july_coal-powered-bitcoin-mining.jpg","publishedAt":"2021-07-16T00:00:00Z","content":"By Matthew Sparkes\r\nA coal mine in Kazakhstan\r\nMagnus Møller/Alamy\r\nChinese bitcoin mining has almost entirely ceased since the government restricted cryptocurrency use in May, meaning much of this a… [+2954 chars]"},{"source":{"id":"les-echos","name":"Les Echos"},"author":"Nessim Aït-Kacimi","title":"Dix milliards de dollars d'activités illicites financées en cryptos lors de la crise du Covid","description":"Même si cela reste une faible proportion des transactions totales sur les cryptos, les activités illicites (blanchiment, trafics…) financées en bitcoin et autres cryptos ont atteint 10 milliards de dollars l'an dernier. Les « supermarchés » de la drogue en li…","url":"https://www.lesechos.fr/finance-marches/marches-financiers/dix-milliards-de-dollars-dactivites-illicites-financees-en-cryptos-lors-de-la-crise-du-covid-1332349","urlToImage":"https://media.lesechos.com/api/v1/images/view/60f01cbcd286c273620c3a65/1280x720/0611385253350-web-tete.jpg","publishedAt":"2021-07-15T11:30:00Z","content":"La police britannique vient de frapper le crime organisé au portefeuille. Elle a saisi mardi un montant record de 210 millions d'euros en cryptomonnaies (ou cryptos). Un mois plus tôt, 133 millions d… [+4494 chars]"}]}
--------------------------------------------------------------------------------
/test/repositories/mock_article_repository.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:getx_clean_architecture/data/models/paging_model.dart';
3 | import 'package:getx_clean_architecture/domain/repositories/article_repository.dart';
4 | import 'dart:convert';
5 |
6 | class MockArticleRepository extends ArticleRepository {
7 | @override
8 | Future fetchHeadline(int page, int pageSize) async {
9 | final file = File('test/data/headline_sample.json');
10 | final response = await file.readAsString();
11 | final data = await json.decode(response);
12 | return PagingModel.fromJson(data);
13 | }
14 |
15 | @override
16 | Future fetchNewsByCategory(
17 | String keyword, int page, int pageSize) async {
18 | final file = File('test/data/news_sample.json');
19 | final response = await file.readAsString();
20 | final data = await json.decode(response);
21 | return PagingModel.fromJson(data);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/test/repositories/mock_auth_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:getx_clean_architecture/domain/entities/user.dart';
2 | import 'package:getx_clean_architecture/domain/repositories/auth_repository.dart';
3 |
4 | class MockAuthenticationRepository extends AuthenticationRepository {
5 | @override
6 | Future signUp(String username) async {
7 | //Fake sign up action
8 | await Future.delayed(Duration(seconds: 1));
9 | return User(username: username);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter_test/flutter_test.dart';
9 | import 'package:getx_clean_architecture/domain/usecases/fetch_headline_use_case.dart';
10 | import 'package:getx_clean_architecture/domain/usecases/fetch_news_use_case.dart';
11 | import 'package:getx_clean_architecture/domain/usecases/signup_use_case.dart';
12 |
13 | import 'package:tuple/tuple.dart';
14 |
15 | import 'repositories/mock_article_repository.dart';
16 | import 'repositories/mock_auth_repository.dart';
17 |
18 | void main() {
19 | test('Sign up test', () async {
20 | //Mock input
21 | final registerUserName = "test username";
22 |
23 | //Mock data
24 | final signUpUseCase = SignUpUseCase(MockAuthenticationRepository());
25 | final user = await signUpUseCase.execute(registerUserName);
26 |
27 | expect(user.username, registerUserName);
28 | });
29 |
30 | test('Fetch headline test', () async {
31 | final pageSize = 20;
32 | final currentPage = 1;
33 |
34 | //Mock data
35 | final fetchHeadlineUseCase = FetchHeadlineUseCase(MockArticleRepository());
36 | final paging =
37 | await fetchHeadlineUseCase.execute(Tuple2(currentPage, pageSize));
38 |
39 | // Verify that data has created.
40 | expect(paging.articles.length, 20);
41 | });
42 |
43 | test('Fetch news test', () async {
44 | //Mock input
45 | final keyword = "bitcoin";
46 | final pageSize = 20;
47 | final currentPage = 1;
48 |
49 | //Mock data
50 | final fetchHeadlineUseCase = FetchNewsUseCase(MockArticleRepository());
51 | final paging = await fetchHeadlineUseCase
52 | .execute(Tuple3(keyword, currentPage, pageSize));
53 |
54 | // Verify that data has created.
55 | expect(paging.articles.length, 3);
56 | });
57 | }
58 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fuzail14/Getx-Clean-Architecture/b891c4bd9dad31c628ce74be09ea3e2633bb9f89/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | getx_clean_architecture
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "getx_clean_architecture",
3 | "short_name": "getx_clean_architecture",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------