Git commands one more time

This is actually based and mostly copied from great article of Eli Schleifer, read all here: https://blog.trunk.io/minimum-viable-git-for-trunk-based-development-81a5da7a77a7 Branch Management git checkout -t -b {branch-name} Make a branch, set the upstream to the current branch, and switch to it. You can also do this via the `git branch` command, but it takes multiple commands. Since I always want to… Czytaj dalej Git commands one more time

How to add commit hash as a build version

Oftentimes you will need to know which exactly build of the application user needs. For your regular users version name should be enough, but when it comes to your testers, you will probably give them multiple version between releases to test. This is why you may want to add build version also to your application… Czytaj dalej How to add commit hash as a build version

Amazing features of Android Studio

A bunch of Android Studio’s features, I had no idea about! 1. Copy/paste history: IntelliJ products have a full clipboard history.  CMD + SHIFT+ V to you access it – arrow keys to choose which item you want. It’s also searchable. 2. Go back in time without git: sometimes you work on something, change direction, and then much later… Czytaj dalej Amazing features of Android Studio

How to implement in-app update to your app

Sometimes you may want to force or encourage your users to update your app – maybe you fixed some annoying bug, or you added this amazing feature that is gonna to change lives. Fortunately some time ago Google added this nice option to add in-app update feature to our apps. However this seems not to… Czytaj dalej How to implement in-app update to your app

How to diagnose ANR

ANR are one of the biggest nightmares of every Android Developer. ANR means Application Not Responding and it is exactly this. There are three main types of ANR: The app is doing slow I/O operations on the main thread. The app performs long calculations on the main thread. The main thread waits for a synchronous… Czytaj dalej How to diagnose ANR

Awesome Kotlin Extensions for your project

Kotlin extensions are one of my favourite kotlin features! It gives you freedom of creating new functions for some old or big classes, which you don’t really want to override. Recently I found some great article with bunch of very useful kotlin extensions which can be used in our Android projects. Let’s take a look… Czytaj dalej Awesome Kotlin Extensions for your project

Room migration diff tool

If you are handling Room migration in your project you probably got some diff errors every now and then. It may be difficult to spot difference between Expected and Found, this is way some nice folks prepared scripts to find it much more easily. You can find one of my favourite tool under this link:… Czytaj dalej Room migration diff tool