diff --git a/.stfolder/syncthing-folder-7c078c.txt b/.stfolder/syncthing-folder-7c078c.txt deleted file mode 100644 index f10d25c..0000000 --- a/.stfolder/syncthing-folder-7c078c.txt +++ /dev/null @@ -1,5 +0,0 @@ -# This directory is a Syncthing folder marker. -# Do not delete. - -folderID: melo-app -created: 2026-07-23T14:21:25+02:00 diff --git a/.stignore b/.stignore deleted file mode 100644 index e61625b..0000000 --- a/.stignore +++ /dev/null @@ -1,16 +0,0 @@ -// Build-Artefakte – nicht auf Server nötig -build/ -.dart_tool/ -.pub/ -.packages -.pub-cache/ -*.g.dart -*.freezed.dart -android/.gradle/ -android/app/build/ -ios/Pods/ -ios/.symlinks/ -.idea/ -*.iml -.flutter-plugins -.flutter-plugins-dependencies diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 1308415..00a6bda 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -11,11 +11,13 @@ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 77380DAA67C268DB67B1D401 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D50C3003FF8BDFA2FC71F79B /* Pods_Runner.framework */; }; 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; }; 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + B46476C355324B57423C2770 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B67B3A79201CE6A91D0C257 /* Pods_RunnerTests.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -42,16 +44,20 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0B67B3A79201CE6A91D0C257 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 1225B53C3872B5E13518CF82 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 6993FAE1F3362FBF10EEB237 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 831E0826B732F808407A8006 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -59,14 +65,27 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C883DACA5C5C49E5FC2BD0B7 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + D50C3003FF8BDFA2FC71F79B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + D9A6362589EF43F3165EE99B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + E9DC184D0FE0FF4F5167A5AD /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 1CC267777A6FA9F1FEED289F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B46476C355324B57423C2770 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */, + 77380DAA67C268DB67B1D401 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -81,6 +100,20 @@ path = RunnerTests; sourceTree = ""; }; + 731C9CCAB296A9A8101B70EB /* Pods */ = { + isa = PBXGroup; + children = ( + C883DACA5C5C49E5FC2BD0B7 /* Pods-Runner.debug.xcconfig */, + D9A6362589EF43F3165EE99B /* Pods-Runner.release.xcconfig */, + E9DC184D0FE0FF4F5167A5AD /* Pods-Runner.profile.xcconfig */, + 831E0826B732F808407A8006 /* Pods-RunnerTests.debug.xcconfig */, + 6993FAE1F3362FBF10EEB237 /* Pods-RunnerTests.release.xcconfig */, + 1225B53C3872B5E13518CF82 /* Pods-RunnerTests.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -100,6 +133,8 @@ 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, 331C8082294A63A400263BE5 /* RunnerTests */, + 731C9CCAB296A9A8101B70EB /* Pods */, + EBA42AF9E3758CC492523C64 /* Frameworks */, ); sourceTree = ""; }; @@ -128,6 +163,15 @@ path = Runner; sourceTree = ""; }; + EBA42AF9E3758CC492523C64 /* Frameworks */ = { + isa = PBXGroup; + children = ( + D50C3003FF8BDFA2FC71F79B /* Pods_Runner.framework */, + 0B67B3A79201CE6A91D0C257 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -135,8 +179,10 @@ isa = PBXNativeTarget; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( + 348DC65602B4B312157823C6 /* [CP] Check Pods Manifest.lock */, 331C807D294A63A400263BE5 /* Sources */, 331C807F294A63A400263BE5 /* Resources */, + 1CC267777A6FA9F1FEED289F /* Frameworks */, ); buildRules = ( ); @@ -152,6 +198,7 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + 231C659A788AE1056065C8B1 /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, @@ -201,7 +248,7 @@ ); mainGroup = 97C146E51CF9000F007C117D; packageReferences = ( - 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */, ); productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; @@ -235,6 +282,50 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 231C659A788AE1056065C8B1 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 348DC65602B4B312157823C6 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -392,6 +483,7 @@ }; 331C8088294A63A400263BE5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 831E0826B732F808407A8006 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -409,6 +501,7 @@ }; 331C8089294A63A400263BE5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 6993FAE1F3362FBF10EEB237 /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -424,6 +517,7 @@ }; 331C808A294A63A400263BE5 /* Profile */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 1225B53C3872B5E13518CF82 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -627,7 +721,7 @@ /* End XCConfigurationList section */ /* Begin XCLocalSwiftPackageReference section */ - 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = { isa = XCLocalSwiftPackageReference; relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; }; diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata index 1d526a1..21a3cc1 100644 --- a/ios/Runner.xcworkspace/contents.xcworkspacedata +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/lib/widgets/cloud_einstellungen.dart b/lib/widgets/cloud_einstellungen.dart deleted file mode 100644 index e36aee5..0000000 --- a/lib/widgets/cloud_einstellungen.dart +++ /dev/null @@ -1,174 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:shared_preferences/shared_preferences.dart'; -import '../services/cloud_service.dart'; -import '../utils/farb_theme.dart'; -import 'halte_zum_bestaetigen.dart'; - -/// Cloud Sync Einstellungen – eigenständiger Dialog -class CloudEinstellungen extends StatefulWidget { - const CloudEinstellungen({super.key}); - - @override - State createState() => _CloudEinstellungenState(); -} - -class _CloudEinstellungenState extends State { - bool _autoSync = true; - int _syncIntervall = 6; // Stunden - - @override - void initState() { - super.initState(); - _ladeSettings(); - } - - Future _ladeSettings() async { - final p = await SharedPreferences.getInstance(); - if (mounted) { - setState(() { - _autoSync = p.getBool('cloud_auto') ?? true; - _syncIntervall = p.getInt('cloud_interval') ?? 6; - }); - } - } - // Hinweis: Der echte Auto-Sync-Timer läuft im MeloHomeViewModel - // (_starteCloudSyncScheduler). Dieser Dialog speichert nur die Einstellungen; - // die Änderungen greifen beim nächsten App-Start bzw. über "Jetzt synchronisieren". - - @override - Widget build(BuildContext context) { - return AlertDialog( - backgroundColor: MeloTheme.dunkel1, - title: const Row( - children: [ - Icon(Icons.cloud, color: MeloTheme.rot, size: 20), - SizedBox(width: 8), - Text('☁ Cloud Sync', style: TextStyle(color: Colors.white, fontSize: 16)), - ], - ), - content: Column( - mainAxisSize: MainAxisSize.min, - children: [ - SwitchListTile( - title: const Text('Auto-Sync', style: TextStyle(color: Colors.white, fontSize: 14)), - subtitle: Text(_autoSync ? 'Aktiviert' : 'Aus', - style: const TextStyle(color: Colors.grey, fontSize: 12)), - value: _autoSync, - activeColor: MeloTheme.rot, - onChanged: (v) async { - setState(() => _autoSync = v); - final p = await SharedPreferences.getInstance(); - await p.setBool('cloud_auto', v); - }, - ), - const Divider(color: MeloTheme.dunkel2), - ...['Manuell', 'Alle 3h', 'Alle 6h', 'Alle 12h'].asMap().entries.map((e) { - final vals = [0, 3, 6, 12]; - final val = vals[e.key]; - return RadioListTile( - dense: true, - title: Text(e.value, - style: const TextStyle(color: Colors.white, fontSize: 13)), - value: val, - groupValue: _syncIntervall, - activeColor: MeloTheme.rot, - onChanged: (v) async { - if (v == null) return; - setState(() => _syncIntervall = v); - final p = await SharedPreferences.getInstance(); - await p.setInt('cloud_interval', v); - }, - ); - }), - const SizedBox(height: 8), - SizedBox( - width: double.infinity, - child: OutlinedButton.icon( - icon: const Icon(Icons.sync, size: 16, color: MeloTheme.rot), - label: const Text('Jetzt synchronisieren', - style: TextStyle(color: MeloTheme.rot, fontSize: 13)), - style: OutlinedButton.styleFrom( - side: const BorderSide(color: MeloTheme.rot), - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), - ), - onPressed: () { - Navigator.pop(context, true); // Signal zum Sync - }, - ), - ), - if (CloudService().istAngemeldet) ...[ - const Divider(color: MeloTheme.dunkel2), - Align( - alignment: Alignment.centerLeft, - child: Text('Cloud-Daten löschen', - style: TextStyle(color: Colors.red.shade300, fontSize: 12, fontWeight: FontWeight.w600)), - ), - ListTile( - dense: true, - leading: const Icon(Icons.music_off, color: Colors.red, size: 18), - title: const Text('Nur Musik löschen', - style: TextStyle(color: Colors.white, fontSize: 13)), - subtitle: const Text('Alle Cloud-Songs entfernen', - style: TextStyle(color: Colors.grey, fontSize: 11)), - onTap: () => _zeigeLoeschDialog(komplett: false), - ), - ListTile( - dense: true, - leading: const Icon(Icons.delete_sweep, color: Colors.red, size: 18), - title: const Text('Komplett vom Server löschen', - style: TextStyle(color: Colors.white, fontSize: 13)), - subtitle: const Text('Musik + Shares + Ordner (unwiderruflich)', - style: TextStyle(color: Colors.grey, fontSize: 11)), - onTap: () => _zeigeLoeschDialog(komplett: true), - ), - ], - ], - ), - ); - } - - /// Lösch-Dialog: Warnt vor sofortigem Löschen, Bestätigung per 3s-Halten. - void _zeigeLoeschDialog({required bool komplett}) { - showDialog( - context: context, - builder: (ctx) => AlertDialog( - backgroundColor: MeloTheme.dunkel1, - title: Text(komplett ? '☠️ Komplett löschen?' : '🎵 Musik löschen?', - style: const TextStyle(color: Colors.white, fontSize: 15)), - content: Column( - mainAxisSize: MainAxisSize.min, - children: [ - const Text( - '⚠️ Wird SOFORT gelöscht und kann nicht rückgängig gemacht werden!', - style: TextStyle(color: Colors.orangeAccent, fontSize: 13), - textAlign: TextAlign.center, - ), - const SizedBox(height: 12), - HalteZumBestaetigen( - text: '3 Sekunden gedrückt halten…', - farbe: Colors.red, - onBestaetigt: () async { - Navigator.pop(ctx); - final ok = komplett - ? await CloudService().loescheAlles() - : await CloudService().loescheMusik(); - if (!mounted) return; - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text(ok - ? '✅ Cloud-Daten gelöscht' - : '❌ Löschen fehlgeschlagen – bist du angemeldet?'), - )); - }, - ), - ], - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(ctx), - child: const Text('Abbrechen', style: TextStyle(color: Colors.grey)), - ), - ], - ), - ); - } -} diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index e71a16d..d0e7f79 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -6,6 +6,10 @@ #include "generated_plugin_registrant.h" +#include void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) flutter_secure_storage_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStorageLinuxPlugin"); + flutter_secure_storage_linux_plugin_register_with_registrar(flutter_secure_storage_linux_registrar); } diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index be1ee3e..ce58916 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + flutter_secure_storage_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index f774dc0..2270315 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,6 +7,7 @@ import Foundation import audio_service import audio_session +import flutter_secure_storage_darwin import just_audio import shared_preferences_foundation import sqflite_darwin @@ -14,6 +15,7 @@ import sqflite_darwin func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AudioServicePlugin.register(with: registry.registrar(forPlugin: "AudioServicePlugin")) AudioSessionPlugin.register(with: registry.registrar(forPlugin: "AudioSessionPlugin")) + FlutterSecureStorageDarwinPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageDarwinPlugin")) JustAudioPlugin.register(with: registry.registrar(forPlugin: "JustAudioPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index 48de52b..8883006 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -6,9 +6,12 @@ #include "generated_plugin_registrant.h" +#include #include void RegisterPlugins(flutter::PluginRegistry* registry) { + FlutterSecureStorageWindowsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("FlutterSecureStorageWindowsPlugin")); PermissionHandlerWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); } diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index d6ee74d..d1aac24 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + flutter_secure_storage_windows permission_handler_windows )