Firebase Performance Android Java Integration Steps
<ol>
<li>Add Internet permission in manifest</li>
</ol>
<pre>
<uses-permission android:name="android.permission.INTERNET" />Mani</pre>
<p>2. Build gradle add in perf plugin</p>
<pre>
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.7.10"
repositories {
jcenter()
google()
mavenCentral()
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath "com.android.tools.build:gradle:7.0.4"
classpath 'com.google.gms:google-services:4.3.14'
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}</pre>
<p>3. App Build gradle add in perf plugin</p>
<pre>
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
id 'com.google.firebase.firebase-perf'
}
dependencies {
implementation 'com.google.firebase:firebase-perf'
implementation platform('com.google.firebase:firebase-bom:32.2.0')
}</pre>
<p>4. Manifest turn on log enable and set to false for collection deactivated</p>
<p><a href="https://medium.com/@hasperong/firebase-performance-android-java-integration-steps-ce7d9e6f53e9">Read More</a></p>