Skip to content

Commit 657d529

Browse files
authored
Merge pull request #22 from warioddly/GRA-21
Migrating to package:web
2 parents d895536 + c0b13d5 commit 657d529

File tree

17 files changed

+166
-121
lines changed

17 files changed

+166
-121
lines changed

.flutter-plugins

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This is a generated file; do not edit or check into version control.
2-
webview_flutter=/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter-4.10.0/
3-
webview_flutter_android=/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter_android-4.3.2/
4-
webview_flutter_wkwebview=/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.18.2/
2+
webview_flutter=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter-4.10.0\\
3+
webview_flutter_android=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_android-4.3.2\\
4+
webview_flutter_wkwebview=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_wkwebview-3.18.2\\

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.18.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"webview_flutter_android","path":"/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter_android-4.3.2/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"webview_flutter_wkwebview","path":"/Users/coffeen/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.18.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2025-02-23 14:10:12.068124","version":"3.29.0","swift_package_manager_enabled":{"ios":false,"macos":false}}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.18.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"webview_flutter_android","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-4.3.2\\\\","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.18.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2025-02-27 18:38:31.039755","version":"3.29.0","swift_package_manager_enabled":{"ios":false,"macos":false}}

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Deploy
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
67

78
jobs:
89
dependencies:
@@ -18,7 +19,7 @@ jobs:
1819
flutter-version: "3.29.0"
1920
channel: 'stable'
2021
cache: true
21-
22+
2223
- name: Run Flutter build
2324
run: |
2425
# Enable web config in flutter

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Publish GitHub Release"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
flutter-version: "3.29.0"
25+
channel: 'stable'
26+
cache: true
27+
28+
- name: Install dependencies
29+
run: flutter pub get
30+
31+
- name: Authenticate with pub.dev
32+
run: dart pub token add https://pub.dev
33+
34+
- name: Verify package
35+
run: flutter pub publish --dry-run
36+
37+
- name: Publish to pub.dev
38+
run: flutter pub publish -f

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish GitHub Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create GitHub Release
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Extract tag name
21+
id: tag
22+
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
23+
24+
- name: Generate release notes
25+
id: release_notes
26+
run: |
27+
echo "## Changes in $TAG_NAME" > RELEASE_NOTES.md
28+
echo "" >> RELEASE_NOTES.md
29+
git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 @^)..@ >> RELEASE_NOTES.md
30+
31+
- name: Create GitHub Release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: ${{ env.TAG_NAME }}
35+
name: ${{ env.TAG_NAME }}
36+
body_path: RELEASE_NOTES.md
37+
draft: false
38+
prerelease: false

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 0.0.2
22

33
* Add support update chart
4-
* Adding example of how to use graphify
4+
* Adding example of how to use graphify
5+
6+
## 1.0.8
7+
8+
* Optimize and refactor the code

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Bekeev Imankadyr
3+
Copyright (c) 2024 Warioddly
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://github.com/warioddly/graphify/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="Contributing"></a>
99

1010
# GRAPHIFY
11-
> ### A data visualization charts library, based on Apache ECharts, able to build advanced charts like WebGL 3D, GIS map, etc.
11+
> ### A data visualization charts library, based on Apache Echarts, able to build advanced charts like WebGL 3D, Bar, Line, Candlestick, Radar, Graph, Tree etc.
1212
> A Flutter package that serves as a bridge to [Apache ECharts](https://echarts.apache.org/) for creating interactive charts and data visualizations in your Flutter applications.
1313
1414
| ![graph_webkit_dep](https://github.com/user-attachments/assets/2ce1808d-a542-4295-9e3a-4918bcf6053e) | ![bar_3d_chart](https://github.com/user-attachments/assets/6d50d560-ee8e-4f39-99c4-dc271ba2556c) |
@@ -17,7 +17,7 @@
1717

1818
> [See demo](https://warioddly.github.io/graphify/) <br />
1919
> [Echarts Examples](https://echarts.apache.org/examples/en/index.html) <br />
20-
> [Pub.dev](https://pub.dev/packages/graphify/versions) <br />
20+
> [Pub.dev](https://pub.dev/packages/graphify) <br />
2121
2222
## Content
2323
> [Features](/README.md#features) <br />

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ packages:
104104
path: ".."
105105
relative: true
106106
source: path
107-
version: "1.0.6"
107+
version: "1.0.8"
108108
integration_test:
109109
dependency: "direct dev"
110110
description: flutter
@@ -343,10 +343,10 @@ packages:
343343
dependency: transitive
344344
description:
345345
name: web
346-
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
346+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
347347
url: "https://pub.dev"
348348
source: hosted
349-
version: "1.1.0"
349+
version: "1.1.1"
350350
webdriver:
351351
dependency: transitive
352352
description:

example/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<meta charset="UTF-8">
2020
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
2121
<meta name="description" content="Demonstrates how to use the graphify plugin.">
22-
2322
<!-- iOS meta tags & icons -->
2423
<meta name="apple-mobile-web-app-capable" content="yes">
2524
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@@ -31,6 +30,7 @@
3130

3231
<title>graphify_example</title>
3332
<link rel="manifest" href="manifest.json">
33+
<meta name="mobile-web-app-capable" content="yes">
3434

3535
<script>
3636
// The value below is injected by flutter build, do not touch.

0 commit comments

Comments
 (0)