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
Autor: admin
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
Best Android Studio shortcuts
Alt+Enter / Option+Enter = show hint dialog (the most important and useful of them all) Ctrl+Alt+L / Command+Option+L = format code Ctrl+Alt+L / Ctrl+Command+O = optimise imports Alt+Insert / Command+N = generate code Ctrl+Q / Ctrl+J = see documentation 2xShift / 2xShift = search everywhere
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
How to debug by wifi with adb
Debugging over USB is hard and frustrating. This is why I love wifi debugging. Here is the easiest and fastest way to debug your app over wifi, and no root needed. First you need to save adb path into your Windows environment path, Let’s assume you did that already. Activate debug mode in Android Connect… Czytaj dalej How to debug by wifi with adb
Implement biometry in your Android app
Biometry is awesome and if your users need to login to use your app to it’s fullest, you should consider implementing biometry. Now it is quite easy with androidx.biometric library. Below you can find few really useful articles helpful in implementing Biometry in your app.Migrating to biometry: https://medium.com/androiddevelopers/migrating-from-fingerprintmanager-to-biometricprompt-4bc5f570dccd Android Biometry API first steps:https://www.raywenderlich.com/18782293-android-biometric-api-getting-started Biometric constants… Czytaj dalej Implement biometry in your Android app
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