ROME, the Java RSS/Atom/OPML library, ported to ArkTS for HarmonyOS and published
on OHPM as @explore-in-hmos/oh_rome.
ohpm install @explore-in-hmos/oh_romeUsage, supported formats and modules, and the differences from ROME are in oh_rome/README.md.
| Directory | What it is |
|---|---|
oh_rome/ |
The library (@explore-in-hmos/oh_rome), a HAR module, with its unit tests (src/test) and on-device tests (src/ohosTest) |
entry/ |
Sample app: samples for the main formats and modules, conversion, generation, OPML, real feeds |
fixtures/, tools/ |
ROME's test feeds and the tools that generate golden tests by running ROME itself |
scripts/ |
check.sh builds the HAR and the sample app and runs the unit tests (the only trustworthy pass/fail signal); pack-license.sh builds the packed license file |
Open the repository root in DevEco Studio, turn on automatic signing (File → Project Structure → Signing Configs) and
run entry.
Open the repository root in DevEco Studio, or from a shell:
ohpm install --all
./scripts/check.shRead CONTRIBUTING.md before changing the library: it has the porting rules and how the golden tests work.
- Set the version in
oh_rome/oh-package.json5and add it tooh_rome/CHANGELOG.md. The HAR's bytecode embeds the package version, and registries may check it against the package (ohpm-repo does), so build only after this step. - If
LICENSE,NOTICEorLICENSE-JDOMchanged, runscripts/pack-license.sh. It rewritesoh_rome/LICENSE, the only license file the HAR packs.check.shfails while that file is out of date. - Build the HAR with
hvigorw --mode module -p module=oh_rome@default -p product=default -p buildMode=release assembleHar, then runohpm prepublishandohpm publishonoh_rome/build/default/outputs/default/oh_rome.har.
Apache-2.0, like ROME. See LICENSE, NOTICE (which also carries the Apache Xerces notices
for the XML parser) and, for the XML writer that follows JDOM, LICENSE-JDOM.