Documentation
¶
Index ¶
- Constants
- Variables
- type Auth
- type Config
- type Delivery
- type Details
- func (d Details) Creator() (string, error)
- func (d Details) Currency_Code() (string, error)
- func (d Details) File() []File_Metadata
- func (d Details) Installation_Size() (uint64, error)
- func (d Details) MarshalText() ([]byte, error)
- func (d Details) Micros() (uint64, error)
- func (d Details) Num_Downloads() (uint64, error)
- func (d Details) Time() (time.Time, error)
- func (d Details) Title() (string, error)
- func (d Details) Upload_Date() (string, error)
- func (d Details) Version() (string, error)
- func (d Details) Version_Code() (uint64, error)
- type Device
- type File
- type File_Metadata
- type Header
- func (h Header) Delivery(app string, ver uint64) (*Delivery, error)
- func (h Header) Details(app string) (*Details, error)
- func (h *Header) Open_Auth(name string) error
- func (h *Header) Open_Device(name string) error
- func (h Header) Purchase(app string) error
- func (h Header) Set_Agent(head http.Header)
- func (h Header) Set_Auth(head http.Header)
- func (h Header) Set_Device(head http.Header) error
- type Native_Platform
- type Split_Data
Constants ¶
View Source
const Sleep = 4 * time.Second
Variables ¶
View Source
var Client = http.Default_Client
View Source
var Phone = Config{ Device_Feature: []string{ "android.hardware.location.gps", "android.software.midi", "android.hardware.camera.front", "android.hardware.microphone", "android.software.device_admin", "android.hardware.touchscreen", "android.hardware.wifi", "android.hardware.sensor.gyroscope", "android.hardware.sensor.accelerometer", "android.hardware.opengles.aep", "android.hardware.camera", "android.hardware.location", "android.hardware.screen.portrait", "android.hardware.touchscreen.multitouch", "android.hardware.location.network", "android.hardware.bluetooth", "android.hardware.bluetooth_le", "android.hardware.camera.autofocus", "android.hardware.usb.host", "android.hardware.sensor.compass", "android.hardware.telephony", "android.hardware.screen.landscape", }, Shared_Library: []string{ "org.apache.http.legacy", "android.test.runner", "global-miui11-empty.jar", }, GL_ES_Version: 0x9_9999, GL_Extension: []string{ "GL_OES_compressed_ETC1_RGB8_texture", "GL_KHR_texture_compression_astc_ldr", }, }
View Source
var Platforms = Native_Platform{
0: "x86",
1: "armeabi-v7a",
2: "arm64-v8a",
}
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Config ¶
type Config struct {
Device_Feature []string
GL_ES_Version uint64
GL_Extension []string
Hard_Keyboard uint64
Keyboard uint64
Screen_Density uint64
Screen_Layout uint64
Touch_Screen uint64
}
These can use default values, but they must all be included
type Delivery ¶
func (Delivery) Additional_File ¶
func (d Delivery) Additional_File() []File_Metadata
func (Delivery) Split_Data ¶
func (d Delivery) Split_Data() []Split_Data
type Details ¶
func (Details) Currency_Code ¶
should work with any ABI
func (Details) Installation_Size ¶
will fail with wrong ABI
func (Details) MarshalText ¶
func (Details) Num_Downloads ¶
should work with any ABI
func (Details) Upload_Date ¶
func (Details) Version_Code ¶
will fail with wrong ABI
type File_Metadata ¶
func (File_Metadata) Download_URL ¶
func (f File_Metadata) Download_URL() (string, error)
.downloadUrl
type Header ¶
func (*Header) Open_Device ¶
type Native_Platform ¶
func (Native_Platform) String ¶
func (n Native_Platform) String() string
type Split_Data ¶
Click to show internal directories.
Click to hide internal directories.