diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig index 592ceee..ec97fc6 100644 --- a/ios/Flutter/Debug.xcconfig +++ b/ios/Flutter/Debug.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig index 592ceee..c4855bf 100644 --- a/ios/Flutter/Release.xcconfig +++ b/ios/Flutter/Release.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..620e46e --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,43 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '13.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/lib/api/api_service.dart b/lib/api/api_service.dart index 7b01e8d..f8f3103 100644 --- a/lib/api/api_service.dart +++ b/lib/api/api_service.dart @@ -8,18 +8,18 @@ import 'package:flutter/services.dart'; import 'package:gwid/connection/connection_logger.dart'; import 'package:gwid/connection/connection_state.dart' as conn_state; import 'package:gwid/connection/health_monitor.dart'; -import 'package:gwid/image_cache_service.dart'; +import 'package:gwid/utils/image_cache_service.dart'; import 'package:gwid/models/complaint.dart'; import 'package:gwid/models/contact.dart'; import 'package:gwid/models/message.dart'; import 'package:gwid/models/profile.dart'; -import 'package:gwid/proxy_service.dart'; +import 'package:gwid/utils/proxy_service.dart'; import 'package:gwid/services/account_manager.dart'; import 'package:gwid/services/avatar_cache_service.dart'; import 'package:gwid/services/cache_service.dart'; import 'package:gwid/services/chat_cache_service.dart'; import 'package:gwid/services/profile_cache_service.dart'; -import 'package:gwid/spoofing_service.dart'; +import 'package:gwid/utils/spoofing_service.dart'; import 'package:http/http.dart' as http; import 'package:image_picker/image_picker.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/connection_lifecycle_manager.dart b/lib/connection_lifecycle_manager.dart index fdffb8e..fde681b 100644 --- a/lib/connection_lifecycle_manager.dart +++ b/lib/connection_lifecycle_manager.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:gwid/api/api_service.dart'; -import 'theme_provider.dart'; +import 'utils/theme_provider.dart'; class ConnectionLifecycleManager extends StatefulWidget { final Widget child; diff --git a/lib/main.dart b/lib/main.dart index 7e0bb9f..27a796f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -3,9 +3,9 @@ import 'package:dynamic_color/dynamic_color.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:intl/date_symbol_data_local.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'home_screen.dart'; -import 'phone_entry_screen.dart'; -import 'theme_provider.dart'; +import 'screens/home_screen.dart'; +import 'screens/phone_entry_screen.dart'; +import 'utils/theme_provider.dart'; import 'package:provider/provider.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter/services.dart'; diff --git a/lib/cache_management_screen.dart b/lib/screens/cache_management_screen.dart similarity index 100% rename from lib/cache_management_screen.dart rename to lib/screens/cache_management_screen.dart diff --git a/lib/channels_list_screen.dart b/lib/screens/channels_list_screen.dart similarity index 99% rename from lib/channels_list_screen.dart rename to lib/screens/channels_list_screen.dart index a014923..167ee3e 100644 --- a/lib/channels_list_screen.dart +++ b/lib/screens/channels_list_screen.dart @@ -4,7 +4,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:gwid/api/api_service.dart'; import 'package:gwid/models/channel.dart'; -import 'package:gwid/search_channels_screen.dart'; +import 'package:gwid/screens/search_channels_screen.dart'; class ChannelsListScreen extends StatefulWidget { const ChannelsListScreen({super.key}); diff --git a/lib/chat_screen.dart b/lib/screens/chat_screen.dart similarity index 99% rename from lib/chat_screen.dart rename to lib/screens/chat_screen.dart index 518488c..8d0236b 100644 --- a/lib/chat_screen.dart +++ b/lib/screens/chat_screen.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:gwid/api/api_service.dart'; import 'package:flutter/services.dart'; import 'package:gwid/models/contact.dart'; diff --git a/lib/chats_screen.dart b/lib/screens/chats_screen.dart similarity index 99% rename from lib/chats_screen.dart rename to lib/screens/chats_screen.dart index 55a40c3..14249aa 100644 --- a/lib/chats_screen.dart +++ b/lib/screens/chats_screen.dart @@ -6,25 +6,25 @@ import 'package:flutter/scheduler.dart'; import 'package:intl/intl.dart'; import 'package:gwid/api/api_service.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; -import 'package:gwid/chat_screen.dart'; -import 'package:gwid/manage_account_screen.dart'; +import 'package:gwid/screens/chat_screen.dart'; +import 'package:gwid/screens/manage_account_screen.dart'; import 'package:gwid/screens/settings/settings_screen.dart'; -import 'package:gwid/phone_entry_screen.dart'; +import 'package:gwid/screens/phone_entry_screen.dart'; import 'package:gwid/models/chat.dart'; import 'package:gwid/models/contact.dart'; import 'package:gwid/models/message.dart'; import 'package:gwid/models/profile.dart'; import 'package:gwid/models/chat_folder.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:provider/provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:gwid/join_group_screen.dart'; -import 'package:gwid/search_contact_screen.dart'; -import 'package:gwid/channels_list_screen.dart'; +import 'package:gwid/screens/join_group_screen.dart'; +import 'package:gwid/screens/search_contact_screen.dart'; +import 'package:gwid/screens/channels_list_screen.dart'; import 'package:gwid/models/channel.dart'; -import 'package:gwid/search_channels_screen.dart'; -import 'package:gwid/downloads_screen.dart'; -import 'package:gwid/user_id_lookup_screen.dart'; +import 'package:gwid/screens/search_channels_screen.dart'; +import 'package:gwid/screens/downloads_screen.dart'; +import 'package:gwid/utils/user_id_lookup_screen.dart'; import 'package:gwid/screens/music_library_screen.dart'; import 'package:gwid/widgets/message_preview_dialog.dart'; import 'package:gwid/services/chat_read_settings_service.dart'; diff --git a/lib/custom_request_screen.dart b/lib/screens/custom_request_screen.dart similarity index 100% rename from lib/custom_request_screen.dart rename to lib/screens/custom_request_screen.dart diff --git a/lib/debug_screen.dart b/lib/screens/debug_screen.dart similarity index 99% rename from lib/debug_screen.dart rename to lib/screens/debug_screen.dart index c80fefa..dbfe8a1 100644 --- a/lib/debug_screen.dart +++ b/lib/screens/debug_screen.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter/scheduler.dart'; -import 'package:gwid/cache_management_screen.dart'; // Добавлен импорт +import 'package:gwid/screens/cache_management_screen.dart'; // Добавлен импорт import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/phone_entry_screen.dart'; -import 'package:gwid/custom_request_screen.dart'; +import 'package:gwid/screens/phone_entry_screen.dart'; +import 'package:gwid/screens/custom_request_screen.dart'; import 'dart:async'; class DebugScreen extends StatelessWidget { diff --git a/lib/downloads_screen.dart b/lib/screens/downloads_screen.dart similarity index 100% rename from lib/downloads_screen.dart rename to lib/screens/downloads_screen.dart diff --git a/lib/home_screen.dart b/lib/screens/home_screen.dart similarity index 99% rename from lib/home_screen.dart rename to lib/screens/home_screen.dart index 2fd13da..be3d3c4 100644 --- a/lib/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:gwid/chats_screen.dart'; -import 'package:gwid/phone_entry_screen.dart'; +import 'package:gwid/screens/chats_screen.dart'; +import 'package:gwid/screens/phone_entry_screen.dart'; import 'package:gwid/api/api_service.dart'; import 'package:gwid/screens/settings/reconnection_screen.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -10,9 +10,9 @@ import 'package:app_links/app_links.dart'; import 'package:gwid/models/chat.dart'; import 'package:gwid/models/contact.dart'; import 'package:gwid/models/profile.dart'; -import 'package:gwid/chat_screen.dart'; +import 'package:gwid/screens/chat_screen.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); diff --git a/lib/join_group_screen.dart b/lib/screens/join_group_screen.dart similarity index 100% rename from lib/join_group_screen.dart rename to lib/screens/join_group_screen.dart diff --git a/lib/manage_account_screen.dart b/lib/screens/manage_account_screen.dart similarity index 99% rename from lib/manage_account_screen.dart rename to lib/screens/manage_account_screen.dart index 9918ff6..911997f 100644 --- a/lib/manage_account_screen.dart +++ b/lib/screens/manage_account_screen.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:gwid/api/api_service.dart'; import 'package:gwid/models/profile.dart'; -import 'package:gwid/phone_entry_screen.dart'; +import 'package:gwid/screens/phone_entry_screen.dart'; import 'package:gwid/services/profile_cache_service.dart'; import 'package:gwid/services/local_profile_manager.dart'; import 'package:image_picker/image_picker.dart'; diff --git a/lib/otp_screen.dart b/lib/screens/otp_screen.dart similarity index 98% rename from lib/otp_screen.dart rename to lib/screens/otp_screen.dart index f88a18f..2871b28 100644 --- a/lib/otp_screen.dart +++ b/lib/screens/otp_screen.dart @@ -3,8 +3,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:pinput/pinput.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/chats_screen.dart'; -import 'package:gwid/password_auth_screen.dart'; +import 'package:gwid/screens/chats_screen.dart'; +import 'package:gwid/screens/password_auth_screen.dart'; class OTPScreen extends StatefulWidget { final String phoneNumber; diff --git a/lib/password_auth_screen.dart b/lib/screens/password_auth_screen.dart similarity index 99% rename from lib/password_auth_screen.dart rename to lib/screens/password_auth_screen.dart index 448daa0..c469a64 100644 --- a/lib/password_auth_screen.dart +++ b/lib/screens/password_auth_screen.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/chats_screen.dart'; +import 'package:gwid/screens/chats_screen.dart'; class PasswordAuthScreen extends StatefulWidget { const PasswordAuthScreen({super.key}); diff --git a/lib/password_management_screen.dart b/lib/screens/password_management_screen.dart similarity index 100% rename from lib/password_management_screen.dart rename to lib/screens/password_management_screen.dart diff --git a/lib/phone_entry_screen.dart b/lib/screens/phone_entry_screen.dart similarity index 99% rename from lib/phone_entry_screen.dart rename to lib/screens/phone_entry_screen.dart index 755d78d..de87056 100644 --- a/lib/phone_entry_screen.dart +++ b/lib/screens/phone_entry_screen.dart @@ -4,11 +4,11 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/otp_screen.dart'; -import 'package:gwid/proxy_service.dart'; +import 'package:gwid/screens/otp_screen.dart'; +import 'package:gwid/utils/proxy_service.dart'; import 'package:gwid/screens/settings/auth_settings_screen.dart'; -import 'package:gwid/token_auth_screen.dart'; -import 'package:gwid/tos_screen.dart'; // Импорт экрана ToS +import 'package:gwid/screens/token_auth_screen.dart'; +import 'package:gwid/screens/tos_screen.dart'; // Импорт экрана ToS import 'package:mask_text_input_formatter/mask_text_input_formatter.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:url_launcher/url_launcher.dart'; diff --git a/lib/profile_menu_dialog.dart b/lib/screens/profile_menu_dialog.dart similarity index 98% rename from lib/profile_menu_dialog.dart rename to lib/screens/profile_menu_dialog.dart index f9828e1..a71031c 100644 --- a/lib/profile_menu_dialog.dart +++ b/lib/screens/profile_menu_dialog.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; -import 'package:gwid/manage_account_screen.dart'; +import 'package:gwid/screens/manage_account_screen.dart'; import 'package:gwid/models/profile.dart'; import 'package:gwid/screens/settings/settings_screen.dart'; -import 'package:gwid/phone_entry_screen.dart'; +import 'package:gwid/screens/phone_entry_screen.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; class ProfileMenuDialog extends StatefulWidget { final Profile? myProfile; diff --git a/lib/search_channels_screen.dart b/lib/screens/search_channels_screen.dart similarity index 100% rename from lib/search_channels_screen.dart rename to lib/screens/search_channels_screen.dart diff --git a/lib/search_contact_screen.dart b/lib/screens/search_contact_screen.dart similarity index 100% rename from lib/search_contact_screen.dart rename to lib/screens/search_contact_screen.dart diff --git a/lib/screens/settings/about_screen.dart b/lib/screens/settings/about_screen.dart index e7895f3..6cd5bf6 100644 --- a/lib/screens/settings/about_screen.dart +++ b/lib/screens/settings/about_screen.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:gwid/tos_screen.dart'; +import 'package:gwid/screens/tos_screen.dart'; import 'package:url_launcher/url_launcher.dart'; class AboutScreen extends StatelessWidget { diff --git a/lib/screens/settings/animations_screen.dart b/lib/screens/settings/animations_screen.dart index fedf5ff..286c039 100644 --- a/lib/screens/settings/animations_screen.dart +++ b/lib/screens/settings/animations_screen.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; class AnimationsScreen extends StatelessWidget { diff --git a/lib/screens/settings/appearance_settings_screen.dart b/lib/screens/settings/appearance_settings_screen.dart index 238d0c0..be92d99 100644 --- a/lib/screens/settings/appearance_settings_screen.dart +++ b/lib/screens/settings/appearance_settings_screen.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:gwid/screens/settings/customization_screen.dart'; import 'package:gwid/screens/settings/animations_screen.dart'; diff --git a/lib/screens/settings/auth_settings_screen.dart b/lib/screens/settings/auth_settings_screen.dart index ccdf46b..e836ed1 100644 --- a/lib/screens/settings/auth_settings_screen.dart +++ b/lib/screens/settings/auth_settings_screen.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; -import 'package:gwid/proxy_service.dart'; +import 'package:gwid/utils/proxy_service.dart'; import 'package:gwid/screens/settings/proxy_settings_screen.dart'; import 'package:gwid/screens/settings/session_spoofing_screen.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/screens/settings/bypass_screen.dart b/lib/screens/settings/bypass_screen.dart index 6f786b9..7235884 100644 --- a/lib/screens/settings/bypass_screen.dart +++ b/lib/screens/settings/bypass_screen.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; class BypassScreen extends StatelessWidget { final bool isModal; diff --git a/lib/screens/settings/customization_screen.dart b/lib/screens/settings/customization_screen.dart index 38c09eb..66e359b 100644 --- a/lib/screens/settings/customization_screen.dart +++ b/lib/screens/settings/customization_screen.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_colorpicker/flutter_colorpicker.dart'; import 'package:image_picker/image_picker.dart'; import 'package:provider/provider.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'dart:io'; import 'dart:ui'; import 'package:gwid/models/message.dart'; diff --git a/lib/screens/settings/export_session_screen.dart b/lib/screens/settings/export_session_screen.dart index a6fd35b..5706706 100644 --- a/lib/screens/settings/export_session_screen.dart +++ b/lib/screens/settings/export_session_screen.dart @@ -4,8 +4,8 @@ import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:file_picker/file_picker.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/proxy_service.dart'; -import 'package:gwid/spoofing_service.dart'; +import 'package:gwid/utils/proxy_service.dart'; +import 'package:gwid/utils/spoofing_service.dart'; import 'package:encrypt/encrypt.dart' as encrypt; import 'package:crypto/crypto.dart' as crypto; diff --git a/lib/screens/settings/privacy_settings_screen.dart b/lib/screens/settings/privacy_settings_screen.dart index 215e69b..f79be74 100644 --- a/lib/screens/settings/privacy_settings_screen.dart +++ b/lib/screens/settings/privacy_settings_screen.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:provider/provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; -import 'package:gwid/password_management_screen.dart'; +import 'package:gwid/screens/password_management_screen.dart'; class PrivacySettingsScreen extends StatefulWidget { const PrivacySettingsScreen({super.key}); diff --git a/lib/screens/settings/proxy_settings_screen.dart b/lib/screens/settings/proxy_settings_screen.dart index 12ec0fc..04ee2e7 100644 --- a/lib/screens/settings/proxy_settings_screen.dart +++ b/lib/screens/settings/proxy_settings_screen.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:gwid/proxy_service.dart'; -import 'package:gwid/proxy_settings.dart'; +import 'package:gwid/utils/proxy_service.dart'; +import 'package:gwid/utils/proxy_settings.dart'; class ProxySettingsScreen extends StatefulWidget { const ProxySettingsScreen({super.key}); diff --git a/lib/screens/settings/reconnection_screen.dart b/lib/screens/settings/reconnection_screen.dart index ecefa1f..57a08e5 100644 --- a/lib/screens/settings/reconnection_screen.dart +++ b/lib/screens/settings/reconnection_screen.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/home_screen.dart'; +import 'package:gwid/screens/home_screen.dart'; class ReconnectionScreen extends StatefulWidget { const ReconnectionScreen({super.key}); diff --git a/lib/screens/settings/session_spoofing_screen.dart b/lib/screens/settings/session_spoofing_screen.dart index dee313c..b726fef 100644 --- a/lib/screens/settings/session_spoofing_screen.dart +++ b/lib/screens/settings/session_spoofing_screen.dart @@ -8,7 +8,7 @@ import 'package:flutter_timezone/flutter_timezone.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:gwid/api/api_service.dart'; import 'package:uuid/uuid.dart'; -import 'package:gwid/device_presets.dart'; +import 'package:gwid/utils/device_presets.dart'; enum SpoofingMethod { partial, full } diff --git a/lib/screens/settings/settings_screen.dart b/lib/screens/settings/settings_screen.dart index c25450c..65150ca 100644 --- a/lib/screens/settings/settings_screen.dart +++ b/lib/screens/settings/settings_screen.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:gwid/models/profile.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/manage_account_screen.dart'; +import 'package:gwid/screens/manage_account_screen.dart'; import 'package:gwid/screens/settings/appearance_settings_screen.dart'; import 'package:gwid/screens/settings/notification_settings_screen.dart'; import 'package:gwid/screens/settings/privacy_security_screen.dart'; @@ -9,9 +9,9 @@ import 'package:gwid/screens/settings/storage_screen.dart'; import 'package:gwid/screens/settings/network_settings_screen.dart'; import 'package:gwid/screens/settings/bypass_screen.dart'; import 'package:gwid/screens/settings/about_screen.dart'; -import 'package:gwid/debug_screen.dart'; +import 'package:gwid/screens/debug_screen.dart'; import 'package:gwid/screens/settings/komet_misc_screen.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:provider/provider.dart'; class SettingsScreen extends StatefulWidget { diff --git a/lib/token_auth_screen.dart b/lib/screens/token_auth_screen.dart similarity index 98% rename from lib/token_auth_screen.dart rename to lib/screens/token_auth_screen.dart index c5805d1..a2c4a13 100644 --- a/lib/token_auth_screen.dart +++ b/lib/screens/token_auth_screen.dart @@ -11,9 +11,9 @@ import 'package:shared_preferences/shared_preferences.dart'; import 'package:gwid/api/api_service.dart'; -import 'package:gwid/home_screen.dart'; -import 'package:gwid/proxy_service.dart'; -import 'package:gwid/proxy_settings.dart'; +import 'package:gwid/screens/home_screen.dart'; +import 'package:gwid/utils/proxy_service.dart'; +import 'package:gwid/utils/proxy_settings.dart'; import 'package:gwid/screens/settings/qr_scanner_screen.dart'; import 'package:gwid/screens/settings/session_spoofing_screen.dart'; diff --git a/lib/tos_screen.dart b/lib/screens/tos_screen.dart similarity index 100% rename from lib/tos_screen.dart rename to lib/screens/tos_screen.dart diff --git a/lib/device_presets.dart b/lib/utils/device_presets.dart similarity index 100% rename from lib/device_presets.dart rename to lib/utils/device_presets.dart diff --git a/lib/full_screen_video_player.dart b/lib/utils/full_screen_video_player.dart similarity index 100% rename from lib/full_screen_video_player.dart rename to lib/utils/full_screen_video_player.dart diff --git a/lib/image_cache_service.dart b/lib/utils/image_cache_service.dart similarity index 100% rename from lib/image_cache_service.dart rename to lib/utils/image_cache_service.dart diff --git a/lib/packet_framer.dart b/lib/utils/packet_framer.dart similarity index 100% rename from lib/packet_framer.dart rename to lib/utils/packet_framer.dart diff --git a/lib/proxy_service.dart b/lib/utils/proxy_service.dart similarity index 100% rename from lib/proxy_service.dart rename to lib/utils/proxy_service.dart diff --git a/lib/proxy_settings.dart b/lib/utils/proxy_settings.dart similarity index 100% rename from lib/proxy_settings.dart rename to lib/utils/proxy_settings.dart diff --git a/lib/spoofing_service.dart b/lib/utils/spoofing_service.dart similarity index 100% rename from lib/spoofing_service.dart rename to lib/utils/spoofing_service.dart diff --git a/lib/theme_provider.dart b/lib/utils/theme_provider.dart similarity index 100% rename from lib/theme_provider.dart rename to lib/utils/theme_provider.dart diff --git a/lib/universal_io.dart b/lib/utils/universal_io.dart similarity index 100% rename from lib/universal_io.dart rename to lib/utils/universal_io.dart diff --git a/lib/user_id_lookup_screen.dart b/lib/utils/user_id_lookup_screen.dart similarity index 100% rename from lib/user_id_lookup_screen.dart rename to lib/utils/user_id_lookup_screen.dart diff --git a/lib/widgets/chat_message_bubble.dart b/lib/widgets/chat_message_bubble.dart index 3f1d4e7..98bdd7e 100644 --- a/lib/widgets/chat_message_bubble.dart +++ b/lib/widgets/chat_message_bubble.dart @@ -9,19 +9,19 @@ import 'package:crypto/crypto.dart' as crypto; import 'package:intl/intl.dart'; import 'package:gwid/models/message.dart'; import 'package:gwid/models/contact.dart'; -import 'package:gwid/theme_provider.dart'; +import 'package:gwid/utils/theme_provider.dart'; import 'package:provider/provider.dart'; import 'package:flutter/services.dart'; import 'dart:ui'; import 'package:flutter_linkify/flutter_linkify.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:gwid/chat_screen.dart'; +import 'package:gwid/screens/chat_screen.dart'; import 'package:gwid/services/avatar_cache_service.dart'; import 'package:gwid/api/api_service.dart'; import 'dart:async'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:open_file/open_file.dart'; -import 'package:gwid/full_screen_video_player.dart'; +import 'package:gwid/utils/full_screen_video_player.dart'; import 'package:just_audio/just_audio.dart'; import 'package:gwid/services/cache_service.dart'; import 'package:video_player/video_player.dart'; diff --git a/lib/widgets/message_preview_dialog.dart b/lib/widgets/message_preview_dialog.dart index 56cb796..47758d9 100644 --- a/lib/widgets/message_preview_dialog.dart +++ b/lib/widgets/message_preview_dialog.dart @@ -7,7 +7,7 @@ import 'package:gwid/models/profile.dart'; import 'package:gwid/api/api_service.dart'; import 'package:gwid/widgets/chat_message_bubble.dart'; import 'package:gwid/widgets/contact_name_widget.dart'; -import 'package:gwid/chat_screen.dart'; +import 'package:gwid/screens/chat_screen.dart'; class ControlMessageChip extends StatelessWidget { final Message message; diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig index c2efd0b..4b81f9b 100644 --- a/macos/Flutter/Flutter-Debug.xcconfig +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig index c2efd0b..5caa9d1 100644 --- a/macos/Flutter/Flutter-Release.xcconfig +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Podfile b/macos/Podfile new file mode 100644 index 0000000..ff5ddb3 --- /dev/null +++ b/macos/Podfile @@ -0,0 +1,42 @@ +platform :osx, '10.15' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 325ea1b..8adfbe3 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -27,6 +27,8 @@ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 3BE50CEC3B857AFB79ED4B51 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 388CA5C37E59612ABAEE6B9C /* Pods_RunnerTests.framework */; }; + CDF433146D1871A7EB701871 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 89C4DA26E1D86992C17E0203 /* Pods_Runner.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -60,11 +62,13 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 1513A8E85A871669A708EFD4 /* 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 = ""; }; + 1C6F713FF81D9CB5A449F94D /* 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 = ""; }; 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* gwid.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "gwid.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* gwid.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = gwid.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -76,8 +80,14 @@ 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 388CA5C37E59612ABAEE6B9C /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 49D5476057F69A4097C12C58 /* 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 = ""; }; + 6C72571057485AEF9EBFBCC3 /* 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 = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 8028056045BFBF1AE7C02DD1 /* 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 = ""; }; + 89C4DA26E1D86992C17E0203 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + FE5B3021B816A2FD94CBB7E1 /* 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 */ @@ -85,6 +95,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 3BE50CEC3B857AFB79ED4B51 /* Pods_RunnerTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -92,6 +103,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + CDF433146D1871A7EB701871 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -125,6 +137,7 @@ 331C80D6294CF71000263BE5 /* RunnerTests */, 33CC10EE2044A3C60003C045 /* Products */, D73912EC22F37F3D000D13A0 /* Frameworks */, + C9FFC0A80D79F5C5380DF8BD /* Pods */, ); sourceTree = ""; }; @@ -172,9 +185,25 @@ path = Runner; sourceTree = ""; }; + C9FFC0A80D79F5C5380DF8BD /* Pods */ = { + isa = PBXGroup; + children = ( + 1513A8E85A871669A708EFD4 /* Pods-Runner.debug.xcconfig */, + 49D5476057F69A4097C12C58 /* Pods-Runner.release.xcconfig */, + FE5B3021B816A2FD94CBB7E1 /* Pods-Runner.profile.xcconfig */, + 6C72571057485AEF9EBFBCC3 /* Pods-RunnerTests.debug.xcconfig */, + 1C6F713FF81D9CB5A449F94D /* Pods-RunnerTests.release.xcconfig */, + 8028056045BFBF1AE7C02DD1 /* Pods-RunnerTests.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; D73912EC22F37F3D000D13A0 /* Frameworks */ = { isa = PBXGroup; children = ( + 89C4DA26E1D86992C17E0203 /* Pods_Runner.framework */, + 388CA5C37E59612ABAEE6B9C /* Pods_RunnerTests.framework */, ); name = Frameworks; sourceTree = ""; @@ -186,6 +215,7 @@ isa = PBXNativeTarget; buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( + FBA29210F50B351DCEE6280B /* [CP] Check Pods Manifest.lock */, 331C80D1294CF70F00263BE5 /* Sources */, 331C80D2294CF70F00263BE5 /* Frameworks */, 331C80D3294CF70F00263BE5 /* Resources */, @@ -204,11 +234,13 @@ isa = PBXNativeTarget; buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + FBA311D2EFFD2A674FD24C1D /* [CP] Check Pods Manifest.lock */, 33CC10E92044A3C60003C045 /* Sources */, 33CC10EA2044A3C60003C045 /* Frameworks */, 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, + 2DB171D51BA2A164FD6822FA /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -291,6 +323,23 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 2DB171D51BA2A164FD6822FA /* [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; alwaysOutOfDate = 1; @@ -329,6 +378,50 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; + FBA29210F50B351DCEE6280B /* [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; + }; + FBA311D2EFFD2A674FD24C1D /* [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 */ @@ -380,6 +473,7 @@ /* Begin XCBuildConfiguration section */ 331C80DB294CF71000263BE5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 6C72571057485AEF9EBFBCC3 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; @@ -394,6 +488,7 @@ }; 331C80DC294CF71000263BE5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 1C6F713FF81D9CB5A449F94D /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; @@ -408,6 +503,7 @@ }; 331C80DD294CF71000263BE5 /* Profile */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 8028056045BFBF1AE7C02DD1 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CURRENT_PROJECT_VERSION = 1; diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedata index 1d526a1..21a3cc1 100644 --- a/macos/Runner.xcworkspace/contents.xcworkspacedata +++ b/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index dddb8a3..08c3ab1 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -8,5 +8,7 @@ com.apple.security.network.server + com.apple.security.network.client + diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index 852fa1a..ee95ab7 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -4,5 +4,7 @@ com.apple.security.app-sandbox + com.apple.security.network.client +