O'Reilly logo

Hands-On Serverless Applications with Kotlin by Ameya Kulkarni, Hardik Trivedi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the SDK

While you are reading this section, one thing is certain: you don't need to configure the firebase SDK anymore, because we have already configured it in the previous section. We simply need to add the dependency now.

In the project-level build.gradle, inside buildscripts | dependencies, add the following line:

classpath 'com.google.firebase:firebase-plugins:1.1.5'

Now, open the app-level build.gradle and insert the following line:

apply plugin: 'com.google.firebase.firebase-perf'

After the plugin is configured, add the following line in the app-level build.gradle dependencies block:

implementation 'com.google.firebase:firebase-perf:16.1.0'

Recompile your app. Automatic traces and HTTP/S network requests are now monitored.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required