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
Kategoria: General programming
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
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 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
SOLID principles
If you have been through at least one software engineering interview in your life chances are, that you were asked about SOLID principles. What they are, and how you can include them in your projects? Here’s the short sum up. SOLID is a term created by so called Uncle Bob, so for the real world… Czytaj dalej SOLID principles
Most common git commands
If you are like me, you like using git in the terminal. Here are few absolutely essential git commands I use everyday. git checkout -b somebranch # start working on a branchgit commit -am 'conquered the world’ # add and commit your changesgit push origin HEAD # create PR in your remotegit fetch+ git rebase… Czytaj dalej Most common git commands