Skip to content

Commit 136b151

Browse files
Fixed the iOS example
1 parent df6c801 commit 136b151

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -37,5 +37,12 @@ end
3737
post_install do |installer|
3838
installer.pods_project.targets.each do |target|
3939
flutter_additional_ios_build_settings(target)
40+
target.build_configurations.each do |config|
41+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
42+
'$(inherited)',
43+
## dart: PermissionGroup.notification
44+
'PERMISSION_NOTIFICATIONS=1',
45+
]
46+
end
4047
end
4148
end

example/ios/Podfile.lock

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ PODS:
44
- Flutter (1.0.0)
55
- flutter_local_notifications (0.0.1):
66
- Flutter
7-
- "permission_handler (5.1.0+2)":
7+
- permission_handler_apple (9.0.4):
8+
- Flutter
9+
- shared_preferences_ios (0.0.1):
810
- Flutter
911

1012
DEPENDENCIES:
1113
- background_location_tracker (from `.symlinks/plugins/background_location_tracker/ios`)
1214
- Flutter (from `Flutter`)
1315
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
14-
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
16+
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
17+
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
1518

1619
EXTERNAL SOURCES:
1720
background_location_tracker:
@@ -20,15 +23,18 @@ EXTERNAL SOURCES:
2023
:path: Flutter
2124
flutter_local_notifications:
2225
:path: ".symlinks/plugins/flutter_local_notifications/ios"
23-
permission_handler:
24-
:path: ".symlinks/plugins/permission_handler/ios"
26+
permission_handler_apple:
27+
:path: ".symlinks/plugins/permission_handler_apple/ios"
28+
shared_preferences_ios:
29+
:path: ".symlinks/plugins/shared_preferences_ios/ios"
2530

2631
SPEC CHECKSUMS:
2732
background_location_tracker: 3f0954d5a839b9bfffbdc887e679d183a7bbc1c9
28-
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
33+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
2934
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
30-
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
35+
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
36+
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
3137

32-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
38+
PODFILE CHECKSUM: 63e7f18f432a67ba8fa28a2267b41a55af316244
3339

3440
COCOAPODS: 1.11.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
97C146E61CF9000F007C117D /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 1020;
158+
LastUpgradeCheck = 1300;
159159
ORGANIZATIONNAME = "";
160160
TargetAttributes = {
161161
97C146ED1CF9000F007C117D = {
@@ -339,7 +339,7 @@
339339
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
340340
GCC_WARN_UNUSED_FUNCTION = YES;
341341
GCC_WARN_UNUSED_VARIABLE = YES;
342-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
342+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
343343
MTL_ENABLE_DEBUG_INFO = NO;
344344
SDKROOT = iphoneos;
345345
SUPPORTED_PLATFORMS = iphoneos;
@@ -424,7 +424,7 @@
424424
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
425425
GCC_WARN_UNUSED_FUNCTION = YES;
426426
GCC_WARN_UNUSED_VARIABLE = YES;
427-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
427+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
428428
MTL_ENABLE_DEBUG_INFO = YES;
429429
ONLY_ACTIVE_ARCH = YES;
430430
SDKROOT = iphoneos;
@@ -473,7 +473,7 @@
473473
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
474474
GCC_WARN_UNUSED_FUNCTION = YES;
475475
GCC_WARN_UNUSED_VARIABLE = YES;
476-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
476+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
477477
MTL_ENABLE_DEBUG_INFO = NO;
478478
SDKROOT = iphoneos;
479479
SUPPORTED_PLATFORMS = iphoneos;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@
5151
</array>
5252
<key>UIViewControllerBasedStatusBarAppearance</key>
5353
<false/>
54+
<key>CADisableMinimumFrameDurationOnPhone</key>
55+
<true/>
5456
</dict>
5557
</plist>

0 commit comments

Comments
 (0)