Skip to content

Commit 3dfdb76

Browse files
committed
feat: add Makefile and update macOS example configuration
- Add Makefile with bootstrap command for melos setup - Update minimum macOS version from 10.14 to 10.15 in example app - Modernize Swift code: replace @NSApplicationMain with @main - Add applicationSupportsSecureRestorableState method for secure restoration - Update Podfile.lock and project files to reflect configuration changes
1 parent b722a0a commit 3dfdb76

File tree

7 files changed

+60
-7
lines changed

7 files changed

+60
-7
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bootstrap:
2+
@melos bs
3+
4+
.PHONY: bootstrap

packages/supabase_flutter/example/ios/Podfile.lock

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
PODS:
22
- app_links (0.0.2):
33
- Flutter
4+
- FBAEMKit (18.0.0):
5+
- FBSDKCoreKit_Basics (= 18.0.0)
6+
- FBSDKCoreKit (18.0.0):
7+
- FBAEMKit (= 18.0.0)
8+
- FBSDKCoreKit_Basics (= 18.0.0)
9+
- FBSDKCoreKit_Basics (18.0.0)
10+
- FBSDKLoginKit (18.0.0):
11+
- FBSDKCoreKit (= 18.0.0)
412
- Flutter (1.0.0)
13+
- flutter_facebook_auth (7.1.2):
14+
- FBSDKLoginKit (~> 18.0.0)
15+
- Flutter
16+
- flutter_secure_storage (6.0.0):
17+
- Flutter
518
- path_provider_foundation (0.0.1):
619
- Flutter
720
- FlutterMacOS
@@ -14,15 +27,28 @@ PODS:
1427
DEPENDENCIES:
1528
- app_links (from `.symlinks/plugins/app_links/ios`)
1629
- Flutter (from `Flutter`)
30+
- flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`)
31+
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
1732
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
1833
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
1934
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
2035

36+
SPEC REPOS:
37+
trunk:
38+
- FBAEMKit
39+
- FBSDKCoreKit
40+
- FBSDKCoreKit_Basics
41+
- FBSDKLoginKit
42+
2143
EXTERNAL SOURCES:
2244
app_links:
2345
:path: ".symlinks/plugins/app_links/ios"
2446
Flutter:
2547
:path: Flutter
48+
flutter_facebook_auth:
49+
:path: ".symlinks/plugins/flutter_facebook_auth/ios"
50+
flutter_secure_storage:
51+
:path: ".symlinks/plugins/flutter_secure_storage/ios"
2652
path_provider_foundation:
2753
:path: ".symlinks/plugins/path_provider_foundation/darwin"
2854
shared_preferences_foundation:
@@ -32,7 +58,13 @@ EXTERNAL SOURCES:
3258

3359
SPEC CHECKSUMS:
3460
app_links: f3e17e4ee5e357b39d8b95290a9b2c299fca71c6
61+
FBAEMKit: e34530df538b8eb8aeb53c35867715ba6c63ef0c
62+
FBSDKCoreKit: d3f479a69127acebb1c6aad91c1a33907bcf6c2f
63+
FBSDKCoreKit_Basics: 017b6dc2a1862024815a8229e75661e627ac1e29
64+
FBSDKLoginKit: 5875762d1fe09ddcb05d03365d4f5dc34413843d
3565
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
66+
flutter_facebook_auth: fa503a7103e482577bf50694ceefe6b61a78ef1a
67+
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
3668
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
3769
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
3870
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe

packages/supabase_flutter/example/macos/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :osx, '10.14'
1+
platform :osx, '10.15'
22

33
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
44
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/supabase_flutter/example/macos/Podfile.lock

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
PODS:
22
- app_links (1.0.0):
33
- FlutterMacOS
4+
- facebook_auth_desktop (0.0.3):
5+
- FlutterMacOS
6+
- flutter_secure_storage_macos (6.1.3):
7+
- FlutterMacOS
48
- FlutterMacOS (1.0.0)
59
- path_provider_foundation (0.0.1):
610
- Flutter
@@ -13,6 +17,8 @@ PODS:
1317

1418
DEPENDENCIES:
1519
- app_links (from `Flutter/ephemeral/.symlinks/plugins/app_links/macos`)
20+
- facebook_auth_desktop (from `Flutter/ephemeral/.symlinks/plugins/facebook_auth_desktop/macos`)
21+
- flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`)
1622
- FlutterMacOS (from `Flutter/ephemeral`)
1723
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
1824
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
@@ -21,6 +27,10 @@ DEPENDENCIES:
2127
EXTERNAL SOURCES:
2228
app_links:
2329
:path: Flutter/ephemeral/.symlinks/plugins/app_links/macos
30+
facebook_auth_desktop:
31+
:path: Flutter/ephemeral/.symlinks/plugins/facebook_auth_desktop/macos
32+
flutter_secure_storage_macos:
33+
:path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos
2434
FlutterMacOS:
2535
:path: Flutter/ephemeral
2636
path_provider_foundation:
@@ -32,11 +42,13 @@ EXTERNAL SOURCES:
3242

3343
SPEC CHECKSUMS:
3444
app_links: 86a57d95d4dec830373b8c85c21d1c59a4a5dc21
35-
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
45+
facebook_auth_desktop: 0ec755e3b01669ec14776af18b6945671a788916
46+
flutter_secure_storage_macos: c2754d3483d20bb207bb9e5a14f1b8e771abcdb9
47+
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
3648
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
3749
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
3850
url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404
3951

40-
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
52+
PODFILE CHECKSUM: 0d3963a09fc94f580682bd88480486da345dc3f0
4153

4254
COCOAPODS: 1.15.2

packages/supabase_flutter/example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
406406
GCC_WARN_UNUSED_FUNCTION = YES;
407407
GCC_WARN_UNUSED_VARIABLE = YES;
408-
MACOSX_DEPLOYMENT_TARGET = 10.14;
408+
MACOSX_DEPLOYMENT_TARGET = 10.15;
409409
MTL_ENABLE_DEBUG_INFO = NO;
410410
SDKROOT = macosx;
411411
SWIFT_COMPILATION_MODE = wholemodule;
@@ -484,7 +484,7 @@
484484
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
485485
GCC_WARN_UNUSED_FUNCTION = YES;
486486
GCC_WARN_UNUSED_VARIABLE = YES;
487-
MACOSX_DEPLOYMENT_TARGET = 10.14;
487+
MACOSX_DEPLOYMENT_TARGET = 10.15;
488488
MTL_ENABLE_DEBUG_INFO = YES;
489489
ONLY_ACTIVE_ARCH = YES;
490490
SDKROOT = macosx;
@@ -531,7 +531,7 @@
531531
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
532532
GCC_WARN_UNUSED_FUNCTION = YES;
533533
GCC_WARN_UNUSED_VARIABLE = YES;
534-
MACOSX_DEPLOYMENT_TARGET = 10.14;
534+
MACOSX_DEPLOYMENT_TARGET = 10.15;
535535
MTL_ENABLE_DEBUG_INFO = NO;
536536
SDKROOT = macosx;
537537
SWIFT_COMPILATION_MODE = wholemodule;

packages/supabase_flutter/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
ignoresPersistentStateOnLaunch = "NO"
4949
debugDocumentVersioning = "YES"
5050
debugServiceExtension = "internal"
51+
enableGPUValidationMode = "1"
5152
allowLocationSimulation = "YES">
5253
<BuildableProductRunnable
5354
runnableDebuggingMode = "0">
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import Cocoa
22
import FlutterMacOS
33

4-
@NSApplicationMain
4+
@main
55
class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true
88
}
9+
10+
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11+
return true
12+
}
913
}

0 commit comments

Comments
 (0)