Commit 189ec31
committed
feat(harmony): add network configuration and resource management features
Major changes:
- Network: Add NetworkConfiguration for custom HTTP headers
- Network: Add ResourceTransform for URL interception and transformation
- Network: Implement C++ NAPI bindings (network_napi, url_transform_napi)
- Network: Implement backend support (HTTPRequestConfig, URLTransformManager)
- Style: Improve addImage/addImages implementation with Image NAPI wrapper
- Style: Add async image loading APIs (addImageAsync, addImagesAsync)
- Style: Export image APIs through FileSource.setResourceTransform()
- Types: Refactor GeoJSON types to re-export from libmaplibre.so
- Types: Fix JSONValue usage across Feature and FeatureCollection
- Types: Simplify Light type to alias LightSpecification
- Docs: Update README with alpha version warnings and disclaimers
- Docs: Add comprehensive API documentation for network features
- Docs: Document resource transform callback usage
- Build: Add Hvigor plugin for bytecode HAR version management
- Build: Export plugin utilities for ABC version handling
API additions:
- NetworkConfiguration.setCustomHttpHeaders()
- NetworkConfiguration.addCustomHttpHeader()
- ResourceTransform.setCallback()
- Style.addImageAsync()
- Style.addImagesAsync()
Breaking changes: None (all additions are backward compatible)
Refs: Network configuration follows Android HttpRequestUtil and iOS MLNNetworkConfiguration patterns1 parent 4914807 commit 189ec31
51 files changed
Lines changed: 3236 additions & 656 deletions
File tree
- platform/harmony/maplibre_harmony
- src/main
- cpp
- core/native_map_view
- napi
- bindings
- network
- style
- core
- network
- types/libmaplibre
- geojson
- sources
- ets
- components/declarative
- layers
- sources
- maps
- camera
- geojson
- network
- storage
- style
- images
- light
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
5 | 31 | | |
6 | 32 | | |
7 | 33 | | |
| |||
213 | 239 | | |
214 | 240 | | |
215 | 241 | | |
| 242 | + | |
| 243 | + | |
216 | 244 | | |
217 | 245 | | |
218 | 246 | | |
| |||
221 | 249 | | |
222 | 250 | | |
223 | 251 | | |
224 | | - | |
| 252 | + | |
225 | 253 | | |
226 | 254 | | |
227 | 255 | | |
| |||
239 | 267 | | |
240 | 268 | | |
241 | 269 | | |
| 270 | + | |
| 271 | + | |
242 | 272 | | |
243 | 273 | | |
244 | 274 | | |
| |||
427 | 457 | | |
428 | 458 | | |
429 | 459 | | |
| 460 | + | |
| 461 | + | |
430 | 462 | | |
431 | 463 | | |
432 | 464 | | |
433 | 465 | | |
| 466 | + | |
434 | 467 | | |
435 | 468 | | |
436 | 469 | | |
437 | 470 | | |
438 | 471 | | |
| 472 | + | |
439 | 473 | | |
440 | 474 | | |
441 | 475 | | |
442 | 476 | | |
443 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
444 | 485 | | |
445 | 486 | | |
446 | 487 | | |
| |||
465 | 506 | | |
466 | 507 | | |
467 | 508 | | |
| 509 | + | |
| 510 | + | |
468 | 511 | | |
469 | 512 | | |
470 | 513 | | |
471 | 514 | | |
472 | 515 | | |
473 | 516 | | |
474 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
475 | 525 | | |
476 | 526 | | |
477 | 527 | | |
| |||
486 | 536 | | |
487 | 537 | | |
488 | 538 | | |
489 | | - | |
| 539 | + | |
490 | 540 | | |
491 | 541 | | |
492 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
493 | 551 | | |
494 | 552 | | |
495 | 553 | | |
496 | | - | |
| 554 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
| |||
Lines changed: 97 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
695 | 700 | | |
696 | 701 | | |
697 | 702 | | |
698 | | - | |
699 | | - | |
700 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
701 | 707 | | |
702 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
703 | 727 | | |
704 | 728 | | |
705 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
706 | 733 | | |
707 | 734 | | |
708 | 735 | | |
709 | | - | |
710 | | - | |
711 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
712 | 740 | | |
713 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
714 | 803 | | |
715 | 804 | | |
716 | 805 | | |
| |||
0 commit comments