Skip to content

Commit e0c4324

Browse files
committed
chore: clean up before publishing
1 parent 5300182 commit e0c4324

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

README.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
# windows_store
2-
31
A flutter plugin for getting license information from the Microsoft Store. The app needs to be packaged as a misx and associated with a published app for this to return meaningful values.
2+
3+
## Features
4+
5+
The following license information is returned:
6+
- isActive
7+
- isTrial
8+
- skuStoreId
9+
- trialUniqueId
10+
- trialTimeRemaining
11+
12+
## Usage
13+
14+
```dart
15+
final store = WindowsStoreApi();
16+
final license = await store.getAppLicenseAsync();
17+
18+
print(license.isActive);
19+
print(license.isTrial);
20+
print(license.skuStoreId);
21+
print(license.trialUniqueId);
22+
print(license.trialTimeRemaining);
23+
```
24+
25+
See the [Microsoft documentation](https://learn.microsoft.com/en-us/uwp/api/windows.services.store.storeapplicense) for further details of the returned values.

example/README.md

-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
# windows_store_example
22

33
Demonstrates how to use the windows_store plugin.
4-
5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13-
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.

lib/pigeons/messages.dart

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ class StoreAppLicenseInner {
1616
final String trialUniqueId;
1717
final int trialTimeRemaining;
1818

19-
const StoreAppLicenseInner(this.isActive, this.isTrial, this.skuStoreId, this.trialUniqueId, this.trialTimeRemaining);
19+
const StoreAppLicenseInner(
20+
this.isActive,
21+
this.isTrial,
22+
this.skuStoreId,
23+
this.trialUniqueId,
24+
this.trialTimeRemaining,
25+
);
2026
}
2127

2228
@HostApi()

lib/windows_store.dart

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// export "src/messages.g.dart";
21
import "src/messages.g.dart" as inner;
32

43
class StoreAppLicense {

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: windows_store
22
description: A flutter plugin for retrieving license information from Microsoft Store apps.
3-
version: 0.0.1
3+
version: 0.1.0
44
repository: https://github.com/SongbookPro/flutter_windows_store
55

66
environment:

0 commit comments

Comments
 (0)