Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 44098fe

Browse files
[shared_preferences] Switch to shared_preferences_foundation (#6940)
* [shared_preferences] Switch to `shared_preferences_foundation` Switches to using the new combined `shared_prefences_foundation` for iOS and macOS. Part of flutter/flutter#117941 * Update build-all exclusion * not for landing - try no-op test * Revert "not for landing - try no-op test" This reverts commit bf2ad1e. * Try recreating the example app
1 parent 1226684 commit 44098fe

File tree

16 files changed

+216
-169
lines changed

16 files changed

+216
-169
lines changed

packages/shared_preferences/shared_preferences/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
## NEXT
1+
## 2.0.16
22

3+
* Switches to the new `shared_preferences_foundation` implementation package
4+
for iOS and macOS.
35
* Updates code for `no_leading_underscores_for_local_identifiers` lint.
46
* Updates minimum Flutter version to 2.10.
57

packages/shared_preferences/shared_preferences/example/ios/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/dgph
12
*.mode1v3
23
*.mode2v3
34
*.moved-aside
@@ -18,6 +19,7 @@ Flutter/App.framework
1819
Flutter/Flutter.framework
1920
Flutter/Flutter.podspec
2021
Flutter/Generated.xcconfig
22+
Flutter/ephemeral/
2123
Flutter/app.flx
2224
Flutter/app.zip
2325
Flutter/flutter_assets/

packages/shared_preferences/shared_preferences/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
23-
<key>UIRequiredDeviceCapabilities</key>
24-
<array>
25-
<string>arm64</string>
26-
</array>
2723
<key>MinimumOSVersion</key>
28-
<string>9.0</string>
24+
<string>11.0</string>
2925
</dict>
3026
</plist>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
22
#include "Generated.xcconfig"
3-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
22
#include "Generated.xcconfig"
3-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"

packages/shared_preferences/shared_preferences/example/ios/Podfile

Lines changed: 4 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'
@@ -28,6 +28,9 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
2828
flutter_ios_podfile_setup
2929

3030
target 'Runner' do
31+
use_frameworks!
32+
use_modular_headers!
33+
3134
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3235
end
3336

packages/shared_preferences/shared_preferences/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 168 additions & 85 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1100"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -37,16 +37,6 @@
3737
</BuildableReference>
3838
</MacroExpansion>
3939
<Testables>
40-
<TestableReference
41-
skipped = "NO">
42-
<BuildableReference
43-
BuildableIdentifier = "primary"
44-
BlueprintIdentifier = "F76AC2052669B6AE0040C8BC"
45-
BuildableName = "RunnerTests.xctest"
46-
BlueprintName = "RunnerTests"
47-
ReferencedContainer = "container:Runner.xcodeproj">
48-
</BuildableReference>
49-
</TestableReference>
5040
</Testables>
5141
</TestAction>
5242
<LaunchAction
@@ -71,7 +61,7 @@
7161
</BuildableProductRunnable>
7262
</LaunchAction>
7363
<ProfileAction
74-
buildConfiguration = "Release"
64+
buildConfiguration = "Profile"
7565
shouldUseLaunchSchemeArgsEnv = "YES"
7666
savedToolIdentifier = ""
7767
useCustomWorkingDirectory = "NO"

packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.m

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)