File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
firebase-crashlytics/src/main/java/com/google/firebase/crashlytics Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1616
1717package com.google.firebase.crashlytics
1818
19- /* * Helper class to enable fluent syntax in [setCustomKeys] */
20- @Suppress(" DEPRECATION" )
21- class KeyValueBuilder (
22- // TODO(mrober): Remove this param and make ctor internal in 2025.
23- @Deprecated(message = " The crashlytics instance is no longer needed and will be removed in 2025." )
24- private val crashlytics : FirebaseCrashlytics ? = null
19+ /* * Helper class to enable convenient syntax in [setCustomKeys] */
20+ class KeyValueBuilder private constructor(
21+ private val crashlytics : FirebaseCrashlytics ? ,
22+ private val builder : CustomKeysAndValues .Builder ,
2523) {
26- private val builder = CustomKeysAndValues .Builder ()
24+ @Deprecated(" Do not construct this directly. Use `setCustomKeys` instead. To be removed in 2025." )
25+ constructor (crashlytics: FirebaseCrashlytics ) : this (crashlytics, CustomKeysAndValues .Builder ())
26+
27+ internal constructor () : this (crashlytics = null , CustomKeysAndValues .Builder ())
2728
2829 internal fun build (): CustomKeysAndValues = builder.build()
2930
You can’t perform that action at this time.
0 commit comments