Documentation ¶
Index ¶
Constants ¶
View Source
const (
Sleep = 16 * time.Second
)
Variables ¶
View Source
var DefaultConfig = Config{ GLESversion: 0x0003_0001, GLextension: []string{ "GL_OES_compressed_ETC1_RGB8_texture", }, NativePlatform: []string{ "x86", "armeabi-v7a", }, SystemAvailableFeature: []string{ "android.hardware.bluetooth", "android.hardware.camera", "android.hardware.location", "android.hardware.location.gps", "android.hardware.microphone", "android.hardware.screen.landscape", "android.hardware.screen.portrait", "android.hardware.sensor.accelerometer", "android.hardware.touchscreen", "android.hardware.wifi", }, }
View Source
var LogLevel logLevel
Functions ¶
This section is empty.
Types ¶
type Auth ¶ added in v1.0.4
type Auth struct {
Auth string
}
func (Auth) Upload ¶ added in v1.1.3
This seems to return `StatusOK`, even with invalid requests, and the response body only contains a token, that doesnt seem to indicate success or failure. Only way I know to check, it to try the `deviceID` with a `details` request or similar. Also, after the POST, you need to wait at least 16 seconds before the `deviceID` can be used.
type Config ¶ added in v1.2.1
type Config struct { GLESversion uint64 GLextension []string HasFiveWayNavigation uint64 // this can be 0, but it must be included: HasHardKeyboard uint64 // this can be 0, but it must be included: Keyboard uint64 NativePlatform []string Navigation uint64 // this can be 0, but it must be included: ScreenDensity uint64 // this can be 0, but it must be included: ScreenLayout uint64 SystemAvailableFeature []string // this can be 0, but it must be included: TouchScreen uint64 }
type Delivery ¶ added in v1.1.9
type Delivery struct { DownloadURL string SplitDeliveryData []SplitDeliveryData }
type Details ¶ added in v1.0.1
type Details struct { InstallationSize InstallationSize NumDownloads NumDownloads Offer Offer Title string VersionCode uint64 VersionString string }
type Device ¶ added in v1.0.6
type Device struct {
Android_ID int64
}
type InstallationSize ¶ added in v1.3.5
type InstallationSize struct {
Value uint64
}
func (InstallationSize) String ¶ added in v1.3.5
func (i InstallationSize) String() string
type NumDownloads ¶ added in v1.4.4
type NumDownloads struct {
Value uint64
}
func (NumDownloads) String ¶ added in v1.4.4
func (n NumDownloads) String() string
type SplitDeliveryData ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.