Kyma meets CCV2 hackathon summary

Introduction I recently I had an opportunity to join “Kyma meets CCV2 Hackathon” in the SAP Labs Poland office in Gliwice. The goal of the hackathon was to create a simple project, which will use Kyma to integrate external services with the SAP Hybris Commerce Platform. CCV2 stands for “Commerce Cloud Version 2”, which are basically SAP Hybris Commerce solutions deployed on the MS Azure Cloud (that’s a long story described in a short way). I joined a team consisting of people from a few different departments in the office, so we didn’t actually know each other before the event. We decided to create a simple application consisting of a few microservices, which will send an e-mail with a promotional link to the user once he or she add something to the cart in the on-line shop. After clicking on the link sent via the e-mail, user will be redirected to the front-end application, where he or she has to click on the button as many times as possible in a given period of time. ...

December 14, 2018 · 5 min · 885 words · Piotr Wittchen

Writing my first library in Kotlin

Introduction Recently, I decided to create a tiny Android library called RxBattery, which is monitoring battery state of the device with RxJava and RxKotlin. I created a few Java and Android libraries already and this time I decided to use Kotlin programming language instead of Java to learn something new and write something more complicated than “Hello World” app. Here are my observations. Build System I used Gradle to build the project. It’s popular for JVM and Android apps nowadays and works fine with Kotlin. I just needed to add Kotlin Gradle Plugin and Kotlin STD Lib to the /library/build.gradle file to the classpath dependencies in buildscript section. I also needed to define sourceSets to allow IntelliJ and Android Studio recognize directories with sources. ...

August 19, 2018 · 9 min · 1804 words · Piotr Wittchen

Hello Kotlin!

I’ve recently played with Kotlin in order to create simple “Hello World” Android app using this new, fancy language from JetBrains. Kotlin is another programming language based on JVM, which can work with Java. It’s aim is to reduce code boilerplate and create projects faster. In my simple Android project, I’ve also used KotterKnife for injecting views. I’ve also added one simple ActivityUnitTestCase. Unfortunately, I couldn’t convert it into Kotlin, because I wasn’t allowed to call constructor of inherited class using super() method. You can read related StackOverflow thread in order to view more details. In order to use Kotlin, I followed instructions from article on JetBrains blog. I’ve also needed Kotlin plugin for Android Studio. ...

February 7, 2015 · 2 min · 248 words · Piotr Wittchen