├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── code
│ │ │ │ └── auth
│ │ │ │ └── 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
│ │ │ ├── mipmap
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── icon.png
└── tones
│ └── message_tone.mp3
├── 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
├── 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
│ ├── GoogleService-Info.plist
│ ├── Info.plist
│ ├── Runner-Bridging-Header.h
│ ├── Runner.entitlements
│ └── RunnerProfile.entitlements
└── build
│ ├── Pods.build
│ └── Release-iphonesimulator
│ │ ├── AppAuth.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FBAEMKit.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FBSDKCoreKit-FacebookSDKStrings.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FBSDKCoreKit.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FBSDKCoreKit_Basics.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FBSDKLoginKit.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── Firebase.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FirebaseAnalytics.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FirebaseCore.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FirebaseCoreDiagnostics.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── FirebaseInstallations.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── Flutter.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GTMAppAuth.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GTMSessionFetcher.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GoogleAppMeasurement.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GoogleDataTransport.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GoogleSignIn.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── GoogleUtilities.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── Pods-Runner.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── PromisesObjC.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── flutter_facebook_auth.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── flutter_secure_storage.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── google_sign_in.build
│ │ ├── dgph
│ │ └── dgph~
│ │ ├── nanopb.build
│ │ ├── dgph
│ │ └── dgph~
│ │ └── sign_in_with_apple.build
│ │ ├── dgph
│ │ └── dgph~
│ └── XCBuildData
│ ├── 581cef65247af86137256da0cb1a8e67-buildRequest.json
│ ├── 581cef65247af86137256da0cb1a8e67-desc.xcbuild
│ ├── 581cef65247af86137256da0cb1a8e67-manifest.xcbuild
│ ├── 581cef65247af86137256da0cb1a8e67-targetGraph.txt
│ ├── BuildDescriptionCacheIndex-2732f861f69bdb8a3f78de4705c510f8
│ ├── ba80ae0bba6832224845d3bb2897fc2c-buildRequest.json
│ ├── ba80ae0bba6832224845d3bb2897fc2c-targetGraph.txt
│ ├── build.db
│ ├── e4be1c1cfe6a5f866c7dd2496bc80c69-buildRequest.json
│ ├── e4be1c1cfe6a5f866c7dd2496bc80c69-desc.xcbuild
│ ├── e4be1c1cfe6a5f866c7dd2496bc80c69-manifest.xcbuild
│ ├── e4be1c1cfe6a5f866c7dd2496bc80c69-targetGraph.txt
│ ├── f005355584a956fbe241e8ef6200384c-buildRequest.json
│ ├── f005355584a956fbe241e8ef6200384c-desc.xcbuild
│ ├── f005355584a956fbe241e8ef6200384c-manifest.xcbuild
│ ├── f005355584a956fbe241e8ef6200384c-targetGraph.txt
│ ├── fda55b95a3754a706935e2e7306bae3e-buildRequest.json
│ ├── fda55b95a3754a706935e2e7306bae3e-desc.xcbuild
│ ├── fda55b95a3754a706935e2e7306bae3e-manifest.xcbuild
│ └── fda55b95a3754a706935e2e7306bae3e-targetGraph.txt
├── lib
├── main.dart
└── src
│ ├── app.dart
│ ├── app_router.dart
│ ├── constants
│ └── environments.dart
│ ├── core
│ └── socket.dart
│ ├── features
│ ├── auth
│ │ ├── logic
│ │ │ ├── cubit
│ │ │ │ └── auth_cubit.dart
│ │ │ ├── interceptors
│ │ │ │ └── auth_token_interceptor.dart
│ │ │ ├── models
│ │ │ │ ├── tokens.dart
│ │ │ │ └── user.dart
│ │ │ ├── provider
│ │ │ │ └── auth_api_provider.dart
│ │ │ └── repository
│ │ │ │ └── auth_repository.dart
│ │ └── views
│ │ │ └── screens
│ │ │ ├── login_screen.dart
│ │ │ ├── recover_screen.dart
│ │ │ └── register_screen.dart
│ ├── home
│ │ └── views
│ │ │ ├── screens
│ │ │ └── home_screen.dart
│ │ │ └── widgets
│ │ │ ├── authenticated_home.dart
│ │ │ └── non_authenticated_home.dart
│ ├── messages
│ │ ├── logic
│ │ │ ├── bloc
│ │ │ │ ├── direct_message_bloc.dart
│ │ │ │ ├── direct_message_event.dart
│ │ │ │ ├── direct_message_state.dart
│ │ │ │ ├── message_bloc.dart
│ │ │ │ ├── message_event.dart
│ │ │ │ └── message_state.dart
│ │ │ ├── enum
│ │ │ │ └── message_type.dart
│ │ │ ├── models
│ │ │ │ ├── message.dart
│ │ │ │ └── typing.dart
│ │ │ ├── providers
│ │ │ │ └── message_api_provider.dart
│ │ │ └── repository
│ │ │ │ └── message_repository.dart
│ │ └── views
│ │ │ ├── screens
│ │ │ └── direct_message_screen.dart
│ │ │ └── widgets
│ │ │ └── messages.dart
│ ├── notification
│ │ ├── logic
│ │ │ ├── enums
│ │ │ │ └── notification_type.dart
│ │ │ ├── provider
│ │ │ │ └── subscription_api_provider.dart
│ │ │ └── repository
│ │ │ │ ├── notification_repository.dart
│ │ │ │ └── subscription_repository.dart
│ │ └── views
│ │ │ └── widgets
│ │ │ └── notification_handler.dart
│ ├── room
│ │ ├── logic
│ │ │ ├── bloc
│ │ │ │ ├── room_bloc.dart
│ │ │ │ ├── room_event.dart
│ │ │ │ ├── room_state.dart
│ │ │ │ ├── rooms_bloc.dart
│ │ │ │ ├── rooms_event.dart
│ │ │ │ └── rooms_state.dart
│ │ │ ├── models
│ │ │ │ └── room.dart
│ │ │ ├── provider
│ │ │ │ └── room_api_provider.dart
│ │ │ └── repository
│ │ │ │ └── room_repository.dart
│ │ └── views
│ │ │ ├── screens
│ │ │ ├── room_screen.dart
│ │ │ └── rooms_screen.dart
│ │ │ └── widgets
│ │ │ ├── dialog
│ │ │ ├── join_room_dialog.dart
│ │ │ └── upsert_room_dialog.dart
│ │ │ └── room_tile.dart
│ ├── settings
│ │ ├── logic
│ │ │ ├── provider
│ │ │ │ └── settings_api_provider.dart
│ │ │ └── settings_repository.dart
│ │ └── views
│ │ │ └── screens
│ │ │ └── settings_screen.dart
│ └── user
│ │ └── logic
│ │ ├── provider
│ │ └── user_api_provider.dart
│ │ └── repository
│ │ └── user_repository.dart
│ └── shared
│ ├── logic
│ └── http
│ │ ├── api.dart
│ │ └── interceptors
│ │ └── error_dialog_interceptor.dart
│ └── views
│ └── widgets
│ ├── circles_background.dart
│ ├── dialog
│ ├── alert_dialog_widget.dart
│ └── confirm_dialog_widget.dart
│ ├── go_back_button.dart
│ ├── main_text_field.dart
│ ├── next_button.dart
│ ├── scroll_close_keyboard.dart
│ ├── scrollable_form.dart
│ ├── typing_indicator.dart
│ ├── underlined_button.dart
│ └── user_status.dart
├── pubspec.lock
├── pubspec.yaml
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
48 | .vscode
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Flutter Auth App (Messages, Rooms, Login, Register, Google Login, Facebook Login, Apple Login)
2 |
3 | To use this client, get the [server](https://github.com/DenzelCode/nest-auth) up and running.
4 |
5 | Try it out now!
6 |
7 | App Store: https://apps.apple.com/us/app/codeauth/id1575457893
8 |
9 | Google Play: https://play.google.com/store/apps/details?id=com.code.auth (Outdated)
10 |
11 | Images:
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/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: 'com.google.gms.google-services'
26 |
27 | apply plugin: 'kotlin-android'
28 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
29 |
30 | def keystoreProperties = new Properties()
31 | def keystorePropertiesFile = rootProject.file('key.properties')
32 | if (keystorePropertiesFile.exists()) {
33 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
34 | }
35 |
36 | android {
37 | compileSdkVersion 30
38 |
39 | sourceSets {
40 | main.java.srcDirs += 'src/main/kotlin'
41 | }
42 |
43 | defaultConfig {
44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
45 | applicationId "com.code.auth"
46 | minSdkVersion 18
47 | targetSdkVersion 30
48 | multiDexEnabled true
49 | versionCode flutterVersionCode.toInteger()
50 | versionName flutterVersionName
51 | }
52 |
53 | signingConfigs {
54 | release {
55 | keyAlias keystoreProperties['keyAlias']
56 | keyPassword keystoreProperties['keyPassword']
57 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
58 | storePassword keystoreProperties['storePassword']
59 | }
60 | }
61 | buildTypes {
62 | release {
63 | signingConfig signingConfigs.release
64 | }
65 | }
66 | }
67 |
68 | flutter {
69 | source '../..'
70 | }
71 |
72 | dependencies {
73 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
74 |
75 | implementation platform('com.google.firebase:firebase-bom:28.2.1')
76 |
77 | implementation 'com.google.firebase:firebase-analytics-ktx'
78 |
79 | implementation 'androidx.multidex:multidex:2.0.1'
80 |
81 | implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
82 | }
83 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "331672215174",
4 | "project_id": "codeauth-320604",
5 | "storage_bucket": "codeauth-320604.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:331672215174:android:8f306094623f21c4fabb07",
11 | "android_client_info": {
12 | "package_name": "com.code.auth"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "331672215174-qpt9riksekmpc4a4gd2tg9t4ja1nv6aq.apps.googleusercontent.com",
18 | "client_type": 1,
19 | "android_info": {
20 | "package_name": "com.code.auth",
21 | "certificate_hash": "d7a7e1b53089f15ed60d80c69492f5ef1f11ce32"
22 | }
23 | },
24 | {
25 | "client_id": "331672215174-0hlpm8fhjphiou05ovsd82vglor401ct.apps.googleusercontent.com",
26 | "client_type": 3
27 | }
28 | ],
29 | "api_key": [
30 | {
31 | "current_key": "AIzaSyCBUUMHX_e-NZU50Mtmqd0hE_Yzijk8-v4"
32 | }
33 | ],
34 | "services": {
35 | "appinvite_service": {
36 | "other_platform_oauth_client": [
37 | {
38 | "client_id": "331672215174-0hlpm8fhjphiou05ovsd82vglor401ct.apps.googleusercontent.com",
39 | "client_type": 3
40 | },
41 | {
42 | "client_id": "331672215174-00qqqsq30acj5lgsikfghp6luk0k34j0.apps.googleusercontent.com",
43 | "client_type": 2,
44 | "ios_info": {
45 | "bundle_id": "com.code.auth"
46 | }
47 | }
48 | ]
49 | }
50 | }
51 | }
52 | ],
53 | "configuration_version": "1"
54 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
7 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
47 |
51 |
55 |
60 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
75 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/code/auth/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.code.auth
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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/android/app/src/main/res/mipmap/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/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeAuth
4 | 535472397651204
5 | fb535472397651204
6 |
--------------------------------------------------------------------------------
/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.5.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 | classpath 'com.google.gms:google-services:4.3.8'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/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-6.7-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/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/assets/icon.png
--------------------------------------------------------------------------------
/assets/tones/message_tone.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/assets/tones/message_tone.mp3
--------------------------------------------------------------------------------
/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 | 9.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, '10.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/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 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/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/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 | "filename" : "Icon-App-20x20@2x.png",
5 | "idiom" : "iphone",
6 | "scale" : "2x",
7 | "size" : "20x20"
8 | },
9 | {
10 | "filename" : "Icon-App-20x20@3x.png",
11 | "idiom" : "iphone",
12 | "scale" : "3x",
13 | "size" : "20x20"
14 | },
15 | {
16 | "filename" : "Icon-App-29x29@1x.png",
17 | "idiom" : "iphone",
18 | "scale" : "1x",
19 | "size" : "29x29"
20 | },
21 | {
22 | "filename" : "Icon-App-29x29@2x.png",
23 | "idiom" : "iphone",
24 | "scale" : "2x",
25 | "size" : "29x29"
26 | },
27 | {
28 | "filename" : "Icon-App-29x29@3x.png",
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "29x29"
32 | },
33 | {
34 | "filename" : "Icon-App-40x40@2x.png",
35 | "idiom" : "iphone",
36 | "scale" : "2x",
37 | "size" : "40x40"
38 | },
39 | {
40 | "filename" : "Icon-App-40x40@3x.png",
41 | "idiom" : "iphone",
42 | "scale" : "3x",
43 | "size" : "40x40"
44 | },
45 | {
46 | "filename" : "Icon-App-60x60@2x.png",
47 | "idiom" : "iphone",
48 | "scale" : "2x",
49 | "size" : "60x60"
50 | },
51 | {
52 | "filename" : "Icon-App-60x60@3x.png",
53 | "idiom" : "iphone",
54 | "scale" : "3x",
55 | "size" : "60x60"
56 | },
57 | {
58 | "filename" : "Icon-App-20x20@1x.png",
59 | "idiom" : "ipad",
60 | "scale" : "1x",
61 | "size" : "20x20"
62 | },
63 | {
64 | "filename" : "Icon-App-20x20@2x.png",
65 | "idiom" : "ipad",
66 | "scale" : "2x",
67 | "size" : "20x20"
68 | },
69 | {
70 | "filename" : "Icon-App-29x29@1x.png",
71 | "idiom" : "ipad",
72 | "scale" : "1x",
73 | "size" : "29x29"
74 | },
75 | {
76 | "filename" : "Icon-App-29x29@2x.png",
77 | "idiom" : "ipad",
78 | "scale" : "2x",
79 | "size" : "29x29"
80 | },
81 | {
82 | "filename" : "Icon-App-40x40@1x.png",
83 | "idiom" : "ipad",
84 | "scale" : "1x",
85 | "size" : "40x40"
86 | },
87 | {
88 | "filename" : "Icon-App-40x40@2x.png",
89 | "idiom" : "ipad",
90 | "scale" : "2x",
91 | "size" : "40x40"
92 | },
93 | {
94 | "filename" : "Icon-App-76x76@1x.png",
95 | "idiom" : "ipad",
96 | "scale" : "1x",
97 | "size" : "76x76"
98 | },
99 | {
100 | "filename" : "Icon-App-76x76@2x.png",
101 | "idiom" : "ipad",
102 | "scale" : "2x",
103 | "size" : "76x76"
104 | },
105 | {
106 | "filename" : "Icon-App-83.5x83.5@2x.png",
107 | "idiom" : "ipad",
108 | "scale" : "2x",
109 | "size" : "83.5x83.5"
110 | },
111 | {
112 | "filename" : "Icon-App-1024x1024@1x.png",
113 | "idiom" : "ios-marketing",
114 | "scale" : "1x",
115 | "size" : "1024x1024"
116 | }
117 | ],
118 | "info" : {
119 | "author" : "xcode",
120 | "version" : 1
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/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/GoogleService-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CLIENT_ID
6 | 331672215174-00qqqsq30acj5lgsikfghp6luk0k34j0.apps.googleusercontent.com
7 | REVERSED_CLIENT_ID
8 | com.googleusercontent.apps.331672215174-00qqqsq30acj5lgsikfghp6luk0k34j0
9 | ANDROID_CLIENT_ID
10 | 331672215174-qpt9riksekmpc4a4gd2tg9t4ja1nv6aq.apps.googleusercontent.com
11 | API_KEY
12 | AIzaSyDooN2gjVrf43-e3r5vhXBcaSLapOh5BkU
13 | GCM_SENDER_ID
14 | 331672215174
15 | PLIST_VERSION
16 | 1
17 | BUNDLE_ID
18 | com.code.auth
19 | PROJECT_ID
20 | codeauth-320604
21 | STORAGE_BUCKET
22 | codeauth-320604.appspot.com
23 | IS_ADS_ENABLED
24 |
25 | IS_ANALYTICS_ENABLED
26 |
27 | IS_APPINVITE_ENABLED
28 |
29 | IS_GCM_ENABLED
30 |
31 | IS_SIGNIN_ENABLED
32 |
33 | GOOGLE_APP_ID
34 | 1:331672215174:ios:b701c53bfcc01d47fabb07
35 |
36 |
37 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | CodeAuth
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | auth
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(MARKETING_VERSION)
21 | CFBundleSignature
22 | ????
23 | CFBundleURLTypes
24 |
25 |
26 | CFBundleTypeRole
27 | Editor
28 | CFBundleURLSchemes
29 |
30 | fb535472397651204
31 | com.googleusercontent.apps.331672215174-00qqqsq30acj5lgsikfghp6luk0k34j0
32 |
33 |
34 |
35 | CFBundleVersion
36 | $(CURRENT_PROJECT_VERSION)
37 | FacebookAppID
38 | 535472397651204
39 | FacebookDisplayName
40 | CodeAuth
41 | LSApplicationQueriesSchemes
42 |
43 | fbapi
44 | fb-messenger-share-api
45 | fbauth2
46 | fbshareextension
47 |
48 | LSRequiresIPhoneOS
49 |
50 | UIApplicationSceneManifest
51 |
52 | UIApplicationSupportsMultipleScenes
53 |
54 |
55 | UILaunchStoryboardName
56 | LaunchScreen
57 | UIMainStoryboardFile
58 | Main
59 | UISupportedInterfaceOrientations
60 |
61 | UIInterfaceOrientationPortrait
62 |
63 | UISupportedInterfaceOrientations~ipad
64 |
65 | UIInterfaceOrientationPortrait
66 | UIInterfaceOrientationPortraitUpsideDown
67 | UIInterfaceOrientationLandscapeLeft
68 | UIInterfaceOrientationLandscapeRight
69 |
70 | UIViewControllerBasedStatusBarAppearance
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.developer.applesignin
8 |
9 | Default
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/RunnerProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.developer.applesignin
8 |
9 | Default
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/AppAuth.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/AppAuth.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBAEMKit.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBAEMKit.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit-FacebookSDKStrings.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit-FacebookSDKStrings.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit_Basics.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKCoreKit_Basics.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKLoginKit.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FBSDKLoginKit.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Firebase.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Firebase.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseAnalytics.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseAnalytics.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseCore.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseCore.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseCoreDiagnostics.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseCoreDiagnostics.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseInstallations.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/FirebaseInstallations.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Flutter.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Flutter.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GTMAppAuth.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GTMAppAuth.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GTMSessionFetcher.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GTMSessionFetcher.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleAppMeasurement.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleAppMeasurement.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleDataTransport.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleDataTransport.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleSignIn.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleSignIn.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleUtilities.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/GoogleUtilities.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Pods-Runner.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/Pods-Runner.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/PromisesObjC.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/PromisesObjC.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/flutter_facebook_auth.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/flutter_facebook_auth.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/flutter_secure_storage.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/flutter_secure_storage.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/google_sign_in.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/google_sign_in.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/nanopb.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/nanopb.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/sign_in_with_apple.build/dgph:
--------------------------------------------------------------------------------
1 | DGPH1.04Aug 25 202119:34:47 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/Pods.build/Release-iphonesimulator/sign_in_with_apple.build/dgph~:
--------------------------------------------------------------------------------
1 | DGPH1.04Jun 8 202114:00:05 / Users
2 | denzelcode Documents Code Flutter auth ios Pods
--------------------------------------------------------------------------------
/ios/build/XCBuildData/581cef65247af86137256da0cb1a8e67-buildRequest.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand" : "prepareForIndexing",
3 | "configuredTargets" : [
4 | {
5 | "guid" : "e25a7932c7d6b18d11734b7ff1ae15bf88a783a885d8b0b3beb2e9f90bde3f49"
6 | }
7 | ],
8 | "continueBuildingAfterErrors" : true,
9 | "enableIndexBuildArena" : false,
10 | "hideShellScriptEnvironment" : false,
11 | "parameters" : {
12 | "action" : "build",
13 | "activeArchitecture" : "x86_64",
14 | "activeRunDestination" : {
15 | "disableOnlyActiveArch" : false,
16 | "platform" : "iphonesimulator",
17 | "sdk" : "iphonesimulator14.5",
18 | "sdkVariant" : "iphonesimulator",
19 | "supportedArchitectures" : [
20 | "x86_64"
21 | ],
22 | "targetArchitecture" : "x86_64"
23 | },
24 | "arenaInfo" : {
25 | "buildIntermediatesPath" : "",
26 | "buildProductsPath" : "",
27 | "derivedDataPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData",
28 | "indexDataStoreFolderPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/DataStore",
29 | "indexEnableDataStore" : true,
30 | "indexPCHPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/PrecompiledHeaders",
31 | "pchPath" : ""
32 | },
33 | "configurationName" : "Debug",
34 | "overrides" : {
35 | "synthesized" : {
36 | "table" : {
37 | "ASSETCATALOG_FILTER_FOR_DEVICE_MODEL" : "iPod9,1",
38 | "ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION" : "14.5",
39 | "BUILD_ACTIVE_RESOURCES_ONLY" : "YES",
40 | "ENABLE_PREVIEWS" : "NO",
41 | "TARGET_DEVICE_IDENTIFIER" : "D5626EA5-63CA-4C42-810C-1FA3F088B2F3",
42 | "TARGET_DEVICE_MODEL" : "iPod9,1",
43 | "TARGET_DEVICE_OS_VERSION" : "14.5",
44 | "TARGET_DEVICE_PLATFORM_NAME" : "iphonesimulator"
45 | }
46 | }
47 | }
48 | },
49 | "schemeCommand" : "launch",
50 | "shouldCollectMetrics" : false,
51 | "showNonLoggedProgress" : true,
52 | "useDryRun" : false,
53 | "useImplicitDependencies" : true,
54 | "useLegacyBuildLocations" : false,
55 | "useParallelTargets" : true
56 | }
--------------------------------------------------------------------------------
/ios/build/XCBuildData/581cef65247af86137256da0cb1a8e67-desc.xcbuild:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/581cef65247af86137256da0cb1a8e67-desc.xcbuild
--------------------------------------------------------------------------------
/ios/build/XCBuildData/581cef65247af86137256da0cb1a8e67-targetGraph.txt:
--------------------------------------------------------------------------------
1 | Target dependency graph (1 target)
2 | Runner in Runner
--------------------------------------------------------------------------------
/ios/build/XCBuildData/BuildDescriptionCacheIndex-2732f861f69bdb8a3f78de4705c510f8:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/BuildDescriptionCacheIndex-2732f861f69bdb8a3f78de4705c510f8
--------------------------------------------------------------------------------
/ios/build/XCBuildData/ba80ae0bba6832224845d3bb2897fc2c-buildRequest.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand" : "prepareForIndexing",
3 | "configuredTargets" : [
4 | {
5 | "guid" : "e25a7932c7d6b18d11734b7ff1ae15bf88a783a885d8b0b3beb2e9f90bde3f49"
6 | }
7 | ],
8 | "continueBuildingAfterErrors" : true,
9 | "enableIndexBuildArena" : false,
10 | "hideShellScriptEnvironment" : false,
11 | "parameters" : {
12 | "action" : "build",
13 | "activeArchitecture" : "x86_64",
14 | "activeRunDestination" : {
15 | "disableOnlyActiveArch" : false,
16 | "platform" : "iphonesimulator",
17 | "sdk" : "iphonesimulator14.5",
18 | "sdkVariant" : "iphonesimulator",
19 | "supportedArchitectures" : [
20 | "x86_64"
21 | ],
22 | "targetArchitecture" : "x86_64"
23 | },
24 | "arenaInfo" : {
25 | "buildIntermediatesPath" : "",
26 | "buildProductsPath" : "",
27 | "derivedDataPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData",
28 | "indexDataStoreFolderPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/DataStore",
29 | "indexEnableDataStore" : true,
30 | "indexPCHPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/PrecompiledHeaders",
31 | "pchPath" : ""
32 | },
33 | "configurationName" : "Debug",
34 | "overrides" : {
35 | "synthesized" : {
36 | "table" : {
37 | "ASSETCATALOG_FILTER_FOR_DEVICE_MODEL" : "iPod9,1",
38 | "ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION" : "14.5",
39 | "BUILD_ACTIVE_RESOURCES_ONLY" : "YES",
40 | "ENABLE_PREVIEWS" : "NO",
41 | "TARGET_DEVICE_IDENTIFIER" : "D5626EA5-63CA-4C42-810C-1FA3F088B2F3",
42 | "TARGET_DEVICE_MODEL" : "iPod9,1",
43 | "TARGET_DEVICE_OS_VERSION" : "14.5",
44 | "TARGET_DEVICE_PLATFORM_NAME" : "iphonesimulator"
45 | }
46 | }
47 | }
48 | },
49 | "schemeCommand" : "launch",
50 | "shouldCollectMetrics" : false,
51 | "showNonLoggedProgress" : true,
52 | "useDryRun" : false,
53 | "useImplicitDependencies" : true,
54 | "useLegacyBuildLocations" : false,
55 | "useParallelTargets" : true
56 | }
--------------------------------------------------------------------------------
/ios/build/XCBuildData/ba80ae0bba6832224845d3bb2897fc2c-targetGraph.txt:
--------------------------------------------------------------------------------
1 | Target dependency graph (1 target)
2 | Runner in Runner
--------------------------------------------------------------------------------
/ios/build/XCBuildData/build.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/build.db
--------------------------------------------------------------------------------
/ios/build/XCBuildData/e4be1c1cfe6a5f866c7dd2496bc80c69-buildRequest.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand" : "prepareForIndexing",
3 | "configuredTargets" : [
4 | {
5 | "guid" : "e25a7932c7d6b18d11734b7ff1ae15bf88a783a885d8b0b3beb2e9f90bde3f49"
6 | }
7 | ],
8 | "continueBuildingAfterErrors" : true,
9 | "enableIndexBuildArena" : false,
10 | "hideShellScriptEnvironment" : false,
11 | "parameters" : {
12 | "action" : "build",
13 | "activeArchitecture" : "x86_64",
14 | "activeRunDestination" : {
15 | "disableOnlyActiveArch" : false,
16 | "platform" : "iphonesimulator",
17 | "sdk" : "iphonesimulator14.5",
18 | "sdkVariant" : "iphonesimulator",
19 | "supportedArchitectures" : [
20 | "x86_64"
21 | ],
22 | "targetArchitecture" : "x86_64"
23 | },
24 | "arenaInfo" : {
25 | "buildIntermediatesPath" : "",
26 | "buildProductsPath" : "",
27 | "derivedDataPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData",
28 | "indexDataStoreFolderPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/DataStore",
29 | "indexEnableDataStore" : true,
30 | "indexPCHPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/PrecompiledHeaders",
31 | "pchPath" : ""
32 | },
33 | "configurationName" : "Debug",
34 | "overrides" : {
35 | "synthesized" : {
36 | "table" : {
37 | "ASSETCATALOG_FILTER_FOR_DEVICE_MODEL" : "iPod9,1",
38 | "ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION" : "14.5",
39 | "BUILD_ACTIVE_RESOURCES_ONLY" : "YES",
40 | "ENABLE_PREVIEWS" : "NO",
41 | "TARGET_DEVICE_IDENTIFIER" : "D5626EA5-63CA-4C42-810C-1FA3F088B2F3",
42 | "TARGET_DEVICE_MODEL" : "iPod9,1",
43 | "TARGET_DEVICE_OS_VERSION" : "14.5",
44 | "TARGET_DEVICE_PLATFORM_NAME" : "iphonesimulator"
45 | }
46 | }
47 | }
48 | },
49 | "qos" : "default",
50 | "schemeCommand" : "launch",
51 | "shouldCollectMetrics" : false,
52 | "showNonLoggedProgress" : true,
53 | "useDryRun" : true,
54 | "useImplicitDependencies" : true,
55 | "useLegacyBuildLocations" : false,
56 | "useParallelTargets" : true
57 | }
--------------------------------------------------------------------------------
/ios/build/XCBuildData/e4be1c1cfe6a5f866c7dd2496bc80c69-desc.xcbuild:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/e4be1c1cfe6a5f866c7dd2496bc80c69-desc.xcbuild
--------------------------------------------------------------------------------
/ios/build/XCBuildData/e4be1c1cfe6a5f866c7dd2496bc80c69-targetGraph.txt:
--------------------------------------------------------------------------------
1 | Target dependency graph (1 target)
2 | Runner in Runner
--------------------------------------------------------------------------------
/ios/build/XCBuildData/f005355584a956fbe241e8ef6200384c-buildRequest.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand" : "prepareForIndexing",
3 | "configuredTargets" : [
4 | {
5 | "guid" : "e25a7932c7d6b18d11734b7ff1ae15bf88a783a885d8b0b3beb2e9f90bde3f49"
6 | }
7 | ],
8 | "continueBuildingAfterErrors" : true,
9 | "enableIndexBuildArena" : false,
10 | "hideShellScriptEnvironment" : false,
11 | "parameters" : {
12 | "action" : "build",
13 | "activeArchitecture" : "arm64e",
14 | "activeRunDestination" : {
15 | "disableOnlyActiveArch" : true,
16 | "platform" : "iphoneos",
17 | "sdk" : "iphoneos14.5",
18 | "sdkVariant" : "iphoneos",
19 | "supportedArchitectures" : [
20 | "armv4t",
21 | "armv5",
22 | "armv6",
23 | "armv7",
24 | "armv7f",
25 | "armv7s",
26 | "armv7k",
27 | "arm64",
28 | "arm64e"
29 | ],
30 | "targetArchitecture" : "arm64e"
31 | },
32 | "arenaInfo" : {
33 | "buildIntermediatesPath" : "",
34 | "buildProductsPath" : "",
35 | "derivedDataPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData",
36 | "indexDataStoreFolderPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/DataStore",
37 | "indexEnableDataStore" : true,
38 | "indexPCHPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/PrecompiledHeaders",
39 | "pchPath" : ""
40 | },
41 | "configurationName" : "Debug",
42 | "overrides" : {
43 | "synthesized" : {
44 | "table" : {
45 | "ENABLE_PREVIEWS" : "NO"
46 | }
47 | }
48 | }
49 | },
50 | "qos" : "default",
51 | "schemeCommand" : "launch",
52 | "shouldCollectMetrics" : false,
53 | "showNonLoggedProgress" : true,
54 | "useDryRun" : true,
55 | "useImplicitDependencies" : true,
56 | "useLegacyBuildLocations" : false,
57 | "useParallelTargets" : true
58 | }
--------------------------------------------------------------------------------
/ios/build/XCBuildData/f005355584a956fbe241e8ef6200384c-desc.xcbuild:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/f005355584a956fbe241e8ef6200384c-desc.xcbuild
--------------------------------------------------------------------------------
/ios/build/XCBuildData/f005355584a956fbe241e8ef6200384c-targetGraph.txt:
--------------------------------------------------------------------------------
1 | Target dependency graph (1 target)
2 | Runner in Runner
--------------------------------------------------------------------------------
/ios/build/XCBuildData/fda55b95a3754a706935e2e7306bae3e-buildRequest.json:
--------------------------------------------------------------------------------
1 | {
2 | "buildCommand" : "prepareForIndexing",
3 | "configuredTargets" : [
4 | {
5 | "guid" : "e25a7932c7d6b18d11734b7ff1ae15bf88a783a885d8b0b3beb2e9f90bde3f49"
6 | }
7 | ],
8 | "continueBuildingAfterErrors" : true,
9 | "enableIndexBuildArena" : false,
10 | "hideShellScriptEnvironment" : false,
11 | "parameters" : {
12 | "action" : "build",
13 | "activeArchitecture" : "x86_64",
14 | "activeRunDestination" : {
15 | "disableOnlyActiveArch" : false,
16 | "platform" : "iphonesimulator",
17 | "sdk" : "iphonesimulator14.5",
18 | "sdkVariant" : "iphonesimulator",
19 | "supportedArchitectures" : [
20 | "x86_64"
21 | ],
22 | "targetArchitecture" : "x86_64"
23 | },
24 | "arenaInfo" : {
25 | "buildIntermediatesPath" : "",
26 | "buildProductsPath" : "",
27 | "derivedDataPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData",
28 | "indexDataStoreFolderPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/DataStore",
29 | "indexEnableDataStore" : true,
30 | "indexPCHPath" : "/Users/denzelcode/Library/Developer/Xcode/DerivedData/Runner-goxwgqnqgwceananepkkdrscryax/Index/PrecompiledHeaders",
31 | "pchPath" : ""
32 | },
33 | "configurationName" : "Debug",
34 | "overrides" : {
35 | "synthesized" : {
36 | "table" : {
37 | "ASSETCATALOG_FILTER_FOR_DEVICE_MODEL" : "iPod9,1",
38 | "ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION" : "14.5",
39 | "BUILD_ACTIVE_RESOURCES_ONLY" : "YES",
40 | "ENABLE_PREVIEWS" : "NO",
41 | "TARGET_DEVICE_IDENTIFIER" : "D5626EA5-63CA-4C42-810C-1FA3F088B2F3",
42 | "TARGET_DEVICE_MODEL" : "iPod9,1",
43 | "TARGET_DEVICE_OS_VERSION" : "14.5",
44 | "TARGET_DEVICE_PLATFORM_NAME" : "iphonesimulator"
45 | }
46 | }
47 | }
48 | },
49 | "qos" : "default",
50 | "schemeCommand" : "launch",
51 | "shouldCollectMetrics" : false,
52 | "showNonLoggedProgress" : true,
53 | "useDryRun" : true,
54 | "useImplicitDependencies" : true,
55 | "useLegacyBuildLocations" : false,
56 | "useParallelTargets" : true
57 | }
--------------------------------------------------------------------------------
/ios/build/XCBuildData/fda55b95a3754a706935e2e7306bae3e-desc.xcbuild:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DenzelCode/flutter-auth/69b92a34c56ab0583370b4b281c054a4c7abbe9c/ios/build/XCBuildData/fda55b95a3754a706935e2e7306bae3e-desc.xcbuild
--------------------------------------------------------------------------------
/ios/build/XCBuildData/fda55b95a3754a706935e2e7306bae3e-targetGraph.txt:
--------------------------------------------------------------------------------
1 | Target dependency graph (1 target)
2 | Runner in Runner
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:auth/src/app.dart';
2 | import 'package:auth/src/features/notification/logic/repository/notification_repository.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | void main() async {
6 | WidgetsFlutterBinding.ensureInitialized();
7 |
8 | await notificationRepository.setup();
9 |
10 | runApp(MyApp());
11 | }
12 |
--------------------------------------------------------------------------------
/lib/src/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:auth/src/app_router.dart';
2 | import 'package:auth/src/features/auth/logic/cubit/auth_cubit.dart';
3 | import 'package:auth/src/features/auth/logic/models/user.dart';
4 | import 'package:auth/src/features/auth/logic/repository/auth_repository.dart';
5 | import 'package:auth/src/features/home/views/screens/home_screen.dart';
6 | import 'package:auth/src/features/notification/logic/repository/notification_repository.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter_bloc/flutter_bloc.dart';
9 |
10 | final GlobalKey applicationKey = GlobalKey();
11 | final GlobalKey scaffoldMessengerKey = GlobalKey();
12 |
13 | class MyApp extends StatefulWidget {
14 | MyApp({Key? key}) : super(key: key);
15 |
16 | @override
17 | _MyAppState createState() => _MyAppState();
18 | }
19 |
20 | class _MyAppState extends State {
21 | final appRouter = AppRouter();
22 |
23 | @override
24 | void initState() {
25 | super.initState();
26 |
27 | notificationRepository.init();
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return _InitProviders(
33 | child: MaterialApp(
34 | navigatorKey: applicationKey,
35 | scaffoldMessengerKey: scaffoldMessengerKey,
36 | debugShowCheckedModeBanner: false,
37 | initialRoute: HomeScreen.routeName,
38 | onGenerateRoute: appRouter.onGenerateRoute,
39 | theme: ThemeData.light().copyWith(
40 | colorScheme: ColorScheme.light().copyWith(
41 | primary: Color(0xff4C525C),
42 | secondary: Color(0xff4C525C),
43 | background: Color(0xff4C525C),
44 | ),
45 | appBarTheme: AppBarTheme(elevation: 0),
46 | primaryColor: Color(0xff4C525C),
47 | secondaryHeaderColor: Color(0xffFFAE48),
48 | highlightColor: Color(0xff58BFE6),
49 | indicatorColor: Color(0xff4C525C),
50 | ),
51 | ),
52 | );
53 | }
54 | }
55 |
56 | class _InitProviders extends StatelessWidget {
57 | final Widget child;
58 |
59 | const _InitProviders({Key? key, required this.child}) : super(key: key);
60 |
61 | @override
62 | Widget build(BuildContext context) {
63 | return RepositoryProvider(
64 | create: (context) => AuthRepository(),
65 | child: BlocProvider(
66 | create: (context) => AuthCubit(
67 | authRepository: context.read(),
68 | ),
69 | child: BlocListener(
70 | listenWhen: (prev, curr) => prev != null && curr == null,
71 | listener: (context, user) {
72 | final route = ModalRoute.of(context)?.settings.name;
73 |
74 | if (user == null && route != HomeScreen.routeName) {
75 | Navigator.pushNamedAndRemoveUntil(
76 | applicationKey.currentContext as BuildContext,
77 | HomeScreen.routeName,
78 | (route) => false,
79 | );
80 | }
81 | },
82 | child: child,
83 | ),
84 | ),
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/src/app_router.dart:
--------------------------------------------------------------------------------
1 | import 'package:auth/src/features/auth/views/screens/login_screen.dart';
2 | import 'package:auth/src/features/auth/views/screens/recover_screen.dart';
3 | import 'package:auth/src/features/auth/views/screens/register_screen.dart';
4 | import 'package:auth/src/features/home/views/screens/home_screen.dart';
5 | import 'package:auth/src/features/messages/views/screens/direct_message_screen.dart';
6 | import 'package:auth/src/features/room/views/screens/room_screen.dart';
7 | import 'package:auth/src/features/room/views/screens/rooms_screen.dart';
8 | import 'package:auth/src/features/settings/views/screens/settings_screen.dart';
9 | import 'package:flutter/material.dart';
10 |
11 | class AppRouter {
12 | Route onGenerateRoute(RouteSettings settings) {
13 | switch (settings.name) {
14 | case HomeScreen.routeName:
15 | return HomeScreen.route();
16 | case LoginScreen.routeName:
17 | return LoginScreen.route();
18 | case RegisterScreen.routeName:
19 | return RegisterScreen.route();
20 | case RecoverScreen.routeName:
21 | return RecoverScreen.route();
22 | case RoomsScreen.routeName:
23 | return RoomsScreen.route();
24 | case RoomScreen.routeName:
25 | return RoomScreen.route(settings);
26 | case DirectMessageScreen.routeName:
27 | return DirectMessageScreen.route(settings);
28 | case SettingsScreen.routeName:
29 | return SettingsScreen.route();
30 | default:
31 | return HomeScreen.route();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/src/constants/environments.dart:
--------------------------------------------------------------------------------
1 | class _Environments {
2 | final web = 'https://nest-auth.ubbly.club';
3 | final api = 'https://nest-auth.ubbly.club/api';
4 | final socket = 'https://nest-auth.ubbly.club/';
5 |
6 | final appleSignInClientId = 'nest-auth.ubbly.club';
7 | final appleSignInRedirectUri =
8 | Uri.parse('https://nest-auth.ubbly.club/api/auth/apple-callback');
9 |
10 | // final api = 'http://localhost:3000';
11 | }
12 |
13 | _Environments environments = _Environments();
14 |
--------------------------------------------------------------------------------
/lib/src/core/socket.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:auth/src/app.dart';
4 | import 'package:auth/src/constants/environments.dart';
5 | import 'package:auth/src/features/auth/logic/repository/auth_repository.dart';
6 | import 'package:auth/src/shared/views/widgets/dialog/alert_dialog_widget.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:socket_io_client/socket_io_client.dart';
9 | import 'package:flutter_bloc/flutter_bloc.dart';
10 |
11 | class SocketManager {
12 | Socket socket = io(
13 | environments.socket,
14 | OptionBuilder()
15 | .setTransports(['websocket'])
16 | .disableAutoConnect()
17 | .setExtraHeaders({})
18 | .build(),
19 | );
20 |
21 | Future init([Function? onConnect]) async {
22 | if (socket.connected) {
23 | return socket;
24 | }
25 |
26 | final context = applicationKey.currentContext;
27 |
28 | final repository = context?.read();
29 |
30 | if (repository == null) {
31 | return socket;
32 | }
33 |
34 | final accessToken = await repository.getAccessToken();
35 |
36 | socket.io.options['extraHeaders'] = {
37 | 'Authorization': 'Bearer $accessToken'
38 | };
39 |
40 | socket.onError((error) {
41 | if (context == null) {
42 | return;
43 | }
44 |
45 | showDialog(
46 | context: context,
47 | builder: (context) => AlertDialogWidget(
48 | title: error['error'] ?? error['message'],
49 | description: error['message'],
50 | ),
51 | );
52 | });
53 |
54 | final completer = Completer();
55 |
56 | socket.onConnect((_) {
57 | socket.emit('user:subscribe');
58 |
59 | if (onConnect != null) {
60 | onConnect();
61 | }
62 |
63 | if (!completer.isCompleted) {
64 | completer.complete(socket);
65 | }
66 | });
67 |
68 | socket.onDisconnect((reason) async {
69 | if (reason != 'io server disconnect') {
70 | return;
71 | }
72 |
73 | await repository.loginWithRefreshToken();
74 |
75 | init(onConnect);
76 |
77 | dispose();
78 | });
79 |
80 | socket.connect();
81 |
82 | return completer.future;
83 | }
84 |
85 | void dispose() {
86 | socket.dispose();
87 | }
88 | }
89 |
90 | SocketManager socketManager = SocketManager();
91 |
--------------------------------------------------------------------------------
/lib/src/features/auth/logic/cubit/auth_cubit.dart:
--------------------------------------------------------------------------------
1 | import 'package:auth/src/features/auth/logic/models/user.dart';
2 | import 'package:auth/src/features/auth/logic/repository/auth_repository.dart';
3 | import 'package:auth/src/features/notification/logic/repository/notification_repository.dart';
4 | import 'package:bloc/bloc.dart';
5 |
6 | class AuthCubit extends Cubit {
7 | AuthRepository authRepository;
8 |
9 | AuthCubit({required this.authRepository}) : super(null);
10 |
11 | Future authenticate(String username, String password) async {
12 | return _loginWith(() => authRepository.authenticate(username, password));
13 | }
14 |
15 | Future register(String username, String password, String email) async {
16 | return _loginWith(() => authRepository.register(username, password, email));
17 | }
18 |
19 | Future loginWithFacebook() async {
20 | return _loginWith(() => authRepository.loginWithFacebook());
21 | }
22 |
23 | Future loginWithGoogle() async {
24 | return _loginWith(() => authRepository.loginWithGoogle());
25 | }
26 |
27 | Future logoutFromAllDevices() async {
28 | return _loginWith(() => authRepository.logoutFromAllDevices());
29 | }
30 |
31 | Future loginWithApple() async {
32 | return _loginWith(() => authRepository.loginWithApple());
33 | }
34 |
35 | Future _loginWith(Function method) async {
36 | await method();
37 |
38 | return updateProfile();
39 | }
40 |
41 | Future logout() async {
42 | emit(null);
43 |
44 | await authRepository.logout();
45 |
46 | await notificationRepository.deleteSubscription();
47 | }
48 |
49 | Future updateProfile() async {
50 | emit(await this.authRepository.getProfile());
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/src/features/auth/logic/interceptors/auth_token_interceptor.dart:
--------------------------------------------------------------------------------
1 | import 'package:auth/src/app.dart';
2 | import 'package:auth/src/features/auth/logic/cubit/auth_cubit.dart';
3 | import 'package:auth/src/features/auth/logic/models/tokens.dart';
4 | import 'package:auth/src/features/auth/logic/repository/auth_repository.dart';
5 | import 'package:dio/dio.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:provider/provider.dart';
8 |
9 | class AuthTokenInterceptor extends Interceptor {
10 | static const skipHeader = 'skipAuthToken';
11 |
12 | Dio api;
13 |
14 | AuthTokenInterceptor(this.api);
15 |
16 | @override
17 | onRequest(RequestOptions options, RequestInterceptorHandler handler) async {
18 | final context = applicationKey.currentContext;
19 |
20 | final repository = context?.read();
21 |
22 | if (repository == null) {
23 | return;
24 | }
25 |
26 | final accessToken = await repository.getAccessToken();
27 |
28 | if (accessToken != null) {
29 | options.headers['Authorization'] = 'Bearer $accessToken';
30 | }
31 |
32 | return super.onRequest(options, handler);
33 | }
34 |
35 | @override
36 | onError(DioError err, ErrorInterceptorHandler handler) async {
37 | final context = applicationKey.currentContext;
38 |
39 | if (context == null) {
40 | return;
41 | }
42 |
43 | final response = err.response?.data;
44 |
45 | if (response == null) {
46 | return super.onError(err, handler);
47 | }
48 |
49 | final repository = context.read();
50 |
51 | if (err.response?.statusCode == 401 &&
52 | await repository.getRefreshToken() != null) {
53 | return _handlerRefreshToken(context, repository, err, handler);
54 | }
55 |
56 | return super.onError(err, handler);
57 | }
58 |
59 | _handlerRefreshToken(
60 | BuildContext context,
61 | AuthRepository repository,
62 | DioError err,
63 | ErrorInterceptorHandler handler,
64 | ) async {
65 | final requestOptions = err.requestOptions;
66 |
67 | if (requestOptions.headers.containsKey(skipHeader)) {
68 | return super.onError(err, handler);
69 | }
70 |
71 | final refreshToken = await repository.getRefreshToken();
72 |
73 | try {
74 | final response = await api.post(
75 | '/auth/refresh-token',
76 | data: {
77 | 'refreshToken': refreshToken,
78 | },
79 | options: Options(
80 | headers: {
81 | skipHeader: true,
82 | },
83 | ),
84 | );
85 |
86 | final tokens = Tokens.fromJson(response.data);
87 |
88 | await repository.setTokens(tokens);
89 |
90 | try {
91 | final headers = requestOptions.headers;
92 |
93 | headers[skipHeader] = true;
94 |
95 | final finalResponse = await api.request(
96 | requestOptions.path,
97 | cancelToken: requestOptions.cancelToken,
98 | data: requestOptions.data,
99 | onReceiveProgress: requestOptions.onReceiveProgress,
100 | onSendProgress: requestOptions.onSendProgress,
101 | queryParameters: requestOptions.queryParameters,
102 | options: Options(
103 | method: requestOptions.method,
104 | headers: headers,
105 | ),
106 | );
107 |
108 | return handler.resolve(finalResponse);
109 | } on DioError catch (e) {
110 | return handler.next(e);
111 | } catch (e) {
112 | return super.onError(err, handler);
113 | }
114 | } catch (e) {
115 | await context.read().logout();
116 |
117 | return super.onError(err, handler);
118 | }
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/lib/src/features/auth/logic/models/tokens.dart:
--------------------------------------------------------------------------------
1 | class Tokens {
2 | late final String accessToken;
3 | late final String refreshToken;
4 |
5 | Tokens({required this.accessToken});
6 |
7 | Tokens.fromJson(Map json) {
8 | accessToken = json['access_token'];
9 | refreshToken = json['refresh_token'];
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lib/src/features/auth/logic/models/user.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 |
3 | class User extends Equatable implements Comparable {
4 | late final String id;
5 | late final String username;
6 | late final String? email;
7 | late final bool online;
8 | late final bool isSocial;
9 |
10 | User({
11 | required this.id,
12 | required this.username,
13 | required this.email,
14 | required this.online,
15 | this.isSocial = false,
16 | });
17 |
18 | User.fromJson(Map json) {
19 | id = json['_id'];
20 | username = json['username'] ?? '';
21 | email = json['email'];
22 | online = json['online'] ?? false;
23 | isSocial = json['isSocial'] ?? false;
24 | }
25 |
26 | static List fromList(List list) {
27 | return list.map((e) => User.fromJson(e)).toList();
28 | }
29 |
30 | @override
31 | int compareTo(dynamic other) {
32 | if (this.online == other.online) {
33 | return 0;
34 | }
35 |
36 | if (this.online) {
37 | return -1;
38 | }
39 |
40 | if (other.online) {
41 | return 1;
42 | }
43 |
44 | return 0;
45 | }
46 |
47 | @override
48 | List