File tree 1 file changed +42
-5
lines changed
1 file changed +42
-5
lines changed Original file line number Diff line number Diff line change 1
1
# OpenPGP
2
2
3
- Library for use openPGP
3
+ Library for use openPGP with support for android, ios, web and hover, more comming
4
4
5
5
## Usage
6
6
@@ -41,23 +41,60 @@ var decryptedSymmetric = await OpenPGP.decryptSymmetric("text encrypted","[passp
41
41
42
42
```
43
43
44
- ## ProGuard
44
+
45
+ ## Android
46
+ ### ProGuard
45
47
46
48
Add this lines to ` proguard-rules.pro ` for proguard support
47
49
48
50
``` proguard
49
51
-keep class go.** { *; }
50
52
-keep class openpgp.** { *; }
51
53
```
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)
52
86
53
- ## Sample
87
+ no aditional setup required
54
88
55
- Inside example folder
89
+ # # Hover
90
+
91
+ just update your plugins
56
92
57
93
` ` ` bash
58
- cd example && flutter run
94
+ hover plugins get
59
95
` ` `
60
96
97
+
61
98
# # Native Code
62
99
63
100
the native library is made in Golang and build with gomobile for faster performance
You can’t perform that action at this time.
0 commit comments