Comments (6)
Actually, I haven't been using KStateMachine because I've previously relied on Tinder's StateMachine for both Android and iOS, finding it quite intuitive. However, I've been conducting some market research to explore alternatives, given that Tinder's solution isn't receiving much attention. The upside is that it's lightweight and easy to integrate; it's essentially just a class that you can directly include in your project (since jitpack doesn't yet support KMP), so updating it to support iOS and Wasm was pratically just a matter of bumping versions. Nevertheless, moving forward, I'd prefer a solution that's actively maintained. In summary, while I'm not currently using KStateMachine, I'm open to giving it a try, especially once it becomes available for wasmJs, allowing for compatibility across Android, iOS, desktop, and wasm platforms.
from kstatemachine.
When I added multiplatoform support, I checked that it successfully compiles for JS target. But the second artefact (kstatemachine-coroutines) uses runBlocking
function internally which is not supported on JS.
So we can check that main artefact works easily. Just have to add JS target in gradle scripts.
Then maybe it will be possible to cut unsupported api for JS from the second artefact.
Are you ready to try it? you can do it locally and open a PR. Alternatively I can try add JS target for main artefact myself, but I can check it only on compilation level.
from kstatemachine.
I can try and give it a look in runtime, for now, I'm using Tinder's State Machine and since coroutines
and atomic-fu
already support wasmJs
it was just a matter of updating the libraries (I've forked from a fork which originally added support for KMP).
All tests passed, now I'm experimenting with a small POC to see what challenges I face.
from kstatemachine.
Quick feedback, Tinder's State Machine with coroutines: 1.8.0
and atomic-fu: 0.23.2
it's working like a charm 👌🏼
I'll eventually open this POC to the community and share it where if you'll like 😉
from kstatemachine.
So are you going to continue with KStateMachine?
from kstatemachine.
Wasm support added in https://github.com/KStateMachine/kstatemachine/releases/tag/v0.30.0 release
from kstatemachine.
Related Issues (20)
- onEntry with Transition or Conditional Transition without Event HOT 5
- Update Data of a DataState HOT 4
- data transition should no be self targeted, use simple transition instead HOT 2
- please add choiceDataState method HOT 3
- java.lang.IllegalArgumentException: Cannot set current state in child mode PARALLEL HOT 1
- State machine and Android lifecycle HOT 6
- Export to PlantUml: GuardedTransitionOnBuilder are not drawn in diagram HOT 4
- Sources are not packaged correctly HOT 2
- app crash when sending multiple events at once(through for loop) HOT 11
- Versions HOT 3
- State, transition names HOT 10
- Getting crash if I try to use `machine.startBlocking` from machine created with `createStdLibStateMachine` HOT 3
- Clarification of concurrency HOT 5
- Event queue is not empty, internal error HOT 5
- Need explanation for choice states HOT 3
- Data validation and transformation via events or state HOT 4
- How to do parallel data states? HOT 2
- Initial Choice State as Nested State of Data State HOT 3
- Implement Intellij visualisation plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kstatemachine.