/* Ċ Ġ* ĠUnless Ġexplicitly Ġstated Ġotherwise Ġall Ġfiles Ġin Ġthis Ġrepository Ġare Ġlicensed Ġunder Ġthe ĠApache ĠLicense ĠVersion Ġ 2 . 0 . Ċ Ġ* ĠThis Ġproduct Ġincludes Ġsoftware Ġdeveloped Ġat ĠDat adog Ġ( https :// www . datadog hq . com /). Ċ Ġ* ĠCopyright Ġ 2 0 1 6 - Present ĠDat adog , ĠInc . Ċ Ġ*/ Ċ Ċ package Ġcom . datadog . android . core . internal . domain . batch ing Ċ Ċ import Ġcom . datadog . android . core . internal . domain . batch ing . migr ators . B atched Data Migr ator Ċ import Ġcom . datadog . android . core . internal . domain . batch ing . migr ators . Move Data Migr ator Ċ import Ġcom . datadog . android . core . internal . domain . batch ing . migr ators . No Op B atched Data Migr ator Ċ import Ġcom . datadog . android . core . internal . domain . batch ing . migr ators . W ipe Data Migr ator Ċ import Ġcom . datadog . android . privacy . Tracking Consent Ċ import Ġjava . util . concurrent . ExecutorService Ċ Ċ internal Ġclass ĠDefault Migr ator Factory ( ĊĠĠĠ Ġprivate Ġval Ġpending FolderPath : ĠString , ĊĠĠĠ Ġprivate Ġval Ġapproved FolderPath : ĠString , ĊĠĠĠ Ġprivate Ġval ĠexecutorService : ĠExecutor Service Ċ ) Ġ: ĠM igr ator Factory Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġresolve Migr ator ( ĊĠĠĠĠĠĠĠ Ġprev Consent Flag : ĠTracking Consent ?, ĊĠĠĠĠĠĠĠ Ġnew Consent Flag : ĠTracking Consent ĊĠĠĠ Ġ): ĠB atched Data Migr ator Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( prev Consent Flag Ġto Ġnew Consent Flag ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTracking Consent . PENDING Ġto ĠTracking Consent . NOT _ GRAN TED Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠW ipe Data Migr ator ( pending FolderPath , ĠexecutorService ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTracking Consent . PENDING Ġto ĠTracking Consent . GRAN TED Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠMove Data Migr ator ( pending FolderPath , Ġapproved FolderPath , ĠexecutorService ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠWe Ġneed Ġthis Ġto Ġmake Ġsure Ġwe Ġclear Ġthe Ġcurrent Ġfolder Ġwhen Ġinitializing Ġthe ĠSDK ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnull Ġto ĠTracking Consent . PENDING , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTracking Consent . GRAN TED Ġto ĠTracking Consent . PENDING , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTracking Consent . NOT _ GRAN TED Ġto ĠTracking Consent . PENDING Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠW ipe Data Migr ator ( pending FolderPath , ĠexecutorService ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> ĠNo Op B atched Data Migr ator () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ