Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Serverless Applications with Kotlin

You're reading from   Hands-On Serverless Applications with Kotlin Develop scalable and cost-effective web applications using AWS Lambda and Kotlin

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788993708
Length 386 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Ameya Kulkarni Ameya Kulkarni
Author Profile Icon Ameya Kulkarni
Ameya Kulkarni
Hardik Trivedi Hardik Trivedi
Author Profile Icon Hardik Trivedi
Hardik Trivedi
Arrow right icon
View More author details
Toc

Integrating the API

Our Android app is written in Kotlin and has a lot of learning's. We will be skipping the other code part where we have created activities, layouts, and so on. We have kept the presenter layer in between for testability purposes. The presenter will have all the business logic. We will keep our views as dumb as possible. It should not have any business logic. The view will not decide anything. It will simply initiate the presenter and let the presenter deal with all delegations.

We need to add the following dependencies in our app-level build.gradle:

implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.retrofit2:converter...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image