Skip to content

Category: programing

Advantages of RIB(Router, Interactor, Builder)

RIB is the cross-platform architecture framework designed by uber for mobile apps with a large number of engineers and nested states. RIB is short for Router(rouring between RIBS), Interactor(contains business logic), and Builder(instantiate all the RIB’s constituent classes) which are core components of this architecture. RIB is famous for its high SOC and state handling. In this article, I want to talk about the advantages of RIB in general. In the next articles, I explain how RIB implements these advantages and how to use RIB architecture and framework in android. Why uber decided to create RIB ? According to the uber-blog, they had many reasons to create RIBs architecture and framework which you can see them below. Technical dept As the uber mobile code base…

Leave a Comment

Create a custom offline/online gallery with Fallery

Fallery is a solution to create a custom offline/online gallery. But what does this sentence mean? As an Android developer, in many scenarios, we need our app user to select media from the media’s on the mediastore, internet, assets, or cache dir. Fallery offers a solution to this problem. What is fallery solution ? Fallery is a high customizable gallery and media picker for android. fallery has two Interface for providing data AbstractMediaBucketProviderandAbstractBucketContentProvider. You can create two classes and implement these interfaces like this class CustomOnlineBucketProvider : AbstractMediaBucketProvider { override suspend fun getMediaBuckets(bucketType: BucketType): List<MediaBucket> { // get buckets list from any datasource } } class CustomOnlineBucketContentProvider : AbstractBucketContentProvider { override suspend fun getMediasOfBucket( bucketId: Long, bucketType: BucketType ): Flow<List<Media>> { // get bucket content…

Leave a Comment