Repository for learning Kotlin Flow API

Overview

Flow Riddles

CircleCI

Repository for learning Kotlin Flow API, inspired by RxRiddles

Each riddle is a class with an unit test that will verify your solution. There are multiple ways to create function that will make test pass, nevertheless riddles are constructed to be solved with single operator or extension.

Contribution

All contributions are welcome!

If you want to add new riddle to repository, please follow this guidelines:

Riddle creation

Come up with simple riddle that will test ones knowledge of Kotlin Flow API. Make riddle small and concise - e.x test knowledge of applying one specific operator or some kind of flow creation mechanism. Write one or more unit test for that riddle. Please follow patterns used in existing riddle unit tests.

Submitting new FlowRiddle to repository:

  • create object Riddle0 in package tech.michalik.flowriddles with solve method - with kotlin.TODO() method
  • create object Riddle0Solution in package tech.michalik.flowriddles.solutions with actual implementation
  • create test in file Riddle0Test in tech.michalik.flowriddles

Submit PR with this changes. After review, Riddle will have proper order number assigned to it.

You might also like...
Quick start with the Google Maps Android API

Please note: This repository is not currently maintained, and is kept for historical purpose only. You can find an up to date tutorial here: https://g

This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...

Android L preview example Description This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shad

Quick start with the Google Maps Android API

Please note: This repository is not currently maintained, and is kept for historical purpose only. You can find an up to date tutorial here: https://g

This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...

Android L preview example Description This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shad

Movies App with Movies API
Movies App with Movies API

MoviesApp-Android 🎞 Movies app with MoviesApp API. Here i demonstrate the use of Modern Android development tools - (Kotlin, Architecture Components,

A Demo App which demonstrate the capabilities for BeVigil OSINT demo API

BeVigil-OSINT-Demo A Demo App which demonstrate the capabilities for BeVigil OSINT demo API Functionalities Firebase Authentication

👨‍💻 A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Open Sky API. ✈️ 🌍
👨‍💻 A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Open Sky API. ✈️ 🌍

A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Open Sky API.

Annotation processor that generates a kotlin wrapper class for a java file, enabling named parameters for kotlin callers.

Annotation processor that generates a kotlin wrapper class for a java file, enabling named parameters for kotlin callers.

📚  Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.
📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.

Android Components Architecture in a Modular Word Android Components Architecture in a Modular Word is a sample project that presents modern, 2020 app

Comments
  • Update Gradle, bump dependencies & usage, document alternative solutions

    Update Gradle, bump dependencies & usage, document alternative solutions

    Improvement

    PR Description

    Update Gradle (to work with current Java versions), bumped dependencies to newest versions, fixed their usages (e.g. kotlintest is now kotest, package names have changed) in the Tests, added a few alternative solutions / heads-up to the RiddleSolutions.

    opened by Gatgeagent 0
Owner
Jarosław
Kotlin/Android Dev. Creator of KotlinTesting.com. I send monthly JVM Testing Newsletter.
Jarosław
Learning RxJava for Android by example

Learning RxJava for Android by example This is a repository with real-world useful examples of using RxJava with Android. It usually will be in a cons

Kaushik Gopal 7.6k Dec 29, 2022
This repo is to document my learning about Custom views in android

Custom-Views This repo is to document my learning about Custom views in android Note: If you are trying to understand Custom views, go in order: Custo

Kshitij Kumar 7 Feb 24, 2022
An example that demonstrates how to integrate a learning app with the EIDU platform

EIDU Sample Learning App This app is an example of how to create a learning app that integrates with the EIDU platform. Please consult dev.eidu.com fo

null 0 Dec 17, 2021
Android sample app following best practices: Kotlin, Compose, Coroutines and Flow, Hilt, JetPack Navigation, ViewModel, MVVM and MVI, Retrofit, Coil

Foodies - Modern Android Architecture Foodies is a sample project that presents a modern 2021 approach to Android app development. The project tries t

null 362 Jan 2, 2023
PokeCard Compose is a demo app 100% write in Compose, Flow and Koin based on MVI Clean Architecture 🐱⚡️

A Pokemon Card demo app using Jetpack Compose and Koin based on MVI architecture. Fetching data from the network with Ktor and integrating persisted data in Room database with usecase/repository pattern.

Lopez Mikhael 104 Nov 27, 2022
This repository demonstrate how to draw piexl images on a grid.

520 Compose This repository demonstrate how to draw piexl images on a grid. The screen is divided in to 20 x 24 grids. In each grid, we will draw a co

null 4 Sep 18, 2022
This repository provides a simple clicker app using `KSharedDataStorage` to save progress

kds-android-example This repository provides a simple clicker app using KSharedDataStorage to save progress For progress saving used KSharedDataStorag

null 2 Oct 23, 2021
This repository demonstrates handling unauthorized tokens.

Android - sample handling unauthorized tokens This repository demonstrates handling unauthorized tokens. Refresh the access token using the refresh to

Kenji Abe 7 Jul 10, 2021
This is a repository for implementing Brontodroid and test it easily before we finalize things into a library/module to be consumed separately.

Bronto Playground This is a repository for implementing Brontodroid and test it easily before we finalize things into a library/module to be consumed

Ishat Gupta 1 Nov 30, 2021
Viacheslav Veselov 0 Jul 8, 2022