From 210152227e71d011f07c929fb0de03ae5face72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 14 Jun 2015 02:18:23 +0200 Subject: [PATCH] Fix hash values --- index.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.go b/index.go index 4cd717f..4c4d2ea 100644 --- a/index.go +++ b/index.go @@ -71,6 +71,11 @@ type App struct { CurApk *Apk } +type Hash struct { + Type string `xml:"type,attr"` + Data hexVal `xml:",chardata"` +} + // Apk is an Android package type Apk struct { VName string `xml:"version"` @@ -85,10 +90,7 @@ type Apk struct { Added string `xml:"added"` Perms commaList `xml:"permissions"` Feats commaList `xml:"features"` - Hash []struct { - Type string `xml:"type,attr"` - Data string - } `xml:"hash"` + Hashes []Hash `xml:"hash"` } func (app *App) calcCurApk() {