ipapk

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 21 Imported by: 0

README

ipapk

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

Build Status

INSTALL

$ go get github.com/phinexdaz/ipapk

USAGE

package main

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNoIcon icon not found
	ErrNoIcon = errors.New("icon not found")
)

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Name     string
	BundleID string
	Version  string
	Build    string
	Icon     image.Image
	Size     int64
}

AppInfo 应用信息

func NewAppParser

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

NewAppParser new

type Lookup added in v0.0.4

type Lookup struct {
	RsultCount int64          `json:"resultCount"`
	Results    []LookupResult `json:"results"`
}

Lookup https://itunes.apple.com/lookup?bundleId=BundleID

func GetLookup added in v0.0.4

func GetLookup(bundleID string) (*Lookup, error)

GetLookup 获取应用商店信息

type LookupResult added in v0.0.4

type LookupResult struct {
	ScreenshotUrls        []string `json:"screenshotUrls"`
	IpadScreenshotUrls    []string `json:"ipadScreenshotUrls"`
	AppletvScreenshotUrls []string `json:"appletvScreenshotUrls"`
	ArtworkURL60          string   `json:"artworkUrl60"`
	ArtworkURL512         string   `json:"artworkUrl512"`
	ArtworkURL100         string   `json:"artworkUrl100"`
	ArtistViewURL         string   `json:"artistViewUrl"`
	SupportedDevices      []string `json:"supportedDevices"`
	LanguageCodesISO2A    []string `json:"languageCodesISO2A"`
	TrackViewURL          string   `json:"trackViewUrl"`
}

LookupResult 结果

type StoreURL added in v0.0.4

type StoreURL string

StoreURL app store 地址

func GetIosAppStoreAddress added in v0.0.4

func GetIosAppStoreAddress(bundleID string) StoreURL

GetIosAppStoreAddress 获取app store地址

func (*StoreURL) Cn added in v0.0.4

func (s *StoreURL) Cn() string

Cn 中国区地址

func (*StoreURL) String added in v0.0.4

func (s *StoreURL) String() string

Jump to

Keyboard shortcuts

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