Open in app

Sign In

Write

Sign In

Marco Cattaneo
Marco Cattaneo

426 Followers

Home

Lists

About

Published in ProAndroidDev

·Pinned

How to Create a State Machine on Jetpack Compose

We are going to see how to create a State Machine and implement it on Jetpack Compose — Why do we need a state machine on Jetpack Compose? Let’s start from the basics! Jetpack Compose Jetpack Compose is the new framework released by Google that will replace the current XML view system introduced a decade ago. It’s very different from the legacy one because we are moving from the Imperative…

Android

5 min read

State Machine on Jetpack Compose by using FlowRedux
State Machine on Jetpack Compose by using FlowRedux
Android

5 min read


Published in ProAndroidDev

·Oct 4, 2021

Jetpack Compose with Robot Testing Pattern

In these months I have started to work on a new project based entirely on Jetpack Compose: a new world with new rules and also a new way to write UI tests. The purpose of this article is not to explain how to write tests, because about that there is…

Jetpack Compose

3 min read

Jetpack Compose with Robot Testing Pattern
Jetpack Compose with Robot Testing Pattern
Jetpack Compose

3 min read


Published in The Startup

·Dec 22, 2020

How to Use Firebase Realtime Database With Kotlin Coroutine Flow

In this article, we will talk about Kotlin Coroutines, more specifically, about Flow. Probably the best way to understand it is by using a sample, we will explain how to use it with Firebase Realtime Database. Before start is essential to make a small introduction: as you know Kotlin coroutines…

Kotlin

3 min read

How to Use Firebase Realtime Database With Kotlin Coroutine Flow
How to Use Firebase Realtime Database With Kotlin Coroutine Flow
Kotlin

3 min read


Apr 25, 2020

How cook a Cron job with the Firebase Functions

How to create a scheduled job (like a Unix Cron job) and execute it with the Google Firebase Functions. On this blog, you are used to reading articles about Android, Kotlin, JUnit, etc, but today I want to talk about: Cloud Functions and Cloud Scheduler, two services that you can…

Firebase

5 min read

How cook a Cron job with the Firebase Functions
How cook a Cron job with the Firebase Functions
Firebase

5 min read


Mar 29, 2020

Kotlin Unit Testing with Mockk

It has been passed months since my last article on Kotlin coroutines lifecycle, and one year since an article about unit testing and mocking technique. Today I’m here to speak again about Unit Test focused on the mocking with the Kotlin library Mockk . In object-oriented programming, mock objects are…

Kotlin

5 min read

Kotlin Unit Testing with Mockk
Kotlin Unit Testing with Mockk
Kotlin

5 min read


Jan 2, 2020

Kotlin Coroutine Job Lifecycle

How manage the Lifecycle of a Coroutine Job — I have just written an article about Kotlin Coroutines but now I want to go deep the topic of Coroutine Scope. What’s its lifecycle and the behavior of jobs. How use and test Kotlin Coroutines with Mockk library Create and test a Kotlin Coroutine inside an Android Project with ViewModelmedium.com The CoroutineScope and the Inheritance When we launch a coroutine we need a Context to run it: a CoroutineScope. This one works like a RXJava Scheduler…

Kotlin

3 min read

Kotlin Coroutine Job Lifecycle
Kotlin Coroutine Job Lifecycle
Kotlin

3 min read


Apr 10, 2019

How use and test Kotlin Coroutines with MockK library

In these article we will understand how implement the new Kotlin coroutines and how test them with MockK library. I use these code in an Android project, but the principles are generic for all Kotlin project. Dispatcher and CoroutineScope If you worked in past with RXJava you should understand the concept of Scheduler…

Android

3 min read

How use and test Kotlin Coroutines with Mockk library
How use and test Kotlin Coroutines with Mockk library
Android

3 min read


Oct 24, 2018

Unit Testing with Mockito on Kotlin Android Project with Architecture Components

I love Kotlin, when i have started to write application with it i said, “wow cool”, it’s clean, it’s easy to read (sometimes 😁) and helps you to create a better code, but when i have started to write tests I encountered some problems. …

Mockito

5 min read

Unit Testing with Mockito on Kotlin Android Project with Architecture Components
Unit Testing with Mockito on Kotlin Android Project with Architecture Components
Mockito

5 min read


May 5, 2018

Android ViewModel and FactoryProvider: good way to manage it with Dagger Multibindings

How use ViewModelFactory with Multibindings. — From the past Google IO 2017 we having a new set of tools called Android Architecture Components, I have just spoken about one of them (Room) in a past article, today i want to speak about the ViewModel. Integrate Dagger 2 with Room Persistence Library in few lines During the Google IO 2017 was showed the Android Architecture Components, in this libraries set we can find Room, Room…medium.com

Android

3 min read

Android ViewModel and FactoryProvider: good way to manage it with Dagger 2
Android ViewModel and FactoryProvider: good way to manage it with Dagger 2
Android

3 min read


Dec 11, 2017

Walking with Kotlin, firsts steps

After Google I/O 2017 Kotlin is ufficially supported by Google, so in these months i have starting to code in Kotlin for work, the language is really cool, many feature are very useful, other strange, but allow you to have a clean code and easy to read. I don’t like your Null Point Exception The first thing…

Kotlin

3 min read

Walking with Kotlin, firsts steps
Walking with Kotlin, firsts steps
Kotlin

3 min read

Marco Cattaneo

Marco Cattaneo

426 Followers

Staff Software Engineer Android @ Moneyfarm

Following
  • Chris Messina

    Chris Messina

  • Amit Shekhar

    Amit Shekhar

  • Fred Porciúncula

    Fred Porciúncula

  • Joe Birch

    Joe Birch

  • Kristian Lentino

    Kristian Lentino

See all (122)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech