Skip to content

Commit 32d4898

Browse files
committed
🍎 Add usage with MacOS.
1 parent cdc396c commit 32d4898

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

README-ZH.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Language: [English](README.md) | 中文简体
2424
* [Flutter](#flutter)
2525
* [Android](#android)
2626
* [iOS](#ios)
27+
* [MacOS](#macos)
2728
* [使用方法](#使用方法-)
2829
* [简单的使用方法](#简单的使用方法)
2930
* [完整参数的使用方法](#完整参数的使用方法)
@@ -100,7 +101,7 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
100101

101102
### iOS
102103

103-
`ios/Podfile` 中指定最低构建版本至 *9.0*
104+
`ios/Podfile` 中指定最低构建版本至 **9.0**
104105
```
105106
platform :ios, '9.0'
106107
```
@@ -117,6 +118,20 @@ platform :ios, '9.0'
117118
<string>你的相册权限描述</string>
118119
```
119120

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+
120135
## 使用方法 📖
121136

122137
| 参数名 | 类型 | 描述 | 默认值 |

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/
4545
* [Flutter](#flutter)
4646
* [Android](#android)
4747
* [iOS](#ios)
48+
* [MacOS](#macos)
4849
* [Usage](#usage-)
4950
* [Simple usage](#simple-usage)
5051
* [Complete param usage](#complete-param-usage)
@@ -118,23 +119,40 @@ See [Generated API](http://sjudd.github.io/glide/doc/generatedapi.html).
118119

119120
### iOS
120121

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*.
122123
```
123124
platform :ios, '9.0'
124125
```
125126

126-
Add following content to `info.plist`.
127+
2. Add following content to `info.plist`.
127128

128129
```
129130
<key>NSAppTransportSecurity</key>
130131
<dict>
131-
<key>NSAllowsArbitraryLoads</key>
132-
<true/>
132+
<key>NSAllowsArbitraryLoads</key>
133+
<true/>
133134
</dict>
134135
<key>NSPhotoLibraryUsageDescription</key>
135136
<string>Replace with your permission description.</string>
136137
```
137138

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+
138156
## Usage 📖
139157

140158
| Name | Type | Description | Default |

0 commit comments

Comments
 (0)