badoo / badoo/MVICore

Multi - framework/platform support

Open
#90 1 comment 7 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
1.3k
Forks
88
PR merge metrics
No merged PRs in 30d

Description

This proposal allows us to move on from RxJava only implementation.

The general idea is to have a minimalistic "core" as a Kotlin MPP module with our own implementation of the base types: `Source`, `Consumer`, `Feature` and `Binder`.

The framework level contains a set of extensions to convert between "core" types to framework ones (e.g. from `Source` to `ObservableSource` from Rx and vice versa). In current [PoC](https://github.com/ShikaSD/multiK), we need to provide the following implementations:

- Conversion between `Source` and `Consumer` to framework types
- Feature implementation with framework source type (optional)
- Binder extensions for framework type (optional)

As we don't do any thread/concurrency management in the "core" implementation, I suspect we need to have some checks (similar to current `SameThreadVerifier`) in place to prevent race conditions.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked multiK PoC and the existing RxJava-only implementation. Trace the Source, Consumer, Feature, Binder, and SameThreadVerifier types to understand the proposed core and framework boundaries. Done means the scope is agreed and the required conversions are supported without introducing concurrency races.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.