This repository has been archived on 2020-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
axmlParser/README.md
Lunny Xiao a0d0cd5d0e
Some checks failed
continuous-integration/drone/push Build is failing
go mod and readme
2020-01-21 15:37:51 +08:00

37 lines
1015 B
Markdown

Android binary manifest XML file parser library for Golang
=======
[![Build Status](https://drone.gitea.com/api/badges/lunny/axmlParser/status.svg)](https://drone.gitea.com/lunny/axmlParser) [![](http://gocover.io/_badge/gitea.com/lunny/axmlParser)](http://gocover.io/gitea.com/lunny/axmlParser)
[![](https://goreportcard.com/badge/gitea.com/lunny/axmlParser)](https://goreportcard.com/report/gitea.com/lunny/axmlParser)
This is a golang port of [github.com/xgouchet/AXML](http://github.com/xgouchet/AXML).
This package aims to parse an android binary mainfest xml file on an apk file.
Installation
------
```
go get gitea.com/lunny/axmlParser
```
Usage
------
```Go
package main
import (
"fmt"
"gitea.com/lunny/axmlParser"
)
func main() {
listener := new(axmlParser.AppNameListener)
axmlParser.ParseApk("./myApp.apk", listener)
fmt.Printf("ActivityName: %v\n", listener.ActivityName)
fmt.Printf("VersionCode: %v\n", listener.VersionCode)
fmt.Printf("VersionName: %v\n", listener.VersionName)
}
```