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 ¶ added in v1.0.4
type Config ¶ added in v1.2.1
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 ¶ added in v1.1.9
func (Delivery) Additional_File ¶ added in v1.9.9
func (d Delivery) Additional_File() []File_Metadata
func (Delivery) Download_URL ¶ added in v1.9.9
.downloadUrl
func (Delivery) Split_Data ¶ added in v1.9.9
func (d Delivery) Split_Data() []Split_Data
type Details ¶ added in v1.0.1
func (Details) Currency_Code ¶ added in v1.9.9
should work with any ABI
func (Details) File ¶ added in v1.9.5
func (d Details) File() []File_Metadata
will fail with wrong ABI
func (Details) Installation_Size ¶ added in v1.10.2
will fail with wrong ABI
func (Details) MarshalText ¶ added in v1.10.2
func (Details) Num_Downloads ¶ added in v1.10.2
should work with any ABI
func (Details) Time ¶ added in v1.9.6
This only works with English. You can force English with: Accept-Language: en
func (Details) Upload_Date ¶ added in v1.9.9
func (Details) Version_Code ¶ added in v1.9.9
will fail with wrong ABI
type File_Metadata ¶ added in v1.9.9
func (File_Metadata) Download_URL ¶ added in v1.9.9
func (f File_Metadata) Download_URL() (string, error)
.downloadUrl
func (File_Metadata) File_Type ¶ added in v1.9.9
func (f File_Metadata) File_Type() (uint64, error)
.fileType
type Header ¶ added in v1.6.8
func (*Header) Open_Device ¶ added in v1.10.3
type Native_Platform ¶ added in v1.9.9
func (Native_Platform) String ¶ added in v1.9.9
func (n Native_Platform) String() string
type Split_Data ¶ added in v1.9.9
func (Split_Data) Download_URL ¶ added in v1.9.9
func (s Split_Data) Download_URL() (string, error)
.downloadUrl
Click to show internal directories.
Click to hide internal directories.