ondes_sdk 1.3.2
ondes_sdk: ^1.3.2 copied to clipboard
Flutter SDK for building mini-apps that run inside the Ondes Core Bridge. Provides access to native features like UI, Storage, Device, Social, and more.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.3.2 - 2026-01-20 #
Fixed #
- UDP Module: Fixed all
as intcasts to use(num).toInt()for JavaScript compatibility - Numbers from JS are always doubles, so direct int casts fail
- Fixed
UdpSocket.fromJson,UdpMessage.fromJson,UdpSendResult.fromJson,UdpBroadcastResult.fromJson
1.3.1 - 2026-01-20 #
Fixed #
- UDP Module: Fixed message callback registration -
onMessage()now properly receives messages from the native bridge by registering JS callbacks - Added proper JS interop for UDP message events
1.3.0 - 2026-01-20 #
Added #
- UDP Module (
Ondes.udp)bind()- Bind to a UDP port and start listeningsend()- Send a UDP message to a specific addressbroadcast()- Broadcast a message to multiple addressesclose()- Close a UDP socketonMessage()- Stream of incoming UDP messagesonClose()- Stream of socket close eventsgetInfo()- Get socket informationlist()- List all active socketscloseAll()- Close all sockets
- New models:
UdpSocket,UdpMessage,UdpSendResult,UdpBroadcastResult,UdpBindOptions
1.2.0 - 2026-01-20 #
Added #
- Websocket Module (
Ondes.websocket)connect()- Connect to a WebSocket server with auto-reconnect supportdisconnect()- Close a WebSocket connectionsend()- Send messages (text or JSON)onMessage()- Stream of incoming messagesonStatusChange()- Stream of connection status changesgetStatus()- Get current connection statuslist()- List all active connectionsdisconnectAll()- Close all connections
- New models:
WebsocketConnection,WebsocketStatus,WebsocketConnectOptions
1.0.0 - 2026-01-20 #
Added #
- Initial release of
ondes_sdk - UI Module (
Ondes.ui)showToast()- Display native toast notificationsshowAlert()- Display alert dialogsshowConfirm()- Display confirmation dialogsshowBottomSheet()- Display bottom sheet menusconfigureAppBar()- Configure the native app bar
- User Module (
Ondes.user)getProfile()- Get current user profileisAuthenticated()- Check authentication statusgetAuthToken()- Get authentication token for API calls
- Device Module (
Ondes.device)hapticFeedback()- Trigger haptic feedbackvibrate()- Vibrate the devicescanQRCode()- Scan QR codes using cameragetGPSPosition()- Get current GPS locationgetInfo()- Get device information
- Storage Module (
Ondes.storage)get()/set()- Read/write persistent dataremove()/clear()- Delete stored datagetKeys()- List all stored keys
- App Module (
Ondes.app)getInfo()- Get mini-app informationgetManifest()- Get manifest.json contentsclose()- Close the mini-app
- Friends Module (
Ondes.friends)list()- Get friends listrequest()/accept()/reject()- Manage friend requestsblock()/unblock()- Block managementsearch()- Search users
- Social Module (
Ondes.social)getFeed()- Get social feedpublish()- Create new postslikePost()/unlikePost()- Like managementaddComment()/getComments()- CommentsgetStories()/createStory()- StoriespickMedia()- Native media pickerfollow()/unfollow()- Follow management
- JS Bridge for Web communication
- Strongly-typed models for all data structures
- OndesException for error handling
- Example Flutter Web application