File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
appcheck/firebase-appcheck/ktx/src/main/kotlin/com/google/firebase/appcheck/ktx Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com.google.firebase.appcheck.ktx
16
16
17
+ import com.google.firebase.BuildConfig
17
18
import com.google.firebase.FirebaseApp
18
19
import com.google.firebase.appcheck.AppCheckToken
19
20
import com.google.firebase.appcheck.FirebaseAppCheck
21
+ import com.google.firebase.components.Component
22
+ import com.google.firebase.components.ComponentRegistrar
20
23
import com.google.firebase.ktx.Firebase
24
+ import com.google.firebase.platforminfo.LibraryVersionComponent
21
25
22
26
/* * Returns the [FirebaseAppCheck] instance of the default [FirebaseApp]. */
23
27
val Firebase .appCheck: FirebaseAppCheck
@@ -39,3 +43,10 @@ operator fun AppCheckToken.component1() = token
39
43
* @return the expireTimeMillis of the [AppCheckToken]
40
44
*/
41
45
operator fun AppCheckToken.component2 () = expireTimeMillis
46
+
47
+ internal const val LIBRARY_NAME : String = " fire-app-check-ktx"
48
+
49
+ class FirebaseAppCheckKtxRegistrar : ComponentRegistrar {
50
+ override fun getComponents (): List <Component <* >> =
51
+ listOf (LibraryVersionComponent .create(LIBRARY_NAME , BuildConfig .VERSION_NAME ))
52
+ }
You can’t perform that action at this time.
0 commit comments