frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Updating Flutter Plugin Project Structure

1•flfljh•5h ago
# Updating Flutter Plugin Project Structure # HarmonyOs next ## Update Summary

- Replacing HarmonyOS project structure with module structure in the `ohos` directory of Flutter plugins - Consolidating all referenced HAR files under `ohos/har` - Removing outdated module directories in OHOS plugins after update

## Update Procedure

Demonstrated using [integration_test](https://gitee.com/openharmony-sig/flutter_flutter) from flutter_flutter:

### 1. Restructure integration_test/ohos from project to module format ```sh cd flutter_flutter/packages/integration_test mv ohos/ohos ./ohos2 # Backup original structure rm -rf ohos # Remove old structure mv ohos2 ohos # Rename to standard module format cd example flutter pub get # Refresh dependencies flutter build hap --debug # Verify build ```

> *Note*: Running `flutter run` at this stage will fail until configuration updates are completed.

### 2. Configuration Updates

#### 2.1 Update integration_test/ohos/oh-package.json5 *Before*: ```json { "name": "ohos", ... } ```

*After* (match plugin name from pubspec.yaml): ```json { "name": "integration_test", "license": "Apache-2.0", "dependencies": { "@ohos/flutter_ohos": "file:har/flutter.har" } } ```

#### 2.2 Update integration_test/ohos/src/main/module.json5 *Before*: ```json { "module": { "name": "ohos", ... } } ```

*After*: ```json { "module": { "name": "integration_test", ... } } ```

#### 2.3 Update integration_test/ohos/hvigorfile.ts *Before*: ```typescript import { appTasks } from '@ohos/hvigor-ohos-plugin'; export default { system: appTasks, plugins:[] } ```

*After*: ```typescript export { harTasks } from '@ohos/hvigor-ohos-plugin'; ```

## Verification Steps

1. Open `integration_test/example` in DevEco Studio and configure signing 2. Run the example: ```sh cd integration_test/example flutter run -d $DEVICE --debug ```

### Critical HAR Reference Configuration HAR files are now located in `ohos/har`

#### Update example/ohos/oh-package.json5 ```json { "dependencies": { "@ohos/flutter_ohos": "file:./har/flutter.har" }, "overrides": { "@ohos/flutter_ohos": "file:./har/flutter.har" } } ```

#### Update example/ohos/entry/oh-package.json5 *Before*: ```json { "dependencies": { "@ohos/integration_test": "file:./har/integration_test.har" } } ```

*After*: ```json { "dependencies": { "integration_test": "file:../har/integration_test.har" } } ```

## Troubleshooting Common Issues

### 1. ENOENT: No such file or directory *Error*: ```log hvigor ERROR: ENOENT: no such file or directory, stat 'xxx/flutter_flutter/packages/integration_test/ohos/build/default/cache/default/default@packageHar/ohos/oh_modules/@ohos/flutter_ohos' ```

*Solution*: Manually delete the path mentioned in the error message.

### 2. Operation not permitted (symlink error) *Error*: ```log hvigor ERROR: ENOENT: operation not permitted, symlink 'xxx/webview_flutter_ohos/ohos/webview_flutter/oh_modules/.ohpm/@ohos+flutter_ohos@file+libs+flutter.har/oh_modules/@ohos/flutter_ohos' -> 'xxx/webview_flutter_ohos/ohos/build/default/cache/default/default@PackageHar/webview_flutter/oh_modules/@ohos/flutter_ohos' ```

*Solution*: Remove legacy directories from previous structure: ```sh rm -rf flutter_packages/packages/webview_flutter_ohos/ohos/webview_flutter rm -rf flutter_packages/packages/path_provider_ohos/ohos/path_provider rm -rf flutter_packages/packages/file_selector_ohos/ohos/FileSelector ```

Brit politicians question Fujitsu's continued role in public sector contracts

https://www.theregister.com/2025/06/25/fujitsu_public_sector_contracts/
1•rntn•1m ago•0 comments

Second study finds Uber used opaque algorithm to dramatically boost profits

https://www.theguardian.com/technology/2025/jun/25/second-study-finds-uber-used-opaque-algorithm-to-dramatically-boost-profits
1•c420•2m ago•0 comments

Gemini CLI

https://github.com/google-gemini/gemini-cli
4•sync•3m ago•1 comments

Battlereports.com Archive

https://www.angryontheinternet.com/
1•2Pacalypse-•3m ago•0 comments

Show HN: JWT_Crack

https://github.com/username1001/jwt_crack
1•mattFromJSToday•5m ago•0 comments

I built an adobe acrobat alternative for reading dense PDFs in comfort

https://www.shadowreader.io/
1•EbenZergaw•5m ago•1 comments

Google Cache Is Gone, I Like This Way Better: How to View Archived Websites

https://www.pcmag.com/how-to/view-cached-version-of-a-website
3•Bluestein•7m ago•0 comments

Paint 'sweats' to keep your house cool

https://www.sciencenews.org/article/this-paint-sweats-keep-your-house-cool
2•gmays•9m ago•0 comments

Migrating Code at Scale with LLMs at Google

https://arxiv.org/abs/2504.09691
2•azhenley•9m ago•0 comments

Tank of a smartphone brings the theater to you with a built-in projector

https://www.androidcentral.com/phones/unihertz-8849-tank-3-pro-built-in-projector
3•Bluestein•11m ago•0 comments

Show HN: ThinkTotem – turn boring books into engaging conversations

https://thinktotem.com
1•ccarnino•11m ago•0 comments

AI polymer masks restore paintings in hours

https://arstechnica.com/ai/2025/06/mit-student-prints-ai-polymer-masks-to-restore-paintings-in-hours/
1•mhb•12m ago•0 comments

Show HN: Riff – minimalist tool for shareable thoughts (MVP, seeking feedback)

https://www.riff.page/
1•nobody_nothing•12m ago•0 comments

CareerBuilder and Monster selling businesses, filing for bankruptcy

https://www.staffingindustry.com/news/global-daily-news/careerbuilder-monster-selling-businesses-filing-for-bankruptcy
1•ilamont•15m ago•0 comments

Show HN: A postcard that becomes a game built from your photo

https://ohlookitsme.com/
1•absurdwebsite•16m ago•1 comments

John Lind's The Science of Photography – a great piece of the "old web"

https://johnlind.tripod.com/
1•0xWTF•16m ago•1 comments

The Unitron Mac 512 – First Macintosh Clone

https://www.cultofmac.com/news/meet-unitron-mac-512-worlds-first-macintosh-clone
1•rbanffy•18m ago•0 comments

See Jane 128 by Arktronics run feat Magic Desk, 3-Plus-1 and the Thomson MO5

http://oldvcr.blogspot.com/2025/06/see-jane-128-by-arktronics-run.html
1•rbanffy•18m ago•0 comments

PDP-11 Replica: The PiDP-11

https://obsolescence.dev/pdp11.html
1•voxadam•19m ago•0 comments

Unimplemented Trap – Building my own paper tape punch

https://unimplementedtrap.com/paper-tape-punch
1•rbanffy•20m ago•0 comments

From NixOS to Ubuntu

https://jnsgr.uk/2025/06/from-nixos-to-ubuntu
3•jnsgruk•20m ago•0 comments

Networking for Systems Administrators

https://mwl.io/nonfiction/networking
1•lordleft•20m ago•0 comments

Learnings from two years of using AI tools (at Thoughtworks)

https://newsletter.pragmaticengineer.com/p/two-years-of-using-ai
1•flail•21m ago•0 comments

First freeform 3D spintronic device unveils new physics

https://www.nature.com/articles/s41586-024-08582-8
1•BartholomewQ•21m ago•0 comments

How to improve your content management system with IA

https://littlelanguagemodels.com/how-to-improve-your-content-management-system-with-information-architecture/
1•mooreds•24m ago•0 comments

What If Awareness Is the Fundamental Substrate of Reality?

1•GodlySharing•25m ago•1 comments

The 3DS Still Holds Up

https://boehs.org/node/3ds
2•surprisetalk•26m ago•1 comments

YAML Tool Calls

https://jeremyaboyd.com/post/yaml-tool-calls
1•azhenley•26m ago•0 comments

RNA has a new role: Repairing serious DNA damage to maintain the genome

https://theconversation.com/rna-has-newly-identified-role-repairing-serious-dna-damage-to-maintain-the-genome-256429
1•PaulHoule•28m ago•0 comments

Focus on the universe: what distinguishes four prominent telescopes

https://www.mpg.de/24878805/telescopes-in-comparison
2•sohkamyung•28m ago•0 comments