Documentation
¶
Index ¶
- Constants
- Variables
- type APK
- type AppInfo
- func AppParseFile(file *os.File) (*AppInfo, error)
- func AppParseMultipartFile(file multipart.File, appType AppType) (*AppInfo, error)
- func AppParsePath(path string) (*AppInfo, error)
- func AppParseReader(readerAt io.ReaderAt, appType AppType, size int64) (*AppInfo, error)
- func NewAppInfo(pkg Package, t AppType) *AppInfo
- type AppType
- type IPA
- type InfoPlist
- type InfoPlistIcon
- type Package
Constants ¶
View Source
const ( AppTypeIPA = AppType(0) AppTypeAPK = AppType(1) AppTypeUnknown = AppType(-1) )
Variables ¶
View Source
var (
ErrInfoPlistNotFound = errors.New("Info.plist not found")
)
Functions ¶
This section is empty.
Types ¶
type APK ¶
type APK struct {
// contains filtered or unexported fields
}
func APKParsePath ¶
func (*APK) Identifier ¶
type AppInfo ¶
type AppInfo struct { ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` Identifier string `json:"identifier"` Build string `json:"build"` Channel string `json:"channel"` Date time.Time `json:"date"` Size int64 `json:"size"` Type AppType `json:"type"` Package Package `json:"package"` }
func AppParseMultipartFile ¶
func AppParsePath ¶
func AppParseReader ¶
func NewAppInfo ¶
func (*AppInfo) Icon ¶
Icon filename := "./.test_data/ipa.ipa" f, err := os.Open(filename)
if err != nil { fmt.Println(err) }
defer f.Close() info, _ := appgo.APPInfo(f) filename, buf, _ := info.Icon() file, _ := os.Create(filename) defer file.Close() io.Copy(file, buf)
func (*AppInfo) PackageName ¶
type IPA ¶
type IPA struct {
// contains filtered or unexported fields
}
func IPAParsePath ¶
func (*IPA) Identifier ¶
type InfoPlist ¶
type InfoPlist struct { CFBundleDisplayName string `json:"CFBundleDisplayName,omitempty"` CFBundleExecutable string `json:"CFBundleExecutable,omitempty"` CFBundleIconName string `json:"CFBundleIconName,omitempty"` CFBundleIcons InfoPlistIcon `json:"CFBundleIcons,omitempty"` CFBundleIconsIpad InfoPlistIcon `json:"CFBundleIcons~ipad,omitempty"` CFBundleIdentifier string `json:"CFBundleIdentifier,omitempty"` CFBundleName string `json:"CFBundleName,omitempty"` CFBundleShortVersionString string `json:"CFBundleShortVersionString,omitempty"` CFBundleSupportedPlatforms []string `json:"CFBundleSupportedPlatforms,omitempty"` CFBundleVersion string `json:"CFBundleVersion,omitempty"` // not standard Channel string `json:"channel"` }
type InfoPlistIcon ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.