Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Removal of device_preview dependency #5302

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions packages/smooth_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:io';

import 'package:app_store_shared/app_store_shared.dart';
import 'package:dart_ping_ios/dart_ping_ios.dart';
import 'package:device_preview/device_preview.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -85,12 +84,7 @@ Future<void> launchSmoothApp({
await AnalyticsHelper.initSentry(
appRunner: () => runApp(const SmoothApp()));
} else {
runApp(
DevicePreview(
enabled: true,
builder: (_) => const SmoothApp(),
),
);
runApp(const SmoothApp());
}
}

Expand Down
24 changes: 0 additions & 24 deletions packages/smooth_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.10"
device_frame:
dependency: transitive
description:
name: device_frame
sha256: afe76182aec178d171953d9b4a50a43c57c7cf3c77d8b09a48bf30c8fa04dd9d
url: "https://pub.dev"
source: hosted
version: "1.1.0"
device_info_plus:
dependency: "direct main"
description:
Expand All @@ -430,14 +422,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "7.0.0"
device_preview:
dependency: "direct main"
description:
name: device_preview
sha256: "2f097bf31b929e15e6756dbe0ec1bcb63952ab9ed51c25dc5a2c722d2b21fdaf"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
diacritic:
dependency: "direct main"
description:
Expand Down Expand Up @@ -767,14 +751,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.8.5+3"
freezed_annotation:
dependency: transitive
description:
name: freezed_annotation
sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d
url: "https://pub.dev"
source: hosted
version: "2.4.1"
fuchsia_remote_debug_protocol:
dependency: transitive
description: flutter
Expand Down
1 change: 0 additions & 1 deletion packages/smooth_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies:
barcode_widget: 2.0.4
carousel_slider: 4.2.1
cupertino_icons: 1.0.8
device_preview: 1.1.0
flutter_svg: 2.0.10+1
flutter_map: 6.1.0
html: 0.15.4
Expand Down
Loading