Skip to content

Commit

Permalink
Add Firebase Performance Plugin
Browse files Browse the repository at this point in the history
This commit adds the Firebase Performance plugin to all modules to enable performance monitoring.

The changes include:

- Adding the Firebase Performance plugin to build.gradle.kts files of all modules.
- Updating `libs.versions.toml` to include the plugin dependency and version.
- Adding an XR dependency bundle.
  • Loading branch information
jacobrein committed Dec 18, 2024
1 parent b34e4e6 commit 2372765
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
2 changes: 2 additions & 0 deletions UIViews/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ dependencies {

implementation(libs.reorderable)

//implementation(libs.bundles.xr)

//TODO: Use this to check recomposition count on every screen
//implementation("io.github.theapache64:rebugger:1.0.0-rc03")
}
1 change: 1 addition & 0 deletions animeworld/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("androidx.navigation.safeargs.kotlin")
id("com.mikepenz.aboutlibraries.plugin")
alias(libs.plugins.ksp)
alias(libs.plugins.google.firebase.performance)
}

android {
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ plugins {
//id("org.jetbrains.compose") version libs.versions.jetbrainsCompiler apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.google.android.libraries.mapsplatform.secrets.gradle.plugin) apply false
alias(libs.plugins.google.firebase.performance) apply false
}

projectInfo {
Expand Down
22 changes: 21 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ composeBomVersion = "2024.12.01"
materialKolor = "2.0.0"
firebaseKtx = "0.2.1"

googlePerformancePlugin = "1.4.2"

### MangaWorld
piasy = "1.8.1"

Expand All @@ -65,6 +67,10 @@ zoomimageComposeGlide = "1.1.0"

googleAndroidLibrariesMapsplatformSecretsGradlePlugin = "2.0.1"

arcore = "1.0.0-alpha01"
composeXr = "1.0.0-alpha01"
scenecore = "1.0.0-alpha01"

[plugins]
kotlinGradle = { id = "org.jetbrains.kotlin:kotlin.gradle.plugin", version.ref = "kotlin" }
kotlinSerializationGradle = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
Expand All @@ -73,6 +79,7 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "kspVersion" }
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
google-android-libraries-mapsplatform-secrets-gradle-plugin = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "googleAndroidLibrariesMapsplatformSecretsGradlePlugin" }
google-firebase-performance = { id = "com.google.firebase.firebase-perf", version.ref = "googlePerformancePlugin" }

[libraries]
androidx-baselineprofile-gradle-plugin = { module = "androidx.baselineprofile:androidx.baselineprofile.gradle.plugin", version.ref = "androidx-baselineprofile" }
Expand Down Expand Up @@ -311,6 +318,7 @@ firebaseFirestore = { group = "com.google.firebase", name = "firebase-firestore"
firebaseAuth = { group = "com.google.firebase", name = "firebase-auth" }
crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics" }
analytics = { group = "com.google.firebase", name = "firebase-analytics" }
firebase-perf = { module = "com.google.firebase:firebase-perf" }
firebaseUiAuth = "com.firebaseui:firebase-ui-auth:8.0.2"
playServices = "com.google.android.gms:play-services-auth:21.3.0"

Expand All @@ -330,6 +338,11 @@ benchmark-macro-junit4 = { group = "androidx.benchmark", name = "benchmark-macro
profileinstaller = { group = "androidx.profileinstaller", name = "profileinstaller", version.ref = "profileinstaller" }
panpf-zoomimage-compose-glide = { module = "io.github.panpf.zoomimage:zoomimage-compose-glide", version.ref = "zoomimageComposeGlide" }

androidx-arcore = { module = "androidx.xr.arcore:arcore", version.ref = "arcore" }
androidx-compose-xr = { module = "androidx.xr.compose:compose", version.ref = "composeXr" }
androidx-scenecore = { module = "androidx.xr.scenecore:scenecore", version.ref = "scenecore" }
androidx-xr-material3 = { module = "androidx.xr.compose.material3:material3", version.ref = "composeXr" }

[bundles]
compose = [
"composeUi", "composeUiTooling", "composeFoundation",
Expand Down Expand Up @@ -375,7 +388,7 @@ leanbackLibs = ["leanback", "leanbackPreference"]

okHttpLibs = ["okhttpLib", "okhttpDns"]
koinLibs = ["koin-android", "koin-core", "koin-workmanager", "koinCompose"]
firebaseCrashLibs = ["crashlytics", "analytics"]
firebaseCrashLibs = ["crashlytics", "analytics", "firebase-perf"]
datastoreLibs = ["datastore", "datastorePref"]

piasyLibs = ["bigImageViewer", "bigImageGlideLoader", "progressPieIndicator"]
Expand Down Expand Up @@ -410,4 +423,11 @@ kamel = [
"kamel-decoder-image-vector",
"kamel-decoder-svg-batik",
"kamel-decoder-svg-std"
]

xr = [
"androidx-arcore",
"androidx-compose-xr",
"androidx-scenecore",
"androidx-xr-material3"
]
1 change: 1 addition & 0 deletions mangaworld/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.ksp)
id("kotlinx-serialization")
//id("androidx.baselineprofile")
alias(libs.plugins.google.firebase.performance)
}

android {
Expand Down
1 change: 1 addition & 0 deletions novelworld/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("androidx.navigation.safeargs.kotlin")
id("com.mikepenz.aboutlibraries.plugin")
alias(libs.plugins.ksp)
alias(libs.plugins.google.firebase.performance)
}

android {
Expand Down

0 comments on commit 2372765

Please sign in to comment.