An open-source cross-platform alternative to AirDrop
feat: make it work in macOS
Tien Do Nam8d22811af17a
diff --git a/lib/init.dart b/lib/init.dartindex 547f7f0d..824c910c 100644--- a/lib/init.dart+++ b/lib/init.dart@@ -20,7 +20,7 @@ import 'package:window_manager/window_manager.dart';Future<PersistenceService> preInit() async {WidgetsFlutterBinding.ensureInitialized();- if (!kIsWeb && checkPlatform([TargetPlatform.windows])) {+ if (!kIsWeb && checkPlatform([TargetPlatform.windows, TargetPlatform.macOS])) {await windowManager.ensureInitialized();WindowManager.instance.setMinimumSize(const Size(400, 500));}diff --git a/lib/pages/receive_page.dart b/lib/pages/receive_page.dartindex 2165f104..ef0955e7 100644--- a/lib/pages/receive_page.dart+++ b/lib/pages/receive_page.dart@@ -9,6 +9,7 @@ import 'package:localsend_app/pages/progress_page.dart';import 'package:localsend_app/provider/network/server_provider.dart';import 'package:localsend_app/util/ip_helper.dart';import 'package:localsend_app/widget/device_bage.dart';+import 'package:localsend_app/widget/responsive_list_view.dart';import 'package:routerino/routerino.dart';class ReceivePage extends ConsumerWidget {@@ -47,164 +48,169 @@ class ReceivePage extends ConsumerWidget {},child: Scaffold(body: SafeArea(- child: Padding(- padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 30),- child: Column(- children: [- Expanded(- child: Column(- mainAxisAlignment: MainAxisAlignment.center,- children: [- Icon(receiveState.sender.deviceType.icon, size: 64),- const SizedBox(height: 10),- Text(- receiveState.sender.alias,- style: const TextStyle(fontSize: 48),- textAlign: TextAlign.center,- ),- const SizedBox(height: 10),- Row(+ child: Center(+ child: ConstrainedBox(+ constraints: const BoxConstraints(maxWidth: ResponsiveListView.defaultMaxWidth),+ child: Padding(+ padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 30),+ child: Column(+ children: [+ Expanded(+ child: Column(mainAxisAlignment: MainAxisAlignment.center,children: [- DeviceBadge(- color: Theme.of(context).colorScheme.tertiaryContainer,- label: '#${receiveState.sender.ip.visualId}',+ Icon(receiveState.sender.deviceType.icon, size: 64),+ const SizedBox(height: 10),+ Text(+ receiveState.sender.alias,+ style: const TextStyle(fontSize: 48),+ textAlign: TextAlign.center,),- if (receiveState.sender.deviceModel != null)- Padding(- padding: const EdgeInsets.only(left: 10),- child: DeviceBadge(+ const SizedBox(height: 10),+ Row(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ DeviceBadge(color: Theme.of(context).colorScheme.tertiaryContainer,- label: receiveState.sender.deviceModel!,+ label: '#${receiveState.sender.ip.visualId}',),- ),- ],- ),- const SizedBox(height: 40),- Text(- message != null ? t.receivePage.subTitleMessage : t.receivePage.subTitle(n: receiveState.files.length),- style: Theme.of(context).textTheme.headline6,- textAlign: TextAlign.center,- ),- if (message != null)- Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- Padding(- padding: const EdgeInsets.only(top: 20),- child: SizedBox(- height: 100,- child: Card(- child: SingleChildScrollView(- child: Padding(- padding: const EdgeInsets.all(10),- child: SelectableText(- message,+ if (receiveState.sender.deviceModel != null)+ Padding(+ padding: const EdgeInsets.only(left: 10),+ child: DeviceBadge(+ color: Theme.of(context).colorScheme.tertiaryContainer,+ label: receiveState.sender.deviceModel!,+ ),+ ),+ ],+ ),+ const SizedBox(height: 40),+ Text(+ message != null ? t.receivePage.subTitleMessage : t.receivePage.subTitle(n: receiveState.files.length),+ style: Theme.of(context).textTheme.headline6,+ textAlign: TextAlign.center,+ ),+ if (message != null)+ Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ Padding(+ padding: const EdgeInsets.only(top: 20),+ child: SizedBox(+ height: 100,+ child: Card(+ child: SingleChildScrollView(+ child: Padding(+ padding: const EdgeInsets.all(10),+ child: SelectableText(+ message,+ ),+ ),),),),),- ),+ const SizedBox(height: 10),+ Center(+ child: ElevatedButton(+ onPressed: () {+ Clipboard.setData(ClipboardData(text: message));+ },+ child: Text(t.general.copy),+ ),+ )+ ],),- const SizedBox(height: 10),- Center(- child: ElevatedButton(- onPressed: () {- Clipboard.setData(ClipboardData(text: message));- },- child: Text(t.general.copy),- ),- )- ],- ),- ],- ),- ),- if (receiveState.status == SessionStatus.canceledBySender)- ...[- Padding(- padding: const EdgeInsets.only(bottom: 20),- child: Text(t.receivePage.canceled, style: const TextStyle(color: Colors.orange), textAlign: TextAlign.center),- ),- Center(- child: ElevatedButton.icon(- onPressed: () {- ref.read(serverProvider.notifier).closeSession();- context.pop();- },- icon: const Icon(Icons.check_circle),- label: Text(t.general.close),+ ],),),- ]- else if (message != null)- Row(- mainAxisAlignment: MainAxisAlignment.center,- children: [- TextButton.icon(- style: TextButton.styleFrom(- foregroundColor: Theme.of(context).colorScheme.onSurface,- ),- onPressed: () {- _acceptNothing(ref, receiveState);- context.pop();- },- icon: const Icon(Icons.close),- label: Text(t.general.close),- ),- const SizedBox(width: 20),- ElevatedButton.icon(- style: ElevatedButton.styleFrom(- backgroundColor: Theme.of(context).buttonTheme.colorScheme!.primary,- foregroundColor: Theme.of(context).buttonTheme.colorScheme!.onPrimary,- ),- onPressed: () {- _acceptAll(ref, receiveState);- context.pushAndRemoveUntilImmediately(- removeUntil: ReceivePage,- builder: () => const ProgressPage(),- );- },- icon: const Icon(Icons.save),- label: Text(t.general.save),- ),- ],- )- else- Row(- mainAxisAlignment: MainAxisAlignment.center,- children: [- ElevatedButton.icon(- style: ElevatedButton.styleFrom(- backgroundColor: Theme.of(context).buttonTheme.colorScheme!.error,- foregroundColor: Colors.white, // wrong in dark mode, so we hard code this+ if (receiveState.status == SessionStatus.canceledBySender)+ ...[+ Padding(+ padding: const EdgeInsets.only(bottom: 20),+ child: Text(t.receivePage.canceled, style: const TextStyle(color: Colors.orange), textAlign: TextAlign.center),),- onPressed: () {- _decline(ref);- context.pop();- },- icon: const Icon(Icons.close),- label: Text(t.general.decline),- ),- const SizedBox(width: 20),- ElevatedButton.icon(- style: ElevatedButton.styleFrom(- backgroundColor: Theme.of(context).buttonTheme.colorScheme!.primary,- foregroundColor: Theme.of(context).buttonTheme.colorScheme!.onPrimary,+ Center(+ child: ElevatedButton.icon(+ onPressed: () {+ ref.read(serverProvider.notifier).closeSession();+ context.pop();+ },+ icon: const Icon(Icons.check_circle),+ label: Text(t.general.close),+ ),),- onPressed: () {- _acceptAll(ref, receiveState);- context.pushAndRemoveUntilImmediately(- removeUntil: ReceivePage,- builder: () => const ProgressPage(),- );- },- icon: const Icon(Icons.check_circle),- label: Text(t.general.accept),+ ]+ else if (message != null)+ Row(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ TextButton.icon(+ style: TextButton.styleFrom(+ foregroundColor: Theme.of(context).colorScheme.onSurface,+ ),+ onPressed: () {+ _acceptNothing(ref, receiveState);+ context.pop();+ },+ icon: const Icon(Icons.close),+ label: Text(t.general.close),+ ),+ const SizedBox(width: 20),+ ElevatedButton.icon(+ style: ElevatedButton.styleFrom(+ backgroundColor: Theme.of(context).buttonTheme.colorScheme!.primary,+ foregroundColor: Theme.of(context).buttonTheme.colorScheme!.onPrimary,+ ),+ onPressed: () {+ _acceptAll(ref, receiveState);+ context.pushAndRemoveUntilImmediately(+ removeUntil: ReceivePage,+ builder: () => const ProgressPage(),+ );+ },+ icon: const Icon(Icons.save),+ label: Text(t.general.save),+ ),+ ],+ )+ else+ Row(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ ElevatedButton.icon(+ style: ElevatedButton.styleFrom(+ backgroundColor: Theme.of(context).buttonTheme.colorScheme!.error,+ foregroundColor: Colors.white, // wrong in dark mode, so we hard code this+ ),+ onPressed: () {+ _decline(ref);+ context.pop();+ },+ icon: const Icon(Icons.close),+ label: Text(t.general.decline),+ ),+ const SizedBox(width: 20),+ ElevatedButton.icon(+ style: ElevatedButton.styleFrom(+ backgroundColor: Theme.of(context).buttonTheme.colorScheme!.primary,+ foregroundColor: Theme.of(context).buttonTheme.colorScheme!.onPrimary,+ ),+ onPressed: () {+ _acceptAll(ref, receiveState);+ context.pushAndRemoveUntilImmediately(+ removeUntil: ReceivePage,+ builder: () => const ProgressPage(),+ );+ },+ icon: const Icon(Icons.check_circle),+ label: Text(t.general.accept),+ ),+ ],),- ],- ),- ],+ ],+ ),+ ),),),),diff --git a/lib/theme.dart b/lib/theme.dartindex 22aa5356..0b20dbf5 100644--- a/lib/theme.dart+++ b/lib/theme.dart@@ -1,6 +1,6 @@-import 'package:flutter/foundation.dart';import 'package:flutter/material.dart';import 'package:flutter/services.dart';+import 'package:localsend_app/util/platform_check.dart';final _borderRadius = BorderRadius.circular(5);@@ -37,12 +37,12 @@ ThemeData getTheme(Brightness brightness) {elevatedButtonTheme: ElevatedButtonThemeData(style: ElevatedButton.styleFrom(foregroundColor: brightness == Brightness.dark ? Colors.white : null,- padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.symmetric(horizontal: 16, vertical: 8),+ padding: checkPlatform([TargetPlatform.macOS]) ? const EdgeInsets.all(16) : (checkPlatform([TargetPlatform.windows]) ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.symmetric(horizontal: 16, vertical: 8)),),),textButtonTheme: TextButtonThemeData(style: TextButton.styleFrom(- padding: defaultTargetPlatform == TargetPlatform.windows ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.all(8),+ padding: checkPlatform([TargetPlatform.windows, TargetPlatform.macOS]) ? const EdgeInsets.symmetric(horizontal: 8, vertical: 16) : const EdgeInsets.all(8),),),);diff --git a/lib/util/platform_check.dart b/lib/util/platform_check.dartindex e43eeaaa..7c2aedf2 100644--- a/lib/util/platform_check.dart+++ b/lib/util/platform_check.dart@@ -14,7 +14,7 @@ bool checkPlatformCanReceiveShareIntent() {/// This platform has a gallerybool checkPlatformWithGallery() {- return checkPlatform([TargetPlatform.android, TargetPlatform.iOS, TargetPlatform.macOS]);+ return checkPlatform([TargetPlatform.android, TargetPlatform.iOS]);}/// This platform has access to file systemdiff --git a/macos/Podfile b/macos/Podfileindex dade8dfa..9ec46f8c 100644--- a/macos/Podfile+++ b/macos/Podfile@@ -1,4 +1,4 @@-platform :osx, '10.11'+platform :osx, '10.15'# CocoaPods analytics sends network stats synchronously affecting flutter build latency.ENV['COCOAPODS_DISABLE_STATS'] = 'true'diff --git a/macos/Podfile.lock b/macos/Podfile.locknew file mode 100644index 00000000..58c496fd--- /dev/null+++ b/macos/Podfile.lock@@ -0,0 +1,90 @@+PODS:+ - connectivity_plus (0.0.1):+ - FlutterMacOS+ - ReachabilitySwift+ - desktop_drop (0.0.1):+ - FlutterMacOS+ - device_info_plus (0.0.1):+ - FlutterMacOS+ - FlutterMacOS (1.0.0)+ - network_info_plus (0.0.1):+ - FlutterMacOS+ - package_info_plus (0.0.1):+ - FlutterMacOS+ - path_provider_macos (0.0.1):+ - FlutterMacOS+ - photo_manager (2.0.0):+ - Flutter+ - FlutterMacOS+ - ReachabilitySwift (5.0.0)+ - screen_retriever (0.0.1):+ - FlutterMacOS+ - shared_preferences_macos (0.0.1):+ - FlutterMacOS+ - url_launcher_macos (0.0.1):+ - FlutterMacOS+ - window_manager (0.2.0):+ - FlutterMacOS++DEPENDENCIES:+ - connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`)+ - desktop_drop (from `Flutter/ephemeral/.symlinks/plugins/desktop_drop/macos`)+ - device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`)+ - FlutterMacOS (from `Flutter/ephemeral`)+ - network_info_plus (from `Flutter/ephemeral/.symlinks/plugins/network_info_plus/macos`)+ - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)+ - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)+ - photo_manager (from `Flutter/ephemeral/.symlinks/plugins/photo_manager/macos`)+ - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`)+ - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)+ - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)+ - window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`)++SPEC REPOS:+ trunk:+ - ReachabilitySwift++EXTERNAL SOURCES:+ connectivity_plus:+ :path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos+ desktop_drop:+ :path: Flutter/ephemeral/.symlinks/plugins/desktop_drop/macos+ device_info_plus:+ :path: Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos+ FlutterMacOS:+ :path: Flutter/ephemeral+ network_info_plus:+ :path: Flutter/ephemeral/.symlinks/plugins/network_info_plus/macos+ package_info_plus:+ :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos+ path_provider_macos:+ :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos+ photo_manager:+ :path: Flutter/ephemeral/.symlinks/plugins/photo_manager/macos+ screen_retriever:+ :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos+ shared_preferences_macos:+ :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos+ url_launcher_macos:+ :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos+ window_manager:+ :path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos++SPEC CHECKSUMS:+ connectivity_plus: 18d3c32514c886e046de60e9c13895109866c747+ desktop_drop: 69eeff437544aa619c8db7f4481b3a65f7696898+ device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f+ FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811+ network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05+ package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce+ path_provider_macos: 3c0c3b4b0d4a76d2bf989a913c2de869c5641a19+ photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604+ ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825+ screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38+ shared_preferences_macos: a64dc611287ed6cbe28fd1297898db1336975727+ url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3+ window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8++PODFILE CHECKSUM: 0d3963a09fc94f580682bd88480486da345dc3f0++COCOAPODS: 1.10.1diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxprojindex b53cca16..ae945316 100644--- a/macos/Runner.xcodeproj/project.pbxproj+++ b/macos/Runner.xcodeproj/project.pbxproj@@ -21,6 +21,7 @@/* End PBXAggregateTarget section *//* Begin PBXBuildFile section */+ 0F663CE30FCD07225E44A808 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2F8CCFF0FAB783405F067709 /* Pods_Runner.framework */; };335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };@@ -52,9 +53,10 @@/* End PBXCopyFilesBuildPhase section *//* Begin PBXFileReference section */+ 2F8CCFF0FAB783405F067709 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };- 33CC10ED2044A3C60003C045 /* localsend_app.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "localsend_app.app"; sourceTree = BUILT_PRODUCTS_DIR; };+ 33CC10ED2044A3C60003C045 /* LocalSend.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LocalSend.app; sourceTree = BUILT_PRODUCTS_DIR; };33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };@@ -66,8 +68,11 @@33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };+ 6304C4E0107ED201F1E21C89 /* 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 = "<group>"; };7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };+ C3B8682D6499CC218E0523B9 /* 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 = "<group>"; };+ CBF4462C3F5FC50BF6BF2B97 /* 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 = "<group>"; };/* End PBXFileReference section *//* Begin PBXFrameworksBuildPhase section */@@ -75,6 +80,7 @@isa = PBXFrameworksBuildPhase;buildActionMask = 2147483647;files = (+ 0F663CE30FCD07225E44A808 /* Pods_Runner.framework in Frameworks */,);runOnlyForDeploymentPostprocessing = 0;};@@ -99,13 +105,14 @@33CEB47122A05771004F2AC0 /* Flutter */,33CC10EE2044A3C60003C045 /* Products */,D73912EC22F37F3D000D13A0 /* Frameworks */,+ D56CB2F58F756550B9F5851D /* Pods */,);sourceTree = "<group>";};33CC10EE2044A3C60003C045 /* Products */ = {isa = PBXGroup;children = (- 33CC10ED2044A3C60003C045 /* localsend_app.app */,+ 33CC10ED2044A3C60003C045 /* LocalSend.app */,);name = Products;sourceTree = "<group>";@@ -145,9 +152,20 @@path = Runner;sourceTree = "<group>";};+ D56CB2F58F756550B9F5851D /* Pods */ = {+ isa = PBXGroup;+ children = (+ 6304C4E0107ED201F1E21C89 /* Pods-Runner.debug.xcconfig */,+ CBF4462C3F5FC50BF6BF2B97 /* Pods-Runner.release.xcconfig */,+ C3B8682D6499CC218E0523B9 /* Pods-Runner.profile.xcconfig */,+ );+ path = Pods;+ sourceTree = "<group>";+ };D73912EC22F37F3D000D13A0 /* Frameworks */ = {isa = PBXGroup;children = (+ 2F8CCFF0FAB783405F067709 /* Pods_Runner.framework */,);name = Frameworks;sourceTree = "<group>";@@ -159,11 +177,13 @@isa = PBXNativeTarget;buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;buildPhases = (+ 468129DD9C9B6CCEBFC139AB /* [CP] Check Pods Manifest.lock */,33CC10E92044A3C60003C045 /* Sources */,33CC10EA2044A3C60003C045 /* Frameworks */,33CC10EB2044A3C60003C045 /* Resources */,33CC110E2044A8840003C045 /* Bundle Framework */,3399D490228B24CF009A79C7 /* ShellScript */,+ 2DA7D291A0AEEC0A0C7CE5C0 /* [CP] Embed Pods Frameworks */,);buildRules = ();@@ -172,7 +192,7 @@);name = Runner;productName = Runner;- productReference = 33CC10ED2044A3C60003C045 /* localsend_app.app */;+ productReference = 33CC10ED2044A3C60003C045 /* LocalSend.app */;productType = "com.apple.product-type.application";};/* End PBXNativeTarget section */@@ -233,6 +253,23 @@/* End PBXResourcesBuildPhase section *//* Begin PBXShellScriptBuildPhase section */+ 2DA7D291A0AEEC0A0C7CE5C0 /* [CP] Embed Pods Frameworks */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",+ );+ name = "[CP] Embed Pods Frameworks";+ outputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";+ showEnvVarsInLog = 0;+ };3399D490228B24CF009A79C7 /* ShellScript */ = {isa = PBXShellScriptBuildPhase;buildActionMask = 2147483647;@@ -270,6 +307,28 @@shellPath = /bin/sh;shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";};+ 468129DD9C9B6CCEBFC139AB /* [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;+ };/* End PBXShellScriptBuildPhase section *//* Begin PBXSourcesBuildPhase section */@@ -366,6 +425,7 @@"$(inherited)","@executable_path/../Frameworks",);+ MACOSX_DEPLOYMENT_TARGET = 10.15;PROVISIONING_PROFILE_SPECIFIER = "";SWIFT_VERSION = 5.0;};@@ -492,6 +552,7 @@"$(inherited)","@executable_path/../Frameworks",);+ MACOSX_DEPLOYMENT_TARGET = 10.15;PROVISIONING_PROFILE_SPECIFIER = "";SWIFT_OPTIMIZATION_LEVEL = "-Onone";SWIFT_VERSION = 5.0;@@ -512,6 +573,7 @@"$(inherited)","@executable_path/../Frameworks",);+ MACOSX_DEPLOYMENT_TARGET = 10.15;PROVISIONING_PROFILE_SPECIFIER = "";SWIFT_VERSION = 5.0;};diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcschemeindex 9b19791c..a080b5bd 100644--- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme+++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme@@ -15,7 +15,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "localsend_app.app"+ BuildableName = "LocalSend.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -31,7 +31,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "localsend_app.app"+ BuildableName = "LocalSend.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -54,7 +54,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "localsend_app.app"+ BuildableName = "LocalSend.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -71,7 +71,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "localsend_app.app"+ BuildableName = "LocalSend.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedataindex 1d526a16..21a3cc14 100644--- a/macos/Runner.xcworkspace/contents.xcworkspacedata+++ b/macos/Runner.xcworkspace/contents.xcworkspacedata@@ -4,4 +4,7 @@<FileReflocation = "group:Runner.xcodeproj"></FileRef>+ <FileRef+ location = "group:Pods/Pods.xcodeproj">+ </FileRef></Workspace>diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.jsonindex a2ec33f1..fab52d5c 100644--- a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json+++ b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json@@ -3,61 +3,61 @@{"size" : "16x16","idiom" : "mac",- "filename" : "app_icon_16.png",+ "filename" : "logo-1024-mac-16.png","scale" : "1x"},{"size" : "16x16","idiom" : "mac",- "filename" : "app_icon_32.png",+ "filename" : "logo-1024-mac-32.png","scale" : "2x"},{"size" : "32x32","idiom" : "mac",- "filename" : "app_icon_32.png",+ "filename" : "logo-1024-mac-32.png","scale" : "1x"},{"size" : "32x32","idiom" : "mac",- "filename" : "app_icon_64.png",+ "filename" : "logo-1024-mac-64.png","scale" : "2x"},{"size" : "128x128","idiom" : "mac",- "filename" : "app_icon_128.png",+ "filename" : "logo-1024-mac-128.png","scale" : "1x"},{"size" : "128x128","idiom" : "mac",- "filename" : "app_icon_256.png",+ "filename" : "logo-1024-mac-256.png","scale" : "2x"},{"size" : "256x256","idiom" : "mac",- "filename" : "app_icon_256.png",+ "filename" : "logo-1024-mac-256.png","scale" : "1x"},{"size" : "256x256","idiom" : "mac",- "filename" : "app_icon_512.png",+ "filename" : "logo-1024-mac-512.png","scale" : "2x"},{"size" : "512x512","idiom" : "mac",- "filename" : "app_icon_512.png",+ "filename" : "logo-1024-mac-512.png","scale" : "1x"},{"size" : "512x512","idiom" : "mac",- "filename" : "app_icon_1024.png",+ "filename" : "logo-1024-mac-1024.png","scale" : "2x"}],@@ -65,4 +65,4 @@"version" : 1,"author" : "xcode"}-}+}\ No newline at end of filediff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.pngdeleted file mode 100644index 82b6f9d9..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.pngdeleted file mode 100644index 13b35eba..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.pngdeleted file mode 100644index 0a3f5fa4..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.pngdeleted file mode 100644index bdb57226..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.pngdeleted file mode 100644index f083318e..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.pngdeleted file mode 100644index 326c0e72..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.pngdeleted file mode 100644index 2f1632cf..00000000Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png and /dev/null differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-1024.pngnew file mode 100644index 00000000..d5a31e5fBinary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-1024.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-128.pngnew file mode 100644index 00000000..086bf411Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-128.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-16.pngnew file mode 100644index 00000000..d1e7c387Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-16.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-256.pngnew file mode 100644index 00000000..ea9de923Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-256.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-32.pngnew file mode 100644index 00000000..a70e8a9dBinary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-32.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-512.pngnew file mode 100644index 00000000..5ce368c3Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-512.png differdiff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-64.pngnew file mode 100644index 00000000..8e4de1f9Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/logo-1024-mac-64.png differdiff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfigindex 8e7fa3bc..071a798a 100644--- a/macos/Runner/Configs/AppInfo.xcconfig+++ b/macos/Runner/Configs/AppInfo.xcconfig@@ -5,7 +5,7 @@// 'flutter create' template.// The application's name. By default this is also the title of the Flutter window.-PRODUCT_NAME = localsend_app+PRODUCT_NAME = LocalSend// The application's bundle identifierPRODUCT_BUNDLE_IDENTIFIER = org.localsend.localsendAppdiff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlementsindex dddb8a30..9ba79de7 100644--- a/macos/Runner/DebugProfile.entitlements+++ b/macos/Runner/DebugProfile.entitlements@@ -8,5 +8,9 @@<true/><key>com.apple.security.network.server</key><true/>+ <key>com.apple.security.network.client</key>+ <true/>+ <key>com.apple.security.files.downloads.read-write</key>+ <true/></dict></plist>diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plistindex 4789daa6..b8693eb1 100644--- a/macos/Runner/Info.plist+++ b/macos/Runner/Info.plist@@ -4,6 +4,8 @@<dict><key>CFBundleDevelopmentRegion</key><string>$(DEVELOPMENT_LANGUAGE)</string>+ <key>CFBundleDisplayName</key>+ <string>LocalSend</string><key>CFBundleExecutable</key><string>$(EXECUTABLE_NAME)</string><key>CFBundleIconFile</key>@@ -28,5 +30,21 @@<string>MainMenu</string><key>NSPrincipalClass</key><string>NSApplication</string>+ <key>LSApplicationCategoryType</key>+ <string>public.app-category.utilities</string>++ <key>CFBundleLocalizations</key>+ <array>+ <string>de</string>+ <string>en</string>+ </array>+ <key>NSPhotoLibraryUsageDescription</key>+ <string>The app needs photo library access so that the user can select photos to share.</string>+ <key>NSPhotoLibraryAddUsageDescription</key>+ <string>The app saves received media to the photo library.</string>+ <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>+ <string>The app requires the local IP to communicate.</string>+ <key>NSLocationWhenInUseUsageDescription</key>+ <string>The app requires the local IP to communicate.</string></dict></plist>diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlementsindex 852fa1a4..558e9968 100644--- a/macos/Runner/Release.entitlements+++ b/macos/Runner/Release.entitlements@@ -4,5 +4,11 @@<dict><key>com.apple.security.app-sandbox</key><true/>+ <key>com.apple.security.network.server</key>+ <true/>+ <key>com.apple.security.network.client</key>+ <true/>+ <key>com.apple.security.files.downloads.read-write</key>+ <true/></dict></plist>