Skip to content

admarwick/app_signature

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app_signature

This Flutter plugin gets the app signature on Android.

This fork of the original plugin returns the SHA-1 app signature, formatted in the same way as it is in a keystore or as it is obtained by running the gradle task signingReport.

On IOS, where the app signature is not needed AFAIK, the plugin runs but the signature returned is just a string denoting the version of IOS on the device.

To use this plugin, add it as a dependency to your pubspec.yaml file.

dependencies:
  app_signature:
    git:
      url: https://github.com/admarwick/app_signature.git

Then, import it in your Dart code.

import 'package:app_signature/app_signature.dart';

Finally call the plugin asynchronously to obtain the SHA-1 app signature as a Future.

String signature = await AppSignature.getAppSignature();

Note: if you need the signature in order to use a restricted API key in your Google REST API by adding the signature to the headers of your https query, be sure to remove the colons from the signature string returned by this plugin.

About

Flutter plugin to get app signature

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 42.7%
  • Dart 27.0%
  • Ruby 18.5%
  • Swift 8.3%
  • Objective-C 3.5%