Skip to content

Commit 60c11ca

Browse files
authored
Update README.md
1 parent 55b3d7c commit 60c11ca

File tree

1 file changed

+42
-5
lines changed

1 file changed

+42
-5
lines changed

README.md

+42-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenPGP
22

3-
Library for use openPGP
3+
Library for use openPGP with support for android, ios, web and hover, more comming
44

55
## Usage
66

@@ -41,23 +41,60 @@ var decryptedSymmetric = await OpenPGP.decryptSymmetric("text encrypted","[passp
4141
4242
```
4343

44-
## ProGuard
44+
45+
## Android
46+
### ProGuard
4547

4648
Add this lines to `proguard-rules.pro` for proguard support
4749

4850
```proguard
4951
-keep class go.** { *; }
5052
-keep class openpgp.** { *; }
5153
```
54+
## iOS
55+
56+
no aditional setup required
57+
58+
## Web
59+
60+
add to you `pubspec.yaml`
61+
62+
```yaml
63+
assets:
64+
- packages/openpgp/web/assets/wasm_exec.js
65+
- packages/openpgp/web/assets/openpgp.wasm
66+
```
67+
ref: https://github.com/jerson/flutter-openpgp/blob/master/example/pubspec.yaml
68+
69+
70+
and in you `web/index.html`
71+
```html
72+
<script src="assets/packages/openpgp/web/assets/wasm_exec.js" type="application/javascript"></script>
73+
```
74+
ref: https://github.com/jerson/flutter-openpgp/blob/master/example/web/index.html
75+
76+
## Linux (comming soon)
77+
78+
add to you `linux/app_configuration.mk`
79+
80+
```make
81+
EXTRA_LDFLAGS=-lopenpgp
82+
```
83+
ref: https://github.com/jerson/flutter-openpgp/blob/master/example/linux/app_configuration.mk
84+
85+
## MacOS (comming soon)
5286

53-
## Sample
87+
no aditional setup required
5488

55-
Inside example folder
89+
## Hover
90+
91+
just update your plugins
5692

5793
```bash
58-
cd example && flutter run
94+
hover plugins get
5995
```
6096

97+
6198
## Native Code
6299

63100
the native library is made in Golang and build with gomobile for faster performance

0 commit comments

Comments
 (0)