Skip to content

Commit 3591557

Browse files
committed
Add CI workflows for quality checks and testing; update version to 0.6.0
1 parent 0b8984a commit 3591557

4 files changed

Lines changed: 80 additions & 2 deletions

File tree

.github/workflows/quality.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Quality
2+
3+
on:
4+
pull_request:
5+
branches: ["develop"]
6+
7+
jobs:
8+
quality:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Dart
15+
uses: dart-lang/setup-dart@v1
16+
with:
17+
sdk: stable
18+
19+
- name: Cache pub
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.pub-cache
24+
.dart_tool
25+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-pub-
28+
29+
- name: Install dependencies
30+
run: dart pub get
31+
32+
- name: Check formatting
33+
run: dart format --set-exit-if-changed .
34+
35+
- name: Static analysis
36+
run: dart analyze
37+
38+
- name: pub.dev dry-run
39+
run: dart pub publish --dry-run

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: ["develop"]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Dart
15+
uses: dart-lang/setup-dart@v1
16+
with:
17+
sdk: stable
18+
19+
- name: Cache pub
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.pub-cache
24+
.dart_tool
25+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-pub-
28+
29+
- name: Install dependencies
30+
run: dart pub get
31+
32+
- name: Run tests
33+
run: dart test

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.6.0
2+
- **BREAKING**: Removed `requestedPermissions` field from `AppInfo` class to improve performance and reduce memory usage
3+
- Added new API: `getRequestedPermissions(String packageName)` to fetch app permissions on demand
4+
- Added comprehensive unit tests for `AppInfo`, `AppChangeType`, and `AppChangeEvent` classes
5+
16
## 0.5.1
27
- Expanded `AppInfo` with additional Android-facing fields: `category`, `targetSdkVersion`, `minSdkVersion`, `enabled`, `processName`, `installLocation`, `requestedPermissions`.
38

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_device_apps_platform_interface
22
description: Platform-agnostic API contract for flutter_device_apps (federated).
3-
version: 0.5.1
3+
version: 0.6.0
44
repository: https://github.com/okmsbun/flutter_device_apps_platform_interface
55
issue_tracker: https://github.com/okmsbun/flutter_device_apps_platform_interface/issues
66
topics:
@@ -17,4 +17,5 @@ dependencies:
1717
plugin_platform_interface: ^2.1.8
1818

1919
dev_dependencies:
20-
lints: ^6.0.0
20+
lints: ^6.1.0
21+
test: ^1.29.0

0 commit comments

Comments
 (0)