ipapk

package module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 16 Imported by: 0

README

ipapk

ipa or apk parser written in golang, aims to extract app information

INSTALL

$ go get github.com/loovien/ipapk

USAGE

package main

import (
	"fmt"
	"github.com/loovien/ipapk"
)

func main() {
	apk, _ := ipapk.NewAppParser("test.apk")
	fmt.Println(apk)
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoIcon = errors.New("icon not found")
)

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Name         string
	BundleId     string
	Version      string
	VersionCode  string
	Build        string
	Icon         image.Image
	Size         int64
	MainActivity string
}

func NewAppParser

func NewAppParser(name string) (*AppInfo, error)

type PkgInfo added in v1.0.2

type PkgInfo struct {
	PackageName  string      `json:"packageName"`
	MainActivity string      `json:"mainActivity"`
	Label        string      `json:"label"`
	VersionName  string      `json:"versionName"`
	VersionCode  int         `json:"versionCode"`
	Size         int64       `json:"size"`
	Icon         image.Image `json:"-"`
}

func NewAPKParser added in v1.0.2

func NewAPKParser(apkpath string) (*PkgInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL