Skip to content

Commit

Permalink
Remove webview auth approach
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Sep 27, 2024
1 parent 9656a83 commit 6fd4a3b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 146 deletions.
11 changes: 0 additions & 11 deletions waydowntown_app/lib/developer_tools.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:talker_flutter/talker_flutter.dart';
import 'package:waydowntown/app.dart';
import 'package:waydowntown/tools/auth_webview.dart';
import 'package:waydowntown/tools/bluetooth_scanner_route.dart';
import 'package:waydowntown/tools/map_route.dart';
import 'package:waydowntown/tools/motion_sensors_route.dart';
Expand All @@ -24,7 +22,6 @@ class DeveloperTools extends StatelessWidget {
_buildFlexibleButtonGrid(
context,
[
('Auth', 'auth_webview'),
('Bluetooth\nScanner', 'bluetooth_scanner'),
('Map', 'map'),
('Motion\nSensors', 'motion_sensors'),
Expand All @@ -51,14 +48,6 @@ class DeveloperTools extends StatelessWidget {
MaterialPageRoute(
builder: (context) => const MotionSensorsRoute()));
break;
case 'auth_webview':
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => AuthWebView(
apiBaseUrl: dotenv.env['API_ROOT']!,
dio: dio)));
break;
case 'logs':
Navigator.push(
context,
Expand Down
90 changes: 0 additions & 90 deletions waydowntown_app/lib/tools/auth_webview.dart

This file was deleted.

2 changes: 0 additions & 2 deletions waydowntown_app/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import sentry_flutter
import share_plus
import shared_preferences_foundation
import sqlite3_flutter_libs
import webview_flutter_wkwebview

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FlutterBluePlusPlugin.register(with: registry.registrar(forPlugin: "FlutterBluePlusPlugin"))
Expand All @@ -26,5 +25,4 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin"))
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
}
42 changes: 1 addition & 41 deletions waydowntown_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1338,46 +1338,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.3"
webview_cookie_manager:
dependency: "direct main"
description:
name: webview_cookie_manager
sha256: "425a9feac5cd2cb62a71da3dda5ac2eaf9ece5481ee8d79f3868dc5ba8223ad3"
url: "https://pub.dev"
source: hosted
version: "2.0.6"
webview_flutter:
dependency: "direct main"
description:
name: webview_flutter
sha256: ec81f57aa1611f8ebecf1d2259da4ef052281cb5ad624131c93546c79ccc7736
url: "https://pub.dev"
source: hosted
version: "4.9.0"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
sha256: "6e64fcb1c19d92024da8f33503aaeeda35825d77142c01d0ea2aa32edc79fdc8"
url: "https://pub.dev"
source: hosted
version: "3.16.7"
webview_flutter_platform_interface:
dependency: transitive
description:
name: webview_flutter_platform_interface
sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
url: "https://pub.dev"
source: hosted
version: "2.10.0"
webview_flutter_wkwebview:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: "1942a12224ab31e9508cf00c0c6347b931b023b8a4f0811e5dec3b06f94f117d"
url: "https://pub.dev"
source: hosted
version: "3.15.0"
win32:
dependency: transitive
description:
Expand Down Expand Up @@ -1420,4 +1380,4 @@ packages:
version: "3.1.2"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
flutter: ">=3.22.0"
2 changes: 0 additions & 2 deletions waydowntown_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ dependencies:
geolocator: ^11.1.0
sqlite3_flutter_libs: ^0.5.24
flutter_lucide: ^1.4.0
webview_flutter: ^4.9.0
webview_cookie_manager: ^2.0.6
flutter_flavorizr: ^2.2.3
shared_preferences: ^2.3.2
talker: ^4.4.1
Expand Down

0 comments on commit 6fd4a3b

Please sign in to comment.