Skip to content

Commit

Permalink
[shared_preferences] Add iOS stub to shared_preferences_windows (flut…
Browse files Browse the repository at this point in the history
…ter#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
stuartmorgan authored and danielroek committed Oct 1, 2020
1 parent 939c659 commit 6235d50
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
@@ -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.
@@ -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
@@ -1,7 +1,7 @@
name: shared_preferences_windows
description: Windows implementation of shared_preferences
homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_windows
version: 0.0.1
version: 0.0.1+1

flutter:
plugin:
Expand Down

0 comments on commit 6235d50

Please sign in to comment.