package Ġpl . skip code . app _ signature Ċ Ċ import Ġandroid . app . Activity Ċ import Ġio . flutter . plugin . common . MethodCall Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugin . common . Method Channel . MethodCall Handler Ċ import Ġio . flutter . plugin . common . Method Channel . Result Ċ import Ġio . flutter . plugin . common . Plugin Registry . Registrar Ċ Ċ class ĠApp Signature Plugin ( private Ġval Ġcontext : ĠActivity ): ĠMethod Call Handler Ġ{ ĊĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġregister With ( regist rar : ĠRegist rar ) Ġ{ ĊĠĠĠĠĠ Ġval Ġchannel Ġ= ĠMethod Channel ( regist rar . messenger (), Ġ" app _ signature ") ĊĠĠĠĠĠ Ġchannel . set MethodCall Handler ( App Signature Plugin ( regist rar . activity ())) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon MethodCall ( call : ĠMethod Call , Ġresult : ĠResult ) Ġ{ ĊĠĠĠ Ġif Ġ( call . method Ġ== Ġ" getApp Signature ") Ġ{ ĊĠĠĠĠĠ Ġval Ġsignature Ġ= ĠApp Signature Helper ( this . context ). getApp Signatures ()[ 0 ] ĊĠĠĠĠĠ Ġresult . success ( signature ) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠ Ġresult . not Implemented () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ