Skip to content

Commit 8b93f6a

Browse files
committed
fix: took daylight saving time into account
1 parent be196a5 commit 8b93f6a

7 files changed

Lines changed: 187 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

lib/src/calendar/presentation/screens/plan_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ class _PlanScreenState extends State<PlanScreen> with WindowListener, AdaptiveSt
260260

261261
// fill in the days of the current month
262262
for (var i = 0; i < lastDay.day; i++) {
263-
days.add(currentMonth.add(Duration(days: i)));
263+
// we have to copy with instead of just adding days because of daylight saving time
264+
days.add(currentMonth.copyWith(day: i + 1));
264265
}
265266

266267
// get the weekday of the last day of the month and fill in the days of the next month

macos/Podfile.lock

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
PODS:
2+
- FlutterMacOS (1.0.0)
3+
- objective_c (0.0.1):
4+
- FlutterMacOS
5+
- package_info_plus (0.0.1):
6+
- FlutterMacOS
7+
- path_provider_foundation (0.0.1):
8+
- Flutter
9+
- FlutterMacOS
10+
- screen_retriever_macos (0.0.1):
11+
- FlutterMacOS
12+
- Sentry/HybridSDK (8.56.2)
13+
- sentry_flutter (9.7.0):
14+
- Flutter
15+
- FlutterMacOS
16+
- Sentry/HybridSDK (= 8.56.2)
17+
- shared_preferences_foundation (0.0.1):
18+
- Flutter
19+
- FlutterMacOS
20+
- url_launcher_macos (0.0.1):
21+
- FlutterMacOS
22+
- window_manager (0.2.0):
23+
- FlutterMacOS
24+
25+
DEPENDENCIES:
26+
- FlutterMacOS (from `Flutter/ephemeral`)
27+
- objective_c (from `Flutter/ephemeral/.symlinks/plugins/objective_c/macos`)
28+
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)
29+
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
30+
- screen_retriever_macos (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos`)
31+
- sentry_flutter (from `Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos`)
32+
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
33+
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
34+
- window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`)
35+
36+
SPEC REPOS:
37+
trunk:
38+
- Sentry
39+
40+
EXTERNAL SOURCES:
41+
FlutterMacOS:
42+
:path: Flutter/ephemeral
43+
objective_c:
44+
:path: Flutter/ephemeral/.symlinks/plugins/objective_c/macos
45+
package_info_plus:
46+
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos
47+
path_provider_foundation:
48+
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
49+
screen_retriever_macos:
50+
:path: Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos
51+
sentry_flutter:
52+
:path: Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos
53+
shared_preferences_foundation:
54+
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
55+
url_launcher_macos:
56+
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
57+
window_manager:
58+
:path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos
59+
60+
SPEC CHECKSUMS:
61+
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
62+
objective_c: ec13431e45ba099cb734eb2829a5c1cd37986cba
63+
package_info_plus: f0052d280d17aa382b932f399edf32507174e870
64+
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
65+
screen_retriever_macos: 452e51764a9e1cdb74b3c541238795849f21557f
66+
Sentry: b53951377b78e21a734f5dc8318e333dbfc682d7
67+
sentry_flutter: 7f88e12d1882ec6e648644a7c0ff5b1466f07f99
68+
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
69+
url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673
70+
window_manager: 1d01fa7ac65a6e6f83b965471b1a7fdd3f06166c
71+
72+
PODFILE CHECKSUM: 54d867c82ac51cbd61b565781b9fada492027009
73+
74+
COCOAPODS: 1.16.2

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 100 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24+
28CACFC7F0A11D7A6912A18C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B6B9675F64FD0A2A650D5ADC /* Pods_Runner.framework */; };
2425
331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
2526
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
2627
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
2728
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2829
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2930
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
31+
50BEC383ED909AF455215595 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A52566ABB17FF2E78DB8D5EE /* Pods_RunnerTests.framework */; };
3032
/* End PBXBuildFile section */
3133

3234
/* Begin PBXContainerItemProxy section */
@@ -60,11 +62,13 @@
6062
/* End PBXCopyFilesBuildPhase section */
6163

6264
/* Begin PBXFileReference section */
65+
05D06607754378FCF0D2CB83 /* 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 = "<group>"; };
66+
10F03C6E58231A7A2BB2E4EF /* 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 = "<group>"; };
6367
331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
6468
331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
6569
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
6670
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
67-
33CC10ED2044A3C60003C045 /* lb_planner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "lb_planner.app"; sourceTree = BUILT_PRODUCTS_DIR; };
71+
33CC10ED2044A3C60003C045 /* lb_planner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = lb_planner.app; sourceTree = BUILT_PRODUCTS_DIR; };
6872
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6973
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
7074
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -76,22 +80,30 @@
7680
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
7781
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
7882
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
83+
6D22AA843B1B053F52881C39 /* 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>"; };
7984
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
85+
81D65F75A2AA704F3A5B671F /* 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>"; };
8086
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
87+
A52566ABB17FF2E78DB8D5EE /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
88+
B6B9675F64FD0A2A650D5ADC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
89+
DD7099C036EBE695FE551E0E /* 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 = "<group>"; };
90+
EBE103C0518D70400DE13462 /* 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>"; };
8191
/* End PBXFileReference section */
8292

8393
/* Begin PBXFrameworksBuildPhase section */
8494
331C80D2294CF70F00263BE5 /* Frameworks */ = {
8595
isa = PBXFrameworksBuildPhase;
8696
buildActionMask = 2147483647;
8797
files = (
98+
50BEC383ED909AF455215595 /* Pods_RunnerTests.framework in Frameworks */,
8899
);
89100
runOnlyForDeploymentPostprocessing = 0;
90101
};
91102
33CC10EA2044A3C60003C045 /* Frameworks */ = {
92103
isa = PBXFrameworksBuildPhase;
93104
buildActionMask = 2147483647;
94105
files = (
106+
28CACFC7F0A11D7A6912A18C /* Pods_Runner.framework in Frameworks */,
95107
);
96108
runOnlyForDeploymentPostprocessing = 0;
97109
};
@@ -125,6 +137,7 @@
125137
331C80D6294CF71000263BE5 /* RunnerTests */,
126138
33CC10EE2044A3C60003C045 /* Products */,
127139
D73912EC22F37F3D000D13A0 /* Frameworks */,
140+
AA610F7356F0B4D355656981 /* Pods */,
128141
);
129142
sourceTree = "<group>";
130143
};
@@ -172,9 +185,25 @@
172185
path = Runner;
173186
sourceTree = "<group>";
174187
};
188+
AA610F7356F0B4D355656981 /* Pods */ = {
189+
isa = PBXGroup;
190+
children = (
191+
EBE103C0518D70400DE13462 /* Pods-Runner.debug.xcconfig */,
192+
6D22AA843B1B053F52881C39 /* Pods-Runner.release.xcconfig */,
193+
81D65F75A2AA704F3A5B671F /* Pods-Runner.profile.xcconfig */,
194+
DD7099C036EBE695FE551E0E /* Pods-RunnerTests.debug.xcconfig */,
195+
10F03C6E58231A7A2BB2E4EF /* Pods-RunnerTests.release.xcconfig */,
196+
05D06607754378FCF0D2CB83 /* Pods-RunnerTests.profile.xcconfig */,
197+
);
198+
name = Pods;
199+
path = Pods;
200+
sourceTree = "<group>";
201+
};
175202
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
176203
isa = PBXGroup;
177204
children = (
205+
B6B9675F64FD0A2A650D5ADC /* Pods_Runner.framework */,
206+
A52566ABB17FF2E78DB8D5EE /* Pods_RunnerTests.framework */,
178207
);
179208
name = Frameworks;
180209
sourceTree = "<group>";
@@ -186,6 +215,7 @@
186215
isa = PBXNativeTarget;
187216
buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
188217
buildPhases = (
218+
C2C7113787495A50B3E841E1 /* [CP] Check Pods Manifest.lock */,
189219
331C80D1294CF70F00263BE5 /* Sources */,
190220
331C80D2294CF70F00263BE5 /* Frameworks */,
191221
331C80D3294CF70F00263BE5 /* Resources */,
@@ -204,11 +234,13 @@
204234
isa = PBXNativeTarget;
205235
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
206236
buildPhases = (
237+
6EBBC3BA795DB4D8D173EDE1 /* [CP] Check Pods Manifest.lock */,
207238
33CC10E92044A3C60003C045 /* Sources */,
208239
33CC10EA2044A3C60003C045 /* Frameworks */,
209240
33CC10EB2044A3C60003C045 /* Resources */,
210241
33CC110E2044A8840003C045 /* Bundle Framework */,
211242
3399D490228B24CF009A79C7 /* ShellScript */,
243+
ABE7B1AA0A009B2348456E19 /* [CP] Embed Pods Frameworks */,
212244
);
213245
buildRules = (
214246
);
@@ -329,6 +361,67 @@
329361
shellPath = /bin/sh;
330362
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
331363
};
364+
6EBBC3BA795DB4D8D173EDE1 /* [CP] Check Pods Manifest.lock */ = {
365+
isa = PBXShellScriptBuildPhase;
366+
buildActionMask = 2147483647;
367+
files = (
368+
);
369+
inputFileListPaths = (
370+
);
371+
inputPaths = (
372+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
373+
"${PODS_ROOT}/Manifest.lock",
374+
);
375+
name = "[CP] Check Pods Manifest.lock";
376+
outputFileListPaths = (
377+
);
378+
outputPaths = (
379+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
380+
);
381+
runOnlyForDeploymentPostprocessing = 0;
382+
shellPath = /bin/sh;
383+
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";
384+
showEnvVarsInLog = 0;
385+
};
386+
ABE7B1AA0A009B2348456E19 /* [CP] Embed Pods Frameworks */ = {
387+
isa = PBXShellScriptBuildPhase;
388+
buildActionMask = 2147483647;
389+
files = (
390+
);
391+
inputFileListPaths = (
392+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
393+
);
394+
name = "[CP] Embed Pods Frameworks";
395+
outputFileListPaths = (
396+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
397+
);
398+
runOnlyForDeploymentPostprocessing = 0;
399+
shellPath = /bin/sh;
400+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
401+
showEnvVarsInLog = 0;
402+
};
403+
C2C7113787495A50B3E841E1 /* [CP] Check Pods Manifest.lock */ = {
404+
isa = PBXShellScriptBuildPhase;
405+
buildActionMask = 2147483647;
406+
files = (
407+
);
408+
inputFileListPaths = (
409+
);
410+
inputPaths = (
411+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
412+
"${PODS_ROOT}/Manifest.lock",
413+
);
414+
name = "[CP] Check Pods Manifest.lock";
415+
outputFileListPaths = (
416+
);
417+
outputPaths = (
418+
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
419+
);
420+
runOnlyForDeploymentPostprocessing = 0;
421+
shellPath = /bin/sh;
422+
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";
423+
showEnvVarsInLog = 0;
424+
};
332425
/* End PBXShellScriptBuildPhase section */
333426

334427
/* Begin PBXSourcesBuildPhase section */
@@ -380,6 +473,7 @@
380473
/* Begin XCBuildConfiguration section */
381474
331C80DB294CF71000263BE5 /* Debug */ = {
382475
isa = XCBuildConfiguration;
476+
baseConfigurationReference = DD7099C036EBE695FE551E0E /* Pods-RunnerTests.debug.xcconfig */;
383477
buildSettings = {
384478
BUNDLE_LOADER = "$(TEST_HOST)";
385479
CURRENT_PROJECT_VERSION = 1;
@@ -394,6 +488,7 @@
394488
};
395489
331C80DC294CF71000263BE5 /* Release */ = {
396490
isa = XCBuildConfiguration;
491+
baseConfigurationReference = 10F03C6E58231A7A2BB2E4EF /* Pods-RunnerTests.release.xcconfig */;
397492
buildSettings = {
398493
BUNDLE_LOADER = "$(TEST_HOST)";
399494
CURRENT_PROJECT_VERSION = 1;
@@ -408,6 +503,7 @@
408503
};
409504
331C80DD294CF71000263BE5 /* Profile */ = {
410505
isa = XCBuildConfiguration;
506+
baseConfigurationReference = 05D06607754378FCF0D2CB83 /* Pods-RunnerTests.profile.xcconfig */;
411507
buildSettings = {
412508
BUNDLE_LOADER = "$(TEST_HOST)";
413509
CURRENT_PROJECT_VERSION = 1;
@@ -461,7 +557,7 @@
461557
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
462558
GCC_WARN_UNUSED_FUNCTION = YES;
463559
GCC_WARN_UNUSED_VARIABLE = YES;
464-
MACOSX_DEPLOYMENT_TARGET = 10.14;
560+
MACOSX_DEPLOYMENT_TARGET = 10.15;
465561
MTL_ENABLE_DEBUG_INFO = NO;
466562
SDKROOT = macosx;
467563
SWIFT_COMPILATION_MODE = wholemodule;
@@ -543,7 +639,7 @@
543639
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
544640
GCC_WARN_UNUSED_FUNCTION = YES;
545641
GCC_WARN_UNUSED_VARIABLE = YES;
546-
MACOSX_DEPLOYMENT_TARGET = 10.14;
642+
MACOSX_DEPLOYMENT_TARGET = 10.15;
547643
MTL_ENABLE_DEBUG_INFO = YES;
548644
ONLY_ACTIVE_ARCH = YES;
549645
SDKROOT = macosx;
@@ -593,7 +689,7 @@
593689
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
594690
GCC_WARN_UNUSED_FUNCTION = YES;
595691
GCC_WARN_UNUSED_VARIABLE = YES;
596-
MACOSX_DEPLOYMENT_TARGET = 10.14;
692+
MACOSX_DEPLOYMENT_TARGET = 10.15;
597693
MTL_ENABLE_DEBUG_INFO = NO;
598694
SDKROOT = macosx;
599695
SWIFT_COMPILATION_MODE = wholemodule;

macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
ignoresPersistentStateOnLaunch = "NO"
6060
debugDocumentVersioning = "YES"
6161
debugServiceExtension = "internal"
62+
enableGPUValidationMode = "1"
6263
allowLocationSimulation = "YES">
6364
<BuildableProductRunnable
6465
runnableDebuggingMode = "0">

macos/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

macos/Runner/AppDelegate.swift

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)