Skip to content

Commit 580aba2

Browse files
committed
release: 1.0.1
1 parent 5e5098b commit 580aba2

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Change Log
22

3+
## 1.0.1
4+
5+
- Fixed formatting in .dart files
6+
37
## 1.0.0
48

59
- Breaking change: namespace change from 'vk_cv_native_client' to 'cv_native_client'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Add this to your package's pubspec.yaml file:
1313

1414
```yaml
1515
dependencies:
16-
cv_native_client: ^1.0.0
16+
cv_native_client: ^1.0.1
1717
```
1818
1919
### Example

example/README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
# cv_native_client_example
22

3-
Demonstrates how to use the cv_native_client plugin.
3+
Demo app for `cv_native_client` plugin.
44

5-
## Getting Started
5+
## Usage
66

7-
This project is a starting point for a Flutter application.
7+
To use this plugin, add `cv_native_client` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
88

9-
A few resources to get you started if this is your first Flutter project:
9+
### Installation
1010

11-
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
11+
Add this to your package's pubspec.yaml file:
1312

14-
For help getting started with Flutter development, view the
15-
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
13+
```yaml
14+
dependencies:
15+
cv_native_client: ^1.0.1
16+
```
17+
18+
### Example
19+
20+
```dart
21+
import 'package:cv_native_client/cv_native_client.dart';
22+
23+
// Get platform version
24+
String platformVersion = await CvNativeClient.getPlatformVersion();
25+
26+
// Get clipboard data mime types
27+
final List<CvClipboardMimeType> mimeTypes = await CvNativeClient.getClipboardDataMimeTypes();
28+
log('Clipboard mime types: $mimeTypes');
29+
30+
// Get clipboard Data
31+
final CvClipboardData? clipboardData = await CvNativeClient.getClipboardData();
32+
log('Clipboard text: ${clipboardData?.plainText}');
33+
log('Clipboard html: ${clipboardData?.htmlText}');
34+
35+
// Set clipboard Data
36+
await CvNativeClient.setClipboardData(CvClipboardData(plainText: 'Hello World!', htmlText: '<b>Hello World!</b>'));
37+
```

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ packages:
5555
path: ".."
5656
relative: true
5757
source: path
58-
version: "1.0.0"
58+
version: "1.0.1"
5959
fake_async:
6060
dependency: transitive
6161
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cv_native_client
22
description: Native client to access platform specific features like clipboard, platform version, etc.
3-
version: 1.0.0
3+
version: 1.0.1
44
homepage: "https://github.com/Code-Vedas/cv-native-client"
55
repository: "https://github.com/Code-Vedas/cv-native-client"
66
documentation: "https://github.com/Code-Vedas/cv-native-client"

0 commit comments

Comments
 (0)