From 68601dd7f8ef45e1a7ed92ae2c10c5c67bc63c9f Mon Sep 17 00:00:00 2001 From: Eldar2021 Date: Sat, 25 Nov 2023 23:28:05 +0600 Subject: [PATCH] disable screenshot --- app/ios/Podfile.lock | 2 +- .../extensions/screenshot_driver.dart | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/ios/Podfile.lock b/app/ios/Podfile.lock index 17597851..8b243df8 100644 --- a/app/ios/Podfile.lock +++ b/app/ios/Podfile.lock @@ -84,7 +84,7 @@ SPEC CHECKSUMS: ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a - url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 + url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048 diff --git a/app/test_driver/extensions/screenshot_driver.dart b/app/test_driver/extensions/screenshot_driver.dart index 0f50a337..7026f7e7 100644 --- a/app/test_driver/extensions/screenshot_driver.dart +++ b/app/test_driver/extensions/screenshot_driver.dart @@ -1,4 +1,4 @@ -import 'dart:io'; +// import 'dart:io'; import 'package:flutter_driver/flutter_driver.dart'; @@ -8,14 +8,14 @@ extension ScreenshotExtension on FlutterDriver { String directory = '../screenshots', bool waitUntilNoTransientCallbacks = true, }) async { - if (waitUntilNoTransientCallbacks) { - await this.waitUntilNoTransientCallbacks(timeout: const Duration(seconds: 30)); - } - final pixels = await screenshot(); - final directoryPath = directory.endsWith('/') ? directory : '$directory/'; - final file = await File('$directoryPath$name.png').create(recursive: true); - await file.writeAsBytes(pixels); - // ignore: avoid_print - print('Screenshot $name'); + // if (waitUntilNoTransientCallbacks) { + // await this.waitUntilNoTransientCallbacks(timeout: const Duration(seconds: 30)); + // } + // final pixels = await screenshot(); + // final directoryPath = directory.endsWith('/') ? directory : '$directory/'; + // final file = await File('$directoryPath$name.png').create(recursive: true); + // await file.writeAsBytes(pixels); + // // ignore: avoid_print + // print('Screenshot $name'); } }