Switch to dagger

Why and how you should switch to Dagger 2.12+? By Gabriel Samojło

Posted on Leave a commentPosted in bitcraft, Know-how

Dependency Injection is good. Yeah, we all know it. And yes, we were using it for a while. But were we using it correctly? Was it easy? Uhm. It depends. But one thing is sure: now it’s better. Just to make it clear: it’s not a Dagger tutorial. If you are not familiar with it, I recommend for you to read a bit, as it’s great and you definitely should learn Dagger and start using it in your projects. Okay. So what’s the deal with this all-new Dagger? Well… it came with Android support. As you know, Dagger is Java library, not the Android one. So all the stuff we were doing with Dagger was pure Java Dependency Injection. But was it wrong? Why it is a problem? It’s simple — many of Android framework classes are instantiated by Android itself so we had to perform injection inside of lifecycle methods. By that, we were copy-pasting pretty long builders into our onCreate() methods. I guess you know that: ((MyApplication) getApplication()) .getAppComponent() .build() .inject(this); Pretty scary, right? It’s really not how dependency injection should look like. It obviously breaks one of the most important rules of it: “A class shouldn’t know anything about […]

Creating Better Future in Barcelona

Posted on Leave a commentPosted in bitcraft

It’s time to meet 108,000+ attendees, see 2,300+ exhibitors and talk to people from more than 200 countries. What an event this will be. Mobile World Congress is starting on the 26th February. We will be there to listen to industry leaders and network with all those amazing personalities. MWC is the world’s largest gathering for the mobile industry, organized by the GSMA and held in the Mobile World Capital in beautiful Barcelona. We have already booked 20+ meetings from 26th Feb – 1st Mar, but there’s always room for more. Drop us a line and let’s meet where future happens! See you in Barcelona

SiemApp Everyone!

Posted on Leave a commentPosted in bitcraft

Haven’t heard from your friends for a while? They’re not responding to your messages. A quick “Sup” should do the trick 🙂 SiemApp is a small social network which allows you to poke your friends. Apart from big web and mobile applications which makes our users’ lives easier, from time to time we like to create something small and plain cool. SiemApp is a simple Android application which allows you to send a one-word audio shout “siema” (means ‘sup in polish) to your friends from your contacts list. The application had its beginning during one of many Hackathon meetings and had been continuously developed as our internal project. We’ve been testing it for some time by sending “Sups” in free time and now we’d like to share this cool app with you! Download the application here: https://goo.gl/EN11TT Some technicalities: Android versions supported: 4.4.2 and newer language: Java only 3rd party libs used: ButterKnife Dagger2 Retrofit2 Lombok EventBus GSON JodaTime HockeyApp Google Analytics Google Cloud Messaging MaterialDrawer (https://github.com/mikepenz/MaterialDrawer) MaterialDialogs (https://github.com/afollestad/material-dialogs) MaterialEditText (https://github.com/rengwuxian/MaterialEditText) ExpandableLayout (https://github.com/cachapa/ExpandableLayout) SwipeLayout (https://github.com/daimajia/AndroidSwipeLayout) RecyclerView Animators (https://github.com/wasabeef/recyclerview-animators) KeyboardDismisser (https://github.com/GabrielSamojlo/keyboard-dismisser)  


Timecto – to save your time

Posted on Leave a commentPosted in bitcraft

In IT community a lot of us use Jira, that’s for sure. We all have to log our time and go through tasks. It takes some time and most of the time it’s troublesome. We know that. And we have built a solution. Timecto is a free Android mobile app created here at BitCraft to help Jira users manage and control their worklogs. With Timecto you are able to search and browse tasks, log your work time to these tasks, check work statistics on a bar chart or set your own reminders for work logging. The application also allows you to check tasks’ details and pick these as favorites to have them close at hand. We’ve created an application that’s simple and helpful. Also it is created using Kotlin which is the hottest trend in Android development right now. Timecto is available on Google Play and we encourage you to try it! It’s free and we hope you’ll love it. Don’t hesitate to send us some feedback! Get it now: https://goo.gl/w7HiJm Important note! If you’d like to use statistics, you will need to install one additional plugin for your Jira. But don’t be afraid, that’s easy 🙂 . You will […]

Bitcraft Blog - Keyboard Dismisser

Keyboard Dismisser

Posted on Leave a commentPosted in bitcraft, Know-how

Everyone knows, how uncomfortable some solutions are in Android. One of the most unexpected and most weird of them is the Keyboard API. Even so simple thing, as hiding keyboard programmatically is little problematic. It’s really clumsy, pretty long and not programmer friendly. We need to know the context of our application and pass current focus of a view as a parameter of a function. And it’s just a basic thing to do with keyboard. Imagine situation where you would need to add some complex functionality to that – it could be painful. One of a really nice features (from UX point of view) is possibility to hide the keyboard when user taps anywhere outside it. Google often uses this kind of feature in their own apps. It is really nice to have that option, so I decided to implement this functionality into one of my apps. Solution of this problem is not so obvious. After reaching my goal, I release it as an open source library. You can find it here: Keyboard Dismisser But if you want to implement it on your own, or you are just curious how to make it work, keep reading. I will try to […]