@ file : Jvm Name (" Version Checker ") Ċ Ċ package Ġnet . squ anch y . support Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . os . Build Ċ import Ġandroid . support . annotation . Visible ForTesting Ċ Ċ val Ġandroid : ĠOS Version Checker ĊĠĠĠ Ġ@ Suppress Lint (" Visible For Tests ") Ġ// ĠAccess ing Ġit Ġas Ġprivate Ġwould Ġbe Ġcorrect Ġhere , Ġprobably Ġa ĠL int Ġbug Ġwith ĠKotlin Ġvis ibilities ĊĠĠĠ Ġ@ Jvm Name (" android ") ĊĠĠĠ Ġget () Ġ= ĠAndroid OS Version Checker () Ċ Ċ interface ĠOS Version Checker Ġ{ ĊĊĠĠĠ Ġval Ġsdk Version : ĠInt ĊĊĠĠĠ Ġval Ġis At Least O re o : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least N ou gat MR 1 : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least N ou gat : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least Mar shm allow : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least L ol lip op : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least L ol lip op MR 1 : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least Kit K at : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least J el ly Bean MR 2 : ĠBoolean ĊĊĠĠĠ Ġval Ġis At Least J el ly Bean MR 1 : ĠBoolean Ċ } Ċ Ċ @ Visible ForTesting ( otherwise Ġ= ĠVis ible ForTesting . PRIVATE ) Ċ internal Ċ Ċ class ĠAndroid OS Version Checker ( sdk Version Int : ĠInt Ġ= ĠBuild . VERSION . SDK _ INT ) Ġ: ĠOS Version Checker Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġsdk Version Ġ= Ġsdk Version Int ĊĊĠĠĠ Ġoverride Ġval Ġis At Least O re o Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . O ĊĊĠĠĠ Ġoverride Ġval Ġis At Least N ou gat MR 1 Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . N _ MR 1 ĊĊĠĠĠ Ġoverride Ġval Ġis At Least N ou gat Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . N ĊĊĠĠĠ Ġoverride Ġval Ġis At Least Mar shm allow Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . M ĊĊĠĠĠ Ġoverride Ġval Ġis At Least L ol lip op MR 1 Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . LO L LI POP _ MR 1 ĊĊĠĠĠ Ġoverride Ġval Ġis At Least L ol lip op Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . LO L LI POP ĊĊĠĠĠ Ġoverride Ġval Ġis At Least Kit K at Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . KIT K AT ĊĊĠĠĠ Ġoverride Ġval Ġis At Least J el ly Bean MR 2 Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . J EL LY _ BE AN _ MR 2 ĊĊĠĠĠ Ġoverride Ġval Ġis At Least J el ly Bean MR 1 Ġ= Ġsdk Version Int Ġ>= ĠBuild . VERSION _ CODES . J EL LY _ BE AN _ MR 1 Ċ } Ċ