Sha256: 4afbbff1d64198148313d2c3f90a84dc73ccd805765d40cae21bd30631e0f610

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

require 'app_info/android/signatures/info'

module AppInfo
  class Android < File
    module Signature
      class Base
        def self.verify(parser)
          instance = new(parser)
          instance.verify
          instance
        end

        DESCRIPTION = 'APK Signature Scheme'

        attr_reader :verified

        def initialize(parser)
          @parser = parser
          @verified = false
        end

        # @abstract Subclass and override {#verify} to implement
        def verify
          raise NotImplementedError, ".#{__method__} method implantation required in #{self.class}"
        end

        # @abstract Subclass and override {#certificates} to implement
        def certificates
          raise NotImplementedError, ".#{__method__} method implantation required in #{self.class}"
        end

        def scheme
          "v#{version}"
        end

        def description
          "#{DESCRIPTION} #{scheme}"
        end

        def logger
          @parser.logger
        end
      end
    end
  end
end

require 'app_info/android/signatures/v1'
require 'app_info/android/signatures/v2'
require 'app_info/android/signatures/v3'
require 'app_info/android/signatures/v4'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
app-info-3.3.0 lib/app_info/android/signatures/base.rb
app-info-3.2.0 lib/app_info/android/signatures/base.rb
app-info-3.2.0.beta1 lib/app_info/android/signatures/base.rb
app-info-3.1.4 lib/app_info/android/signatures/base.rb
app-info-3.1.3 lib/app_info/android/signatures/base.rb
app-info-3.1.2 lib/app_info/android/signatures/base.rb
app-info-3.1.1 lib/app_info/android/signatures/base.rb
app-info-3.1.0 lib/app_info/android/signatures/base.rb
app-info-3.0.0 lib/app_info/android/signatures/base.rb
app-info-3.0.0.beta4 lib/app_info/android/signatures/base.rb
app-info-3.0.0.beta3 lib/app_info/android/signatures/base.rb
app-info-3.0.0.beta2 lib/app_info/android/signatures/base.rb