package Ġcom . ale xbe zh an . instagram . data . firebase . common Ċ Ċ import Ġandroid . app . Activity Ċ import Ġcom . google . firebase . auth . Firebase Auth Ċ import Ġcom . google . firebase . database . Database Reference Ċ import Ġcom . google . firebase . database . Firebase Database Ċ import Ġcom . google . firebase . storage . Firebase Storage Ċ import Ġcom . google . firebase . storage . Storage Reference Ċ Ċ class ĠFirebase Helper ( private Ġval Ġactivity : ĠActivity ) Ġ{ ĊĠĠĠ Ġval Ġauth : ĠFirebase Auth Ġ= ĠFirebase Auth . getInstance () ĊĠĠĠ Ġval Ġdatabase : ĠDatabase Reference Ġ= ĠFirebase Database . getInstance (). reference ĊĠĠĠ Ġval Ġstorage : ĠStorage Reference Ġ= ĠFirebase Storage . getInstance (). reference ĊĊĠĠĠ Ġfun ĠcurrentUser Reference (): ĠDatabase Reference Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdatabase . child (" users "). child ( current Uid () !! ) ĊĊĠĠĠ Ġfun Ġcurrent Uid (): ĠString ? Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġauth . currentUser ?. uid Ċ Ċ }