Skip to content

Commit

Permalink
0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thitlwincoder committed Aug 30, 2024
1 parent d2c7486 commit dea75f7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 37 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.4

- Refactor version upgrade
- Remove download support

## 0.2.3

- Fix some minor bugs
Expand Down
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ import 'package:direct_link/direct_link.dart';
var directLink = DirectLink();
```

Initialize the plugin for notification

```dart
directLink.init(
allowNotification: true,
androidInitializationSettings:
const AndroidInitializationSettings('launch_background'), // add your logo
);
```


Use `check` function to check your link have been existed my support sites

```dart
Expand All @@ -85,16 +74,6 @@ if (data != null) {
}
```

If you want to download use `download` function.

```dart
await directLink.download(
url: data.links[0].link, // use link from data.links
savedDir: dir,
fileName: fileName,
);
```

## Contribution

Feel free to file an [issue](https://github.com/thitlwincoder/direct_link/issues/new) if you find a problem or make pull requests.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -982,4 +982,4 @@ packages:
version: "3.1.2"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.22.0"
flutter: ">=3.24.0"
16 changes: 8 additions & 8 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ dependencies:

direct_link:
path: ../
cached_network_image: ^3.3.1
file_picker: ^8.0.6
go_router: ^14.2.1
cached_network_image: ^3.4.1
file_picker: ^8.1.2
go_router: ^14.2.7

dev_dependencies:
riverpod_generator: ^2.4.0
build_runner: ^2.4.11
custom_lint: ^0.6.4
riverpod_lint: ^2.3.10
riverpod_generator: ^2.4.3
build_runner: ^2.4.12
custom_lint: ^0.6.5
riverpod_lint: ^2.3.13
very_good_analysis: ^6.0.0
go_router_builder: ^2.7.0
go_router_builder: ^2.7.1

flutter:
uses-material-design: true
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,5 @@ packages:
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: direct_link
description: Direct link extractor from URL to stream and download directly.
version: 0.2.3
version: 0.2.4
repository: https://github.com/thitlwincoder/direct_link
issue_tracker: https://github.com/thitlwincoder/direct_link/issues

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=1.17.0"
sdk: ^3.5.0
flutter: ^3.24.0

platforms:
android:
Expand All @@ -17,15 +17,15 @@ platforms:
windows:

funding:
- https://paypal.me/thitlwin312
- https://paypal.me/thitlwinsoe260
- https://ko-fi.com/thitlwincoder

dependencies:
flutter:
sdk: flutter

html: ^0.15.4
puppeteer: ^3.12.0
puppeteer: ^3.13.0
flutter_inappwebview: ^6.0.0

dev_dependencies:
Expand Down

0 comments on commit dea75f7

Please sign in to comment.