Skip to content

Commit 45ca047

Browse files
committed
feat: release js_widget package
1 parent 49c0560 commit 45ca047

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

modules/ensemble/pubspec.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ dependencies:
6565
video_player: ^2.6.1
6666
lottie: ^3.0.0
6767
cookie_jar: ^4.0.8
68-
js_widget:
69-
git:
70-
url: https://github.com/EnsembleUI/ensemble.git
71-
ref: main
72-
path: modules/js_widget
68+
js_widget: ^1.0.0
7369
flutter_markdown: ^0.6.10+5
7470
provider: ^6.0.3
7571
cloud_firestore: ^5.4.4

modules/js_widget/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# JS Widget
2+
3+
## 1.0.0
4+
5+
- Initial release

modules/js_widget/example/chartjs/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ dependencies:
3030
flutter:
3131
sdk: flutter
3232

33-
js_widget:
34-
git: https://github.com/EnsembleUI/js_widget.git
33+
js_widget: ^1.0.0
3534

3635
# The following adds the Cupertino Icons font to your application.
3736
# Use with the CupertinoIcons class for iOS style icons.

modules/js_widget/lib/src/mobile/js_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:url_launcher/url_launcher_string.dart';
32
// Import for Android features.
43
import 'package:webview_flutter_android/webview_flutter_android.dart';
54
// Import for iOS features.

modules/js_widget/pubspec.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: js_widget
2-
description: A new Flutter project.
2+
description: A Flutter package to render HTML and CSS as Flutter widgets.
3+
4+
homepage: https://github.com/EnsembleUI/ensemble
5+
repository: https://github.com/EnsembleUI/ensemble/blob/main/modules/js_widget
6+
issue_tracker: https://github.com/EnsembleUI/ensemble/issues
37

48
# The following line prevents the package from being accidentally published to
59
# pub.dev using `flutter pub publish`. This is preferred for private packages.
6-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
710

811
# The following defines the version and build number for your application.
912
# A version number is three numbers separated by dots, like 1.2.43
@@ -15,10 +18,10 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1518
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1619
# Read more about iOS versioning at
1720
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 1.0.0+1
21+
version: 1.0.0
1922

2023
environment:
21-
sdk: ">=3.5.0"
24+
sdk: ">=3.5.0 <4.0.0"
2225

2326
# Dependencies specify other packages that your package needs in order to work.
2427
# To automatically upgrade your package dependencies to the latest versions
@@ -34,6 +37,8 @@ dependencies:
3437
js: ^0.6.3
3538
url_launcher: ^6.1.0
3639
webview_flutter: ^4.0.1
40+
webview_flutter_android: ^4.2.0
41+
webview_flutter_wkwebview: ^3.16.3
3742

3843
# The following adds the Cupertino Icons font to your application.
3944
# Use with the CupertinoIcons class for iOS style icons.

0 commit comments

Comments
 (0)