Skip to content

Commit

Permalink
Debugging part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vustron committed Nov 15, 2023
1 parent baeed9c commit b3417c2
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 171 deletions.
4 changes: 1 addition & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ android {
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -64,6 +65,3 @@ flutter {
source '../..'
}

dependencies {
implementation 'com.facebook.android:facebook-login:latest.release'
}
18 changes: 0 additions & 18 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />

<application android:label="WorldTimeApp" android:name="${applicationName}" android:icon="@mipmap/launcher_icon" android:usesCleartextTraffic="true">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
Expand All @@ -18,19 +14,5 @@
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data android:name="flutterEmbedding" android:value="2" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="@string/facebook_client_token" />

<activity android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:label="@string/app_name" />
<activity android:name="com.facebook.CustomTabActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>


</application>
</manifest>
7 changes: 0 additions & 7 deletions android/app/src/main/res/values/strings.xml

This file was deleted.

14 changes: 7 additions & 7 deletions lib/auth/signin.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables, library_private_types_in_public_api, camel_case_types, unused_import, avoid_unnecessary_containers, sort_child_properties_last, unused_field, unused_local_variable, avoid_print, use_build_context_synchronously, no_leading_underscores_for_local_identifiers

import 'package:flutter/material.dart';
import 'package:flutter_world_time_app/controller/googleAuthController.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import '../controller/authController.dart';
import '../controller/localAuth.dart';
import 'package:social_auth_buttons/social_auth_buttons.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:google_sign_in/google_sign_in.dart';
import '../controller/googleAuth.dart';

class SignIn extends StatefulWidget {
const SignIn({super.key});
Expand Down Expand Up @@ -75,7 +75,7 @@ class _SignInState extends State<SignIn> {
},
style: GoogleFonts.zenDots(color: Colors.amber),
),
SizedBox(height: 40.0),
SizedBox(height: 10.0),
TextFormField(
controller: _passwordController,
decoration: InputDecoration(
Expand Down Expand Up @@ -110,7 +110,7 @@ class _SignInState extends State<SignIn> {
},
style: GoogleFonts.zenDots(color: Colors.amber),
),
SizedBox(height: 40.0),
SizedBox(height: 10.0),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expand Down Expand Up @@ -165,7 +165,7 @@ class _SignInState extends State<SignIn> {
),
],
),
SizedBox(height: 30.0),
SizedBox(height: 10.0),
Divider(
height: 20,
thickness: 2,
Expand Down Expand Up @@ -204,7 +204,7 @@ class _SignInState extends State<SignIn> {
style: AuthButtonStyle.icon,
),
Text(
'Sign in with Google',
'Sign in using Google ',
style: GoogleFonts.zenDots(
color: Colors.amberAccent,
letterSpacing: 1.0,
Expand All @@ -214,7 +214,7 @@ class _SignInState extends State<SignIn> {
),
],
),
SizedBox(height: 50.0),
SizedBox(height: 80.0),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import '../controller/authController.dart';
import '../controller/localAuth.dart';
import 'package:social_auth_buttons/social_auth_buttons.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/components/changeLocationContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import '../model/worldtimeModel.dart';
import '../model/worldtime.dart';

class ChangeLocationContent extends StatefulWidget {
final List<WorldTimeData> locations;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/editProfileContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_fonts/google_fonts.dart';
import '../controller/authController.dart';
import '../controller/localAuth.dart';

class EditProfile extends StatefulWidget {
const EditProfile({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/components/profileContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import '../controller/authController.dart';
import '../controller/localAuth.dart';
import 'package:firebase_auth/firebase_auth.dart';

class ProfileContent extends StatefulWidget {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';
import '../model/userModel.dart';
import '../model/user.dart';

class AuthController {
final FirebaseAuth _auth = FirebaseAuth.instance;
Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'auth/signup.dart';
import 'controller/authController.dart';
import 'controller/localAuth.dart';
import 'auth/signin.dart';
import 'controller/googleAuthController.dart';
import 'controller/googleAuth.dart';
import 'utils/wrapper.dart';
import 'views/profileView.dart';
import 'views/worldtimeView.dart';
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/utils/loader.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ignore_for_file: file_names, prefer_const_constructors, prefer_const_constructors_in_immutables, camel_case_types, unused_import, avoid_print, unused_local_variable, use_build_context_synchronously

import 'package:flutter/material.dart';
import '../model/worldtimeModel.dart';
import '../model/worldtime.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class Loading extends StatefulWidget {
Expand Down
2 changes: 1 addition & 1 deletion lib/views/changeLocationView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import '../components/changeLocationContent.dart';
import '../model/worldtimeModel.dart';
import '../model/worldtime.dart';

class ChangeLocation extends StatefulWidget {
const ChangeLocation({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/views/profileView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import 'package:flutter_world_time_app/components/editProfileContent.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import '../components/profileContent.dart';
import '../controller/authController.dart';
import '../controller/localAuth.dart';
import 'package:google_sign_in/google_sign_in.dart';
import '../controller/googleAuthController.dart';
import '../controller/googleAuth.dart';

class Profile extends StatefulWidget {
const Profile({super.key});
Expand Down
4 changes: 0 additions & 4 deletions linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
#include "generated_plugin_registrant.h"

#include <desktop_webview_auth/desktop_webview_auth_plugin.h>
#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) desktop_webview_auth_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWebviewAuthPlugin");
desktop_webview_auth_plugin_register_with_registrar(desktop_webview_auth_registrar);
g_autoptr(FlPluginRegistrar) flutter_secure_storage_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStorageLinuxPlugin");
flutter_secure_storage_linux_plugin_register_with_registrar(flutter_secure_storage_linux_registrar);
}
1 change: 0 additions & 1 deletion linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

list(APPEND FLUTTER_PLUGIN_LIST
desktop_webview_auth
flutter_secure_storage_linux
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
6 changes: 0 additions & 6 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
import FlutterMacOS
import Foundation

import cloud_firestore
import desktop_webview_auth
import facebook_auth_desktop
import firebase_auth
import firebase_core
import flutter_secure_storage_macos
import path_provider_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
DesktopWebviewAuthPlugin.register(with: registry.registrar(forPlugin: "DesktopWebviewAuthPlugin"))
FacebookAuthDesktopPlugin.register(with: registry.registrar(forPlugin: "FacebookAuthDesktopPlugin"))
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
}
104 changes: 0 additions & 104 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,30 +89,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.1"
cloud_firestore:
dependency: "direct main"
description:
name: cloud_firestore
sha256: "49c0e34a0de7150f6b46390263edd7a940776713bf188891f7fd07c7d750389c"
url: "https://pub.dev"
source: hosted
version: "4.13.0"
cloud_firestore_platform_interface:
dependency: transitive
description:
name: cloud_firestore_platform_interface
sha256: beb8a599bd619d5081469b7af43bf4e9bb0e778f3b005c1b45e21b97e836d1a5
url: "https://pub.dev"
source: hosted
version: "6.0.4"
cloud_firestore_web:
dependency: transitive
description:
name: cloud_firestore_web
sha256: "7a21039c98e8b5e2e0c3f5c764b185fe18b353312613074e81262a246fb58ba4"
url: "https://pub.dev"
source: hosted
version: "3.8.4"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -161,14 +137,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.17"
facebook_auth_desktop:
dependency: transitive
description:
name: facebook_auth_desktop
sha256: "6df63a8882c2113fc76b5a09a26291bd2d6b2350593b53ace6c26ade5e090fee"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -302,30 +270,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.5"
flutter_facebook_auth:
dependency: "direct main"
description:
name: flutter_facebook_auth
sha256: "849a6772c3c698aabf05c675f914b3a76d235d3160aab99f8d55f3ddc4bed6a8"
url: "https://pub.dev"
source: hosted
version: "6.0.2"
flutter_facebook_auth_platform_interface:
dependency: transitive
description:
name: flutter_facebook_auth_platform_interface
sha256: "86630c4dbba1c20fba26ea9e59ad0d48f5ff59e7373cacd36f916160186f9ce9"
url: "https://pub.dev"
source: hosted
version: "5.0.0"
flutter_facebook_auth_web:
dependency: transitive
description:
name: flutter_facebook_auth_web
sha256: "22dca8091409309ad85b9f430fbd8f57b686276979da5195e7e97587352567ce"
url: "https://pub.dev"
source: hosted
version: "5.0.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
Expand All @@ -347,54 +291,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_secure_storage:
dependency: transitive
description:
name: flutter_secure_storage
sha256: ffdbb60130e4665d2af814a0267c481bcf522c41ae2e43caf69fa0146876d685
url: "https://pub.dev"
source: hosted
version: "9.0.0"
flutter_secure_storage_linux:
dependency: transitive
description:
name: flutter_secure_storage_linux
sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
flutter_secure_storage_macos:
dependency: transitive
description:
name: flutter_secure_storage_macos
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
url: "https://pub.dev"
source: hosted
version: "3.0.1"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
name: flutter_secure_storage_platform_interface
sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
flutter_secure_storage_web:
dependency: transitive
description:
name: flutter_secure_storage_web
sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20"
url: "https://pub.dev"
source: hosted
version: "1.1.2"
flutter_secure_storage_windows:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: "5809c66f9dd3b4b93b0a6e2e8561539405322ee767ac2f64d084e2ab5429d108"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
flutter_spinkit:
dependency: "direct main"
description:
Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ dependencies:
social_auth_buttons: ^2.0.2
firebase_core: ^2.22.0
firebase_auth: ^4.13.0
cloud_firestore: ^4.13.0
provider: ^6.1.1
google_sign_in: ^6.1.6
firebase_ui_auth: ^1.10.0
google_fonts: ^6.1.0
flutter_facebook_auth: ^6.0.2

dev_dependencies:
flutter_launcher_icons: ^0.13.1
Expand Down
Loading

0 comments on commit b3417c2

Please sign in to comment.