Skip to content

Api fixes and Kotlin support#15

Merged
strider-dunadan merged 2 commits into
masterfrom
api-fixes
May 20, 2026
Merged

Api fixes and Kotlin support#15
strider-dunadan merged 2 commits into
masterfrom
api-fixes

Conversation

@biodranik
Copy link
Copy Markdown
Member

  • sample-app-capitals: add missing startActivity() in onActivityResult
    and setPickPointMode(true) on outgoing MapRequests so OM actually
    returns the picked point; null-guard the result flow; make
    EXTRA_POINT final.
  • PickPointResponse.extractFromIntent: null-guard intent.getExtras()
    and declare @NonNull/@nullable.
  • OrganicMapsApi: Allman braces, drop extraneous ;, add
    app.organicmaps.web flavour to isOrganicMapsPackageInstalled.
  • Bump gradle wrapper to 9.4.1 to match AGP 9.2.1.
  • .gitignore: block reintroduction of the Eclipse-era module-root
    layout (//AndroidManifest.xml, //build.xml, //project.properties,
    /
    /res/, /*/src/com/) and widen .idea to all modules.
  • Delete the legacy lib/{AndroidManifest,build.xml,project.properties,
    res,src/com} and sample-app-capitals/{same,...,.idea} trees.
  • README: full rewrite around the real OrganicMapsApi +
    ActivityResultLauncher flow, document both samples + Kotlin

@biodranik biodranik requested review from strider-dunadan and vng May 17, 2026 21:58
@biodranik biodranik force-pushed the api-fixes branch 2 times, most recently from fc9ddec to c172170 Compare May 17, 2026 22:01
@biodranik
Copy link
Copy Markdown
Member Author

CC @Komzpa

Copy link
Copy Markdown
Member Author

@biodranik biodranik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @strider-dunadan ! Did you test it/does it work?

@strider-dunadan
Copy link
Copy Markdown

@biodranik yes, it's working

@strider-dunadan strider-dunadan dismissed their stale review May 20, 2026 11:48

Wanna add detail debug open

@biodranik
Copy link
Copy Markdown
Member Author

@strider-dunadan thanks! You can rebase/merge when it's ready.

biodranik added 2 commits May 20, 2026 16:15
- sample-app-capitals: add missing startActivity() in onActivityResult
  and setPickPointMode(true) on outgoing MapRequests so OM actually
  returns the picked point; null-guard the result flow; make
  EXTRA_POINT final.
- PickPointResponse.extractFromIntent: null-guard intent.getExtras()
  and declare @NonNull/@nullable.
- OrganicMapsApi: Allman braces, drop extraneous ;, add
  app.organicmaps.web flavour to isOrganicMapsPackageInstalled.
- Bump gradle wrapper to 9.4.1 to match AGP 9.2.1.
- .gitignore: block reintroduction of the Eclipse-era module-root
  layout (/*/AndroidManifest.xml, /*/build.xml, /*/project.properties,
  /*/res/, /*/src/com/) and widen .idea to all modules.
- Delete the legacy lib/{AndroidManifest,build.xml,project.properties,
  res,src/com} and sample-app-capitals/{same,...,.idea} trees.
- README: full rewrite around the real OrganicMapsApi +
  ActivityResultLauncher flow, document both samples.
- CLAUDE.md: update build numbers and source-layout note.

Signed-off-by: Alexander Borsuk <me@alex.bio>

Modernize samples: edge-to-edge insets, ActivityResult, AppCompat

Signed-off-by: strider-dunadan <emerald.dunadan@gmail.com>

Add long-press shortcut to open city details without OM round-trip

Signed-off-by: strider-dunadan <emerald.dunadan@gmail.com>
Mirror each Java snippet (showPointsOnMap, ActivityResult round-trip,
CrosshairRequest) with an idiomatic Kotlin version. Call out that Java
getters surface as Kotlin properties (response.point, point.id,
response.zoomLevel) and that mapTo(ArrayList()) is needed because
showPointsOnMap takes ArrayList<Point>, not List<Point>.

Signed-off-by: Alexander Borsuk <me@alex.bio>
@strider-dunadan strider-dunadan merged commit f813cc1 into master May 20, 2026
1 check passed
@strider-dunadan strider-dunadan deleted the api-fixes branch May 20, 2026 14:17
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.

2 participants