File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
firebase-datatransport/src/main/java/com/google/firebase/datatransport Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
22
import com .google .firebase .components .Component ;
23
23
import com .google .firebase .components .ComponentRegistrar ;
24
24
import com .google .firebase .components .Dependency ;
25
- import java .util .Collections ;
25
+ import com .google .firebase .platforminfo .LibraryVersionComponent ;
26
+ import java .util .Arrays ;
26
27
import java .util .List ;
27
28
28
29
@ Keep
29
30
public class TransportRegistrar implements ComponentRegistrar {
30
31
@ Override
31
32
public List <Component <?>> getComponents () {
32
- return Collections . singletonList (
33
+ return Arrays . asList (
33
34
Component .builder (TransportFactory .class )
34
35
.add (Dependency .required (Context .class ))
35
36
.factory (
36
37
c -> {
37
38
TransportRuntime .initialize (c .get (Context .class ));
38
39
return TransportRuntime .getInstance ().newFactory (CCTDestination .LEGACY_INSTANCE );
39
40
})
40
- .build ());
41
+ .build (),
42
+ LibraryVersionComponent .create ("fire-transport" , BuildConfig .VERSION_NAME ));
41
43
}
42
44
}
You can’t perform that action at this time.
0 commit comments