Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: main to release/flutter-2.5.x #1381

Open
wants to merge 161 commits into
base: release/flutter-2.5.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
2637fe5
fix: memory usage of img element
wssgcg1213 Apr 22, 2022
e821d64
Merge branch 'main' into fix/img-memory
wssgcg1213 Apr 27, 2022
c219728
Merge branch 'main' into fix/img-memory
wssgcg1213 Apr 28, 2022
ea4cd2a
fix: render position place holder may be null at sliver case
wssgcg1213 Apr 28, 2022
ee287d9
fix: handle image resize change
wssgcg1213 Apr 28, 2022
52c49e6
fix: img element with object fit
wssgcg1213 Apr 28, 2022
540168c
test: update gif test case to new frame gif
wssgcg1213 Apr 28, 2022
0a48d02
:bug: fix: Visible should be interpreted as auto and clip should be i…
answershuto Apr 28, 2022
7974f07
:art: chore: add comment.
answershuto Apr 28, 2022
a3ddf15
fix: img with lazy load problems
wssgcg1213 Apr 28, 2022
4789905
fix: should paint IntersectionObserver layer.
wssgcg1213 Apr 28, 2022
7152349
:bug: fix: fixed should work.
answershuto Apr 28, 2022
3ddaefb
:art: chore: add comment.
answershuto Apr 28, 2022
9114390
:bug: fix: Reset canDrag by overflow because hidden is can't drag.
answershuto Apr 28, 2022
d36c9c0
:sparkles: feat: modify overflowX.
answershuto Apr 28, 2022
03e3943
:bug: fix: _scrollableX should check.
answershuto Apr 28, 2022
c945cf7
fix: that resize image when RenderImage is created.
wssgcg1213 Apr 28, 2022
10eead3
:art: chore: remove comment.
answershuto Apr 28, 2022
e376c7b
test: delay loading lazy img load event
wssgcg1213 Apr 28, 2022
6ffd6f6
chore: modify comment.
answershuto Apr 28, 2022
143a8ee
fix: not to emit frame is renderer is not attached
wssgcg1213 Apr 29, 2022
01ae021
fix: remove unused import
wssgcg1213 Apr 29, 2022
5d78c7b
fix: img load after first frame come
wssgcg1213 Apr 29, 2022
7c3de19
fix: Resize when image render object has created.
wssgcg1213 Apr 29, 2022
939f3cb
Merge branch 'fix/html_scroll_value' of github.com:openkraken/kraken …
answershuto Apr 29, 2022
a80cef8
chore: add commit for lazy rendering
wssgcg1213 May 5, 2022
b14f2bd
:bug: fix: unmountRenderObject should be called before unmount,otherw…
answershuto May 5, 2022
fcb7402
:art: chore: add comment.
answershuto May 5, 2022
f1680d9
:sparkles: feat: add needDispose.
answershuto May 6, 2022
5e946fe
:bug: fix: render object of KrakenElementToFlutterElementAdaptor shou…
answershuto May 6, 2022
f938df3
:bug: fix: Flutter element unmount call dispose of _renderObject, so …
answershuto May 6, 2022
01102da
:art: chore: rename needDisposeSelf.
answershuto May 6, 2022
d1f238b
:bug: fix: modify unmount.
answershuto May 6, 2022
b2d0855
:art: chore: move fixedChildren to viewport.
answershuto May 6, 2022
2c9d012
fix: move img _loaded
wssgcg1213 May 6, 2022
74cf305
:art: chore: rename element.
answershuto May 7, 2022
165858b
:art: chore: rename callDispose.
answershuto May 7, 2022
97d0600
Revert "fix: positioned element offset when containing block has tran…
wssgcg1213 May 7, 2022
f9ebd58
chore: remove unused image
wssgcg1213 May 7, 2022
8499281
:art: feat: Clear renderObjects in list when disposed to avoid memory…
answershuto May 7, 2022
7e6925e
chore: add comment for img.dart
wssgcg1213 May 7, 2022
3b3b005
:art: chore: delete blank line.
answershuto May 7, 2022
02e6924
:art: chore: rename callDisponse.
answershuto May 7, 2022
78e3803
Revert "fix: positioned element offset when containing block has tran…
wssgcg1213 May 7, 2022
55aedf5
Merge pull request #1347 from openkraken/fix/img-memory
answershuto May 7, 2022
d412185
Fix/fixed hittest (#1374)
answershuto May 7, 2022
8a3a4ac
Merge pull request #1367 from openkraken/fix/html_scroll_value
answershuto May 7, 2022
69ca9ca
Merge pull request #1375 from openkraken/fix/custom_element_widget_null
answershuto May 7, 2022
0033635
Merge branch 'main' of github.com:openkraken/kraken
wssgcg1213 May 9, 2022
bf9ba07
fix: fixed children not raise exception
wssgcg1213 May 9, 2022
d390fdd
fix: Should unmount document before calling dispose.
wssgcg1213 May 9, 2022
2a2b77a
feat: add impl for document.getElementsByName
wssgcg1213 May 9, 2022
e8ac2c3
fix: dispose render object
wssgcg1213 May 9, 2022
9641a18
fix: typo in test specs
wssgcg1213 May 9, 2022
9bc32b9
fix: drop child before dispose
wssgcg1213 May 9, 2022
212bac3
Merge pull request #1383 from openkraken/feat/polyfill-getElementsByName
temper357 May 10, 2022
dfd70d2
Merge pull request #1384 from openkraken/fix/fixedChildren
temper357 May 10, 2022
e15ee4a
:bug: fix: Children of custom element need RenderFlowLayout nesting, …
answershuto May 12, 2022
1d96587
:art: chore: add comment.
answershuto May 12, 2022
4f3d1e2
Fix/null value for style (#1389)
wssgcg1213 May 12, 2022
193b745
fix: positioned element offset when containing block has transform (#…
temper357 May 12, 2022
1a94261
:bug: fix: should get constraints width of parent render object.
answershuto May 12, 2022
fbeacb9
:art: chore: add comment.
answershuto May 12, 2022
e2b8e61
:bug: fix: constraints is null before layout.
answershuto May 13, 2022
5b8e356
:bug: fix: When renderObject has not layouted, get constraints will t…
answershuto May 13, 2022
26a3311
refactor: move scroll listener from renderBoxModel to element
temper357 May 13, 2022
e0512e6
fix: scrolling content box should trigger scrollable listener.
temper357 May 13, 2022
f4aa4d3
:art: chore: modify comment.
answershuto May 13, 2022
7f94b11
chore: code opt
temper357 May 13, 2022
d7c6b3a
feat: move ElementOverflowMixin from css to dom directory
temper357 May 13, 2022
8dd8222
fix: sliver mark needsLayout
temper357 May 16, 2022
f718aff
Merge pull request #1392 from openkraken/fix/custom_elment_item_layout
temper357 May 16, 2022
8e2ed60
fix: dispose
wssgcg1213 May 16, 2022
7db3d79
fix: sliver scroll listener
temper357 May 16, 2022
55119c9
fix: sliver should not create scroll content box
temper357 May 16, 2022
2cc2633
fix: lint
temper357 May 16, 2022
66fb680
fix: create/destroy scrolling content box when create renderer
temper357 May 16, 2022
b0fa43e
fix: the sync load order
wssgcg1213 May 16, 2022
01abd8a
fix: reset renderObject tree related pending styles
temper357 May 16, 2022
37ebf8b
fix: move alpha from renderBox to renderStyle
temper357 May 17, 2022
e178282
chore: code opt
temper357 May 17, 2022
ccea388
fix: scrolling content box should not has scrollTop/scrollLeft
temper357 May 17, 2022
c01d577
fix: lint
temper357 May 17, 2022
ff1a75a
chore: code opt
temper357 May 17, 2022
e3796af
fix: updateOverflowRenderBox not excute when overflow changes
temper357 May 17, 2022
89d32fe
chore: code opt
temper357 May 17, 2022
77fe116
feat: destroy scrollOffset when element is removed and recreate scrol…
temper357 May 17, 2022
a2fcd6b
test: add appendChild test
temper357 May 17, 2022
90c5c36
test: add sliver test
temper357 May 17, 2022
45c4ea5
Merge branch 'main' of github.com:openkraken/kraken into refactor/ren…
temper357 May 18, 2022
ca80036
feat: remove unneed markNeedsLayout
temper357 May 18, 2022
338fbf4
Merge pull request #1405 from openkraken/fix/script-load
answershuto May 18, 2022
d0f41f4
feat: add element.style property match.
andycall May 20, 2022
7d59778
Committing clang-format changes
May 20, 2022
eec7c6c
Merge pull request #1410 from openkraken/feat/property-match
andycall May 22, 2022
68802bb
fix: Rebuild all the sliver children.
wssgcg1213 May 23, 2022
d94e6eb
quickjs文件遗漏
yifei8 May 24, 2022
666d150
Merge pull request #1413 from yifei8/patch-3
answershuto May 24, 2022
0d67761
Merge pull request #1402 from openkraken/refactor/render-style-setter
andycall May 24, 2022
9a8ce6e
Revert "refactor: render style setter"
answershuto May 25, 2022
85f4138
Merge pull request #1414 from openkraken/revert-1402-refactor/render-…
andycall May 25, 2022
4c7740b
Update element.dart
wssgcg1213 May 25, 2022
1d7f77e
Update README.md
wssgcg1213 May 27, 2022
d1f3d91
Update README.md
wssgcg1213 May 27, 2022
bf1cd01
Merge pull request #1419 from openkraken/wssgcg1213-patch-1
andycall May 27, 2022
aaa3503
:memo: doc: modify REAEME. (#1420)
answershuto May 30, 2022
46126d3
feat. add sliver rect err
May 29, 2022
9772adb
test: test for publish
andycall Jun 9, 2022
ed00210
feat: add absolute-size & relative-size keywords of font-size
XGHeaven Jun 18, 2022
9fcb114
fix: fix android ndk home
andycall Jun 19, 2022
e4cdfa2
chore: remove invitations
andycall Jun 20, 2022
3400c13
Merge pull request #1431 from openkraken/andycall-patch-2
andycall Jun 20, 2022
2b62327
fix: fix ndk
andycall Jun 20, 2022
7f9c928
fix: fix publish actions:
andycall Jun 20, 2022
50aff25
feat: add prepublish binaries step
andycall Jun 21, 2022
964bbe8
fix: add version to changelog
andycall Jun 21, 2022
9936479
fix: change another publisher
andycall Jun 21, 2022
152f476
feat: migrate to release publish
andycall Jun 21, 2022
2b6a2bf
doc: upgrade ndk version
andycall Jun 21, 2022
a0c3565
fix: add git rev at nightly version
andycall Jun 21, 2022
368e6d7
Merge pull request #1432 from openkraken/ci/publish
andycall Jun 21, 2022
035102a
Merge pull request #1404 from openkraken/fix/widget-dispose
yifei8 Jun 25, 2022
26c3a47
Merge pull request #1430 from openkraken/xgheaven/more-font-size-keyw…
XGHeaven Jun 26, 2022
0d786cc
fix: fix integration test.
andycall Jun 28, 2022
e1d923d
Merge pull request #1421 from openkraken/feature/fix_sliver_rect_trans
andycall Jun 28, 2022
cf91601
chore: update snapshots.
andycall Jun 28, 2022
ce87607
test: fix transform-translate.ts
andycall Jun 28, 2022
01dbb5d
test: fix specs.
andycall Jun 28, 2022
e538a47
chore: remove iframe specs.
andycall Jun 28, 2022
2f18e01
test: fix transition specs
andycall Jun 28, 2022
c4f378e
fix: fix wrong snapshots
andycall Jun 30, 2022
c3f8d91
feat: support PointerSignalEvent in scrollable to [MacOS]不支持PC端(MacOS…
Jun 30, 2022
60fa75e
feat: support PointerSignalEvent on overflow、input、textarea、sliver by…
xuzhongpeng Jun 30, 2022
d5678e6
fix: delete unuselse code and add notifyListeners
xuzhongpeng Jun 30, 2022
2a0a02b
fix: change PointerEvent to PointerSignalEvent
Jul 1, 2022
935b7ef
fix: use more easy code way(?.)
Jul 1, 2022
afcd30b
feat: support scroll on overflow、input、textarea、sliver by mouse wheel
xuzhongpeng Jul 1, 2022
d4dabcc
feat: support transition with transform-origin property.
andycall Jul 1, 2022
f630f55
fix: fix border and absolute specs.
andycall Jul 1, 2022
0cfa494
fix: fix transitions.
andycall Jul 1, 2022
f5b56b9
test: fix specs.
andycall Jul 1, 2022
42d21b2
chore: fix dart linter
andycall Jul 1, 2022
74a4d9a
Merge remote-tracking branch 'origin/main' into fix/integration_test
andycall Jul 1, 2022
7b6c389
chore: fix linter
andycall Jul 1, 2022
2605aa6
chore: remove unnessary specs
andycall Jul 1, 2022
85a9cc2
feat: matrix integration tests
andycall Jul 2, 2022
8fa5bab
Merge branch 'fix/integration_test' into fix/sliver-child-rebuild
andycall Jul 2, 2022
6183ac8
Merge pull request #1436 from openkraken/fix/integration_test
andycall Jul 3, 2022
6d54607
Merge remote-tracking branch 'origin/main' into fix/sliver-child-rebuild
andycall Jul 3, 2022
e5dfff2
Merge pull request #1412 from openkraken/fix/sliver-child-rebuild
answershuto Jul 4, 2022
03e2c65
fix: add PointerDeviceKind on scrollable to #1437
Jul 4, 2022
40c444b
Merge pull request #1439 from xuzhongpeng/feature/scroll_by_touch
answershuto Jul 5, 2022
b6bb4a6
fix: fix stylesheet load.
andycall Jul 5, 2022
6ebc710
fix: fix stylesheet load
andycall Jul 5, 2022
fe9cb80
test: add snapshots
andycall Jul 5, 2022
0aaaa27
Merge pull request #1441 from openkraken/fix/stylesheet-load
yifei8 Jul 7, 2022
8a96495
Update controller.dart
yifei8 Jul 13, 2022
e6a144a
Update head.dart
yifei8 Jul 14, 2022
7244aa5
Merge pull request #1444 from openkraken/yifei8-patch-1
answershuto Jul 17, 2022
7d77480
Update README.md
wssgcg1213 Jul 27, 2022
2f4f971
Merge pull request #1452 from openkraken/add-webf-links
andycall Jul 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* [Flutter](https://flutter.dev/docs/get-started/install) version in the `kraken/pubspec.yaml`
* [CMake](https://cmake.org/) v3.10.0 or later
* [Xcode](https://developer.apple.com/xcode/) (10.12) or later (Running on macOS or iOS)
* [Android NDK](https://developer.android.com/studio/projects/install-ndk) version `21.4.7075529` (Running on Android)
* [Android NDK](https://developer.android.com/studio/projects/install-ndk) version `23.2.8568313` (Running on Android)

1. Install

Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/benchmark.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/bridge_compile_test.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Deploy
uses: taixw2/deploy-aliyun-oss@main
with:
access-key-id: ${{ secrets.OSS_AK }}
access-key-secret: ${{ secrets.OSS_SK }}
bucket: kraken
region: oss-cn-hangzhou
access-key-id: ${{ secrets.ALIYUN_OSS_AK }}
access-key-secret: ${{ secrets.ALIYUN_OSS_SK }}
bucket: andycall
region: oss-cn-beijing
entry: CONTRIBUTORS.svg
79 changes: 74 additions & 5 deletions .github/workflows/integration_test_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,90 @@ env:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
setup:
runs-on: macos-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: actions/checkout@v2
- id: matrix
run: |
JSON=$(node -e "console.log(JSON.stringify(require('./integration_tests/spec_group.json').map(j=>j.name)))")
echo "::set-output name=value::$(echo $JSON)"
build_bridge:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- run: npm i
- run: ENABLE_ASAN=true npm run build:bridge:macos
- uses: actions/upload-artifact@v2
with:
name: macos_bridge_binary
path: bridge/build/macos/
integration_test:
runs-on: [self-hosted]
runs-on: macos-latest
needs: [ setup, build_bridge ]
strategy:
fail-fast: false
matrix:
value: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- uses: actions/download-artifact@v2
with:
name: macos_bridge_binary
path: bridge/build/macos/
- run: cd integration_tests && npm i
- name: Run Test
run: npm test
run: cd integration_tests && SPEC_SCOPE="${{ matrix.value }}" npm run integration
id: test
continue-on-error: true
- name: Upload Snapshots
run: node scripts/upload_snapshots.js
- uses: actions/upload-artifact@v2
with:
name: integration_${{ matrix.value }}_snapshots
path: integration_tests/snapshots
- name: Check on failures
if: steps.test.outcome != 'success'
run: exit 1
plugin_test:
runs-on: macos-latest
needs: [ build_bridge ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.nodeVersion }}
- uses: actions/download-artifact@v2
with:
name: macos_bridge_binary
path: bridge/build/macos/
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- name: Run Plugin Test
run: cd integration_tests && npm run plugin_test
id: test
continue-on-error: true
- uses: actions/upload-artifact@v2
with:
name: plugin_snapshots
path: integration_tests/snapshots/plugins
- name: Check on failures
if: steps.test.outcome != 'success'
run: exit 1

28 changes: 0 additions & 28 deletions .github/workflows/plugin_test_flutter.yml

This file was deleted.

97 changes: 90 additions & 7 deletions .github/workflows/publish_to_dart_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,102 @@ jobs:
with:
name: linux_binary
path: bridge/build/linux/

publishToPubDev:
needs: build_linux_binary
runs-on: [self-hosted, flutter_2.2.0]
build_macos_binary:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:macos:release
- uses: actions/upload-artifact@v2
with:
name: macos_binary
path: bridge/build/macos/
build_ios_binary:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:ios:release
- uses: actions/upload-artifact@v2
with:
name: ios_binary
path: bridge/build/ios/
build_android_binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r23c
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- uses: jwlawson/[email protected]
with:
cmake-version: ${{ env.cmakeVersion }}
- name: NPM INSTALL
run: npm install
- name: Build bridge binary
run: npm run build:bridge:all:release
run: npm run build:bridge:android:release
- uses: actions/upload-artifact@v2
with:
name: android_binary
path: bridge/build/android/
publish:
needs: [build_linux_binary, build_android_binary, build_ios_binary, build_macos_binary]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutterVersion }}
- name: NPM INSTALL
run: npm install
- name: Set up nightly version
run: node scripts/set_up_nightly_release.js
- uses: actions/download-artifact@v2
with:
name: linux_binary
path: bridge/build/linux/
- name: Publish to dart.dev
run: cd kraken && flutter pub publish --force
- uses: actions/download-artifact@v2
with:
name: ios_binary
path: bridge/build/ios/
- uses: actions/download-artifact@v2
with:
name: macos_binary
path: bridge/build/macos/
- uses: actions/download-artifact@v2
with:
name: android_binary
path: bridge/build/android/
- name: Prepare distribute binaries
run: node scripts/pre_publish_kraken.js
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
flutter: true
skipTests: true
relativePath: ./kraken

Loading
Loading