Skip to content

Commit

Permalink
fix: use web5_flutter package
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman committed Jan 5, 2024
1 parent cc5d696 commit f37dc35
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 73 deletions.
6 changes: 6 additions & 0 deletions frontend/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- tbdex_flutter (0.0.1):
- Flutter
- webview_flutter_wkwebview (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- tbdex_flutter (from `.symlinks/plugins/tbdex_flutter/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)

EXTERNAL SOURCES:
Expand All @@ -21,13 +24,16 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/flutter_secure_storage/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
tbdex_flutter:
:path: ".symlinks/plugins/tbdex_flutter/ios"
webview_flutter_wkwebview:
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
tbdex_flutter: 43399e1c15c052fc0ae9a6a11d7a4230c57020b4
webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a

PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/features/account/account_providers.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:tbdex/tbdex.dart';
import 'package:web5_flutter/web5_flutter.dart';

final didProvider = Provider<Did>((ref) => throw UnimplementedError());
2 changes: 1 addition & 1 deletion frontend/lib/features/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_starter/features/pfis/pfi_providers.dart';
import 'package:flutter_starter/features/pfis/pfi_verification_page.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:tbdex/tbdex.dart';
import 'package:web5_flutter/web5_flutter.dart';

class HomePage extends HookConsumerWidget {
const HomePage({super.key});
Expand Down
5 changes: 2 additions & 3 deletions frontend/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import 'package:flutter/material.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:flutter_starter/features/account/account_providers.dart';
import 'package:flutter_starter/features/app/app.dart';
import 'package:flutter_starter/services/secure_storage_key_manager.dart';
import 'package:flutter_starter/services/service_providers.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:tbdex/tbdex.dart';
import 'package:web5_flutter/web5_flutter.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand All @@ -15,7 +14,7 @@ void main() async {
aOptions: AndroidOptions(encryptedSharedPreferences: true),
);

final keyManager = SecureStorageKeyManager(storage);
final keyManager = SecureStorageKeyManager(storage: storage);
final did = await getOrCreateDid(keyManager, storage);
runApp(ProviderScope(
overrides: [
Expand Down
42 changes: 0 additions & 42 deletions frontend/lib/services/secure_storage_key_manager.dart

This file was deleted.

57 changes: 33 additions & 24 deletions frontend/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,18 @@ packages:
dependency: transitive
description:
name: platform
sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59"
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
url: "https://pub.dev"
source: hosted
version: "3.1.3"
version: "3.1.4"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
url: "https://pub.dev"
source: hosted
version: "2.1.7"
version: "2.1.8"
pointycastle:
dependency: transitive
description:
Expand Down Expand Up @@ -378,15 +378,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.0"
tbdex:
dependency: "direct main"
description:
path: "."
ref: main
resolved-ref: "16e4c095efa420e770a0ee32663f1f52dcfce095"
url: "https://github.com/TBD54566975/tbdex-dart.git"
source: git
version: "0.1.0"
term_glyph:
dependency: transitive
description:
Expand Down Expand Up @@ -427,22 +418,40 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.3.0"
web5:
dependency: transitive
description:
path: "packages/web5"
ref: main
resolved-ref: d42e7f746111f2aa98350f59508793531664ddff
url: "https://github.com/TBD54566975/web5-dart.git"
source: git
version: "0.1.0"
web5_flutter:
dependency: "direct main"
description:
path: "packages/web5_flutter"
ref: main
resolved-ref: d42e7f746111f2aa98350f59508793531664ddff
url: "https://github.com/TBD54566975/web5-dart.git"
source: git
version: "0.1.0"
webview_flutter:
dependency: "direct main"
description:
name: webview_flutter
sha256: "42393b4492e629aa3a88618530a4a00de8bb46e50e7b3993fedbfdc5352f0dbf"
sha256: "60e23976834e995c404c0b21d3b9db37ecd77d3303ef74f8b8d7a7b19947fc04"
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.4.3"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
sha256: b54c89fe14a6d26a2a46e24880da0441cdd2bf1f6d01a5b3e1d39558feb1de0b
sha256: "161af93c2abaf94ef2192bffb53a3658b2d721a3bf99b69aa1e47814ee18cc96"
url: "https://pub.dev"
source: hosted
version: "3.13.1"
version: "3.13.2"
webview_flutter_platform_interface:
dependency: transitive
description:
Expand All @@ -455,26 +464,26 @@ packages:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: eebfabfa8a115b535b52031b8b26f7a4b58ceceab378bc9db8762b0fb46f7b5d
sha256: "02d8f3ebbc842704b2b662377b3ee11c0f8f1bbaa8eab6398262f40049819160"
url: "https://pub.dev"
source: hosted
version: "3.10.0"
version: "3.10.1"
win32:
dependency: transitive
description:
name: win32
sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574
sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8"
url: "https://pub.dev"
source: hosted
version: "5.1.1"
version: "5.2.0"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2"
sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
url: "https://pub.dev"
source: hosted
version: "1.0.3"
version: "1.0.4"
sdks:
dart: ">=3.2.0-194.0.dev <4.0.0"
dart: ">=3.2.3 <4.0.0"
flutter: ">=3.10.0"
5 changes: 3 additions & 2 deletions frontend/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ dependencies:
flutter_localizations:
sdk: flutter

tbdex:
web5_flutter:
git:
url: https://github.com/TBD54566975/tbdex-dart.git
url: https://github.com/TBD54566975/web5-dart.git
path: packages/web5_flutter
ref: main

flutter_hooks: ^0.20.3
Expand Down

0 comments on commit f37dc35

Please sign in to comment.