Skip to content

Commit ab715c7

Browse files
stuartmorgan-gagent3bood
authored andcommitted
[shared_preferences_linux] Add iOS stub (flutter#2865)
Add missing iOS stub to shared_preferences_linux
1 parent b5cd5bd commit ab715c7

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## 0.0.2
2+
* Add iOS stub.
3+
14
## 0.0.1
25
* Initial release to support shared_preferences on Linux.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
3+
# Run `pod lib lint shared_preferences_launcher_linux.podspec' to validate before publishing.
4+
#
5+
Pod::Spec.new do |s|
6+
s.name = 'shared_preferences_linux'
7+
s.version = '0.0.1'
8+
s.summary = 'shared_preferences_linux iOS stub'
9+
s.description = <<-DESC
10+
No-op implementation of the Linux shared_preferences plugin to avoid build issues on iOS
11+
DESC
12+
s.homepage = 'https://github.com/flutter/plugins'
13+
s.license = { :type => 'BSD', :file => '../LICENSE' }
14+
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
15+
s.source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_linux' }
16+
s.dependency 'Flutter'
17+
s.platform = :ios, '8.0'
18+
19+
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
20+
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
21+
s.swift_version = '5.0'
22+
end

packages/shared_preferences/shared_preferences_linux/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: shared_preferences_linux
22
description: Linux implementation of the shared_preferences plugin
3-
version: 0.0.1
3+
version: 0.0.2
44
homepage: https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences_linux
55

66
flutter:

0 commit comments

Comments
 (0)