Commit 2af6a3f
initializr/js-port: drop native-JS zip; build the Generate zip in-Java
With the translator fixes (synchronous-native classification + inherited
static-field resolution), the pure-Java zip (net.sf.zipme via STORED) now runs
fast on the JavaScript port -- ~100ms for the full ~1MB project zip -- instead
of hanging or hitting a null DeflaterConstants static. So the native-JS zip
shim (an @JSBody that hand-assembled the archive over the raw arrays) is no
longer needed.
- Remove buildAndDownloadZip from CodenameOneImplementation/Display/CN and the
jsBuildZipDataUrl @JSBody from HTML5Implementation.
- GeneratorModel.generate() builds the STORED zip in-Java on every platform
(including JS) and delivers it via downloadBytesAsFile, falling back to
storage + execute() when unsupported.
Verified end-to-end on a locally built JS bundle: clean boot, no errors,
Generate downloads a valid 63-entry project zip (unzip -t clean).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6226e4a commit 2af6a3f
5 files changed
Lines changed: 12 additions & 185 deletions
File tree
- CodenameOne/src/com/codename1
- impl
- ui
- Ports/JavaScriptPort/src/main/java/com/codename1/impl/html5
- scripts/initializr/common/src/main/java/com/codename1/initializr/model
Lines changed: 0 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4527 | 4527 | | |
4528 | 4528 | | |
4529 | 4529 | | |
4530 | | - | |
4531 | | - | |
4532 | | - | |
4533 | | - | |
4534 | | - | |
4535 | | - | |
4536 | | - | |
4537 | | - | |
4538 | | - | |
4539 | | - | |
4540 | | - | |
4541 | | - | |
4542 | | - | |
4543 | | - | |
4544 | | - | |
4545 | | - | |
4546 | | - | |
4547 | | - | |
4548 | | - | |
4549 | | - | |
4550 | | - | |
4551 | | - | |
4552 | 4530 | | |
4553 | 4531 | | |
4554 | 4532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | 715 | | |
734 | 716 | | |
735 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3909 | 3909 | | |
3910 | 3910 | | |
3911 | 3911 | | |
3912 | | - | |
3913 | | - | |
3914 | | - | |
3915 | | - | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
3922 | | - | |
3923 | | - | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
3927 | | - | |
3928 | | - | |
3929 | | - | |
3930 | 3912 | | |
3931 | 3913 | | |
3932 | 3914 | | |
| |||
Lines changed: 0 additions & 98 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5637 | 5637 | | |
5638 | 5638 | | |
5639 | 5639 | | |
5640 | | - | |
5641 | | - | |
5642 | | - | |
5643 | | - | |
5644 | | - | |
5645 | | - | |
5646 | | - | |
5647 | | - | |
5648 | | - | |
5649 | | - | |
5650 | | - | |
5651 | | - | |
5652 | | - | |
5653 | | - | |
5654 | | - | |
5655 | | - | |
5656 | | - | |
5657 | | - | |
5658 | | - | |
5659 | | - | |
5660 | | - | |
5661 | | - | |
5662 | | - | |
5663 | | - | |
5664 | | - | |
5665 | | - | |
5666 | | - | |
5667 | | - | |
5668 | | - | |
5669 | | - | |
5670 | | - | |
5671 | | - | |
5672 | | - | |
5673 | | - | |
5674 | | - | |
5675 | | - | |
5676 | | - | |
5677 | | - | |
5678 | | - | |
5679 | | - | |
5680 | | - | |
5681 | | - | |
5682 | | - | |
5683 | | - | |
5684 | | - | |
5685 | | - | |
5686 | | - | |
5687 | | - | |
5688 | | - | |
5689 | | - | |
5690 | | - | |
5691 | | - | |
5692 | | - | |
5693 | | - | |
5694 | | - | |
5695 | | - | |
5696 | | - | |
5697 | | - | |
5698 | | - | |
5699 | | - | |
5700 | | - | |
5701 | | - | |
5702 | | - | |
5703 | | - | |
5704 | | - | |
5705 | | - | |
5706 | | - | |
5707 | | - | |
5708 | | - | |
5709 | | - | |
5710 | | - | |
5711 | | - | |
5712 | | - | |
5713 | | - | |
5714 | | - | |
5715 | | - | |
5716 | | - | |
5717 | | - | |
5718 | | - | |
5719 | | - | |
5720 | | - | |
5721 | | - | |
5722 | | - | |
5723 | | - | |
5724 | | - | |
5725 | | - | |
5726 | | - | |
5727 | | - | |
5728 | | - | |
5729 | | - | |
5730 | | - | |
5731 | | - | |
5732 | | - | |
5733 | | - | |
5734 | | - | |
5735 | | - | |
5736 | | - | |
5737 | | - | |
5738 | 5640 | | |
5739 | 5641 | | |
5740 | 5642 | | |
| |||
Lines changed: 12 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
151 | 135 | | |
152 | 136 | | |
153 | 137 | | |
| |||
221 | 205 | | |
222 | 206 | | |
223 | 207 | | |
224 | | - | |
225 | | - | |
| 208 | + | |
226 | 209 | | |
227 | 210 | | |
228 | 211 | | |
| |||
244 | 227 | | |
245 | 228 | | |
246 | 229 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
252 | 235 | | |
253 | 236 | | |
254 | 237 | | |
| |||
0 commit comments