Skip to content

Adjustments for dependencies transpilation#6

Merged
OlKir merged 3 commits intoios_compatibilityfrom
adjustments-for-dependencies-transpilation
Oct 15, 2025
Merged

Adjustments for dependencies transpilation#6
OlKir merged 3 commits intoios_compatibilityfrom
adjustments-for-dependencies-transpilation

Conversation

@OlKir
Copy link
Copy Markdown

@OlKir OlKir commented Oct 9, 2025

To be able to transpile Java files to Obj-C, I have to make changes in GraphHopper. Initially they caused falling of tests but it should be fixed now. The changes mostly affected dependencies.
Please check commit messages for details.
Important note - those changes broke importing of OSM data functionality. In current state, this branch always expects to have a routing graph ready.

Oleksii Kirizii added 2 commits October 8, 2025 10:20
- Added lightweight stubs so the iOS build no longer needs the heavy OSM import and elevation toolchain: key placeholders live in dependencies/stubs/src/main/java/com/graphhopper/reader/osm/
  OSMReader.java:20, .../GraphRestriction.java:1, .../RestrictionTagParser.java:15, and .../conditional/ConditionalOSMTagInspector.java:1. These cover the types the routing code references while
  keeping the implementations no-op.
- Simplified GraphHopper’s elevation wiring to match the iOS workflow (external, pre-generated graphs): graphhopper/core/src/main/java/com/graphhopper/GraphHopper.java:764 now always returns
  ElevationProvider.NOOP, and interpolateBridgesTunnelsAndFerries is reduced to a no-op comment at graphhopper/core/src/main/java/com/graphhopper/GraphHopper.java:1194.
  - Reintroduced bridge/tunnel/ferry elevation interpolation while making it configurable via graph.elevation.edge_interpolation so non-iOS builds keep the previous smoothing by default. core/src/main/java/com/
    graphhopper/GraphHopper.java:99
  - Added a loader-guarded setter to toggle the interpolation programmatically for tooling that prepares graphs externally. core/src/main/java/com/graphhopper/GraphHopper.java:190
  - Restored the interpolation execution/logging path and gated it behind the new flag to preserve standard import behaviour. core/src/main/java/com/graphhopper/GraphHopper.java:1207
@OlKir OlKir merged commit 0bb5a3d into ios_compatibility Oct 15, 2025
2 of 4 checks passed
benedikt-brandtner-bikemap pushed a commit that referenced this pull request Oct 30, 2025
* navigation profile specific voiceinstruction placement

* fix: hiking should have been walking

* fix: try to find a mapbox profile for the graphhopper profile

* Revert "fix: try to find a mapbox profile for the graphhopper profile"

This reverts commit 3db1c5b.

* feat: configure DistanceConfig from Profile hints too

* chore: add myself (Karol Olszacki) to the contributors list

* fix: create NavigationTransportMode enum and use that

* fix: make sure we accept all kinds of values for wider compatibility with OSRM/Mapbox/etc

* fix: DistanceConfig enhancement (#6)

* fix: fold more cases into DistanceConfig, remove the new enum and allow usage of existing one

* chore: update the example with gh-centric terms

---------

Co-authored-by: Karol Olszacki <karol.olszacki@pl.bosch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant