fluttersdk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Architecture

type Architecture string
const (
	X64   Architecture = "x64"
	ARM64 Architecture = "arm64"
)

type Channel

type Channel string
const (
	Stable Channel = "stable"
	Beta   Channel = "beta"
	Dev    Channel = "dev"
)

type Platform

type Platform string
const (
	Linux   Platform = "linux"
	MacOS   Platform = "macos"
	Windows Platform = "windows"
)

type Release

type Release struct {
	Hash           string    `json:"hash"`
	Channel        string    `json:"channel"`
	Version        string    `json:"version"`
	DartSdkVersion string    `json:"dart_sdk_version"`
	DartSdkArch    string    `json:"dart_sdk_arch"`
	ReleaseDate    time.Time `json:"release_date"`
	Archive        string    `json:"archive"`
	Sha256         string    `json:"sha256"`
}

type ReleasesResp

type ReleasesResp struct {
	BaseURL        string `json:"base_url"`
	CurrentRelease struct {
		Beta   string `json:"beta"`
		Dev    string `json:"dev"`
		Stable string `json:"stable"`
	} `json:"current_release"`
	Releases []Release `json:"releases"`
}

type SDKQuery

type SDKQuery struct {
	FlutterVersion           *semver.Version
	FlutterVersionConstraint *semver.Constraints
	DartVersion              *semver.Version
	DartVersionConstraint    *semver.Constraints
}

type SDKVersionFinder added in v0.1.1

type SDKVersionFinder struct {
	SDKVersionLister SDKVersionLister
}

func NewSDKVersionFinder added in v0.1.1

func NewSDKVersionFinder() SDKVersionFinder

func (SDKVersionFinder) FindLatestReleaseFor added in v0.1.1

func (f SDKVersionFinder) FindLatestReleaseFor(platform Platform, architecture Architecture, channel Channel, query SDKQuery) (*Release, error)

type SDKVersionLister added in v0.1.1

type SDKVersionLister interface {
	ListReleasesByChannel(platform Platform, architecture Architecture) (map[string][]Release, error)
}

func NewSDKVersionLister added in v0.1.1

func NewSDKVersionLister() SDKVersionLister

Jump to

Keyboard shortcuts

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