@ohos-cpf/3rdloop 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/lib/cli.js +22 -5
- package/lib/doctor.js +111 -10
- package/lib/mcp.js +498 -0
- package/package.json +6 -2
- package/vendor/Archive/data/.index/meta.json +7 -0
- package/vendor/Archive/data/.index/search.db +0 -0
- package/vendor/Archive/data/docs/experiences/arkts-check-tool-pitfalls-baseline-comparison.md +13 -0
- package/vendor/Archive/data/docs/experiences/arkts-deep-path-import-recognition.md +31 -0
- package/vendor/Archive/data/docs/experiences/arkts-demo-coverage-entry-file-case-mismatch.md +25 -0
- package/vendor/Archive/data/docs/experiences/arkts-demo-coverage-import-trailing-slash.md +20 -0
- package/vendor/Archive/data/docs/experiences/arkts-library-source-files-may-be-ts.md +18 -0
- package/vendor/Archive/data/docs/experiences/arkts-typedarray-buffer-interface-cast-compile-fixes.md +36 -0
- package/vendor/Archive/data/docs/experiences/arkts-xts-compile-error-clustering-fix.md +24 -0
- package/vendor/Archive/data/docs/experiences/arkts-xts-doc-expected-value-runtime-probe.md +35 -0
- package/vendor/Archive/data/docs/experiences/arkts-xts-fixture-rawfile-testability-injection.md +33 -0
- package/vendor/Archive/data/docs/experiences/code-linter-chinese-comment-false-positive.md +16 -0
- package/vendor/Archive/data/docs/experiences/esobject-new-expression-variable-tracking.md +33 -0
- package/vendor/Archive/data/docs/experiences/filesystem-case-sensitivity-module-resolution.md +31 -0
- package/vendor/Archive/data/docs/experiences/gitcode-clone-redirect-warning-normal.md +13 -0
- package/vendor/Archive/data/docs/experiences/kn_msgvq1w585ec8319.md +77 -0
- package/vendor/Archive/data/docs/experiences/kn_msovnm6rd46de72c.md +98 -0
- package/vendor/Archive/data/docs/experiences/kn_mspt8vntfe708576.md +87 -0
- package/vendor/Archive/data/docs/experiences/kn_mspu1ei77adbbb48.md +133 -0
- package/vendor/Archive/data/docs/experiences/kn_mspubgak8d30bfce.md +128 -0
- package/vendor/Archive/data/docs/experiences/kn_mspug2de3cb1f7c3.md +115 -0
- package/vendor/Archive/data/docs/experiences/kn_skill_opt_001.md +38 -0
- package/vendor/Archive/data/docs/experiences/loop-artifacts-verification-evidence-triangle.md +19 -0
- package/vendor/Archive/data/docs/experiences/macos-bash-replace-build-ps1.md +19 -0
- package/vendor/Archive/data/docs/experiences/macos-bsd-diff-q-illegal-option.md +15 -0
- package/vendor/Archive/data/docs/experiences/migrate-cjs-compatible-api-version-map-limit.md +17 -0
- package/vendor/Archive/data/docs/experiences/mp3agic-arkts-library-behavior-quirks.md +21 -0
- package/vendor/Archive/data/docs/experiences/ohos-face-detection-scan-api-mapping.md +15 -0
- package/vendor/Archive/data/docs/experiences/pr-metadata-and-diff-integrity-verification.md +12 -0
- package/vendor/Archive/data/docs/experiences/rn-coverage-index-signature-pseudo-member-false-negative.md +32 -0
- package/vendor/Archive/data/docs/experiences/rn-memory-check-severity-calibration.md +21 -0
- package/vendor/Archive/data/docs/experiences/rn-platform-specific-api-exclusion-evidence.md +24 -0
- package/vendor/Archive/data/docs/experiences/rn-upstream-version-diff-pitfalls.md +17 -0
- package/vendor/Archive/data/docs/experiences/rn-version-gap-risk-rating-rules.md +13 -0
- package/vendor/Archive/data/docs/experiences/rn-view-lib-native-contract-diff-fabric-spec.md +16 -0
- package/vendor/Archive/data/docs/experiences/rnoh-adapter-package-version-field-semantics.md +18 -0
- package/vendor/Archive/data/docs/experiences/rnoh-arkts-sqlite-rows-array-format.md +18 -0
- package/vendor/Archive/data/docs/experiences/rnoh-dependency-residue-scan-strategy.md +18 -0
- package/vendor/Archive/data/docs/experiences/rnoh-example-local-lib-dep-use-tgz.md +53 -0
- package/vendor/Archive/data/docs/experiences/rnoh-example-prereserve-rntesterlist.md +17 -0
- package/vendor/Archive/data/docs/experiences/rnoh-example-template-compatiblesdkversion-upgrade.md +29 -0
- package/vendor/Archive/data/docs/experiences/rnoh-example-turbomodule-shell-adaptation-checklist.md +41 -0
- package/vendor/Archive/data/docs/experiences/rnoh-mcp-build-project-tool-risk.md +18 -0
- package/vendor/Archive/data/docs/experiences/rnoh-npm-devdependencies-version-precheck.md +29 -0
- package/vendor/Archive/data/docs/experiences/rnoh-repo-baseline-version-verification.md +13 -0
- package/vendor/Archive/data/docs/experiences/rnoh-repo-upstream-directory-mapping.md +18 -0
- package/vendor/Archive/data/docs/experiences/rnoh-stateless-library-zero-leak-verification.md +31 -0
- package/vendor/Archive/data/docs/experiences/rnoh-template-npmrc-credential-removal.md +15 -0
- package/vendor/Archive/data/docs/experiences/rnoh-turbomodule-codegen-wiring-verification.md +19 -0
- package/vendor/Archive/data/docs/experiences/rnoh-turbomodule-cpp-methodmap-compatibility-check.md +20 -0
- package/vendor/Archive/data/docs/experiences/scenario-doc-vs-source-signature-diff-four-patterns.md +24 -0
- package/vendor/Archive/data/docs/experiences/static-analysis-grep-cross-validation.md +29 -0
- package/vendor/Archive/demo.js +489 -0
- package/vendor/Archive/index.js +43 -0
- package/vendor/Archive/package.json +16 -0
- package/vendor/Archive/src/constants.js +83 -0
- package/vendor/Archive/src/data/stopwords.txt +110 -0
- package/vendor/Archive/src/data/synonyms.json +25 -0
- package/vendor/Archive/src/data/terms.txt +59 -0
- package/vendor/Archive/src/db/sqlite-backend.js +312 -0
- package/vendor/Archive/src/db/sqlite-schema.js +64 -0
- package/vendor/Archive/src/engine.js +501 -0
- package/vendor/Archive/src/index/index-manager.js +203 -0
- package/vendor/Archive/src/index/index-state.js +94 -0
- package/vendor/Archive/src/index/search-text-builder.js +106 -0
- package/vendor/Archive/src/index.js +22 -0
- package/vendor/Archive/src/parser/api-identifiers.js +121 -0
- package/vendor/Archive/src/parser/api-suffixes.js +48 -0
- package/vendor/Archive/src/parser/heading-normalize.js +40 -0
- package/vendor/Archive/src/parser/markdown-splitter.js +215 -0
- package/vendor/Archive/src/search/catalog-routing.js +87 -0
- package/vendor/Archive/src/search/fts-search.js +289 -0
- package/vendor/Archive/src/search/query-normalizer.js +159 -0
- package/vendor/Archive/src/search/query-rewriter.js +72 -0
- package/vendor/Archive/src/search/search-engine.js +72 -0
- package/vendor/Archive/src/search/snippet.js +64 -0
- package/vendor/Archive/src/store/dir-store.js +103 -0
- package/vendor/Archive/src/store/doc-store.js +36 -0
- package/vendor/Archive/src/tokenizer/lexicon.js +151 -0
- package/vendor/Archive/src/tokenizer/tokenizer.js +167 -0
- package/vendor/Archive/src/types.js +86 -0
- package/vendor/Archive/src/utils/hash.js +16 -0
- package/vendor/Archive/src/utils/lock.js +73 -0
- package/vendor/Archive/src/utils/path-safety.js +96 -0
- package/vendor/Archive/src/utils/paths.js +39 -0
- package/vendor/BadCase/rn/INDEX.md +127 -0
- package/vendor/BadCase/rn/cases/KI-001-webview/350/247/206/351/242/221/346/227/240/346/263/225/346/250/252/345/261/217.md +52 -0
- package/vendor/BadCase/rn/cases/KI-002-fastImage/347/203/255/346/233/264/346/226/260/345/233/276/347/211/207/345/244/261/350/264/245.md +37 -0
- package/vendor/BadCase/rn/cases/KI-003-wechat/347/274/251/347/225/245/345/233/276/346/234/254/345/234/260/345/233/276/347/211/207.md +62 -0
- package/vendor/BadCase/rn/cases/KI-004-wechat/345/233/236/350/260/203/346/227/266/345/272/217.md +47 -0
- package/vendor/BadCase/rn/cases/KI-005-geolocation/345/257/274/345/205/245/350/267/257/345/276/204/345/220/216/347/274/200.md +31 -0
- package/vendor/BadCase/rn/cases/KI-006-SmartRefreshLayout/346/231/272/350/203/275/346/214/207/351/222/210/345/264/251/346/272/203.md +55 -0
- package/vendor/BadCase/rn/cases/KI-007-orientation-locker/344/274/240/346/204/237/345/231/250/345/210/235/345/247/213/345/214/226.md +58 -0
- package/vendor/BadCase/rn/cases/KI-008-orientation-locker/344/274/240/346/204/237/345/231/250/345/274/225/347/224/250/350/256/241/346/225/260.md +47 -0
- package/vendor/BadCase/rn/cases/KI-009-pager-view/345/265/214/345/245/227/346/273/221/345/212/250.md +38 -0
- package/vendor/BadCase/rn/cases/KI-010-screens/346/211/213/345/212/277/345/206/262/347/252/201.md +48 -0
- package/vendor/BadCase/rn/cases/KI-011-spring-scrollview/346/211/213/345/212/277/351/207/215/345/244/215/347/273/221/345/256/232.md +49 -0
- package/vendor/BadCase/rn/cases/KI-012-qr-camera/346/250/252/345/261/217/351/200/202/351/205/215.md +59 -0
- package/vendor/BadCase/rn/cases/KI-013-webview/346/267/261/350/211/262/346/250/241/345/274/217/350/203/214/346/231/257/350/211/262.md +37 -0
- package/vendor/BadCase/rn/cases/KI-014-amap-geolocation/345/233/236/350/260/203/347/274/272/345/244/261.md +42 -0
- package/vendor/BadCase/rn/cases/KI-015-reanimated/350/277/220/350/241/214/346/227/266/346/236/220/346/236/204/345/264/251/346/272/203.md +54 -0
- package/vendor/BadCase/rn/cases/KI-016-fs/346/226/207/344/273/266/350/257/273/345/217/226/347/274/226/347/240/201.md +58 -0
- package/vendor/BadCase/rn/cases/KI-017-blob-util/345/217/202/346/225/260/347/274/226/347/240/201/351/224/231/350/257/257.md +39 -0
- package/vendor/BadCase/rn/cases/KI-018-modal/345/274/271/347/252/227/351/227/252/347/203/201.md +53 -0
- package/vendor/BadCase/rn/cases/KI-019-code-push/351/207/215/345/220/257/351/200/273/350/276/221/345/244/261/346/225/210.md +79 -0
- package/vendor/BadCase/rn/cases/KI-020-netinfo/346/225/217/346/204/237/344/277/241/346/201/257/346/263/204/351/234/262.md +60 -0
- package/vendor/BadCase/rn/cases/KI-021-video/346/234/254/345/234/260/350/247/206/351/242/221/346/222/255/346/224/276/345/274/202/345/270/270.md +79 -0
- package/vendor/BadCase/rn/cases/KI-022-audio-recorder-player/346/236/232/344/270/276/347/274/272/345/244/261.md +38 -0
- package/vendor/BadCase/rn/cases/KI-023-svg/346/270/220/345/217/230/347/273/247/346/211/277/345/244/261/346/225/210.md +62 -0
- package/vendor/BadCase/rn/generalization-log.md +55 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-SmartRefreshLayout-32.json +328 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-SmartRefreshLayout-32.md +382 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-amap-geolocation-27.json +1351 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-amap-geolocation-27.md +1176 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-audio-recorder-player-22.json +538 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-audio-recorder-player-22.md +1488 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-blob-util-23.json +211 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-blob-util-23.md +35 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-code-push-17.json +2048 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-code-push-17.md +3866 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-fast-image-102.json +198 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-fast-image-102.md +40 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-fs-38.json +751 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-fs-38.md +883 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-geolocation-24.json +1544 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-geolocation-24.md +2598 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-modal-20.json +246 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-modal-20.md +554 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-netinfo-31.json +211 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-netinfo-31.md +54 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-orientation-locker-45.json +1626 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-orientation-locker-45.md +2213 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-orientation-locker-51.json +208 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-orientation-locker-51.md +77 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-pager-view-32.json +377 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-pager-view-32.md +174 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-qr-decode-image-camera-37.json +232 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-qr-decode-image-camera-37.md +194 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-reanimated-82.json +198 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-reanimated-82.md +67 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-screens-87.json +198 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-screens-87.md +38 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-screens-93.json +208 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-screens-93.md +34 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-spring-scrollview-38.json +222 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-spring-scrollview-38.md +56 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-svg-117.json +463 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-svg-117.md +383 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-video-66.json +464 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-video-66.md +565 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-webview-112.json +198 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-webview-112.md +47 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-webview-121.json +232 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-webview-121.md +422 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-wechat-lib-15.json +295 -0
- package/vendor/BadCase/rn/pr-info/rntpc_react-native-wechat-lib-15.md +1038 -0
- package/vendor/BadCase/rn/rules/R-01-/345/205/250/345/261/217/347/252/227/345/217/243/347/212/266/346/200/201/347/256/241/347/220/206/345/256/214/346/225/264/346/200/247.md +20 -0
- package/vendor/BadCase/rn/rules/R-02-/350/265/204/346/272/220URI/345/275/242/346/200/201/345/210/206/346/224/257/350/246/206/347/233/226.md +21 -0
- package/vendor/BadCase/rn/rules/R-03-/351/231/204/345/261/236/346/223/215/344/275/234/345/244/261/350/264/245/351/230/273/346/226/255/344/270/273/346/265/201/347/250/213.md +20 -0
- package/vendor/BadCase/rn/rules/R-04-/345/274/202/346/255/245/345/233/236/350/260/203/346/263/250/345/206/214/346/227/266/345/272/217.md +20 -0
- package/vendor/BadCase/rn/rules/R-05-/346/250/241/345/235/227/345/257/274/345/205/245/350/267/257/345/276/204/350/247/204/350/214/203.md +19 -0
- package/vendor/BadCase/rn/rules/R-06-/344/274/240/346/204/237/345/231/250/347/241/254/344/273/266/346/235/203/351/231/220/346/214/211/351/234/200/350/216/267/345/217/226.md +21 -0
- package/vendor/BadCase/rn/rules/R-07-/346/231/272/350/203/275/346/214/207/351/222/210/347/224/237/345/221/275/345/221/250/346/234/237/347/256/241/347/220/206.md +20 -0
- package/vendor/BadCase/rn/rules/R-08-/346/211/213/345/212/277/344/272/213/344/273/266/346/263/250/345/206/214/344/270/216/345/206/262/347/252/201/345/244/204/347/220/206.md +22 -0
- package/vendor/BadCase/rn/rules/R-09-/346/250/252/347/253/226/345/261/217/345/244/232/345/275/242/346/200/201/345/270/203/345/261/200/351/200/202/351/205/215.md +20 -0
- package/vendor/BadCase/rn/rules/R-10-/346/267/261/350/211/262/346/250/241/345/274/217/344/270/273/351/242/230/351/242/234/350/211/262/351/200/202/351/205/215.md +19 -0
- package/vendor/BadCase/rn/rules/R-11-/346/216/245/345/217/243/345/233/236/350/260/203/345/256/236/347/216/260/345/256/214/346/225/264/346/200/247.md +20 -0
- package/vendor/BadCase/rn/rules/R-12-/345/216/237/347/224/237/350/277/220/350/241/214/346/227/266/350/265/204/346/272/220/346/236/220/346/236/204/346/227/266/345/272/217.md +20 -0
- package/vendor/BadCase/rn/rules/R-13-/346/226/207/344/273/266/346/225/260/346/215/256/347/274/226/347/240/201/344/270/216/346/240/274/345/274/217/345/205/274/345/256/271.md +21 -0
- package/vendor/BadCase/rn/rules/R-14-/345/212/250/347/224/273/345/210/235/345/247/213/345/214/226/346/227/266/345/272/217/344/270/216/347/212/266/346/200/201/345/220/214/346/255/245.md +20 -0
- package/vendor/BadCase/rn/rules/R-15-/347/212/266/346/200/201/346/214/201/344/271/205/345/214/226/344/270/216/351/207/215/345/220/257/351/200/273/350/276/221/344/270/200/350/207/264/346/200/247.md +20 -0
- package/vendor/BadCase/rn/rules/R-16-/346/225/217/346/204/237/344/277/241/346/201/257/346/227/245/345/277/227/346/263/204/351/234/262.md +19 -0
- package/vendor/BadCase/rn/rules/R-17-/345/252/222/344/275/223/350/265/204/346/272/220/347/224/237/345/221/275/345/221/250/346/234/237/344/270/216/351/224/231/350/257/257/345/244/204/347/220/206.md +21 -0
- package/vendor/BadCase/rn/rules/R-18-/350/203/275/345/212/233/346/236/232/344/270/276/351/205/215/347/275/256/345/256/214/346/225/264/346/200/247.md +19 -0
- package/vendor/BadCase/rn/rules/R-19-/345/233/276/345/275/242/346/270/262/346/237/223/345/261/236/346/200/247/347/273/247/346/211/277/344/270/216/351/207/215/347/275/256.md +19 -0
- package/vendor/MCP/README.md +490 -0
- package/vendor/MCP/config.json +29 -0
- package/vendor/MCP/package.json +23 -0
- package/vendor/MCP/scripts/analyze-demo-coverage.cjs +1203 -0
- package/vendor/MCP/scripts/analyze-xts-coverage.cjs +1245 -0
- package/vendor/MCP/scripts/deveco_docs.js +247 -0
- package/vendor/MCP/scripts/extract-interfaces.cjs +1487 -0
- package/vendor/MCP/scripts/flutter-analyze-demo-coverage.cjs +666 -0
- package/vendor/MCP/scripts/flutter-analyze-xts-coverage.cjs +684 -0
- package/vendor/MCP/scripts/flutter-extract-interfaces.cjs +1251 -0
- package/vendor/MCP/scripts/flutter-render-spec-doc.cjs +351 -0
- package/vendor/MCP/scripts/render-spec-doc.cjs +347 -0
- package/vendor/MCP/scripts/rn-analyze-demo-coverage.cjs +645 -0
- package/vendor/MCP/scripts/rn-analyze-test-coverage.cjs +614 -0
- package/vendor/MCP/scripts/rn-extract-interfaces.cjs +1462 -0
- package/vendor/MCP/scripts/rn-render-spec-doc.cjs +327 -0
- package/vendor/MCP/scripts/rn-scan-exports.cjs +1336 -0
- package/vendor/MCP/src/client/MCPClientPool.js +220 -0
- package/vendor/MCP/src/config/ConfigLoader.js +189 -0
- package/vendor/MCP/src/executor/ScriptExecutor.js +110 -0
- package/vendor/MCP/src/gateway/Gateway.js +451 -0
- package/vendor/MCP/src/index.js +87 -0
- package/vendor/MCP/src/library/KBToolProvider.js +229 -0
- package/vendor/MCP/src/library/logger.js +60 -0
- package/vendor/MCP/src/registry/ScriptRegistry.js +238 -0
- package/vendor/MCP/src/registry/ToolRegistry.js +111 -0
- package/vendor/MCP/src/types.js +115 -0
- package/vendor/Server/Skills/arkts-library-test-coverage-check/references/MCP_TOOL_USAGE.md +4 -2
- package/vendor/Server/Skills/arkts-library-xts-coverage/SKILL.md +3 -3
- package/vendor/Server/Skills/knowledge-import/SKILL.md +1 -1
- package/vendor/Server/Skills/knowledge-import/references/MCP_TOOL_USAGE.md +12 -4
- package/vendor/Server/Skills/ohos-lib-pr-push/SKILL.md +5 -4
- package/vendor/Server/Skills/rn-library-issue-generalizer/SKILL.md +2 -2
- package/vendor/Server/Skills/rn-library-known-issue-check/SKILL.md +2 -2
- package/vendor/Server/Skills/rnoh-lib-demo-coverage/SKILL.md +1 -2
- package/vendor/Server/Skills/rnoh-lib-test-align/references/port-test-demo-guide.md +1 -1
- package/vendor/Server/Skills/rnoh-lib-xts-coverage/SKILL.md +1 -2
- package/vendor/Server/package.json +5 -1
- package/vendor/VERSION +3 -3
|
@@ -0,0 +1,1544 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pr": {
|
|
3
|
+
"id": 8840815,
|
|
4
|
+
"html_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/merge_requests/24",
|
|
5
|
+
"number": 24,
|
|
6
|
+
"state": "merged",
|
|
7
|
+
"title": "fix:去除index.ets,ts.ets中导包带入的.ets",
|
|
8
|
+
"url": "https://api.gitcode.com/api/v5/repos/CPF-RN/rntpc_react-native-geolocation/pulls/24",
|
|
9
|
+
"issue_url": "https://api.gitcode.com/api/v5/repos/CPF-RN/rntpc_react-native-geolocation/pulls/24/issues",
|
|
10
|
+
"body": "问题原因:index.ets,ts.ets的导包带了.ets的后缀,导致ide显示爆红,但是不影响使用,影响开发者使用体验,以为是三方库有问题\n解决方案:去除index.ets,ts.ets中导包带入的.ets后缀",
|
|
11
|
+
"assignees_number": 2,
|
|
12
|
+
"assignees": [
|
|
13
|
+
{
|
|
14
|
+
"id": "67fdb69df01e3c566929edd4",
|
|
15
|
+
"login": "gcw_N7oHqLFR",
|
|
16
|
+
"name": "huang_jy",
|
|
17
|
+
"avatar_url": "",
|
|
18
|
+
"html_url": "https://gitcode.com/gcw_N7oHqLFR",
|
|
19
|
+
"assignee": true,
|
|
20
|
+
"code_owner": false,
|
|
21
|
+
"accept": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "6731c8f2fbbddc0c200a6019",
|
|
25
|
+
"login": "zhu_chengcheng",
|
|
26
|
+
"name": "zhu_chengcheng",
|
|
27
|
+
"avatar_url": "https://cdn-img.gitcode.com/fe/bd/f406eb600317d9bbb6a5c23042b49e5193dfbb7a63ee407f5bbfcbabcd177af1.jpg",
|
|
28
|
+
"html_url": "https://gitcode.com/zhu_chengcheng",
|
|
29
|
+
"assignee": true,
|
|
30
|
+
"code_owner": false,
|
|
31
|
+
"accept": true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"testers": [
|
|
35
|
+
{
|
|
36
|
+
"id": "6541ccea82d8f837210e92c3",
|
|
37
|
+
"login": "openharmony_ci",
|
|
38
|
+
"name": "openharmony_ci",
|
|
39
|
+
"avatar_url": "https://cdn-img.gitcode.com/cb/be/5cb10620b4e9195576142df69cd44bb84df15d769c2a04eff5bf7324b903022c.png?time=1723462328974",
|
|
40
|
+
"html_url": "https://gitcode.com/openharmony_ci",
|
|
41
|
+
"assignee": false,
|
|
42
|
+
"code_owner": false,
|
|
43
|
+
"accept": true
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"approval_reviewers": [],
|
|
47
|
+
"labels": [
|
|
48
|
+
{
|
|
49
|
+
"id": 13244230,
|
|
50
|
+
"color": "#428BCA",
|
|
51
|
+
"name": "dco检查成功",
|
|
52
|
+
"repository_id": 4369198,
|
|
53
|
+
"created_at": "2026-06-26T17:43:24+08:00",
|
|
54
|
+
"updated_at": "2026-07-07T11:02:39+08:00"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": 13244294,
|
|
58
|
+
"color": "#428BCA",
|
|
59
|
+
"name": "编译成功",
|
|
60
|
+
"repository_id": 4369198,
|
|
61
|
+
"created_at": "2026-06-27T11:59:41+08:00",
|
|
62
|
+
"updated_at": "2026-07-08T19:59:00+08:00"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": 13244241,
|
|
66
|
+
"color": "#428BCA",
|
|
67
|
+
"name": "静态检查成功",
|
|
68
|
+
"repository_id": 4369198,
|
|
69
|
+
"created_at": "2026-06-26T18:25:32+08:00",
|
|
70
|
+
"updated_at": "2026-07-08T19:59:12+08:00"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"created_at": "2026-07-07T11:02:00+08:00",
|
|
74
|
+
"updated_at": "2026-07-08T20:00:00+08:00",
|
|
75
|
+
"closed_at": "2026-07-08T19:59:59+08:00",
|
|
76
|
+
"merged_at": "2026-07-08T19:59:59+08:00",
|
|
77
|
+
"merged_by": {
|
|
78
|
+
"id": "6541ccea82d8f837210e92c3",
|
|
79
|
+
"login": "openharmony_ci",
|
|
80
|
+
"name": "openharmony_ci",
|
|
81
|
+
"avatar_url": "https://cdn-img.gitcode.com/cb/be/5cb10620b4e9195576142df69cd44bb84df15d769c2a04eff5bf7324b903022c.png?time=1723462328974",
|
|
82
|
+
"html_url": "https://gitcode.com/openharmony_ci"
|
|
83
|
+
},
|
|
84
|
+
"draft": false,
|
|
85
|
+
"can_merge_check": true,
|
|
86
|
+
"prune_branch": false,
|
|
87
|
+
"mergeable": true,
|
|
88
|
+
"user": {
|
|
89
|
+
"id": "67fe10947795fd623e1a1214",
|
|
90
|
+
"login": "chenbaodi123",
|
|
91
|
+
"name": "chenbaodi123",
|
|
92
|
+
"avatar_url": "",
|
|
93
|
+
"html_url": "https://gitcode.com/chenbaodi123"
|
|
94
|
+
},
|
|
95
|
+
"head": {
|
|
96
|
+
"ref": "br_rnoh0.72",
|
|
97
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
98
|
+
"label": "br_rnoh0.72",
|
|
99
|
+
"repo": {
|
|
100
|
+
"path": "rntpc_react-native-geolocation",
|
|
101
|
+
"name": "rntpc_react-native-geolocation",
|
|
102
|
+
"namespace": {
|
|
103
|
+
"path": "chenbaodi123"
|
|
104
|
+
},
|
|
105
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
106
|
+
"html_url": "https://gitcode.com/chenbaodi123/rntpc_react-native-geolocation.git"
|
|
107
|
+
},
|
|
108
|
+
"user": {
|
|
109
|
+
"id": "67fe10947795fd623e1a1214",
|
|
110
|
+
"login": "chenbaodi123",
|
|
111
|
+
"name": "chenbaodi123",
|
|
112
|
+
"avatar_url": "",
|
|
113
|
+
"html_url": "https://gitcode.com/chenbaodi123"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"base": {
|
|
117
|
+
"ref": "br_rnoh0.72",
|
|
118
|
+
"sha": "aa3537ba97ef57484305ceae4726a4294b962ae6",
|
|
119
|
+
"label": "br_rnoh0.72",
|
|
120
|
+
"repo": {
|
|
121
|
+
"path": "rntpc_react-native-geolocation",
|
|
122
|
+
"name": "rntpc_react-native-geolocation",
|
|
123
|
+
"namespace": {
|
|
124
|
+
"path": "CPF-RN"
|
|
125
|
+
},
|
|
126
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
127
|
+
"html_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation.git"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"mergeable_state": {
|
|
131
|
+
"merge_request_id": 8840815,
|
|
132
|
+
"state": true,
|
|
133
|
+
"status_without_user_auth": true,
|
|
134
|
+
"conflict_passed": true,
|
|
135
|
+
"branch_missing_passed": true,
|
|
136
|
+
"non_ff_passed": true,
|
|
137
|
+
"mr_state_passed": true,
|
|
138
|
+
"merged_by_user_passed": true,
|
|
139
|
+
"work_in_progress_passed": true,
|
|
140
|
+
"resolve_discussion_passed": true,
|
|
141
|
+
"ci_state_passed": true,
|
|
142
|
+
"merge_by_self_passed": true,
|
|
143
|
+
"can_force_merge": true,
|
|
144
|
+
"approval_reviewers_required_passed": true,
|
|
145
|
+
"approval_approvers_required_passed": true,
|
|
146
|
+
"approval_testers_required_passed": true,
|
|
147
|
+
"merge_request_switch": {
|
|
148
|
+
"review_mode": "approval",
|
|
149
|
+
"merge_method": "merge",
|
|
150
|
+
"only_allow_merge_if_all_discussions_are_resolved": true,
|
|
151
|
+
"disable_merge_by_self": true,
|
|
152
|
+
"only_allow_merge_if_pipeline_succeeds": false,
|
|
153
|
+
"disable_squash_merge": false,
|
|
154
|
+
"squash_merge_with_no_merge_commit": false,
|
|
155
|
+
"approval_required_reviewers_count": 0,
|
|
156
|
+
"approval_required_reviewers_branch": "*",
|
|
157
|
+
"add_notes_after_merged": true,
|
|
158
|
+
"mark_auto_merged_mr_as_closed": false,
|
|
159
|
+
"can_force_merge": true,
|
|
160
|
+
"can_reopen": true
|
|
161
|
+
},
|
|
162
|
+
"reason": {},
|
|
163
|
+
"check_tasks_num": 2,
|
|
164
|
+
"all_depend_merge_request_merged_passed": true,
|
|
165
|
+
"approval_approvers_result": 2,
|
|
166
|
+
"approval_testers_result": 2
|
|
167
|
+
},
|
|
168
|
+
"visibility_reason": "public",
|
|
169
|
+
"close_related_issue": true,
|
|
170
|
+
"squash_merge": false
|
|
171
|
+
},
|
|
172
|
+
"files": [
|
|
173
|
+
{
|
|
174
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
175
|
+
"filename": "OAT.xml",
|
|
176
|
+
"additions": 46,
|
|
177
|
+
"deletions": 1,
|
|
178
|
+
"blob_id": "fbab023f269872574eea699f8404c1debf412eba",
|
|
179
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/OAT.xml",
|
|
180
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/OAT.xml",
|
|
181
|
+
"patch": "@@ -2,6 +2,18 @@\n <configuration>\n \t<oatconfig>\n \t<licensefile>LICENSE</licensefile>\n+ <policylist>\n+ <policy name=\"projectPolicy\" desc=\"\">\n+ <policyitem type=\"license\" name=\"MIT\" path=\".*\" desc=\"license under the MIT\"/>\n+ </policy>\n+ <policy name=\"projectPolicy\" desc=\"\">\n+ <policyitem type=\"compatibility\" name=\"GPL-2.0+\" path=\".*\" desc=\"Process that runs independently, invoked by the X process.\"/>\n+ <policyitem type=\"compatibility\" name=\"Apache-2.0\" path=\".*\" desc=\"不影响兼容性\"/>\n+ <policyitem type=\"compatibility\" name=\"BSDStyleLicense\" path=\".*\" desc=\"不影响兼容性\" />\n+ <policyitem type=\"compatibility\" name=\"MIT\" path=\".*\" desc=\"不影响兼容性\" />\n+ <policyitem type=\"compatibility\" name=\"GPLStyleLicense\" path=\".*\" desc=\"不影响兼容性\" />\n+ </policy>\n+ </policylist>\t\n \t\t<filefilterlist>\n \t\t\t<filefilter name=\"copyrightPolicyFilter\" desc=\"Filters for compatibility,license header policies\">\n \t\t\t\t<filteritem type=\"filename\" name=\"hvigorfile.ts\" desc=\"hvigor构建脚本,DevEco Studio自动生成,不需要添加版权头\"/>\n@@ -14,7 +26,23 @@\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigorw\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigorw.bat\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigor/hvigor-wrapper.js\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n- <filteritem type=\"filename\" name=\"LICENSE\" desc=\"原三方库证书文件无需更改,因此添加过滤\"/>\n+ <filteritem type=\"filename\" name=\"LICENSE\" desc=\"disan原三方库证书文件无需更改,因此添加过滤\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/harmony/entry/src/main/cpp/generated/.*\" desc=\"Codegen生成文件,不手动修改\"/>\n+ <filteritem type=\"filepath\" name=\"example/.prettierrc.js\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/.watchmanconfig\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/babel.config.js\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/.clang-tidy\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/.clangd\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\".releaserc\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"babel.config.js\" desc=\"工程模板,不添加许可证头\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"yarn.lock\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/entry/src/main/resources/rawfile/bundle.harmony.js\" desc=\"编译生成文件\"/>\t\t\t\n+ <filteritem type=\"filepath\" name=\"js/index.ts\" desc=\"原三方库源码,不修改版权头,以防有修改版权风险\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/harmony/format.ps1\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.eslintrc\" desc=\"工程模板,不添加许可证头\"/> \t\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.node-version\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.eslintrc\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/scripts/create-build-profile.js\" desc=\"工程模板,不添加许可证头\"/> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t</filefilter>\n \t\t\t<filefilter name=\"defaultPolicyFilter\" desc=\"Filters for compatibility,license header policies\">\n \t\t\t\t<filteritem type=\"filename\" name=\"hvigorfile.ts\" desc=\"hvigor构建脚本,DevEco Studio自动生成,不需要添加许可证头\"/>\n@@ -28,6 +56,22 @@\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigorw\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigorw.bat\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n \t\t\t\t<filteritem type=\"filepath\" name=\"hvigor/hvigor-wrapper.js\" desc=\"工程模板,不修改版权头,以防有修改版权风险\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/harmony/entry/src/main/cpp/generated/.*\" desc=\"Codegen生成文件,不手动修改\"/>\n+ <filteritem type=\"filepath\" name=\"example/.prettierrc.js\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/.watchmanconfig\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/babel.config.js\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/.clang-tidy\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/.clangd\" desc=\"工程模板,不添加许可证头\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\".releaserc\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"babel.config.js\" desc=\"工程模板,不添加许可证头\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"yarn.lock\" desc=\"工程模板,不添加许可证头\"/>\n+ <filteritem type=\"filepath\" name=\"example/harmony/entry/src/main/resources/rawfile/bundle.harmony.js\" desc=\"编译生成文件\"/>\n+ <filteritem type=\"filepath\" name=\"js/index.ts\" desc=\"原三方库源码,不修改版权头,以防有修改版权风险\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/harmony/format.ps1\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.eslintrc\" desc=\"工程模板,不添加许可证头\"/> \t\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.node-version\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/.eslintrc\" desc=\"工程模板,不添加许可证头\"/> \n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/scripts/create-build-profile.js\" desc=\"工程模板,不添加许可证头\"/> \t\t\t\n \t\t\t</filefilter>\n \t\t\t<filefilter name=\"binaryFileTypePolicyFilter\" desc=\"Filters for resources files policies\">\n \t\t\t <filteritem type=\"filepath\" name=\"harmony/geolocation.har\" desc=\"项目打包文件\" />\n@@ -35,6 +79,7 @@\n \t\t\t\t<filteritem type=\"filename\" name=\"app_icon.png\" desc=\"应用图标\"/>\n \t\t\t\t<filteritem type=\"filename\" name=\"warn.png\" desc=\"页面展示图标\"/>\n \t\t\t\t<filteritem type=\"filename\" name=\"*.png\" desc=\"展示图标\"/>\n+\t\t\t\t<filteritem type=\"filepath\" name=\"example/harmony/entry/src/main/ets/assets/fonts/.*\" desc=\"字体资源文件\"/>\n \t\t\t</filefilter>\n \t\t</filefilterlist>\n \t</oatconfig>\n",
|
|
182
|
+
"target_branch": "br_rnoh0.72",
|
|
183
|
+
"source_branch": "br_rnoh0.72",
|
|
184
|
+
"source_project": {
|
|
185
|
+
"id": 10300112,
|
|
186
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
187
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
188
|
+
"path": "rntpc_react-native-geolocation"
|
|
189
|
+
},
|
|
190
|
+
"target_project": {
|
|
191
|
+
"id": 4369198,
|
|
192
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
193
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
194
|
+
"path": "rntpc_react-native-geolocation"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
199
|
+
"filename": "README.md",
|
|
200
|
+
"additions": 296,
|
|
201
|
+
"deletions": 7,
|
|
202
|
+
"blob_id": "8d899581841957eca57f5606f96872d1a6d9ae4d",
|
|
203
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/README.md",
|
|
204
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/README.md",
|
|
205
|
+
"patch": "@@ -1,13 +1,302 @@\n-# @react-native-ohos/react-native-geolocation\n+> 模板版本:v0.4.0\n \n-This project is based on [@react-native-community/geolocation](https://github.com/michalchudziak/react-native-geolocation)@3.4.0\n+<p align=\"center\">\n+ <h1 align=\"center\"> @react-native-community/geolocation</code> </h1>\n+</p>\n \n-## Documentation\n+本项目基于 [@react-native-community/geolocation](https://github.com/michalchudziak/react-native-geolocation) 开发。\n \n-- [中文](https://gitcode.com/OpenHarmony-RN/usage-docs/blob/master/zh-cn/react-native-community-geolocation.md)\n+该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/geolocation` 版本所属关系如下:\n+| 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 |\n+| ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- |\n+| @react-native-ohos/geolocation | ~ 3.5.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.82.* | 是 | API12+ | 3.4.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) | \n+| @react-native-ohos/geolocation | ~ 3.4.1 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.77.* | 否 | API12+ | 3.4.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) |\n+| @react-native-ohos/geolocation | ~ 3.1.1 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.72.* | 是 | API12+ | 3.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) |\n+| @react-native-oh-tpl/react-native-geolocation | <= 3.1.0-0.0.7@deprecated | [Github Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases) | 0.72.* | 否 | API12+ | 3.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-geolocation) |\n \n-- [English](https://gitcode.com/OpenHarmony-RN/usage-docs/blob/master/en/react-native-community-geolocation.md)\n+## 安装与使用\n \n-## License\n+进入到工程目录并输入以下命令:\n+\n+<!-- tabs:start -->\n+\n+#### **npm**\n+\n+```bash\n+npm install @react-native-ohos/geolocation\n+```\n+\n+#### **yarn**\n+\n+```bash\n+yarn add @react-native-ohos/geolocation\n+```\n+\n+<!-- tabs:end -->\n+\n+下面的代码展示了这个库的基本使用场景:\n+\n+> [!WARNING] 使用时 import 的库名不变。\n+\n+```js\n+import Geolocation from \"@react-native-community/geolocation\";\n+import { Button } from \"react-native\";\n+import React from 'react';\n+\n+export function GeolocationDemo(): JSX.Element {\n+ const tap = () => {\n+ Geolocation.setRNConfiguration({\n+ skipPermissionRequests: true,\n+ authorizationLevel: \"auto\",\n+ enableBackgroundLocationUpdates: true,\n+ locationProvider: \"auto\",\n+ });\n+ console.log(\"tap\");\n+ };\n+\n+ return <Button title='test' onPress={tap} />;\n+}\n+```\n+\n+## Link\n+\n+| | 是否支持autolink | RN框架版本 |\n+|--------------------------------------|-----------------|------------|\n+| ~3.5.0 | Yes | 0.82 |\n+| ~3.4.1 | No | 0.77 |\n+| ~3.1.1 | Yes | 0.72 |\n+| <= 3.1.0-0.0.7@deprecated | No | 0.72 |\n+\n+使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md\n+\n+如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。\n+<details>\n+ <summary>ManualLink: 此步骤为手动配置原生依赖项的指导</summary>\n+\n+首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`\n+\n+### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段\n+\n+```json\n+{\n+ ...\n+ \"overrides\": {\n+ \"@rnoh/react-native-openharmony\" : \"./react_native_openharmony\"\n+ }\n+}\n+```\n+\n+### 2.引入原生端代码\n+\n+目前有两种方法:\n+\n+1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);\n+2. 直接链接源码。\n+\n+方法一:通过 har 包引入(推荐)\n+\n+> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。\n+\n+打开 `entry/oh-package.json5`,添加以下依赖\n+\n+```json\n+\"dependencies\": {\n+ \"@rnoh/react-native-openharmony\": \"file:../react_native_openharmony\",\n+ \"@react-native-ohos/geolocation\": \"file:../../node_modules/@react-native-ohos/geolocation/harmony/geolocation.har\"\n+ }\n+```\n+\n+点击右上角的 `sync` 按钮\n+\n+或者在终端执行:\n+\n+```bash\n+cd entry\n+ohpm install\n+```\n+\n+方法二:直接链接源码\n+\n+> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](./link-source-code.md)\n+\n+### 3.配置 CMakeLists 和引入 geolocation\n+\n+> 若使用的是 <= 3.1.0-0.0.7 版本,请跳过本章。\n+\n+打开 `entry/src/main/cpp/CMakeLists.txt`,添加:\n+\n+```diff\n+project(rnapp)\n+cmake_minimum_required(VERSION 3.4.1)\n+set(CMAKE_SKIP_BUILD_RPATH TRUE)\n+set(RNOH_APP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}\")\n+set(NODE_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../../../node_modules\")\n++ set(OH_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules\")\n+set(RNOH_CPP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp\")\n+set(LOG_VERBOSITY_LEVEL 1)\n+set(CMAKE_ASM_FLAGS \"-Wno-error=unused-command-line-argument -Qunused-arguments\")\n+set(CMAKE_CXX_FLAGS \"-fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie\")\n+set(WITH_HITRACE_SYSTRACE 1) # for other CMakeLists.txt files to use\n+add_compile_definitions(WITH_HITRACE_SYSTRACE)\n+\n+add_subdirectory(\"${RNOH_CPP_DIR}\" ./rn)\n+\n+# RNOH_BEGIN: manual_package_linking_1\n+add_subdirectory(\"../../../../sample_package/src/main/cpp\" ./sample-package)\n++ add_subdirectory(\"${OH_MODULES}/@react-native-ohos/geolocation/src/main/cpp\" ./geolocation)\n+# RNOH_END: manual_package_linking_1\n+\n+file(GLOB GENERATED_CPP_FILES \"./generated/*.cpp\")\n+\n+add_library(rnoh_app SHARED\n+ ${GENERATED_CPP_FILES}\n+ \"./PackageProvider.cpp\"\n+ \"${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp\"\n+)\n+\n+target_link_libraries(rnoh_app PUBLIC rnoh)\n+\n+# RNOH_BEGIN: manual_package_linking_2\n+target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)\n++ target_link_libraries(rnoh_app PUBLIC rnoh_geolocation)\n+# RNOH_END: manual_package_linking_2\n+```\n+\n+打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:\n+\n+```diff\n+#include \"RNOH/PackageProvider.h\"\n+#include \"SamplePackage.h\"\n++ #include \"GeoLocationPackage.h\"\n+\n+using namespace rnoh;\n+\n+std::vector<std::shared_ptr<Package>> PackageProvider::getPackages(Package::Context ctx) {\n+ return {\n+ std::make_shared<SamplePackage>(ctx),\n++ std::make_shared<GeoLocationPackage>(ctx)\n+ };\n+}\n+```\n+\n+### 4.在 ArkTs 侧引入 GeolocationPackage\n+\n+打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:\n+\n+```diff\n+ ...\n++ import {GeoLocationPackage} from '@react-native-ohos/geolocation/ts';\n+\n+export function createRNPackages(ctx: RNPackageContext): RNPackage[] {\n+ return [\n+ new SamplePackage(ctx),\n++ new GeoLocationPackage(ctx)\n+ ];\n+}\n+```\n+</details>\n+\n+## 运行\n+\n+点击右上角的 `sync` 按钮\n+\n+或者在终端执行:\n+\n+```bash\n+cd entry\n+ohpm install\n+```\n+\n+然后编译、运行即可。\n+\n+## 约束与限制\n+\n+### 兼容性\n+\n+要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。\n+\n+在以下版本验证通过:\n+\n+1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112;\n+2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71;\n+3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112;\n+4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7;\n+\n+\n+### 权限要求\n+\n+1.打开 `entry/src/main/module.json5`,添加相关配置\n+\n+```diff\n+...\n+{\n+ \"module\": {\n+ \"requestPermissions\": [\n++ {\n++ \"name\": \"ohos.permission.APPROXIMATELY_LOCATION\",\n++ \"reason\": \"$string:Access_location\",\n++ \"usedScene\": {\n++ \"abilities\": [\n++ \"EntryAbility\"\n++ ],\n++ \"when\": \"always\"\n++ }\n++ },\n++ {\n++ \"name\": \"ohos.permission.LOCATION\",\n++ \"reason\": \"$string:Access_location\",\n++ \"usedScene\": {\n++ \"abilities\": [\n++ \"EntryAbility\"\n++ ],\n++ \"when\": \"always\"\n++ }\n++ },\n++ {\n++ \"name\": \"ohos.permission.INTERNET\"\n++ }\n+ ]\n+ }\n+}\n+```\n+\n+2.在 entry 目录下添加申请权限的原因\n+\n+打开 `entry/src/main/resources/base/element/string.json`,添加:\n+\n+```diff\n+...\n+{\n+ \"string\": [\n++ {\n++ \"name\": \"Access_location\",\n++ \"value\": \"access location\"\n++ }\n+ ]\n+}\n+```\n+\n+## 属性\n+\n+> [!TIP] \"Platform\"列表示该属性在原三方库上支持的平台。\n+\n+> [!TIP] \"HarmonyOS Support\"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。\n+\n+| Name | Description | Type | Required | Platform | HarmonyOS Support | Notes |\n+| -------------------- | ------------------------------------------------------------------ | ----------------------------------------------- | -------- | ----------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n+| setRNConfiguration | 设置将在所有位置请求中使用的配置选项 | function(config) | NO | iOS Android | partially | config only supports skipPermissionRequests |\n+| requestAuthorization | 请求合适的位置权限 | function(success,error) | YES | iOS Android | partially | error: Only code and message are supported. |\n+| getCurrentPosition | 使用最新位置信息调用成功回调一次 | function(success(position),error(error),option) | NO | iOS Android | partially | In position, only altitudeAccuracy is not supported. In option, only timeout and maximumAge are supported. In error, only code and message are supported. |\n+| watchPosition | 每当位置发生变化时调用成功回调。返回一个 watchId (数字) | function(success(postion),error(error),option) | NO | iOS Android | partially | In position, only altitudeAccuracy is not supported. In error, only code and message are supported. In option, only interval and distanceFilter are supported. |\n+| clearWatch | 通过 watchPosition() 返回的 ID 清除观察者 | function(watchID) | NO | iOS Android | yes | watchID supports only the default value 0. |\n+\n+## 遗留问题\n+\n+- [ ] @react-native-oh-tpl/geolocation 部分属性未完全实现 HarmonyOS 化,maximumAge 延时问题: [issue#6](https://github.com/react-native-oh-library/react-native-geolocation/issues/6)\n+\n+## 其他\n+\n+## 开源协议\n+\n+本项目基于 [The MIT License(MIT)](https://github.com/michalchudziak/react-native-geolocation/blob/master/LICENSE) ,请自由地享受和参与开源。\n \n-This library is licensed under [The MIT License (MIT)](https://github.com/michalchudziak/react-native-geolocation/blob/master/LICENSE)\n",
|
|
206
|
+
"target_branch": "br_rnoh0.72",
|
|
207
|
+
"source_branch": "br_rnoh0.72",
|
|
208
|
+
"source_project": {
|
|
209
|
+
"id": 10300112,
|
|
210
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
211
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
212
|
+
"path": "rntpc_react-native-geolocation"
|
|
213
|
+
},
|
|
214
|
+
"target_project": {
|
|
215
|
+
"id": 4369198,
|
|
216
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
217
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
218
|
+
"path": "rntpc_react-native-geolocation"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
223
|
+
"filename": "README_en.md",
|
|
224
|
+
"status": "added",
|
|
225
|
+
"additions": 301,
|
|
226
|
+
"deletions": 0,
|
|
227
|
+
"blob_id": "d0a73a75d1fc2975c5790eebabeed0452c9a76fc",
|
|
228
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/README_en.md",
|
|
229
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/README_en.md",
|
|
230
|
+
"patch": "@@ -0,0 +1,301 @@\n+> Template version: v0.4.0\n+\n+<p align=\"center\">\n+ <h1 align=\"center\"> @react-native-community/geolocation</code> </h1>\n+</p>\n+\n+This project is based on [@react-native-community/geolocation](https://github.com/michalchudziak/react-native-geolocation).\n+\n+This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/geolocation`, The version correspondence details are as follows:\n+\n+| Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address |\n+| --------------| -------------- | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- |\n+| @react-native-ohos/geolocation | ~ 3.5.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.82.* | Yes | API12+ | 3.4.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) | \n+| @react-native-ohos/geolocation | ~ 3.4.1 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.77.* | NO | API12+ | 3.4.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) |\n+| @react-native-ohos/geolocation | ~ 3.1.1 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-geolocation/releases) | 0.72.* | Yes | API12+ | 3.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/geolocation) |\n+| @react-native-oh-tpl/react-native-geolocation | <= 3.1.0-0.0.7@deprecated | [Github Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases) | 0.72.* | NO | API12+ | 3.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-geolocation) |\n+\n+## Installation and Usage\n+\n+Go to the project directory and execute the following instruction:\n+\n+\n+\n+<!-- tabs:start -->\n+\n+#### **npm**\n+\n+```bash\n+npm install @react-native-ohos/geolocation\n+```\n+\n+#### **yarn**\n+\n+```bash\n+yarn add @react-native-ohos/geolocation\n+```\n+\n+<!-- tabs:end -->\n+\n+The following code shows the basic use scenario of the repository:\n+\n+> [!WARNING] The name of the imported repository remains unchanged.\n+\n+```js\n+import Geolocation from \"@react-native-community/geolocation\";\n+import { Button } from \"react-native\";\n+import React from 'react';\n+\n+export function GeolocationDemo(): JSX.Element {\n+ const tap = () => {\n+ Geolocation.setRNConfiguration({\n+ skipPermissionRequests: true,\n+ authorizationLevel: \"auto\",\n+ enableBackgroundLocationUpdates: true,\n+ locationProvider: \"auto\",\n+ });\n+ console.log(\"tap\");\n+ };\n+\n+ return <Button title='test' onPress={tap} />;\n+}\n+```\n+\n+## Link\n+\n+| | Is supported autolink | Supported RN Version |\n+|--------------------------------------|-----------------------|----------------------|\n+| ~3.5.0 | Yes | 0.82 |\n+| ~3.4.1 | No | 0.77 |\n+| ~3.1.1 | Yes | 0.72 |\n+| <= 3.1.0-0.0.7@deprecated | No | 0.72 |\n+\n+Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md\n+\n+If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration.\n+<details>\n+ <summary>ManualLink: this step is a guide to manually configure native dependencies.</summary>\n+\n+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.\n+\n+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project\n+\n+```json\n+{\n+ ...\n+ \"overrides\": {\n+ \"@rnoh/react-native-openharmony\" : \"./react_native_openharmony\"\n+ }\n+}\n+```\n+\n+### 2. Introducing Native Code\n+\n+Currently, two methods are available:\n+\n+Method 1 (recommended): Use the HAR file.\n+\n+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.\n+\n+Open `entry/oh-package.json5` file and add the following dependencies:\n+\n+```json\n+\"dependencies\": {\n+ \"@rnoh/react-native-openharmony\": \"file:../react_native_openharmony\",\n+ \"@react-native-ohos/geolocation\": \"file:../../node_modules/@react-native-ohos/geolocation/harmony/geolocation.har\"\n+ }\n+```\n+\n+Click the `sync` button in the upper right corner.\n+\n+Alternatively, run the following instruction on the terminal:\n+\n+```bash\n+cd entry\n+ohpm install\n+```\n+\n+Method 2: Directly link to the source code.\n+\n+> [!TIP] For details, see [Directly Linking Source Code](./link-source-code.md).\n+\n+### 3. Configuring CMakeLists and Introducing geolocation\n+\n+> If you are using version <= 3.1.0-0.0.7, please skip this chapter.\n+\n+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:\n+\n+```diff\n+project(rnapp)\n+cmake_minimum_required(VERSION 3.4.1)\n+set(CMAKE_SKIP_BUILD_RPATH TRUE)\n+set(RNOH_APP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}\")\n+set(NODE_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../../../node_modules\")\n++ set(OH_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules\")\n+set(RNOH_CPP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp\")\n+set(LOG_VERBOSITY_LEVEL 1)\n+set(CMAKE_ASM_FLAGS \"-Wno-error=unused-command-line-argument -Qunused-arguments\")\n+set(CMAKE_CXX_FLAGS \"-fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie\")\n+set(WITH_HITRACE_SYSTRACE 1) # for other CMakeLists.txt files to use\n+add_compile_definitions(WITH_HITRACE_SYSTRACE)\n+\n+add_subdirectory(\"${RNOH_CPP_DIR}\" ./rn)\n+\n+# RNOH_BEGIN: manual_package_linking_1\n+add_subdirectory(\"../../../../sample_package/src/main/cpp\" ./sample-package)\n++ add_subdirectory(\"${OH_MODULES}/@react-native-ohos/geolocation/src/main/cpp\" ./geolocation)\n+# RNOH_END: manual_package_linking_1\n+\n+file(GLOB GENERATED_CPP_FILES \"./generated/*.cpp\")\n+\n+add_library(rnoh_app SHARED\n+ ${GENERATED_CPP_FILES}\n+ \"./PackageProvider.cpp\"\n+ \"${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp\"\n+)\n+\n+target_link_libraries(rnoh_app PUBLIC rnoh)\n+\n+# RNOH_BEGIN: manual_package_linking_2\n+target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)\n++ target_link_libraries(rnoh_app PUBLIC rnoh_geolocation)\n+# RNOH_END: manual_package_linking_2\n+```\n+\n+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:\n+\n+```diff\n+#include \"RNOH/PackageProvider.h\"\n+#include \"SamplePackage.h\"\n++ #include \"GeoLocationPackage.h\"\n+\n+using namespace rnoh;\n+\n+std::vector<std::shared_ptr<Package>> PackageProvider::getPackages(Package::Context ctx) {\n+ return {\n+ std::make_shared<SamplePackage>(ctx),\n++ std::make_shared<GeoLocationPackage>(ctx)\n+ };\n+}\n+```\n+\n+### 4. Introducing GeolocationPackage to ArkTS\n+\n+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:\n+\n+```diff\n+ ...\n++ import {GeoLocationPackage} from '@react-native-ohos/geolocation/ts';\n+\n+export function createRNPackages(ctx: RNPackageContext): RNPackage[] {\n+ return [\n+ new SamplePackage(ctx),\n++ new GeoLocationPackage(ctx)\n+ ];\n+}\n+```\n+</details>\n+\n+## Running\n+\n+Click the `sync` button in the upper right corner.\n+\n+Alternatively, run the following instruction on the terminal:\n+\n+```bash\n+cd entry\n+ohpm install\n+```\n+\n+Then build and run the code.\n+\n+## Constraints\n+\n+### Compatibility\n+\n+To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone.\n+\n+Verified in the following versions.\n+\n+1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112;\n+2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71;\n+3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112;\n+4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7;\n+\n+\n+### Permission Requirements\n+\n+1. Include applicable permissions in the module.json5 file within the entry directory.\n+\n+```diff\n+...\n+{\n+ \"module\": {\n+ \"requestPermissions\": [\n++ {\n++ \"name\": \"ohos.permission.APPROXIMATELY_LOCATION\",\n++ \"reason\": \"$string:Access_location\",\n++ \"usedScene\": {\n++ \"abilities\": [\n++ \"EntryAbility\"\n++ ],\n++ \"when\": \"always\"\n++ }\n++ },\n++ {\n++ \"name\": \"ohos.permission.LOCATION\",\n++ \"reason\": \"$string:Access_location\",\n++ \"usedScene\": {\n++ \"abilities\": [\n++ \"EntryAbility\"\n++ ],\n++ \"when\": \"always\"\n++ }\n++ },\n++ {\n++ \"name\": \"ohos.permission.INTERNET\"\n++ }\n+ ]\n+ }\n+}\n+```\n+\n+2. Apply the reasons for applicable permission in the entry directory.\n+\n+Open the `entry/src/main/resources/base/element/string.json` file and add the following code:\n+\n+```diff\n+...\n+{\n+ \"string\": [\n++ {\n++ \"name\": \"Access_location\",\n++ \"value\": \"access location\"\n++ }\n+ ]\n+}\n+```\n+\n+## Properties\n+\n+> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.\n+\n+> [!TIP] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.\n+\n+| Name | Description | Type | Required | Platform | HarmonyOS Support | Notes |\n+| -------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------- | -------- | ----------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n+| setRNConfiguration | Sets configuration options that will be used in all location requests | function(config) | NO | iOS Android | partially | config only supports skipPermissionRequests |\n+| requestAuthorization | Request suitable Location permission | function(success,error) | YES | iOS Android | partially | error: Only code and message are supported. |\n+| getCurrentPosition | Invokes the success callback once with the latest location info | function(success(position),error(error),option) | NO | iOS Android | partially | In position, only altitudeAccuracy is not supported. In option, only timeout and maximumAge are supported. In error, only code and message are supported. |\n+| watchPosition | Invokes the success callback whenever the location changes. Returns a watchId (number) | function(success(postion),error(error),option) | NO | iOS Android | partially | In position, only altitudeAccuracy is not supported. In error, only code and message are supported. In option, only interval and distanceFilter are supported. |\n+| clearWatch | Clears watch observer by id returned by watchPosition() | function(watchID) | NO | iOS Android | yes | watchID supports only the default value 0. |\n+\n+## Known Issues\n+\n+ [ ] Some attributes of @react-native-oh-tpl/geolocation have not been fully implemented for HarmonyOS, and there is a delay issue with maximumAge: [issue#6](https://github.com/react-native-oh-library/react-native-geolocation/issues/6).\n+\n+## Others\n+\n+## License\n+\n+This project is licensed under [The MIT License(MIT)](https://github.com/michalchudziak/react-native-geolocation/blob/master/LICENSE).\n",
|
|
231
|
+
"target_branch": "br_rnoh0.72",
|
|
232
|
+
"source_branch": "br_rnoh0.72",
|
|
233
|
+
"source_project": {
|
|
234
|
+
"id": 10300112,
|
|
235
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
236
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
237
|
+
"path": "rntpc_react-native-geolocation"
|
|
238
|
+
},
|
|
239
|
+
"target_project": {
|
|
240
|
+
"id": 4369198,
|
|
241
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
242
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
243
|
+
"path": "rntpc_react-native-geolocation"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
248
|
+
"filename": "example/.eslintrc",
|
|
249
|
+
"status": "added",
|
|
250
|
+
"additions": 37,
|
|
251
|
+
"deletions": 0,
|
|
252
|
+
"blob_id": "68220ff93e1accc0f0a1c8ac0490bab9c09235e5",
|
|
253
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.eslintrc",
|
|
254
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.eslintrc",
|
|
255
|
+
"patch": "@@ -0,0 +1,37 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+{\n+ \"extends\": \"@react-native\",\n+ \"rules\": {\n+ \"react-native/no-inline-styles\": \"off\",\n+ \"react/no-unstable-nested-components\": \"off\",\n+ \"react/react-in-jsx-scope\": \"off\",\n+ \"@typescript-eslint/no-unused-vars\": \"warn\",\n+ \"react-hooks/exhaustive-deps\": \"off\",\n+ \"radix\": \"off\",\n+ \"prettier/prettier\": \"warn\",\n+ \"max-lines\": \"off\"\n+ }\n+}\n\\n",
|
|
256
|
+
"target_branch": "br_rnoh0.72",
|
|
257
|
+
"source_branch": "br_rnoh0.72",
|
|
258
|
+
"source_project": {
|
|
259
|
+
"id": 10300112,
|
|
260
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
261
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
262
|
+
"path": "rntpc_react-native-geolocation"
|
|
263
|
+
},
|
|
264
|
+
"target_project": {
|
|
265
|
+
"id": 4369198,
|
|
266
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
267
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
268
|
+
"path": "rntpc_react-native-geolocation"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
273
|
+
"filename": "example/.gitignore",
|
|
274
|
+
"status": "added",
|
|
275
|
+
"additions": 71,
|
|
276
|
+
"deletions": 0,
|
|
277
|
+
"blob_id": "7613cdedd309866629ce9ae75eb3855ea0849f0a",
|
|
278
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.gitignore",
|
|
279
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.gitignore",
|
|
280
|
+
"patch": "@@ -0,0 +1,71 @@\n+.husky\n+bundle.harmony.js\n+package-lock.json\n+*.hbc\n+lintCppResult.txt\n+\n+# ---\n+\n+# OSX\n+#\n+.DS_Store\n+\n+# Xcode\n+#\n+build/\n+*.pbxuser\n+!default.pbxuser\n+*.mode1v3\n+!default.mode1v3\n+*.mode2v3\n+!default.mode2v3\n+*.perspectivev3\n+!default.perspectivev3\n+xcuserdata\n+*.xccheckout\n+*.moved-aside\n+DerivedData\n+*.hmap\n+*.ipa\n+*.xcuserstate\n+\n+# Android/IntelliJ\n+#\n+build/\n+.idea\n+.gradle\n+local.properties\n+*.iml\n+*.hprof\n+.cxx/\n+*.keystore\n+!debug.keystore\n+BuildProfile.ets\n+\n+# node.js\n+#\n+node_modules/\n+npm-debug.log\n+yarn-error.log\n+\n+# fastlane\n+#\n+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the\n+# screenshots whenever they are needed.\n+# For more information about the recommended setup visit:\n+# https://docs.fastlane.tools/best-practices/source-control/\n+\n+**/fastlane/report.xml\n+**/fastlane/Preview.html\n+**/fastlane/screenshots\n+**/fastlane/test_output\n+\n+# Bundle artifact\n+*.jsbundle\n+\n+# Ruby / CocoaPods\n+/vendor/bundle/\n+\n+# Temporary files created by Metro to check the health of the file watcher\n+.metro-health-check*\n+*.htrace\n\\n",
|
|
281
|
+
"target_branch": "br_rnoh0.72",
|
|
282
|
+
"source_branch": "br_rnoh0.72",
|
|
283
|
+
"source_project": {
|
|
284
|
+
"id": 10300112,
|
|
285
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
286
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
287
|
+
"path": "rntpc_react-native-geolocation"
|
|
288
|
+
},
|
|
289
|
+
"target_project": {
|
|
290
|
+
"id": 4369198,
|
|
291
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
292
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
293
|
+
"path": "rntpc_react-native-geolocation"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
298
|
+
"filename": "example/.node-version",
|
|
299
|
+
"status": "added",
|
|
300
|
+
"additions": 24,
|
|
301
|
+
"deletions": 0,
|
|
302
|
+
"blob_id": "d617b67285f4fef13cb98f298981b0118218d4f8",
|
|
303
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.node-version",
|
|
304
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.node-version",
|
|
305
|
+
"patch": "@@ -0,0 +1,24 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+18\n",
|
|
306
|
+
"target_branch": "br_rnoh0.72",
|
|
307
|
+
"source_branch": "br_rnoh0.72",
|
|
308
|
+
"source_project": {
|
|
309
|
+
"id": 10300112,
|
|
310
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
311
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
312
|
+
"path": "rntpc_react-native-geolocation"
|
|
313
|
+
},
|
|
314
|
+
"target_project": {
|
|
315
|
+
"id": 4369198,
|
|
316
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
317
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
318
|
+
"path": "rntpc_react-native-geolocation"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
323
|
+
"filename": "example/.prettierrc.js",
|
|
324
|
+
"status": "added",
|
|
325
|
+
"additions": 7,
|
|
326
|
+
"deletions": 0,
|
|
327
|
+
"blob_id": "2ae7b381ed9590ddf3ba512a496dc8d53dadeea0",
|
|
328
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.prettierrc.js",
|
|
329
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.prettierrc.js",
|
|
330
|
+
"patch": "@@ -0,0 +1,7 @@\n+module.exports = {\n+ arrowParens: 'avoid',\n+ bracketSameLine: true,\n+ bracketSpacing: true,\n+ singleQuote: true,\n+ trailingComma: 'all',\n+};\n",
|
|
331
|
+
"target_branch": "br_rnoh0.72",
|
|
332
|
+
"source_branch": "br_rnoh0.72",
|
|
333
|
+
"source_project": {
|
|
334
|
+
"id": 10300112,
|
|
335
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
336
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
337
|
+
"path": "rntpc_react-native-geolocation"
|
|
338
|
+
},
|
|
339
|
+
"target_project": {
|
|
340
|
+
"id": 4369198,
|
|
341
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
342
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
343
|
+
"path": "rntpc_react-native-geolocation"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
348
|
+
"filename": "example/.watchmanconfig",
|
|
349
|
+
"status": "added",
|
|
350
|
+
"additions": 1,
|
|
351
|
+
"deletions": 0,
|
|
352
|
+
"blob_id": "9e26dfeeb6e641a33dae4961196235bdb965b21b",
|
|
353
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.watchmanconfig",
|
|
354
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/.watchmanconfig",
|
|
355
|
+
"patch": "@@ -0,0 +1 @@\n+{}\n\\n",
|
|
356
|
+
"target_branch": "br_rnoh0.72",
|
|
357
|
+
"source_branch": "br_rnoh0.72",
|
|
358
|
+
"source_project": {
|
|
359
|
+
"id": 10300112,
|
|
360
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
361
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
362
|
+
"path": "rntpc_react-native-geolocation"
|
|
363
|
+
},
|
|
364
|
+
"target_project": {
|
|
365
|
+
"id": 4369198,
|
|
366
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
367
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
368
|
+
"path": "rntpc_react-native-geolocation"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
373
|
+
"filename": "example/app.json",
|
|
374
|
+
"status": "added",
|
|
375
|
+
"additions": 4,
|
|
376
|
+
"deletions": 0,
|
|
377
|
+
"blob_id": "7586f6fa99a6680a35a27fac7255ba721880d461",
|
|
378
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/app.json",
|
|
379
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/app.json",
|
|
380
|
+
"patch": "@@ -0,0 +1,4 @@\n+{\n+ \"name\": \"app_name\",\n+ \"displayName\": \"tester\"\n+}\n\\n",
|
|
381
|
+
"target_branch": "br_rnoh0.72",
|
|
382
|
+
"source_branch": "br_rnoh0.72",
|
|
383
|
+
"source_project": {
|
|
384
|
+
"id": 10300112,
|
|
385
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
386
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
387
|
+
"path": "rntpc_react-native-geolocation"
|
|
388
|
+
},
|
|
389
|
+
"target_project": {
|
|
390
|
+
"id": 4369198,
|
|
391
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
392
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
393
|
+
"path": "rntpc_react-native-geolocation"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
398
|
+
"filename": "example/babel.config.js",
|
|
399
|
+
"status": "added",
|
|
400
|
+
"additions": 6,
|
|
401
|
+
"deletions": 0,
|
|
402
|
+
"blob_id": "0f949a1078e3be59a12aba2f23bb75503a39235e",
|
|
403
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/babel.config.js",
|
|
404
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/babel.config.js",
|
|
405
|
+
"patch": "@@ -0,0 +1,6 @@\n+module.exports = {\n+ presets: ['module:@react-native/babel-preset'],\n+ plugins: [\n+ 'react-native-reanimated/plugin',\n+ ],\n+};\n",
|
|
406
|
+
"target_branch": "br_rnoh0.72",
|
|
407
|
+
"source_branch": "br_rnoh0.72",
|
|
408
|
+
"source_project": {
|
|
409
|
+
"id": 10300112,
|
|
410
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
411
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
412
|
+
"path": "rntpc_react-native-geolocation"
|
|
413
|
+
},
|
|
414
|
+
"target_project": {
|
|
415
|
+
"id": 4369198,
|
|
416
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
417
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
418
|
+
"path": "rntpc_react-native-geolocation"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
423
|
+
"filename": "example/contexts.ts",
|
|
424
|
+
"status": "added",
|
|
425
|
+
"additions": 27,
|
|
426
|
+
"deletions": 0,
|
|
427
|
+
"blob_id": "b1dbda2fd5c760a32ca42a468ace05813db326e5",
|
|
428
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/contexts.ts",
|
|
429
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/contexts.ts",
|
|
430
|
+
"patch": "@@ -0,0 +1,27 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+import React from 'react';\n+\n+export const AppParamsContext = React.createContext(undefined);\n",
|
|
431
|
+
"target_branch": "br_rnoh0.72",
|
|
432
|
+
"source_branch": "br_rnoh0.72",
|
|
433
|
+
"source_project": {
|
|
434
|
+
"id": 10300112,
|
|
435
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
436
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
437
|
+
"path": "rntpc_react-native-geolocation"
|
|
438
|
+
},
|
|
439
|
+
"target_project": {
|
|
440
|
+
"id": 4369198,
|
|
441
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
442
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
443
|
+
"path": "rntpc_react-native-geolocation"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
448
|
+
"filename": "example/harmony/.gitignore",
|
|
449
|
+
"status": "added",
|
|
450
|
+
"additions": 24,
|
|
451
|
+
"deletions": 0,
|
|
452
|
+
"blob_id": "72d73fb4b6240ccd907882c931ce08ee45ca62ba",
|
|
453
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/.gitignore",
|
|
454
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/.gitignore",
|
|
455
|
+
"patch": "@@ -0,0 +1,24 @@\n+# it may cause some issues when building the project when switching branches\n+package-lock.json\n+# we add this because we want to keep the signing configs out of git\n+/build-profile.json5\n+\n+rnoh_modules\n+\n+**/oh-package-lock.json5\n+# ---\n+\n+/node_modules\n+/local.properties\n+/.idea\n+**/build\n+/.hvigor\n+.cxx\n+/.clangd\n+/.clang-format\n+/.clang-tidy\n+/oh_modules\n+hvigorw\n+hvigorw.bat\n+hvigor/hvigor-wrapper.js\n+\n",
|
|
456
|
+
"target_branch": "br_rnoh0.72",
|
|
457
|
+
"source_branch": "br_rnoh0.72",
|
|
458
|
+
"source_project": {
|
|
459
|
+
"id": 10300112,
|
|
460
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
461
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
462
|
+
"path": "rntpc_react-native-geolocation"
|
|
463
|
+
},
|
|
464
|
+
"target_project": {
|
|
465
|
+
"id": 4369198,
|
|
466
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
467
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
468
|
+
"path": "rntpc_react-native-geolocation"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
473
|
+
"filename": "example/harmony/AppScope/app.json5",
|
|
474
|
+
"status": "added",
|
|
475
|
+
"additions": 10,
|
|
476
|
+
"deletions": 0,
|
|
477
|
+
"blob_id": "058bd391dac60928a1857aa31e4b0f712a7bc743",
|
|
478
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/app.json5",
|
|
479
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/app.json5",
|
|
480
|
+
"patch": "@@ -0,0 +1,10 @@\n+{\n+ \"app\": {\n+ \"bundleName\": \"com.harmony.wechat.lib.demo\",\n+ \"vendor\": \"example\",\n+ \"versionCode\": 1000000,\n+ \"versionName\": \"1.0.0\",\n+ \"icon\": \"$media:app_icon\",\n+ \"label\": \"$string:app_name\"\n+ }\n+}\n",
|
|
481
|
+
"target_branch": "br_rnoh0.72",
|
|
482
|
+
"source_branch": "br_rnoh0.72",
|
|
483
|
+
"source_project": {
|
|
484
|
+
"id": 10300112,
|
|
485
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
486
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
487
|
+
"path": "rntpc_react-native-geolocation"
|
|
488
|
+
},
|
|
489
|
+
"target_project": {
|
|
490
|
+
"id": 4369198,
|
|
491
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
492
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
493
|
+
"path": "rntpc_react-native-geolocation"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
498
|
+
"filename": "example/harmony/AppScope/resources/base/element/string.json",
|
|
499
|
+
"status": "added",
|
|
500
|
+
"additions": 8,
|
|
501
|
+
"deletions": 0,
|
|
502
|
+
"blob_id": "698a720065342ae0dadad63eb87d45fec8725f36",
|
|
503
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/resources/base/element/string.json",
|
|
504
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/resources/base/element/string.json",
|
|
505
|
+
"patch": "@@ -0,0 +1,8 @@\n+{\n+ \"string\": [\n+ {\n+ \"name\": \"app_name\",\n+ \"value\": \"RN Tester\"\n+ }\n+ ]\n+}\n",
|
|
506
|
+
"target_branch": "br_rnoh0.72",
|
|
507
|
+
"source_branch": "br_rnoh0.72",
|
|
508
|
+
"source_project": {
|
|
509
|
+
"id": 10300112,
|
|
510
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
511
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
512
|
+
"path": "rntpc_react-native-geolocation"
|
|
513
|
+
},
|
|
514
|
+
"target_project": {
|
|
515
|
+
"id": 4369198,
|
|
516
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
517
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
518
|
+
"path": "rntpc_react-native-geolocation"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
523
|
+
"filename": "example/harmony/AppScope/resources/base/media/app_icon.png",
|
|
524
|
+
"status": "added",
|
|
525
|
+
"additions": 0,
|
|
526
|
+
"deletions": 0,
|
|
527
|
+
"blob_id": "ce307a8827bd75456441ceb57d530e4c8d45d36c",
|
|
528
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/resources/base/media/app_icon.png",
|
|
529
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/AppScope/resources/base/media/app_icon.png",
|
|
530
|
+
"patch": "Binary files no preview for this file type",
|
|
531
|
+
"target_branch": "br_rnoh0.72",
|
|
532
|
+
"source_branch": "br_rnoh0.72",
|
|
533
|
+
"source_project": {
|
|
534
|
+
"id": 10300112,
|
|
535
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
536
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
537
|
+
"path": "rntpc_react-native-geolocation"
|
|
538
|
+
},
|
|
539
|
+
"target_project": {
|
|
540
|
+
"id": 4369198,
|
|
541
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
542
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
543
|
+
"path": "rntpc_react-native-geolocation"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
548
|
+
"filename": "example/harmony/build-profile.template.json5",
|
|
549
|
+
"status": "added",
|
|
550
|
+
"additions": 44,
|
|
551
|
+
"deletions": 0,
|
|
552
|
+
"blob_id": "7ad83b98880d60b71b56c38e9008f90f1ee7d84d",
|
|
553
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/build-profile.template.json5",
|
|
554
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/build-profile.template.json5",
|
|
555
|
+
"patch": "@@ -0,0 +1,44 @@\n+{\n+ \"app\": {\n+ \"products\": [\n+ {\n+ \"name\": 'default',\n+ \"signingConfig\": 'default',\n+ \"compatibleSdkVersion\": '5.0.0(12)',\n+ \"runtimeOS\": 'HarmonyOS',\n+ \"buildOption\": {\n+ \"strictMode\": {\n+ \"useNormalizedOHMUrl\": true\n+ }\n+ }\n+ },\n+ ],\n+ \"buildModeSet\": [\n+ {\n+ \"name\": 'debug',\n+ },\n+ {\n+ \"name\": 'release',\n+ },\n+ ],\n+ \"signingConfigs\": []\n+ },\n+ \"modules\": [\n+ {\n+ \"name\": 'entry',\n+ \"srcPath\": './entry',\n+ \"targets\": [\n+ {\n+ \"name\": 'default',\n+ \"applyToProducts\": [\n+ 'default'\n+ ],\n+ },\n+ ],\n+ },\n+ {\n+ \"name\": 'geolocation',\n+ \"srcPath\": '../../harmony/geolocation'\n+ }\n+ ],\n+}\n\\n",
|
|
556
|
+
"target_branch": "br_rnoh0.72",
|
|
557
|
+
"source_branch": "br_rnoh0.72",
|
|
558
|
+
"source_project": {
|
|
559
|
+
"id": 10300112,
|
|
560
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
561
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
562
|
+
"path": "rntpc_react-native-geolocation"
|
|
563
|
+
},
|
|
564
|
+
"target_project": {
|
|
565
|
+
"id": 4369198,
|
|
566
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
567
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
568
|
+
"path": "rntpc_react-native-geolocation"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
573
|
+
"filename": "example/harmony/codelinter.json",
|
|
574
|
+
"status": "added",
|
|
575
|
+
"additions": 32,
|
|
576
|
+
"deletions": 0,
|
|
577
|
+
"blob_id": "e7f91acb037aeda939967a042f16033f4c6e21b9",
|
|
578
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/codelinter.json",
|
|
579
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/codelinter.json",
|
|
580
|
+
"patch": "@@ -0,0 +1,32 @@\n+{\n+ \"files\": [\"**/*.ts\", \"**/*.ets\"],\n+ \"ignore\": [\n+ \"**/ohosTest/**/*\",\n+ \"**/node_modules/**/*\",\n+ \"**/hvigorfile.ts\",\n+ \"**/node_modules/**/*\",\n+ \"**/oh_modules/**/*\",\n+ \"**/build/**/*\",\n+ \"**/.preview/**/*\"\n+ ],\n+ \"plugins\": [\"@typescript-eslint\"],\n+ \"ruleSet\": [],\n+ \"rules\": {\n+ \"@typescript-eslint/await-thenable\": \"warn\",\n+ \"@typescript-eslint/consistent-type-imports\": \"warn\",\n+ \"@typescript-eslint/explicit-function-return-type\": \"warn\",\n+ \"@typescript-eslint/explicit-module-boundary-types\": \"warn\",\n+ \"@typescript-eslint/no-dynamic-delete\": \"warn\",\n+ \"@typescript-eslint/no-explicit-any\": \"warn\",\n+ \"@typescript-eslint/no-for-in-array\": \"warn\",\n+ \"@typescript-eslint/no-this-alias\": \"warn\",\n+ \"@typescript-eslint/no-unnecessary-type-constraint\": \"warn\",\n+ \"@typescript-eslint/no-unsafe-argument\": \"warn\",\n+ \"@typescript-eslint/no-unsafe-assignment\": \"warn\",\n+ \"@typescript-eslint/no-unsafe-call\": \"warn\",\n+ \"@typescript-eslint/no-unsafe-member-access\": \"warn\",\n+ \"@typescript-eslint/no-unsafe-return\": \"warn\",\n+ \"@typescript-eslint/prefer-literal-enum-member\": \"warn\"\n+ },\n+ \"overrides\": []\n+}\n",
|
|
581
|
+
"target_branch": "br_rnoh0.72",
|
|
582
|
+
"source_branch": "br_rnoh0.72",
|
|
583
|
+
"source_project": {
|
|
584
|
+
"id": 10300112,
|
|
585
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
586
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
587
|
+
"path": "rntpc_react-native-geolocation"
|
|
588
|
+
},
|
|
589
|
+
"target_project": {
|
|
590
|
+
"id": 4369198,
|
|
591
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
592
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
593
|
+
"path": "rntpc_react-native-geolocation"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
598
|
+
"filename": "example/harmony/entry/.gitignore",
|
|
599
|
+
"status": "added",
|
|
600
|
+
"additions": 7,
|
|
601
|
+
"deletions": 0,
|
|
602
|
+
"blob_id": "bbc049cfeb689c61d6c2922810f652cbb19aad21",
|
|
603
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/.gitignore",
|
|
604
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/.gitignore",
|
|
605
|
+
"patch": "@@ -0,0 +1,7 @@\n+/node_modules\n+/.preview\n+/build\n+/.cxx\n+package-lock.json\n+/oh_modules\n+/assets\n",
|
|
606
|
+
"target_branch": "br_rnoh0.72",
|
|
607
|
+
"source_branch": "br_rnoh0.72",
|
|
608
|
+
"source_project": {
|
|
609
|
+
"id": 10300112,
|
|
610
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
611
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
612
|
+
"path": "rntpc_react-native-geolocation"
|
|
613
|
+
},
|
|
614
|
+
"target_project": {
|
|
615
|
+
"id": 4369198,
|
|
616
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
617
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
618
|
+
"path": "rntpc_react-native-geolocation"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
623
|
+
"filename": "example/harmony/entry/build-profile.json5",
|
|
624
|
+
"status": "added",
|
|
625
|
+
"additions": 22,
|
|
626
|
+
"deletions": 0,
|
|
627
|
+
"blob_id": "576c1fedcbf11b8a730dafbb834c659fe80e7501",
|
|
628
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/build-profile.json5",
|
|
629
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/build-profile.json5",
|
|
630
|
+
"patch": "@@ -0,0 +1,22 @@\n+{\n+ \"apiType\": 'stageMode',\n+ \"buildOption\": {\n+ \"externalNativeOptions\": {\n+ \"path\": \"./src/main/cpp/CMakeLists.txt\",\n+ \"arguments\": \"\",\n+ \"cppFlags\": \"-s\",\n+ \"abiFilters\": [\n+ \"arm64-v8a\",\n+ \"x86_64\"\n+ ]\n+ },\n+ },\n+ \"targets\": [\n+ {\n+ \"name\": \"default\",\n+ },\n+ {\n+ \"name\": \"ohosTest\",\n+ }\n+ ]\n+}\n\\n",
|
|
631
|
+
"target_branch": "br_rnoh0.72",
|
|
632
|
+
"source_branch": "br_rnoh0.72",
|
|
633
|
+
"source_project": {
|
|
634
|
+
"id": 10300112,
|
|
635
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
636
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
637
|
+
"path": "rntpc_react-native-geolocation"
|
|
638
|
+
},
|
|
639
|
+
"target_project": {
|
|
640
|
+
"id": 4369198,
|
|
641
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
642
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
643
|
+
"path": "rntpc_react-native-geolocation"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
648
|
+
"filename": "example/harmony/entry/hvigorfile.ts",
|
|
649
|
+
"status": "added",
|
|
650
|
+
"additions": 26,
|
|
651
|
+
"deletions": 0,
|
|
652
|
+
"blob_id": "9a984f896731d956e2dec9a4c2bbfd0a2bbb9bff",
|
|
653
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/hvigorfile.ts",
|
|
654
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/hvigorfile.ts",
|
|
655
|
+
"patch": "@@ -0,0 +1,26 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.\n+export { hapTasks } from '@ohos/hvigor-ohos-plugin';\n",
|
|
656
|
+
"target_branch": "br_rnoh0.72",
|
|
657
|
+
"source_branch": "br_rnoh0.72",
|
|
658
|
+
"source_project": {
|
|
659
|
+
"id": 10300112,
|
|
660
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
661
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
662
|
+
"path": "rntpc_react-native-geolocation"
|
|
663
|
+
},
|
|
664
|
+
"target_project": {
|
|
665
|
+
"id": 4369198,
|
|
666
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
667
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
668
|
+
"path": "rntpc_react-native-geolocation"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
673
|
+
"filename": "example/harmony/entry/oh-package.json5",
|
|
674
|
+
"status": "added",
|
|
675
|
+
"additions": 11,
|
|
676
|
+
"deletions": 0,
|
|
677
|
+
"blob_id": "7cddd42bc31f3fd78cebed2546009fbd14a862b4",
|
|
678
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/oh-package.json5",
|
|
679
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/oh-package.json5",
|
|
680
|
+
"patch": "@@ -0,0 +1,11 @@\n+{\n+ \"license\": \"ISC\",\n+ \"devDependencies\": {},\n+ \"name\": \"entry\",\n+ \"description\": \"example description\",\n+ \"version\": \"1.0.0\",\n+ \"dependencies\": {\n+ \"@rnoh/react-native-openharmony\": \"file:../../node_modules/react-native-harmony/react_native_openharmony.har\",\n+ \"@react-native-ohos/geolocation\": \"file:../../node_modules/@react-native-ohos/geolocation/harmony/geolocation.har\"\n+ }\n+}\n\\n",
|
|
681
|
+
"target_branch": "br_rnoh0.72",
|
|
682
|
+
"source_branch": "br_rnoh0.72",
|
|
683
|
+
"source_project": {
|
|
684
|
+
"id": 10300112,
|
|
685
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
686
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
687
|
+
"path": "rntpc_react-native-geolocation"
|
|
688
|
+
},
|
|
689
|
+
"target_project": {
|
|
690
|
+
"id": 4369198,
|
|
691
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
692
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
693
|
+
"path": "rntpc_react-native-geolocation"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
698
|
+
"filename": "example/harmony/entry/src/main/cpp/.gitignore",
|
|
699
|
+
"status": "added",
|
|
700
|
+
"additions": 2,
|
|
701
|
+
"deletions": 0,
|
|
702
|
+
"blob_id": "881dde5479f322de9db2b2bb98fd94a95f73715e",
|
|
703
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/.gitignore",
|
|
704
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/.gitignore",
|
|
705
|
+
"patch": "@@ -0,0 +1,2 @@\n+jsbundle.h\n+generated/\n",
|
|
706
|
+
"target_branch": "br_rnoh0.72",
|
|
707
|
+
"source_branch": "br_rnoh0.72",
|
|
708
|
+
"source_project": {
|
|
709
|
+
"id": 10300112,
|
|
710
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
711
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
712
|
+
"path": "rntpc_react-native-geolocation"
|
|
713
|
+
},
|
|
714
|
+
"target_project": {
|
|
715
|
+
"id": 4369198,
|
|
716
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
717
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
718
|
+
"path": "rntpc_react-native-geolocation"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
723
|
+
"filename": "example/harmony/entry/src/main/cpp/CMakeLists.txt",
|
|
724
|
+
"status": "added",
|
|
725
|
+
"additions": 41,
|
|
726
|
+
"deletions": 0,
|
|
727
|
+
"blob_id": "e812bd848e81aeadbfe7ec47d78d7068114ec06c",
|
|
728
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/CMakeLists.txt",
|
|
729
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/CMakeLists.txt",
|
|
730
|
+
"patch": "@@ -0,0 +1,41 @@\n+project(rnapp)\n+cmake_minimum_required(VERSION 3.4.1)\n+set(CMAKE_SKIP_BUILD_RPATH TRUE)\n+set(RNOH_APP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}\")\n+set(NODE_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../../../node_modules\")\n+set(OH_MODULE_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules\")\n+set(RNOH_CPP_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp\")\n+set(RNOH_GENERATED_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/generated\")\n+set(LOG_VERBOSITY_LEVEL 1)\n+set(CMAKE_ASM_FLAGS \"-Wno-error=unused-command-line-argument -Qunused-arguments\")\n+set(CMAKE_CXX_FLAGS \"-fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie\")\n+set(OH_MODULES \"${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules\")\n+\n+set(WITH_HITRACE_SYSTRACE 1) # for other CMakeLists.txt files to use\n+add_compile_definitions(WITH_HITRACE_SYSTRACE)\n+\n+# (VM) Define a variable and assign it to the current module's cpp directory\n+set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})\n+\n+# Add the Header File directory, including cpp, cpp/include, and tell cmake to find the Header Files introduced by the code here\n+include_directories(${NATIVERENDER_ROOT_PATH}\n+ ${NATIVERENDER_ROOT_PATH}/include)\n+\n+add_subdirectory(\"${RNOH_CPP_DIR}\" ./rn)\n+\n+# RNOH_BEGIN: manual_package_linking_1\n+add_subdirectory(\"${OH_MODULES}/@react-native-ohos/geolocation/src/main/cpp\" ./geolocation)\n+# RNOH_END: manual_package_linking_1\n+\n+file(GLOB GENERATED_CPP_FILES \"${CMAKE_CURRENT_SOURCE_DIR}/generated/*.cpp\") # this line is needed by codegen v1\n+\n+add_library(rnoh_app SHARED\n+ ${GENERATED_CPP_FILES}\n+ \"./PackageProvider.cpp\"\n+ \"${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp\"\n+)\n+target_link_libraries(rnoh_app PUBLIC rnoh)\n+\n+# RNOH_BEGIN: manual_package_linking_2\n+target_link_libraries(rnoh_app PUBLIC rnoh_geolocation)\n+# RNOH_END: manual_package_linking_2\n",
|
|
731
|
+
"target_branch": "br_rnoh0.72",
|
|
732
|
+
"source_branch": "br_rnoh0.72",
|
|
733
|
+
"source_project": {
|
|
734
|
+
"id": 10300112,
|
|
735
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
736
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
737
|
+
"path": "rntpc_react-native-geolocation"
|
|
738
|
+
},
|
|
739
|
+
"target_project": {
|
|
740
|
+
"id": 4369198,
|
|
741
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
742
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
743
|
+
"path": "rntpc_react-native-geolocation"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
748
|
+
"filename": "example/harmony/entry/src/main/cpp/PackageProvider.cpp",
|
|
749
|
+
"status": "added",
|
|
750
|
+
"additions": 37,
|
|
751
|
+
"deletions": 0,
|
|
752
|
+
"blob_id": "0e5a6c079b996139dd2b18ec5f86c93bbb058937",
|
|
753
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/PackageProvider.cpp",
|
|
754
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/cpp/PackageProvider.cpp",
|
|
755
|
+
"patch": "@@ -0,0 +1,37 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+#include \"RNOH/PackageProvider.h\"\n+#include \"generated/RNOHGeneratedPackage.h\"\n+#include \"GeoLocationPackage.h\"\n+\n+using namespace rnoh;\n+\n+std::vector<std::shared_ptr<Package>> PackageProvider::getPackages(Package::Context ctx)\n+{\n+ return {\n+ std::make_shared<RNOHGeneratedPackage>(ctx), // generated by codegen v1\n+ std::make_shared<GeoLocationPackage>(ctx),\n+ };\n+}\n\\n",
|
|
756
|
+
"target_branch": "br_rnoh0.72",
|
|
757
|
+
"source_branch": "br_rnoh0.72",
|
|
758
|
+
"source_project": {
|
|
759
|
+
"id": 10300112,
|
|
760
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
761
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
762
|
+
"path": "rntpc_react-native-geolocation"
|
|
763
|
+
},
|
|
764
|
+
"target_project": {
|
|
765
|
+
"id": 4369198,
|
|
766
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
767
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
768
|
+
"path": "rntpc_react-native-geolocation"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
773
|
+
"filename": "example/harmony/entry/src/main/ets/RNPackagesFactory.ets",
|
|
774
|
+
"status": "added",
|
|
775
|
+
"additions": 32,
|
|
776
|
+
"deletions": 0,
|
|
777
|
+
"blob_id": "4cb82422e498bc89df7f7111434bf4f1bd8c6613",
|
|
778
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/RNPackagesFactory.ets",
|
|
779
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/RNPackagesFactory.ets",
|
|
780
|
+
"patch": "@@ -0,0 +1,32 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+import type {RNPackageContext, RNPackage} from '@rnoh/react-native-openharmony/ts';\n+import {GeoLocationPackage} from '@react-native-ohos/geolocation/ts';\n+\n+export function createRNPackages(ctx: RNPackageContext): RNPackage[] {\n+ return [\n+ new GeoLocationPackage(ctx),\n+ ];\n+}\n",
|
|
781
|
+
"target_branch": "br_rnoh0.72",
|
|
782
|
+
"source_branch": "br_rnoh0.72",
|
|
783
|
+
"source_project": {
|
|
784
|
+
"id": 10300112,
|
|
785
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
786
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
787
|
+
"path": "rntpc_react-native-geolocation"
|
|
788
|
+
},
|
|
789
|
+
"target_project": {
|
|
790
|
+
"id": 4369198,
|
|
791
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
792
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
793
|
+
"path": "rntpc_react-native-geolocation"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
798
|
+
"filename": "example/harmony/entry/src/main/ets/assets/fonts/Pacifico-Regular.ttf",
|
|
799
|
+
"status": "added",
|
|
800
|
+
"additions": 0,
|
|
801
|
+
"deletions": 0,
|
|
802
|
+
"blob_id": "e7def95d3f44c82086f6e74d93fc0aadac7c454a",
|
|
803
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/assets/fonts/Pacifico-Regular.ttf",
|
|
804
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/assets/fonts/Pacifico-Regular.ttf",
|
|
805
|
+
"patch": "Binary files no preview for this file type",
|
|
806
|
+
"target_branch": "br_rnoh0.72",
|
|
807
|
+
"source_branch": "br_rnoh0.72",
|
|
808
|
+
"source_project": {
|
|
809
|
+
"id": 10300112,
|
|
810
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
811
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
812
|
+
"path": "rntpc_react-native-geolocation"
|
|
813
|
+
},
|
|
814
|
+
"target_project": {
|
|
815
|
+
"id": 4369198,
|
|
816
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
817
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
818
|
+
"path": "rntpc_react-native-geolocation"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
823
|
+
"filename": "example/harmony/entry/src/main/ets/assets/fonts/StintUltraCondensed-Regular.ttf",
|
|
824
|
+
"status": "added",
|
|
825
|
+
"additions": 0,
|
|
826
|
+
"deletions": 0,
|
|
827
|
+
"blob_id": "25c749e167bd5beef18360b13ae660f1c10ebc62",
|
|
828
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/assets/fonts/StintUltraCondensed-Regular.ttf",
|
|
829
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/assets/fonts/StintUltraCondensed-Regular.ttf",
|
|
830
|
+
"patch": "Binary files no preview for this file type",
|
|
831
|
+
"target_branch": "br_rnoh0.72",
|
|
832
|
+
"source_branch": "br_rnoh0.72",
|
|
833
|
+
"source_project": {
|
|
834
|
+
"id": 10300112,
|
|
835
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
836
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
837
|
+
"path": "rntpc_react-native-geolocation"
|
|
838
|
+
},
|
|
839
|
+
"target_project": {
|
|
840
|
+
"id": 4369198,
|
|
841
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
842
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
843
|
+
"path": "rntpc_react-native-geolocation"
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
848
|
+
"filename": "example/harmony/entry/src/main/ets/entryability/EntryAbility.ets",
|
|
849
|
+
"status": "added",
|
|
850
|
+
"additions": 40,
|
|
851
|
+
"deletions": 0,
|
|
852
|
+
"blob_id": "e05a95e480185eb7e14f28574fac8be072ac05ad",
|
|
853
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/entryability/EntryAbility.ets",
|
|
854
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/entryability/EntryAbility.ets",
|
|
855
|
+
"patch": "@@ -0,0 +1,40 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+import { RNAbility } from '@rnoh/react-native-openharmony';\n+import { AbilityConstant, Want } from '@kit.AbilityKit';\n+\n+export default class EntryAbility extends RNAbility {\n+ onCreate(want: Want) {\n+ super.onCreate(want)\n+ }\n+\n+ getPagePath() {\n+ return 'pages/Index';\n+ }\n+\n+ onNewWant(want: Want, _launchParam: AbilityConstant.LaunchParam): void {\n+\n+ }\n+}\n",
|
|
856
|
+
"target_branch": "br_rnoh0.72",
|
|
857
|
+
"source_branch": "br_rnoh0.72",
|
|
858
|
+
"source_project": {
|
|
859
|
+
"id": 10300112,
|
|
860
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
861
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
862
|
+
"path": "rntpc_react-native-geolocation"
|
|
863
|
+
},
|
|
864
|
+
"target_project": {
|
|
865
|
+
"id": 4369198,
|
|
866
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
867
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
868
|
+
"path": "rntpc_react-native-geolocation"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
873
|
+
"filename": "example/harmony/entry/src/main/ets/pages/Index.ets",
|
|
874
|
+
"status": "added",
|
|
875
|
+
"additions": 136,
|
|
876
|
+
"deletions": 0,
|
|
877
|
+
"blob_id": "53a12164cb0b6c618fe82ea5908287dc276f5edb",
|
|
878
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/Index.ets",
|
|
879
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/Index.ets",
|
|
880
|
+
"patch": "@@ -0,0 +1,136 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+import {\n+ AnyJSBundleProvider,\n+ ComponentBuilderContext,\n+ FileJSBundleProvider,\n+ MetroJSBundleProvider,\n+ ResourceJSBundleProvider,\n+ RNApp,\n+ RNOHErrorDialog,\n+ RNOHLogger,\n+ TraceJSBundleProviderDecorator,\n+ RNOHCoreContext\n+} from '@rnoh/react-native-openharmony';\n+import font from '@ohos.font';\n+import { createRNPackages } from '../RNPackagesFactory';\n+\n+const arkTsComponentNames: Array<string> = [\n+];\n+\n+@Builder\n+export function buildCustomRNComponent(ctx: ComponentBuilderContext) {\n+ // There seems to be a problem with the placement of ArkTS components in mixed mode. Nested Stack temporarily avoided.\n+ Stack() {\n+ }\n+ .position({ x: 0, y: 0 })\n+\n+}\n+\n+const wrappedCustomRNComponentBuilder = wrapBuilder(buildCustomRNComponent)\n+\n+/**\n+ * If you want to use custom fonts, you need to register them here.\n+ * We should support react-native-asset to handle registering fonts automatically.\n+ */\n+const fonts: font.FontOptions[] = [\n+ {\n+ familyName: 'Pacifico-Regular',\n+ familySrc: '/assets/fonts/Pacifico-Regular.ttf'\n+ },\n+ {\n+ familyName: 'StintUltraCondensed-Regular',\n+ familySrc: '/assets/fonts/StintUltraCondensed-Regular.ttf'\n+ }\n+]\n+\n+@Entry\n+@Component\n+struct Index {\n+ @StorageLink('RNOHCoreContext') private rnohCoreContext: RNOHCoreContext | undefined = undefined\n+ @State shouldShow: boolean = false\n+ private logger!: RNOHLogger\n+ bundlePath: string = 'bunlde.harmony.js'\n+ @State hasBundle: boolean = false\n+\n+ aboutToAppear() {\n+ this.logger = this.rnohCoreContext!.logger.clone(\"Index\")\n+ const stopTracing = this.logger.clone(\"aboutToAppear\").startTracing()\n+ for (const customFont of fonts) {\n+ font.registerFont(customFont)\n+ }\n+\n+ this.shouldShow = true\n+ stopTracing()\n+ }\n+\n+ onBackPress(): boolean | undefined {\n+ // NOTE: this is required since `Ability`'s `onBackPressed` function always\n+ // terminates or puts the app in the background, but we want Ark to ignore it completely\n+ // when handled by RN\n+ this.rnohCoreContext!.dispatchBackPress()\n+ return true\n+ }\n+\n+ build() {\n+ Column() {\n+ if (this.rnohCoreContext && this.shouldShow) {\n+ if (this.rnohCoreContext?.isDebugModeEnabled) {\n+ RNOHErrorDialog({ ctx: this.rnohCoreContext })\n+ }\n+ RNApp({\n+ rnInstanceConfig: {\n+ createRNPackages,\n+ enableNDKTextMeasuring: true,\n+ enableBackgroundExecutor: false,\n+ enableCAPIArchitecture: true,\n+ arkTsComponentNames: arkTsComponentNames,\n+ },\n+ initialProps: { \"foo\": \"bar\" } as Record<string, string>,\n+ appKey: \"app_name\",\n+ wrappedCustomRNComponentBuilder: wrappedCustomRNComponentBuilder,\n+ onSetUp: (rnInstance) => {\n+ rnInstance.enableFeatureFlag(\"ENABLE_RN_INSTANCE_CLEAN_UP\")\n+ },\n+ jsBundleProvider: new TraceJSBundleProviderDecorator(\n+ new AnyJSBundleProvider([\n+ new MetroJSBundleProvider(),\n+ // NOTE: to load the bundle from file, place it in\n+ // `/data/app/el2/100/base/com.rnoh.tester/files/bundle.harmony.js`\n+ // on your device. The path mismatch is due to app sandboxing on HarmonyOS\n+ new FileJSBundleProvider('/data/storage/el2/base/files/bundle.harmony.js'),\n+ // new FileJSBundleProvider(context.filesDir + '/' + this.bundlePath),\n+ new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'hermes_bundle.hbc'),\n+ new ResourceJSBundleProvider(this.rnohCoreContext.uiAbilityContext.resourceManager, 'bundle.harmony.js')\n+ ]),\n+ this.rnohCoreContext.logger),\n+ })\n+ }\n+ Text(\"1233333333122 1212323\")\n+ }\n+ .height('100%')\n+ .width('100%')\n+ }\n+}\n",
|
|
881
|
+
"target_branch": "br_rnoh0.72",
|
|
882
|
+
"source_branch": "br_rnoh0.72",
|
|
883
|
+
"source_project": {
|
|
884
|
+
"id": 10300112,
|
|
885
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
886
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
887
|
+
"path": "rntpc_react-native-geolocation"
|
|
888
|
+
},
|
|
889
|
+
"target_project": {
|
|
890
|
+
"id": 4369198,
|
|
891
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
892
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
893
|
+
"path": "rntpc_react-native-geolocation"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
898
|
+
"filename": "example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets",
|
|
899
|
+
"status": "added",
|
|
900
|
+
"additions": 153,
|
|
901
|
+
"deletions": 0,
|
|
902
|
+
"blob_id": "2a7544cfdb08a8c6123dc3c3d541623fe39b2944",
|
|
903
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets",
|
|
904
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets",
|
|
905
|
+
"patch": "@@ -0,0 +1,153 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+import { RNInstance, JSBundleProvider, RNAbility, RNSurface } from '@rnoh/react-native-openharmony'\n+import { CustomComponentBuilder } from \"@rnoh/react-native-openharmony/src/main/ets/RNOHCorePackage\"\n+import { SurfaceConfig2 } from '@rnoh/react-native-openharmony/src/main/ets/RNSurface'\n+\n+\n+@Component\n+export struct SurfaceDeadlockTest {\n+ public jsBundleProvider: JSBundleProvider | undefined = undefined\n+ public appKeys: string[] = []\n+ public numberOfIterations: number = 1\n+ @BuilderParam public buildCustomComponent!: CustomComponentBuilder\n+ // -------------------------------------------------------------------------------------------------------------------\n+ @StorageLink('RNAbility') private rnAbility: RNAbility = {} as RNAbility\n+ private rnInstance!: RNInstance\n+ @State private shouldShow: boolean = false\n+ private shouldDestroyRNInstance: boolean = false\n+ private cleanUpCallbacks: (() => void)[] = []\n+\n+ aboutToAppear() {\n+ this.getOrCreateRNInstance().then(rnInstance => {\n+ this.rnInstance = rnInstance\n+ const jsBundleExecutionStatus = this.rnInstance.getBundleExecutionStatus(this.jsBundleProvider?.getURL())\n+ if (this.jsBundleProvider && jsBundleExecutionStatus === undefined) {\n+ this.rnInstance.runJSBundle(this.jsBundleProvider).then(() => {\n+ this.shouldShow = true\n+ })\n+ return;\n+ }\n+ }).catch((reason: string | Error) => {\n+ if (typeof reason === \"string\")\n+ this.rnAbility.getLogger().error(reason)\n+ else if (reason instanceof Error) {\n+ this.rnAbility.getLogger().error(reason.message)\n+ } else {\n+ this.rnAbility.getLogger().error(\"Fatal exception\")\n+ }\n+ })\n+ }\n+\n+ aboutToDisappear() {\n+ if (this.shouldDestroyRNInstance)\n+ this.rnAbility.destroyAndUnregisterRNInstance(this.rnInstance)\n+ this.cleanUpCallbacks.forEach(cleanUp => cleanUp())\n+ }\n+\n+ private getOrCreateRNInstance(): Promise<RNInstance> {\n+ return this.rnAbility.createAndRegisterRNInstance({ createRNPackages: () => [] })\n+ }\n+\n+ build() {\n+ Stack() {\n+ if (this.shouldShow) {\n+ ForEach(this.appKeys, (appKey: string, idx) => {\n+ Stack() {\n+ Blinker({\n+ minDelayInMs: 1000,\n+ maxDelayInMs: 2000,\n+ blinksCount: this.numberOfIterations,\n+ randomnessPrecisionInMs: 500\n+ }) {\n+ RNSurface({\n+ ctx: this.rnAbility.createRNOHContext({ rnInstance: this.rnInstance }),\n+ surfaceConfig: {\n+ initialProps: {},\n+ appKey: appKey,\n+ } as SurfaceConfig2,\n+ buildCustomComponent: this.buildCustomComponent,\n+ })\n+ }\n+ }.height(`${100 / this.appKeys.length}%`)\n+ .position({ x: 0, y: `${(idx / this.appKeys.length) * 100}%` })\n+ })\n+ }\n+ }.width(\"100%\")\n+ .height(\"100%\")\n+ }\n+}\n+\n+\n+@Component\n+struct Blinker {\n+ public minDelayInMs: number = 0\n+ public maxDelayInMs: number = 1000\n+ public blinksCount: number = 0\n+ public randomnessPrecisionInMs: number = 250\n+ @BuilderParam public renderChildren: () => void\n+ private currentBlinksCount = 0\n+ @State private isVisible: boolean = false\n+ private timeout: number = 0\n+\n+ aboutToAppear() {\n+ this.blink(this.minDelayInMs)\n+ }\n+\n+ aboutToDisappear() {\n+ clearTimeout(this.timeout)\n+ }\n+\n+ private blink(ms: number) {\n+ this.isVisible = !this.isVisible\n+ this.currentBlinksCount += 1\n+ if (this.currentBlinksCount >= this.blinksCount) {\n+ if (this.timeout) {\n+ clearTimeout(this.timeout)\n+ }\n+ this.isVisible = true\n+ return;\n+ }\n+ this.timeout = setTimeout(() => {\n+ this.blink(this.getNextDelay())\n+ }, ms)\n+ }\n+\n+ private getNextDelay(): number {\n+ return ((Math.floor(Math.random() * (Number.MAX_VALUE / this.randomnessPrecisionInMs)) * this.randomnessPrecisionInMs) % this.maxDelayInMs) + this.minDelayInMs\n+ }\n+\n+ build() {\n+ Stack() {\n+ if (this.isVisible) {\n+ this.renderChildren()\n+ }\n+ }\n+ }\n+}\n+\n+\n+\n+\n+\n",
|
|
906
|
+
"target_branch": "br_rnoh0.72",
|
|
907
|
+
"source_branch": "br_rnoh0.72",
|
|
908
|
+
"source_project": {
|
|
909
|
+
"id": 10300112,
|
|
910
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
911
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
912
|
+
"path": "rntpc_react-native-geolocation"
|
|
913
|
+
},
|
|
914
|
+
"target_project": {
|
|
915
|
+
"id": 4369198,
|
|
916
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
917
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
918
|
+
"path": "rntpc_react-native-geolocation"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
923
|
+
"filename": "example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets",
|
|
924
|
+
"status": "added",
|
|
925
|
+
"additions": 62,
|
|
926
|
+
"deletions": 0,
|
|
927
|
+
"blob_id": "bb003c157f18e43d975ba3fa0c597c74ad4ad4af",
|
|
928
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets",
|
|
929
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets",
|
|
930
|
+
"patch": "@@ -0,0 +1,62 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+\n+@Component\n+export struct TouchDisplayer {\n+ @State currentTouches: TouchObject[] = []\n+ @State touchIndicatorOpacity: number = 0\n+ @BuilderParam buildChildren: () => void\n+ build() {\n+ Stack() {\n+ this.buildChildren()\n+ ForEach(this.currentTouches, (activeTouch: TouchObject) => {\n+ Stack() {\n+ }\n+ .width(64)\n+ .height(64)\n+ .backgroundColor(\"blue\")\n+ .borderWidth(2)\n+ .borderColor(\"white\")\n+ .opacity(this.touchIndicatorOpacity)\n+ .position({ x: activeTouch.x - 32, y: activeTouch.y - 32 })\n+ .borderRadius(1000)\n+ .hitTestBehavior(HitTestMode.Transparent)\n+ })\n+ }\n+ .width(\"100%\")\n+ .height(\"100%\")\n+ .hitTestBehavior(HitTestMode.Transparent)\n+ .onTouch(e => {\n+ this.currentTouches = e.touches\n+ this.touchIndicatorOpacity = 0.5\n+ animateTo({\n+ duration: 500,\n+ curve: Curve.Linear,\n+ }, () => {\n+ this.touchIndicatorOpacity = 0\n+ })\n+ })\n+ }\n+}\n\\n",
|
|
931
|
+
"target_branch": "br_rnoh0.72",
|
|
932
|
+
"source_branch": "br_rnoh0.72",
|
|
933
|
+
"source_project": {
|
|
934
|
+
"id": 10300112,
|
|
935
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
936
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
937
|
+
"path": "rntpc_react-native-geolocation"
|
|
938
|
+
},
|
|
939
|
+
"target_project": {
|
|
940
|
+
"id": 4369198,
|
|
941
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
942
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
943
|
+
"path": "rntpc_react-native-geolocation"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
948
|
+
"filename": "example/harmony/entry/src/main/module.json5",
|
|
949
|
+
"status": "added",
|
|
950
|
+
"additions": 62,
|
|
951
|
+
"deletions": 0,
|
|
952
|
+
"blob_id": "b0acc0b454e56a9a3ceee8f02a140cf354d4af30",
|
|
953
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/module.json5",
|
|
954
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/module.json5",
|
|
955
|
+
"patch": "@@ -0,0 +1,62 @@\n+{\n+ \"module\": {\n+ \"name\": \"entry\",\n+ \"type\": \"entry\",\n+ \"description\": \"$string:module_desc\",\n+ \"mainElement\": \"EntryAbility\",\n+ \"deviceTypes\": [\n+ \"default\"\n+ ],\n+ \"querySchemes\": [\n+ \"weixin\",\n+ ],\n+ \"deliveryWithInstall\": true,\n+ \"installationFree\": false,\n+ \"pages\": \"$profile:main_pages\",\n+ // below property is supported from 5.0.0 - it is needed by bundleManager.canOpenLink to check if the app can open some url\n+ // \"querySchemes\": [\"maps\", \"http\", \"https\", \"customDomain\"],\n+ \"requestPermissions\": [\n+ {\n+ \"name\": \"ohos.permission.INTERNET\"\n+ },\n+ {\n+ \"name\": \"ohos.permission.MICROPHONE\",\n+ \"reason\": \"$string:Access_Create_Audio\",\n+ \"usedScene\": {\n+ \"abilities\": [\n+ \"EntryAbility\"\n+ ],\n+ \"when\": \"always\"\n+ }\n+ }\n+ ],\n+ \"metadata\": [\n+ {\n+ \"name\": \"OPTLazyForEach\",\n+ \"value\": \"true\",\n+ }\n+ ],\n+ \"abilities\": [\n+ {\n+ \"name\": \"EntryAbility\",\n+ \"srcEntry\": \"./ets/entryability/EntryAbility.ets\",\n+ \"description\": \"$string:EntryAbility_desc\",\n+ \"icon\": \"$media:icon\",\n+ \"label\": \"$string:EntryAbility_label\",\n+ \"startWindowIcon\": \"$media:icon\",\n+ \"startWindowBackground\": \"$color:start_window_background\",\n+ \"visible\": true,\n+ \"skills\": [\n+ {\n+ \"entities\": [\n+ \"entity.system.home\"\n+ ],\n+ \"actions\": [\n+ \"action.system.home\"\n+ ]\n+ }\n+ ]\n+ }\n+ ]\n+ }\n+}\n\\n",
|
|
956
|
+
"target_branch": "br_rnoh0.72",
|
|
957
|
+
"source_branch": "br_rnoh0.72",
|
|
958
|
+
"source_project": {
|
|
959
|
+
"id": 10300112,
|
|
960
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
961
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
962
|
+
"path": "rntpc_react-native-geolocation"
|
|
963
|
+
},
|
|
964
|
+
"target_project": {
|
|
965
|
+
"id": 4369198,
|
|
966
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
967
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
968
|
+
"path": "rntpc_react-native-geolocation"
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
973
|
+
"filename": "example/harmony/entry/src/main/resources/.gitignore",
|
|
974
|
+
"status": "added",
|
|
975
|
+
"additions": 1,
|
|
976
|
+
"deletions": 0,
|
|
977
|
+
"blob_id": "037cea9e70bef8c906560a871a394f748ec2325d",
|
|
978
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/.gitignore",
|
|
979
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/.gitignore",
|
|
980
|
+
"patch": "@@ -0,0 +1 @@\n+rawfile/assets\n",
|
|
981
|
+
"target_branch": "br_rnoh0.72",
|
|
982
|
+
"source_branch": "br_rnoh0.72",
|
|
983
|
+
"source_project": {
|
|
984
|
+
"id": 10300112,
|
|
985
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
986
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
987
|
+
"path": "rntpc_react-native-geolocation"
|
|
988
|
+
},
|
|
989
|
+
"target_project": {
|
|
990
|
+
"id": 4369198,
|
|
991
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
992
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
993
|
+
"path": "rntpc_react-native-geolocation"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
998
|
+
"filename": "example/harmony/entry/src/main/resources/base/element/color.json",
|
|
999
|
+
"status": "added",
|
|
1000
|
+
"additions": 8,
|
|
1001
|
+
"deletions": 0,
|
|
1002
|
+
"blob_id": "3c712962da3c2751c2b9ddb53559afcbd2b54a02",
|
|
1003
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/element/color.json",
|
|
1004
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/element/color.json",
|
|
1005
|
+
"patch": "@@ -0,0 +1,8 @@\n+{\n+ \"color\": [\n+ {\n+ \"name\": \"start_window_background\",\n+ \"value\": \"#FFFFFF\"\n+ }\n+ ]\n+}\n\\n",
|
|
1006
|
+
"target_branch": "br_rnoh0.72",
|
|
1007
|
+
"source_branch": "br_rnoh0.72",
|
|
1008
|
+
"source_project": {
|
|
1009
|
+
"id": 10300112,
|
|
1010
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1011
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1012
|
+
"path": "rntpc_react-native-geolocation"
|
|
1013
|
+
},
|
|
1014
|
+
"target_project": {
|
|
1015
|
+
"id": 4369198,
|
|
1016
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1017
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1018
|
+
"path": "rntpc_react-native-geolocation"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1023
|
+
"filename": "example/harmony/entry/src/main/resources/base/element/string.json",
|
|
1024
|
+
"status": "added",
|
|
1025
|
+
"additions": 20,
|
|
1026
|
+
"deletions": 0,
|
|
1027
|
+
"blob_id": "96d88ca95881aaf316cbf0a08ae71b2c13b82c66",
|
|
1028
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/element/string.json",
|
|
1029
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/element/string.json",
|
|
1030
|
+
"patch": "@@ -0,0 +1,20 @@\n+{\n+ \"string\": [\n+ {\n+ \"name\": \"module_desc\",\n+ \"value\": \"module description\"\n+ },\n+ {\n+ \"name\": \"EntryAbility_desc\",\n+ \"value\": \"description\"\n+ },\n+ {\n+ \"name\": \"EntryAbility_label\",\n+ \"value\": \"RN Tester\"\n+ },\n+ {\n+ \"name\": \"Access_Create_Audio\",\n+ \"value\": \"access create Audio\"\n+ }\n+ ]\n+}\n\\n",
|
|
1031
|
+
"target_branch": "br_rnoh0.72",
|
|
1032
|
+
"source_branch": "br_rnoh0.72",
|
|
1033
|
+
"source_project": {
|
|
1034
|
+
"id": 10300112,
|
|
1035
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1036
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1037
|
+
"path": "rntpc_react-native-geolocation"
|
|
1038
|
+
},
|
|
1039
|
+
"target_project": {
|
|
1040
|
+
"id": 4369198,
|
|
1041
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1042
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1043
|
+
"path": "rntpc_react-native-geolocation"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1048
|
+
"filename": "example/harmony/entry/src/main/resources/base/media/icon.png",
|
|
1049
|
+
"status": "added",
|
|
1050
|
+
"additions": 0,
|
|
1051
|
+
"deletions": 0,
|
|
1052
|
+
"blob_id": "c0f05abe7eb110a3c4958a48f71ea15b28bae5d3",
|
|
1053
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/media/icon.png",
|
|
1054
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/media/icon.png",
|
|
1055
|
+
"patch": "Binary files no preview for this file type",
|
|
1056
|
+
"target_branch": "br_rnoh0.72",
|
|
1057
|
+
"source_branch": "br_rnoh0.72",
|
|
1058
|
+
"source_project": {
|
|
1059
|
+
"id": 10300112,
|
|
1060
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1061
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1062
|
+
"path": "rntpc_react-native-geolocation"
|
|
1063
|
+
},
|
|
1064
|
+
"target_project": {
|
|
1065
|
+
"id": 4369198,
|
|
1066
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1067
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1068
|
+
"path": "rntpc_react-native-geolocation"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1073
|
+
"filename": "example/harmony/entry/src/main/resources/base/profile/main_pages.json",
|
|
1074
|
+
"status": "added",
|
|
1075
|
+
"additions": 5,
|
|
1076
|
+
"deletions": 0,
|
|
1077
|
+
"blob_id": "1898d94f58d6128ab712be2c68acc7c98e9ab9ce",
|
|
1078
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/profile/main_pages.json",
|
|
1079
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/base/profile/main_pages.json",
|
|
1080
|
+
"patch": "@@ -0,0 +1,5 @@\n+{\n+ \"src\": [\n+ \"pages/Index\"\n+ ]\n+}\n",
|
|
1081
|
+
"target_branch": "br_rnoh0.72",
|
|
1082
|
+
"source_branch": "br_rnoh0.72",
|
|
1083
|
+
"source_project": {
|
|
1084
|
+
"id": 10300112,
|
|
1085
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1086
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1087
|
+
"path": "rntpc_react-native-geolocation"
|
|
1088
|
+
},
|
|
1089
|
+
"target_project": {
|
|
1090
|
+
"id": 4369198,
|
|
1091
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1092
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1093
|
+
"path": "rntpc_react-native-geolocation"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1098
|
+
"filename": "example/harmony/entry/src/main/resources/rawfile/1.txt",
|
|
1099
|
+
"status": "added",
|
|
1100
|
+
"additions": 1,
|
|
1101
|
+
"deletions": 0,
|
|
1102
|
+
"blob_id": "71f6ee3dfcd13fad21fc73e697c7c5a3c31ec039",
|
|
1103
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/rawfile/1.txt",
|
|
1104
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/entry/src/main/resources/rawfile/1.txt",
|
|
1105
|
+
"patch": "@@ -0,0 +1 @@\n+text test\n\\n",
|
|
1106
|
+
"target_branch": "br_rnoh0.72",
|
|
1107
|
+
"source_branch": "br_rnoh0.72",
|
|
1108
|
+
"source_project": {
|
|
1109
|
+
"id": 10300112,
|
|
1110
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1111
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1112
|
+
"path": "rntpc_react-native-geolocation"
|
|
1113
|
+
},
|
|
1114
|
+
"target_project": {
|
|
1115
|
+
"id": 4369198,
|
|
1116
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1117
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1118
|
+
"path": "rntpc_react-native-geolocation"
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1123
|
+
"filename": "example/harmony/format.ps1",
|
|
1124
|
+
"status": "added",
|
|
1125
|
+
"additions": 36,
|
|
1126
|
+
"deletions": 0,
|
|
1127
|
+
"blob_id": "3aa98a1a934b06821d21b9fc65a13f091a5ba167",
|
|
1128
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/format.ps1",
|
|
1129
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/format.ps1",
|
|
1130
|
+
"patch": "@@ -0,0 +1,36 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+$directoryPath = Split-Path -Parent $MyInvocation.MyCommand.Path\n+$filePaths = Get-ChildItem $directoryPath -Recurse -Include *.h, *.cpp |\n+Where-Object {\n+ $_.DirectoryName -notmatch 'third-party' -and\n+ $_.DirectoryName -notmatch 'patches' -and\n+ $_.DirectoryName -notmatch 'node_modules' -and\n+ $_.DirectoryName -notmatch '.cxx' -and\n+ $_.DirectoryName -notmatch 'build'\n+}\n+foreach ($filePath in $filePaths) {\n+ & \"clang-format.exe\" -style=file -i $filePath.FullName\n+}\n\\n",
|
|
1131
|
+
"target_branch": "br_rnoh0.72",
|
|
1132
|
+
"source_branch": "br_rnoh0.72",
|
|
1133
|
+
"source_project": {
|
|
1134
|
+
"id": 10300112,
|
|
1135
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1136
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1137
|
+
"path": "rntpc_react-native-geolocation"
|
|
1138
|
+
},
|
|
1139
|
+
"target_project": {
|
|
1140
|
+
"id": 4369198,
|
|
1141
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1142
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1143
|
+
"path": "rntpc_react-native-geolocation"
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1148
|
+
"filename": "example/harmony/hvigor/.gitignore",
|
|
1149
|
+
"status": "added",
|
|
1150
|
+
"additions": 1,
|
|
1151
|
+
"deletions": 0,
|
|
1152
|
+
"blob_id": "aa1ec1ea0618124672d14a63d00d943240f2db2a",
|
|
1153
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigor/.gitignore",
|
|
1154
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigor/.gitignore",
|
|
1155
|
+
"patch": "@@ -0,0 +1 @@\n+*.tgz\n",
|
|
1156
|
+
"target_branch": "br_rnoh0.72",
|
|
1157
|
+
"source_branch": "br_rnoh0.72",
|
|
1158
|
+
"source_project": {
|
|
1159
|
+
"id": 10300112,
|
|
1160
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1161
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1162
|
+
"path": "rntpc_react-native-geolocation"
|
|
1163
|
+
},
|
|
1164
|
+
"target_project": {
|
|
1165
|
+
"id": 4369198,
|
|
1166
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1167
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1168
|
+
"path": "rntpc_react-native-geolocation"
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1173
|
+
"filename": "example/harmony/hvigor/hvigor-config.json5",
|
|
1174
|
+
"status": "added",
|
|
1175
|
+
"additions": 21,
|
|
1176
|
+
"deletions": 0,
|
|
1177
|
+
"blob_id": "c8ba182673e80fbc3da9e614580e9453b718cd3b",
|
|
1178
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigor/hvigor-config.json5",
|
|
1179
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigor/hvigor-config.json5",
|
|
1180
|
+
"patch": "@@ -0,0 +1,21 @@\n+{\n+ \"modelVersion\": \"5.0.0\",\n+ \"dependencies\": {\n+ },\n+ \"execution\": {\n+ // \"analyze\": \"default\", /* Define the build analyze mode. Value: [ \"default\" | \"verbose\" | false ]. Default: \"default\" */\n+ // \"daemon\": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */\n+ // \"incremental\": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */\n+ // \"parallel\": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */\n+ // \"typeCheck\": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */\n+ },\n+ \"logging\": {\n+ // \"level\": \"info\" /* Define the log level. Value: [ \"debug\" | \"info\" | \"warn\" | \"error\" ]. Default: \"info\" */\n+ },\n+ \"debugging\": {\n+ \"stacktrace\": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */\n+ },\n+ \"nodeOptions\": {\n+ // \"maxOldSpaceSize\": 4096 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process */\n+ }\n+}\n\\n",
|
|
1181
|
+
"target_branch": "br_rnoh0.72",
|
|
1182
|
+
"source_branch": "br_rnoh0.72",
|
|
1183
|
+
"source_project": {
|
|
1184
|
+
"id": 10300112,
|
|
1185
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1186
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1187
|
+
"path": "rntpc_react-native-geolocation"
|
|
1188
|
+
},
|
|
1189
|
+
"target_project": {
|
|
1190
|
+
"id": 4369198,
|
|
1191
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1192
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1193
|
+
"path": "rntpc_react-native-geolocation"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1198
|
+
"filename": "example/harmony/hvigorfile.ts",
|
|
1199
|
+
"status": "added",
|
|
1200
|
+
"additions": 27,
|
|
1201
|
+
"deletions": 0,
|
|
1202
|
+
"blob_id": "1154219d0d1239467659913f49adba577ca92b29",
|
|
1203
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigorfile.ts",
|
|
1204
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/hvigorfile.ts",
|
|
1205
|
+
"patch": "@@ -0,0 +1,27 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+\n+// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.\n+export { appTasks } from '@ohos/hvigor-ohos-plugin';\n\\n",
|
|
1206
|
+
"target_branch": "br_rnoh0.72",
|
|
1207
|
+
"source_branch": "br_rnoh0.72",
|
|
1208
|
+
"source_project": {
|
|
1209
|
+
"id": 10300112,
|
|
1210
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1211
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1212
|
+
"path": "rntpc_react-native-geolocation"
|
|
1213
|
+
},
|
|
1214
|
+
"target_project": {
|
|
1215
|
+
"id": 4369198,
|
|
1216
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1217
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1218
|
+
"path": "rntpc_react-native-geolocation"
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1223
|
+
"filename": "example/harmony/oh-package.json5",
|
|
1224
|
+
"status": "added",
|
|
1225
|
+
"additions": 12,
|
|
1226
|
+
"deletions": 0,
|
|
1227
|
+
"blob_id": "bfb3ae4dd4b6e2320d02a1f02e404e1b75c47a0d",
|
|
1228
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/oh-package.json5",
|
|
1229
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/harmony/oh-package.json5",
|
|
1230
|
+
"patch": "@@ -0,0 +1,12 @@\n+{\n+ \"modelVersion\": \"5.0.0\",\n+ \"license\": \"ISC\",\n+ \"name\": \"rnoh\",\n+ \"description\": \"example description\",\n+ \"repository\": {},\n+ \"version\": \"1.0.0\",\n+ \"overrides\": {\n+ \"@rnoh/react-native-openharmony\": \"file:./../node_modules/react-native-harmony/react_native_openharmony.har\"\n+ },\n+ \"dynamicDependencies\": {}\n+}\n\\n",
|
|
1231
|
+
"target_branch": "br_rnoh0.72",
|
|
1232
|
+
"source_branch": "br_rnoh0.72",
|
|
1233
|
+
"source_project": {
|
|
1234
|
+
"id": 10300112,
|
|
1235
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1236
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1237
|
+
"path": "rntpc_react-native-geolocation"
|
|
1238
|
+
},
|
|
1239
|
+
"target_project": {
|
|
1240
|
+
"id": 4369198,
|
|
1241
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1242
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1243
|
+
"path": "rntpc_react-native-geolocation"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1248
|
+
"filename": "example/index.js",
|
|
1249
|
+
"status": "added",
|
|
1250
|
+
"additions": 29,
|
|
1251
|
+
"deletions": 0,
|
|
1252
|
+
"blob_id": "00c121b7ce1a0421522fbaf98a4c7ebaa55f5cca",
|
|
1253
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/index.js",
|
|
1254
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/index.js",
|
|
1255
|
+
"patch": "@@ -0,0 +1,29 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+import {AppRegistry, View, Text} from 'react-native';\n+import {name as appName} from './app.json';\n+import App from './src/index';\n+\n+AppRegistry.registerComponent(appName, () => App);\n\\n",
|
|
1256
|
+
"target_branch": "br_rnoh0.72",
|
|
1257
|
+
"source_branch": "br_rnoh0.72",
|
|
1258
|
+
"source_project": {
|
|
1259
|
+
"id": 10300112,
|
|
1260
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1261
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1262
|
+
"path": "rntpc_react-native-geolocation"
|
|
1263
|
+
},
|
|
1264
|
+
"target_project": {
|
|
1265
|
+
"id": 4369198,
|
|
1266
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1267
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1268
|
+
"path": "rntpc_react-native-geolocation"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1273
|
+
"filename": "example/jest.config.js",
|
|
1274
|
+
"status": "added",
|
|
1275
|
+
"additions": 29,
|
|
1276
|
+
"deletions": 0,
|
|
1277
|
+
"blob_id": "ed85d4f86f59e7b7f34f0377f31f6cf8eaf54e22",
|
|
1278
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/jest.config.js",
|
|
1279
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/jest.config.js",
|
|
1280
|
+
"patch": "@@ -0,0 +1,29 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+/** @type {import('ts-jest').JestConfigWithTsJest} */\n+module.exports = {\n+ preset: 'ts-jest',\n+ testEnvironment: 'node',\n+};\n",
|
|
1281
|
+
"target_branch": "br_rnoh0.72",
|
|
1282
|
+
"source_branch": "br_rnoh0.72",
|
|
1283
|
+
"source_project": {
|
|
1284
|
+
"id": 10300112,
|
|
1285
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1286
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1287
|
+
"path": "rntpc_react-native-geolocation"
|
|
1288
|
+
},
|
|
1289
|
+
"target_project": {
|
|
1290
|
+
"id": 4369198,
|
|
1291
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1292
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1293
|
+
"path": "rntpc_react-native-geolocation"
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1298
|
+
"filename": "example/metro.config.js",
|
|
1299
|
+
"status": "added",
|
|
1300
|
+
"additions": 48,
|
|
1301
|
+
"deletions": 0,
|
|
1302
|
+
"blob_id": "09a4d87aa11fc8c99cd45e858a1cc54c68d49a02",
|
|
1303
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/metro.config.js",
|
|
1304
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/metro.config.js",
|
|
1305
|
+
"patch": "@@ -0,0 +1,48 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+const {mergeConfig, getDefaultConfig} = require('@react-native/metro-config');\n+const {createHarmonyMetroConfig} = require('react-native-harmony/metro.config');\n+\n+/**\n+ * @type {import(\"metro-config\").ConfigT}\n+ */\n+const config = {\n+ transformer: {\n+ getTransformOptions: async () => ({\n+ transform: {\n+ experimentalImportSupport: false,\n+ inlineRequires: true,\n+ },\n+ }),\n+ },\n+};\n+\n+module.exports = mergeConfig(\n+ getDefaultConfig(__dirname),\n+ createHarmonyMetroConfig({\n+ reactNativeHarmonyPackageName: 'react-native-harmony',\n+ }),\n+ config,\n+);\n",
|
|
1306
|
+
"target_branch": "br_rnoh0.72",
|
|
1307
|
+
"source_branch": "br_rnoh0.72",
|
|
1308
|
+
"source_project": {
|
|
1309
|
+
"id": 10300112,
|
|
1310
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1311
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1312
|
+
"path": "rntpc_react-native-geolocation"
|
|
1313
|
+
},
|
|
1314
|
+
"target_project": {
|
|
1315
|
+
"id": 4369198,
|
|
1316
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1317
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1318
|
+
"path": "rntpc_react-native-geolocation"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1323
|
+
"filename": "example/package.json",
|
|
1324
|
+
"status": "added",
|
|
1325
|
+
"additions": 61,
|
|
1326
|
+
"deletions": 0,
|
|
1327
|
+
"blob_id": "6ed9ee605511b132c65327ee3cf54c00a4b8816f",
|
|
1328
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/package.json",
|
|
1329
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/package.json",
|
|
1330
|
+
"patch": "@@ -0,0 +1,61 @@\n+{\n+ \"name\": \"react-native-harmony-tester\",\n+ \"version\": \"1.0.0\",\n+ \"private\": true,\n+ \"scripts\": {\n+ \"i\": \"cd ../ && npm i && npm run pack && cd ./example && npm i\",\n+ \"reStart\": \"npm run install:pkg && npm run codegen && hdc rport tcp:8081 tcp:8081 && react-native start\",\n+ \"start\": \"hdc rport tcp:8081 tcp:8081 && react-native start\",\n+ \"codegen\": \"react-native codegen-harmony --rnoh-module-path ./harmony/entry/oh_modules/@rnoh/react-native-openharmony\",\n+ \"pack:pkg\": \"cd ../ && npm pack && cd ./example\",\n+ \"install:pkg\": \"npm uninstall @react-native-ohos/geolocation && npm run pack:pkg && npm i @react-native-ohos/geolocation@file:../react-native-ohos-geolocation-3.1.1.tgz\",\n+ \"dev\": \"npm run codegen && react-native bundle-harmony --dev --minify=false\",\n+ \"prod\": \"npm run codegen && react-native bundle-harmony --dev=false --minify=true\",\n+ \"postinstall\": \"node ./scripts/create-build-profile\",\n+ \"fast-install-project\": \"cd ../ && npm i --force && npm run pack && rm -r node_modules && cd ./example && npm i --force\",\n+ \"fast:pkg\": \"npm run fast-install-project && npm run dev\"\n+ },\n+ \"dependencies\": {\n+ \"@gorhom/portal\": \"^1.0.14\",\n+ \"@react-native-ohos/geolocation\": \"file:../react-native-ohos-geolocation-3.1.1.tgz\",\n+ \"react\": \"18.3.1\",\n+ \"react-native\": \"0.77.1\",\n+ \"react-native-harmony\": \"npm:@react-native-oh/react-native-harmony@0.77.18-1\",\n+ \"react-native-reanimated\": \"^3.6.0\"\n+ },\n+ \"devDependencies\": {\n+ \"@babel/core\": \"^7.25.2\",\n+ \"@babel/preset-env\": \"^7.25.3\",\n+ \"@babel/runtime\": \"^7.25.0\",\n+ \"@react-native-community/cli\": \"15.0.1\",\n+ \"@react-native-community/cli-platform-android\": \"15.0.1\",\n+ \"@react-native-community/cli-platform-ios\": \"15.0.1\",\n+ \"@react-native-community/eslint-config\": \"^3.2.0\",\n+ \"@react-native/babel-preset\": \"0.77.1\",\n+ \"@react-native/eslint-config\": \"0.77.1\",\n+ \"@react-native/metro-config\": \"^0.77.1\",\n+ \"@react-native/typescript-config\": \"0.77.1\",\n+ \"@rnoh/react-native-harmony-cli\": \"npm:@react-native-oh/react-native-harmony-cli@0.77.18-1\",\n+ \"@tsconfig/react-native\": \"^3.0.0\",\n+ \"@types/d3-scale-chromatic\": \"^3.0.0\",\n+ \"@types/jest\": \"^29.5.13\",\n+ \"@types/react\": \"^18.2.6\",\n+ \"@types/react-test-renderer\": \"^18.0.0\",\n+ \"babel-jest\": \"^29.6.3\",\n+ \"eslint\": \"^8.19.0\",\n+ \"jest\": \"^29.7.0\",\n+ \"metro-react-native-babel-preset\": \"0.76.8\",\n+ \"prettier\": \"2.8.8\",\n+ \"react-test-renderer\": \"18.3.1\",\n+ \"typescript\": \"5.5.4\"\n+ },\n+ \"overrides\": {\n+ \"@react-native-community/cli\": \"15.0.1\"\n+ },\n+ \"resolutions\": {\n+ \"@react-native-community/cli\": \"15.0.1\"\n+ },\n+ \"engines\": {\n+ \"node\": \">=18\"\n+ }\n+}\n",
|
|
1331
|
+
"target_branch": "br_rnoh0.72",
|
|
1332
|
+
"source_branch": "br_rnoh0.72",
|
|
1333
|
+
"source_project": {
|
|
1334
|
+
"id": 10300112,
|
|
1335
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1336
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1337
|
+
"path": "rntpc_react-native-geolocation"
|
|
1338
|
+
},
|
|
1339
|
+
"target_project": {
|
|
1340
|
+
"id": 4369198,
|
|
1341
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1342
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1343
|
+
"path": "rntpc_react-native-geolocation"
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1348
|
+
"filename": "example/react-native.config.js",
|
|
1349
|
+
"status": "added",
|
|
1350
|
+
"additions": 29,
|
|
1351
|
+
"deletions": 0,
|
|
1352
|
+
"blob_id": "94d5dc9d37e31b0a59b81c90bdcacd4b778209db",
|
|
1353
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/react-native.config.js",
|
|
1354
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/react-native.config.js",
|
|
1355
|
+
"patch": "@@ -0,0 +1,29 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+module.exports = {\n+ project: {\n+ },\n+ assets: ['./assets/fonts/'],\n+};\n",
|
|
1356
|
+
"target_branch": "br_rnoh0.72",
|
|
1357
|
+
"source_branch": "br_rnoh0.72",
|
|
1358
|
+
"source_project": {
|
|
1359
|
+
"id": 10300112,
|
|
1360
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1361
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1362
|
+
"path": "rntpc_react-native-geolocation"
|
|
1363
|
+
},
|
|
1364
|
+
"target_project": {
|
|
1365
|
+
"id": 4369198,
|
|
1366
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1367
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1368
|
+
"path": "rntpc_react-native-geolocation"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1373
|
+
"filename": "example/scripts/create-build-profile.js",
|
|
1374
|
+
"status": "added",
|
|
1375
|
+
"additions": 64,
|
|
1376
|
+
"deletions": 0,
|
|
1377
|
+
"blob_id": "ddaeccabc2aea02596076ad50e538f6f53300c01",
|
|
1378
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/scripts/create-build-profile.js",
|
|
1379
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/scripts/create-build-profile.js",
|
|
1380
|
+
"patch": "@@ -0,0 +1,64 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+\n+\n+const fs = require('fs');\n+const JSON5 = require('json5');\n+const path = require('path');\n+\n+const templatePath = path.join(\n+ __dirname,\n+ '..',\n+ 'harmony',\n+ 'build-profile.template.json5',\n+);\n+const existingProfilePath = path.join(\n+ __dirname,\n+ '..',\n+ 'harmony',\n+ 'build-profile.json5',\n+);\n+\n+if (fs.existsSync(existingProfilePath)) {\n+ let existingProfile = JSON5.parse(\n+ fs.readFileSync(existingProfilePath, 'utf-8'),\n+ );\n+ let template = JSON5.parse(fs.readFileSync(templatePath, 'utf-8'));\n+ let signingConfigs =\n+ existingProfile.app && existingProfile.app.signingConfigs;\n+\n+ existingProfile = {...template};\n+\n+ if (signingConfigs) {\n+ existingProfile.app.signingConfigs = signingConfigs;\n+ }\n+\n+ fs.writeFileSync(\n+ existingProfilePath,\n+ JSON5.stringify(existingProfile, null, 2),\n+ );\n+} else {\n+ // File doesn't exist, create a copy from the template\n+ fs.copyFileSync(templatePath, existingProfilePath);\n+}\n\\n",
|
|
1381
|
+
"target_branch": "br_rnoh0.72",
|
|
1382
|
+
"source_branch": "br_rnoh0.72",
|
|
1383
|
+
"source_project": {
|
|
1384
|
+
"id": 10300112,
|
|
1385
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1386
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1387
|
+
"path": "rntpc_react-native-geolocation"
|
|
1388
|
+
},
|
|
1389
|
+
"target_project": {
|
|
1390
|
+
"id": 4369198,
|
|
1391
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1392
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1393
|
+
"path": "rntpc_react-native-geolocation"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1398
|
+
"filename": "example/src/index.tsx",
|
|
1399
|
+
"status": "added",
|
|
1400
|
+
"additions": 40,
|
|
1401
|
+
"deletions": 0,
|
|
1402
|
+
"blob_id": "ab2cd23ec133ce5306861eb4423444029cfaa47c",
|
|
1403
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/src/index.tsx",
|
|
1404
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/src/index.tsx",
|
|
1405
|
+
"patch": "@@ -0,0 +1,40 @@\n+/**\n+ * MIT License\n+ *\n+ * Copyright (C) 2023 Huawei Device Co., Ltd.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all\n+ * copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+ */\n+import Geolocation from \"@react-native-community/geolocation\";\n+import { Button } from \"react-native\";\n+import React from 'react';\n+\n+export function GeolocationDemo(): JSX.Element {\n+ const tap = () => {\n+ Geolocation.setRNConfiguration({\n+ skipPermissionRequests: true,\n+ authorizationLevel: \"auto\",\n+ enableBackgroundLocationUpdates: true,\n+ locationProvider: \"auto\",\n+ });\n+ console.log(\"tap\");\n+ };\n+\n+ return <Button title='test' onPress={tap} />;\n+}\n\\n",
|
|
1406
|
+
"target_branch": "br_rnoh0.72",
|
|
1407
|
+
"source_branch": "br_rnoh0.72",
|
|
1408
|
+
"source_project": {
|
|
1409
|
+
"id": 10300112,
|
|
1410
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1411
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1412
|
+
"path": "rntpc_react-native-geolocation"
|
|
1413
|
+
},
|
|
1414
|
+
"target_project": {
|
|
1415
|
+
"id": 4369198,
|
|
1416
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1417
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1418
|
+
"path": "rntpc_react-native-geolocation"
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1423
|
+
"filename": "example/tsconfig.json",
|
|
1424
|
+
"status": "added",
|
|
1425
|
+
"additions": 14,
|
|
1426
|
+
"deletions": 0,
|
|
1427
|
+
"blob_id": "f224f67deed574dd019f1e6c17e38055adf63f38",
|
|
1428
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/tsconfig.json",
|
|
1429
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/example/tsconfig.json",
|
|
1430
|
+
"patch": "@@ -0,0 +1,14 @@\n+{\n+ \"extends\": \"@react-native/typescript-config/tsconfig.json\",\n+ \"compilerOptions\": {\n+ \"jsx\": \"react-native\",\n+ \"paths\": {\n+ \"react-native\": [\n+ \"./node_modules/react-native-harmony\"\n+ ],\n+ },\n+ },\n+ \"exclude\": [\n+ \"harmony\"\n+ ]\n+}\n\\n",
|
|
1431
|
+
"target_branch": "br_rnoh0.72",
|
|
1432
|
+
"source_branch": "br_rnoh0.72",
|
|
1433
|
+
"source_project": {
|
|
1434
|
+
"id": 10300112,
|
|
1435
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1436
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1437
|
+
"path": "rntpc_react-native-geolocation"
|
|
1438
|
+
},
|
|
1439
|
+
"target_project": {
|
|
1440
|
+
"id": 4369198,
|
|
1441
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1442
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1443
|
+
"path": "rntpc_react-native-geolocation"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1448
|
+
"filename": "harmony/geolocation/index.ets",
|
|
1449
|
+
"additions": 2,
|
|
1450
|
+
"deletions": 2,
|
|
1451
|
+
"blob_id": "11990c5a91b50f28039f1dd15046b12e4411218d",
|
|
1452
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/harmony/geolocation/index.ets",
|
|
1453
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/harmony/geolocation/index.ets",
|
|
1454
|
+
"patch": "@@ -21,6 +21,6 @@\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n-import { GeoLocationPackage } from './src/main/ets/GeoLocationPackage.ets';\n-export * from './ts.ets';\n+import { GeoLocationPackage } from './src/main/ets/GeoLocationPackage';\n+export * from './ts';\n export default GeoLocationPackage;\n",
|
|
1455
|
+
"target_branch": "br_rnoh0.72",
|
|
1456
|
+
"source_branch": "br_rnoh0.72",
|
|
1457
|
+
"source_project": {
|
|
1458
|
+
"id": 10300112,
|
|
1459
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1460
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1461
|
+
"path": "rntpc_react-native-geolocation"
|
|
1462
|
+
},
|
|
1463
|
+
"target_project": {
|
|
1464
|
+
"id": 4369198,
|
|
1465
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1466
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1467
|
+
"path": "rntpc_react-native-geolocation"
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1472
|
+
"filename": "harmony/geolocation/ts.ets",
|
|
1473
|
+
"additions": 2,
|
|
1474
|
+
"deletions": 2,
|
|
1475
|
+
"blob_id": "568a100db8aa12f3abbfe96dd802320f586c7d94",
|
|
1476
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/harmony/geolocation/ts.ets",
|
|
1477
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/harmony/geolocation/ts.ets",
|
|
1478
|
+
"patch": "@@ -13,7 +13,7 @@\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n- * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANT KIND, EXPRESS OR\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n@@ -22,5 +22,5 @@\n * SOFTWARE.\n */\n \n-export * from './src/main/ets/GeoLocationPackage.ets'\n+export * from './src/main/ets/GeoLocationPackage'\n export * from './src/main/ets/RNCGeolocationTurboModule'\n\\n",
|
|
1479
|
+
"target_branch": "br_rnoh0.72",
|
|
1480
|
+
"source_branch": "br_rnoh0.72",
|
|
1481
|
+
"source_project": {
|
|
1482
|
+
"id": 10300112,
|
|
1483
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1484
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1485
|
+
"path": "rntpc_react-native-geolocation"
|
|
1486
|
+
},
|
|
1487
|
+
"target_project": {
|
|
1488
|
+
"id": 4369198,
|
|
1489
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1490
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1491
|
+
"path": "rntpc_react-native-geolocation"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"sha": "b82058d18d8dfc2ce0f271a7626c52f550795aab",
|
|
1496
|
+
"filename": "package.json",
|
|
1497
|
+
"additions": 1,
|
|
1498
|
+
"deletions": 0,
|
|
1499
|
+
"blob_id": "b819015523e34378d418232c8a00fe49b2be2c88",
|
|
1500
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/b82058d18d8dfc2ce0f271a7626c52f550795aab/package.json",
|
|
1501
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/b82058d18d8dfc2ce0f271a7626c52f550795aab/package.json",
|
|
1502
|
+
"patch": "@@ -33,6 +33,7 @@\n \"homepage\": \"https://gitcode.com/michalchudziak/react-native-geolocation#README.md\",\n \"license\": \"MIT\",\n \"scripts\": {\n+ \"pack\": \"npm pack --ignore-scripts\",\n \"start\": \"react-native start\",\n \"test\": \"yarn validate:eslint && yarn validate:typescript && yarn test:jest\",\n \"validate:eslint\": \"eslint \\\"**/*.{js,ts,tsx}\\\"\",\n",
|
|
1503
|
+
"target_branch": "br_rnoh0.72",
|
|
1504
|
+
"source_branch": "br_rnoh0.72",
|
|
1505
|
+
"source_project": {
|
|
1506
|
+
"id": 10300112,
|
|
1507
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1508
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1509
|
+
"path": "rntpc_react-native-geolocation"
|
|
1510
|
+
},
|
|
1511
|
+
"target_project": {
|
|
1512
|
+
"id": 4369198,
|
|
1513
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1514
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1515
|
+
"path": "rntpc_react-native-geolocation"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"sha": "8480701cca479f184167b1feb86d433196fc3c0a",
|
|
1520
|
+
"filename": "react-native-geolocation.podspec",
|
|
1521
|
+
"status": "deleted",
|
|
1522
|
+
"additions": 0,
|
|
1523
|
+
"deletions": 35,
|
|
1524
|
+
"blob_id": "0000000000000000000000000000000000000000",
|
|
1525
|
+
"blob_url": "https://gitcode.com/CPF-RN/rntpc_react-native-geolocation/blob/8480701cca479f184167b1feb86d433196fc3c0a/react-native-geolocation.podspec",
|
|
1526
|
+
"raw_url": "https://raw.gitcode.com/CPF-RN/rntpc_react-native-geolocation/raw/8480701cca479f184167b1feb86d433196fc3c0a/react-native-geolocation.podspec",
|
|
1527
|
+
"patch": "@@ -1,35 +0,0 @@\n-require 'json'\n-\n-package = JSON.parse(File.read(File.join(__dir__, 'package.json')))\n-folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'\n-\n-Pod::Spec.new do |s|\n- s.name = \"react-native-geolocation\"\n- s.version = package['version']\n- s.summary = package['description']\n- s.license = package['license']\n-\n- s.authors = package['author']\n- s.homepage = package['homepage']\n- s.platform = :ios, \"9.0\"\n-\n- s.source = { :git => \"https://github.com/react-native-community/react-native-geolocation.git\", :tag => \"v#{s.version}\" }\n- s.source_files = \"ios/**/*.{h,m,mm}\"\n-\n- s.dependency 'React-Core'\n- s.frameworks = 'CoreLocation'\n-\n- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then\n- s.compiler_flags = folly_compiler_flags + \" -DRCT_NEW_ARCH_ENABLED=1\"\n- s.pod_target_xcconfig = {\n- \"HEADER_SEARCH_PATHS\" => \"\\\"$(PODS_ROOT)/boost\\\"\",\n- \"CLANG_CXX_LANGUAGE_STANDARD\" => \"c++17\"\n- }\n-\n- s.dependency \"React-Codegen\"\n- s.dependency \"RCT-Folly\"\n- s.dependency \"RCTRequired\"\n- s.dependency \"RCTTypeSafety\"\n- s.dependency \"ReactCommon/turbomodule/core\"\n- end\n-end\n",
|
|
1528
|
+
"target_branch": "br_rnoh0.72",
|
|
1529
|
+
"source_branch": "br_rnoh0.72",
|
|
1530
|
+
"source_project": {
|
|
1531
|
+
"id": 10300112,
|
|
1532
|
+
"full_name": "chenbaodi123/rntpc_react-native-geolocation",
|
|
1533
|
+
"human_name": "chenbaodi123 / rntpc_react-native-geolocation",
|
|
1534
|
+
"path": "rntpc_react-native-geolocation"
|
|
1535
|
+
},
|
|
1536
|
+
"target_project": {
|
|
1537
|
+
"id": 4369198,
|
|
1538
|
+
"full_name": "CPF-RN/rntpc_react-native-geolocation",
|
|
1539
|
+
"human_name": "CPF-RN / rntpc_react-native-geolocation",
|
|
1540
|
+
"path": "rntpc_react-native-geolocation"
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
]
|
|
1544
|
+
}
|