From 9ece125d9ff238bd4e0ad5235bcc8442a0f70b4b Mon Sep 17 00:00:00 2001 From: zypherift Date: Tue, 7 Apr 2026 13:30:28 +0200 Subject: [PATCH] Remove Shake SDK integration entirely --- refilc/ios/Podfile | 16 --------- refilc/lib/main.dart | 36 ------------------- refilc/lib/theme/observer.dart | 9 ----- refilc/pubspec.yaml | 1 - .../lib/screens/settings/settings_screen.dart | 21 +---------- refilc_mobile_ui/pubspec.yaml | 1 - 6 files changed, 1 insertion(+), 83 deletions(-) diff --git a/refilc/ios/Podfile b/refilc/ios/Podfile index 32dbe6b5..43b370f5 100644 --- a/refilc/ios/Podfile +++ b/refilc/ios/Podfile @@ -48,20 +48,4 @@ post_install do |installer| end end - bitcode_strip_path = `xcrun --find bitcode_strip`.chop! - def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) - framework_path = File.join(Dir.pwd, framework_relative_path) - command = "\"#{bitcode_strip_path}\" \"#{framework_path}\" -r -o \"#{framework_path}\"" - puts "Stripping bitcode: #{command}" - system(command) - end - - framework_paths = [ - "Pods/Shake/Sources/Shake.xcframework/ios-arm64/Shake.framework/Shake", - "Pods/Shake/Sources/Shake.xcframework/ios-arm64_x86_64-simulator/Shake.framework/Shake" - ] - - framework_paths.each do |framework_relative_path| - strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path) - end end diff --git a/refilc/lib/main.dart b/refilc/lib/main.dart index e93ef6fc..ecf4ee24 100644 --- a/refilc/lib/main.dart +++ b/refilc/lib/main.dart @@ -33,8 +33,6 @@ import 'package:refilc/utils/service_locator.dart'; import 'package:refilc_mobile_ui/screens/error_screen.dart'; import 'package:refilc_mobile_ui/screens/error_report_screen.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; -import 'package:shake_flutter/models/shake_report_configuration.dart'; -import 'package:shake_flutter/shake_flutter.dart'; import 'helpers/live_activity_helper.dart'; @@ -58,28 +56,6 @@ void main() async { BackgroundFetch.registerHeadlessTask(backgroundHeadlessTask); - // setting up things for shakebugs - // List pickerItems = [ - // ShakePickerItem('Bug', 'Hiba', tag: 'bug'), - // ShakePickerItem('Suggestion', 'Fejlesztési javaslat', tag: 'suggestion'), - // ShakePickerItem('Question', 'Kérdés', tag: 'question') - // ]; - // ShakePicker picker = - // ShakePicker('Feedback type', 'Visszajelzés típusa', pickerItems); - // ShakeTitle title = ShakeTitle('Title', 'Leírás', required: true); - - // ShakeInspectButton inspect = ShakeInspectButton(); - // ShakeAttachments attachments = ShakeAttachments(); - - // List components = [picker, title, inspect, attachments]; - // ShakeForm form = ShakeForm(components); - - // Shake.setShakeForm(form); - - // shakebugs initialization - // Shake.setInvokeShakeOnScreenshot(true); - Shake.start('Y44AwzfY6091xO2Nr0w59RHSpNxJhhiSFGs4enmoJwelN82ZRzTLE5X'); - // pre-cache required icons const todaySvg = SvgAssetLoader('assets/svg/menu_icons/today_selected.svg'); const gradesSvg = SvgAssetLoader('assets/svg/menu_icons/grades_selected.svg'); @@ -206,18 +182,6 @@ Widget errorBuilder(FlutterErrorDetails details) { Navigator.of(context, rootNavigator: true) .push(MaterialPageRoute(builder: (context) { if (kReleaseMode) { - // silent report to shakebugs - ShakeReportConfiguration configuration = ShakeReportConfiguration(); - configuration.blackBoxData = true; - configuration.activityHistoryData = true; - configuration.screenshot = true; - configuration.video = false; - Shake.silentReport( - configuration: configuration, - description: - 'Silent Report #${DateTime.now().year}${DateTime.now().month}${DateTime.now().day}', - ); - // show error report screen return ErrorReportScreen(details); } else { return ErrorScreen(details); diff --git a/refilc/lib/theme/observer.dart b/refilc/lib/theme/observer.dart index 08c075e3..e2d50e57 100644 --- a/refilc/lib/theme/observer.dart +++ b/refilc/lib/theme/observer.dart @@ -4,8 +4,6 @@ import 'package:flutter/material.dart'; import 'package:home_widget/home_widget.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; -import 'package:shake_flutter/models/shake_theme.dart'; -import 'package:shake_flutter/shake_flutter.dart'; Future updateWidget() async { try { @@ -35,12 +33,5 @@ class ThemeModeObserver extends ChangeNotifier { _updateNavbarColor = updateNavbarColor; if (Platform.isAndroid) updateWidget(); notifyListeners(); - - // change shake theme as well - ShakeTheme darkTheme = ShakeTheme(); - darkTheme.accentColor = "#FFFFFF"; - ShakeTheme lightTheme = ShakeTheme(); - lightTheme.accentColor = "#000000"; - Shake.setShakeTheme(mode == ThemeMode.dark ? darkTheme : lightTheme); } } diff --git a/refilc/pubspec.yaml b/refilc/pubspec.yaml index 57c220c7..86260813 100644 --- a/refilc/pubspec.yaml +++ b/refilc/pubspec.yaml @@ -69,7 +69,6 @@ dependencies: xml: ^6.5.0 carousel_slider: ^5.0.0 flutter_portal: ^1.1.4 - shake_flutter: ^17.1.0 dependency_overrides: intl: 0.20.2 diff --git a/refilc_mobile_ui/lib/screens/settings/settings_screen.dart b/refilc_mobile_ui/lib/screens/settings/settings_screen.dart index 1b6a91eb..8c62e72b 100644 --- a/refilc_mobile_ui/lib/screens/settings/settings_screen.dart +++ b/refilc_mobile_ui/lib/screens/settings/settings_screen.dart @@ -79,8 +79,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_custom_tabs/flutter_custom_tabs.dart' as tabs; import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import 'package:provider/provider.dart'; -import 'package:shake_flutter/enums/shake_screen.dart'; -import 'package:shake_flutter/shake_flutter.dart'; import 'package:url_launcher/url_launcher.dart'; import 'settings_screen.i18n.dart'; import 'package:flutter/services.dart'; @@ -962,7 +960,7 @@ class SettingsScreenState extends State shape: const RoundedRectangleBorder( borderRadius: BorderRadius.vertical( top: Radius.circular(4.0), - bottom: Radius.circular(4.0), + bottom: Radius.circular(12.0), ), ), secondary: Icon( @@ -1005,23 +1003,6 @@ class SettingsScreenState extends State ), ), ), - PanelButton( - leading: Icon( - Icons.feedback_outlined, - size: 22.0, - color: AppColors.of(context).text.withOpacity(0.95), - ), - title: Text("feedback".i18n), - onPressed: () => { - Shake.setScreenshotIncluded(false), - Shake.show(ShakeScreen.newTicket), - Shake.setScreenshotIncluded(true), - }, - borderRadius: const BorderRadius.vertical( - top: Radius.circular(4.0), - bottom: Radius.circular(12.0), - ), - ), ], ), diff --git a/refilc_mobile_ui/pubspec.yaml b/refilc_mobile_ui/pubspec.yaml index 1889ea47..8f6339be 100644 --- a/refilc_mobile_ui/pubspec.yaml +++ b/refilc_mobile_ui/pubspec.yaml @@ -67,7 +67,6 @@ dependencies: flutter_portal: ^1.1.4 webview_flutter: ^4.10.0 file_picker: ^8.3.7 - shake_flutter: ^17.1.0 wakelock_plus: ^1.2.10 dependency_overrides: