File tree Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Language: [English](README.md) | 中文简体
24
24
* [ Flutter] ( #flutter )
25
25
* [ Android] ( #android )
26
26
* [ iOS] ( #ios )
27
+ * [ MacOS] ( #macos )
27
28
* [ 使用方法] ( #使用方法- )
28
29
* [ 简单的使用方法] ( #简单的使用方法 )
29
30
* [ 完整参数的使用方法] ( #完整参数的使用方法 )
@@ -100,7 +101,7 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
100
101
101
102
### iOS
102
103
103
- 在 ` ios/Podfile ` 中指定最低构建版本至 * 9.0* 。
104
+ 在 ` ios/Podfile ` 中指定最低构建版本至 ** 9.0* * 。
104
105
```
105
106
platform :ios, '9.0'
106
107
```
@@ -117,6 +118,20 @@ platform :ios, '9.0'
117
118
<string>你的相册权限描述</string>
118
119
```
119
120
121
+ ### MacOS
122
+
123
+ 目前 Flutter 桌面版仍然在开发阶段,所以请注意,任何与桌面版本有关的问题都不会受到技术支持。
124
+
125
+ 1 . 在 ` macos/Podfile ` 中指定最低构建版本至 ** 10.15** 。
126
+
127
+ 2 . 使用 ** Xcode** 打开 ` macos/Runner.xcworkspace ` 。接着根据下面的截图将最低构建版本提升至 ** 10.15** 。
128
+
129
+ 3 . ![ step 1] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67v4yk4j30qy0b50u0.jpg )
130
+
131
+ 4 . ![ step 2] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67vd3f2j30jv04zgm5.jpg )
132
+
133
+ 5 . 与 iOS 一样,添加相同的东西到 ` info.plist ` 里。
134
+
120
135
## 使用方法 📖
121
136
122
137
| 参数名 | 类型 | 描述 | 默认值 |
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/
45
45
* [ Flutter] ( #flutter )
46
46
* [ Android] ( #android )
47
47
* [ iOS] ( #ios )
48
+ * [ MacOS] ( #macos )
48
49
* [ Usage] ( #usage- )
49
50
* [ Simple usage] ( #simple-usage )
50
51
* [ Complete param usage] ( #complete-param-usage )
@@ -118,23 +119,40 @@ See [Generated API](http://sjudd.github.io/glide/doc/generatedapi.html).
118
119
119
120
### iOS
120
121
121
- Define the minimum platform in ` ios/Podfile ` upper to * 9.0* .
122
+ 1 . Define the minimum platform in ` ios/Podfile ` upper to * 9.0* .
122
123
```
123
124
platform :ios, '9.0'
124
125
```
125
126
126
- Add following content to ` info.plist ` .
127
+ 2 . Add following content to ` info.plist ` .
127
128
128
129
```
129
130
<key>NSAppTransportSecurity</key>
130
131
<dict>
131
- <key>NSAllowsArbitraryLoads</key>
132
- <true/>
132
+ <key>NSAllowsArbitraryLoads</key>
133
+ <true/>
133
134
</dict>
134
135
<key>NSPhotoLibraryUsageDescription</key>
135
136
<string>Replace with your permission description.</string>
136
137
```
137
138
139
+ ### MacOS
140
+
141
+ Currently flutter desktop is still under development, so please be aware that any issues releated to the desktop version is not yet supported.
142
+
143
+ 1 . Define the minimum platform in ` macos/Podfile ` upper to * 10.15* .
144
+ ```
145
+ platform :osx, '10.15'
146
+ ```
147
+
148
+ 2 . Use * Xcode* to open the ` macos/Runner.xcworkspace ` . Then follow screenshots to setup the minumum target version upper to * 10.15* .
149
+
150
+ 3 . ![ step 1] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67v4yk4j30qy0b50u0.jpg )
151
+
152
+ 4 . ![ step 2] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67vd3f2j30jv04zgm5.jpg )
153
+
154
+ 5 . Add the same thing as iOS does into ` info.plist ` .
155
+
138
156
## Usage 📖
139
157
140
158
| Name | Type | Description | Default |
You can’t perform that action at this time.
0 commit comments