SShortSingh.
Back to feed

Codename One Adds Portable Routing API to Simplify In-App Navigation

0
·2 views

Codename One, an open-source framework for building cross-platform apps in Java or Kotlin, has introduced a new routing module via pull request #5480. The update adds a com.codename1.maps.routing package that models road geometry, waypoints, distances, durations, and encoded polylines. Developers can use a simple two-line call for basic route display or a callback-based API for advanced needs like ETAs, alternatives, and custom styling. The default routing backend is the open-source OSRM demo server, which requires no API key but is not intended for production use. The design abstracts the service layer so application code works with a standard Route model regardless of the underlying routing provider.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How Claude Code's PreToolUse Hooks Can Block Dangerous Shell Commands

Claude Code's ability to run tools introduces risk, as prompt-based instructions alone can be unreliable guardrails. Developers can use a PreToolUse hook — a script that runs before any tool call — to programmatically intercept and block dangerous commands like 'rm -rf'. The hook works by inspecting incoming Bash commands and returning exit code 2 to block execution, while exit code 0 signals no objection. A sample implementation uses a shell script paired with a settings.json configuration file placed inside the project's .claude directory. Developers are cautioned that hooks are a supplementary safety layer and should be combined with permission rules, sandboxing, and backups for high-stakes environments.

0
ProgrammingDEV Community ·

DeFi Protocols Lose Billions Annually to Hacks: Key Vulnerabilities Explained

Decentralized finance (DeFi) protocols, built on public blockchains using smart contracts, have attracted trillions of dollars in value since pioneers like MakerDAO, Compound, and Uniswap emerged around 2018–2020. However, billions of dollars are drained from these protocols every year through a range of exploits, according to blockchain security firms such as Chainalysis and PeckShield. Core vulnerabilities include flaws in smart contract code — such as reentrancy attacks, logic errors, and access control weaknesses — that allow bad actors to manipulate protocol behavior or siphon funds. External data feeds known as oracles are also frequently targeted, with attackers manipulating asset prices on low-liquidity exchanges to exploit lending or liquidation mechanisms. The open-source and composable nature of DeFi, while fostering innovation, amplifies these risks by exposing entire codebases to scrutiny and allowing a single vulnerability in one protocol to cascade across interconnected systems.

0
ProgrammingDEV Community ·

DEV Community Introduces Jem as Its New Community Program Coordinator

Jem has formally introduced herself as DEV Community's Program Coordinator after nearly two years of part-time work managing social accounts, support, and moderation. She recently transitioned into a more editorial and curatorial role, collaborating with DEV's Jess on content and DEV Challenges. Going forward, she will take ownership of the weekly Top 7 posts and Challenge Announcements, making her a more visible presence on the platform. Outside of DEV, Jem pursues a graduate degree exploring music, video games, and media theory, and teaches design and HTML/CSS to undergraduates at CUNY Hunter. She expressed enthusiasm for DEV as a space where technical skill and creative curiosity intersect and can both flourish.

0
ProgrammingDEV Community ·

MyZubster Expands Open-Source Robotics Platform to 36 Projects with Space Sector

The MyZubster open-source ecosystem has grown to 36 robot projects spanning seven sectors, with a total of 119 XMR allocated in bounties. The latest addition is a dedicated Space sector comprising ten software projects, including a Lunar Rover, Satellite Communication, and Life Support modules, carrying a combined bounty of 78 XMR. The Space sector focuses on designing autonomous software architectures suited for environments where connectivity, human intervention, and infrastructure cannot be taken for granted. All project scopes and bounty milestones are described as complete, though physical deployment of these systems remains a separate engineering challenge. The platform uses Monero for payments and applies a shared gateway architecture across robotics, AI, IoT, and now space-oriented software development.