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/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..6d3f2eb --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,113 @@ +PODS: + - dchs_flutter_beacon (0.6.5): + - Flutter + - Flutter (1.0.0) + - permission_handler_apple (9.3.0): + - Flutter + - shared_preferences_foundation (0.0.1): + - Flutter + - FlutterMacOS + - Stripe (24.7.0): + - StripeApplePay (= 24.7.0) + - StripeCore (= 24.7.0) + - StripePayments (= 24.7.0) + - StripePaymentsUI (= 24.7.0) + - StripeUICore (= 24.7.0) + - stripe_ios (0.0.1): + - Flutter + - Stripe (~> 24.7.0) + - stripe_ios/stripe_ios (= 0.0.1) + - stripe_ios/stripe_objc (= 0.0.1) + - StripeApplePay (~> 24.7.0) + - StripeFinancialConnections (~> 24.7.0) + - StripePayments (~> 24.7.0) + - StripePaymentSheet (~> 24.7.0) + - StripePaymentsUI (~> 24.7.0) + - stripe_ios/stripe_ios (0.0.1): + - Flutter + - Stripe (~> 24.7.0) + - stripe_ios/stripe_objc + - StripeApplePay (~> 24.7.0) + - StripeFinancialConnections (~> 24.7.0) + - StripePayments (~> 24.7.0) + - StripePaymentSheet (~> 24.7.0) + - StripePaymentsUI (~> 24.7.0) + - stripe_ios/stripe_objc (0.0.1): + - Flutter + - Stripe (~> 24.7.0) + - StripeApplePay (~> 24.7.0) + - StripeFinancialConnections (~> 24.7.0) + - StripePayments (~> 24.7.0) + - StripePaymentSheet (~> 24.7.0) + - StripePaymentsUI (~> 24.7.0) + - StripeApplePay (24.7.0): + - StripeCore (= 24.7.0) + - StripeCore (24.7.0) + - StripeFinancialConnections (24.7.0): + - StripeCore (= 24.7.0) + - StripeUICore (= 24.7.0) + - StripePayments (24.7.0): + - StripeCore (= 24.7.0) + - StripePayments/Stripe3DS2 (= 24.7.0) + - StripePayments/Stripe3DS2 (24.7.0): + - StripeCore (= 24.7.0) + - StripePaymentSheet (24.7.0): + - StripeApplePay (= 24.7.0) + - StripeCore (= 24.7.0) + - StripePayments (= 24.7.0) + - StripePaymentsUI (= 24.7.0) + - StripePaymentsUI (24.7.0): + - StripeCore (= 24.7.0) + - StripePayments (= 24.7.0) + - StripeUICore (= 24.7.0) + - StripeUICore (24.7.0): + - StripeCore (= 24.7.0) + +DEPENDENCIES: + - dchs_flutter_beacon (from `.symlinks/plugins/dchs_flutter_beacon/ios`) + - Flutter (from `Flutter`) + - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) + - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) + - stripe_ios (from `.symlinks/plugins/stripe_ios/ios`) + +SPEC REPOS: + trunk: + - Stripe + - StripeApplePay + - StripeCore + - StripeFinancialConnections + - StripePayments + - StripePaymentSheet + - StripePaymentsUI + - StripeUICore + +EXTERNAL SOURCES: + dchs_flutter_beacon: + :path: ".symlinks/plugins/dchs_flutter_beacon/ios" + Flutter: + :path: Flutter + permission_handler_apple: + :path: ".symlinks/plugins/permission_handler_apple/ios" + shared_preferences_foundation: + :path: ".symlinks/plugins/shared_preferences_foundation/darwin" + stripe_ios: + :path: ".symlinks/plugins/stripe_ios/ios" + +SPEC CHECKSUMS: + dchs_flutter_beacon: 88d72cc467de508d621e454ea66c6231d0897d4c + Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 + permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d + shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb + Stripe: 8a03a78bfa16b197f9fac51e42670ac563b34388 + stripe_ios: 95bdf6ba58efd184fe1dfed194cd8692299d66ca + StripeApplePay: 3c1b43d9b5130f6b714863bf8c9482c24168ab27 + StripeCore: 4955c2af14446db04818ad043d19d8f97b73c5fa + StripeFinancialConnections: 8cf97b04c2f354879a2a5473126efac38f11f406 + StripePayments: 91820845bece6117809bcfdcaef39c84c2b4cae5 + StripePaymentSheet: 1810187cbdbc73410b8fb86cecafaaa41c1481fc + StripePaymentsUI: 326376e23caa369d1f58041bdb858c89c2b17ed4 + StripeUICore: 17a4f3adb81ae05ab885e1b353022a430176eab1 + +PODFILE CHECKSUM: 3c63482e143d1b91d2d2560aee9fb04ecc74ac7e + +COCOAPODS: 1.16.2 diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/Runner/RunnerTests/RunnerTests.swift similarity index 100% rename from ios/RunnerTests/RunnerTests.swift rename to ios/Runner/RunnerTests/RunnerTests.swift diff --git a/lib/app/app_router.dart b/lib/app/app_router.dart index 7b01076..7102f0d 100644 --- a/lib/app/app_router.dart +++ b/lib/app/app_router.dart @@ -24,6 +24,7 @@ class AppRoutes { restaurantSelect: (_) => const RestaurantSelectScreen(), servicePointSelect: (_) => const ServicePointSelectScreen(), menuBrowse: (_) => const MenuBrowseScreen(), + "/menu_browse": (_) => const MenuBrowseScreen(), // Alias for menuBrowse cartView: (_) => const CartViewScreen(), }; } 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