Module: KrakenMobile::CalabashAndroid::ApkSigner

Defined in:
lib/kraken-mobile/runners/calabash/android/apk_signer.rb

Class Method Summary collapse

Class Method Details

.is_apk_signed?(apk_path) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/kraken-mobile/runners/calabash/android/apk_signer.rb', line 7

def self.is_apk_signed? apk_path
  keystores = JavaKeystore.get_keystores
  apk_fingerprint = fingerprint_from_apk(apk_path)
  keystores.select { |k| k.fingerprint == apk_fingerprint}.any?
end