Skip to content

Commit

Permalink
feat: Skip unsigned span instead of keeping it
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed Oct 31, 2023
1 parent 31ecc26 commit 7a2e7af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/android_apk/app_signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def rotated?

private def merge_fingerprints(fingerprints:)
merged_fingerprints = fingerprints.each_with_object([]) do |fingerprint, acc|
# SKip unsigned span
next if fingerprint[::AndroidApk::SignatureDigest::SHA256].nil?

if !(last_entry = acc.last).nil? && (last_entry.fetch(::AndroidApk::SignatureDigest::SHA256) == fingerprint.fetch(::AndroidApk::SignatureDigest::SHA256))
last_max_sdk_version = last_entry.fetch("max_sdk_version")
min_sdk_version = fingerprint.fetch("min_sdk_version")
Expand Down

0 comments on commit 7a2e7af

Please sign in to comment.