This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shared_preferences] Add iOS stub to shared_preferences_windows (#3058)
shared_preferences supports versions older than 1.18, so this plugin needs the iOS stub to prevent breaking iOS projects via transitive dependencies when shared_preferences endorses the Windows implementation.
- Loading branch information
1 parent
8faaed5
commit 772a57f
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/shared_preferences/shared_preferences_windows/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.0.1+1 | ||
|
||
* Add iOS stub for compatibility with 1.17 and earlier. | ||
|
||
## 0.0.1 | ||
|
||
* Initial release to support shared_preferences on Windows. |
22 changes: 22 additions & 0 deletions
22
...ages/shared_preferences/shared_preferences_windows/ios/shared_preferences_windows.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | ||
# Run `pod lib lint shared_preferences_windows.podspec' to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'shared_preferences_windows' | ||
s.version = '0.0.1' | ||
s.summary = 'shared_preferences_windows iOS stub' | ||
s.description = <<-DESC | ||
No-op implementation of the windows shared_preferences plugin to avoid build issues on iOS | ||
DESC | ||
s.homepage = 'https://github.com/flutter/plugins' | ||
s.license = { :type => 'BSD', :file => '../LICENSE' } | ||
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' } | ||
s.source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_windows' } | ||
s.dependency 'Flutter' | ||
s.platform = :ios, '8.0' | ||
|
||
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } | ||
s.swift_version = '5.0' | ||
end |
2 changes: 1 addition & 1 deletion
2
packages/shared_preferences/shared_preferences_windows/pubspec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters