Documentation ¶
Index ¶
- func CreateXML(plugin *Plugin, filename string) error
- func Tokenize(content string) []string
- type Action
- type Category
- type Clobbers
- type ConfigFile
- type Data
- type Engine
- type Engines
- type Feature
- type Framework
- type Hook
- type IntentFilter
- type JSModule
- type Metadata
- type Param
- type Platform
- type Plugin
- type Receiver
- type Service
- type SourceFile
- type UsesPermission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigFile ¶
type ConfigFile struct { Target string `xml:"target,attr,omitempty"` Parent string `xml:"parent,attr,omitempty"` UsesPermissions []UsesPermission `xml:"uses-permission"` Receivers []Receiver `xml:"receiver"` Metadata *Metadata `xml:"meta-data,omitempty"` Services []Service `xml:"service"` Features []Feature `xml:"feature"` }
ConfigFile ...
type Framework ¶
type Framework struct { Src string `xml:"src,attr"` Custom bool `xml:"custom,attr,omitempty"` Type string `xml:"type,attr,omitempty"` }
Framework ...
type IntentFilter ¶
type IntentFilter struct { Actions []Action `xml:"action"` Categories []Category `xml:"category"` Datas []Data `xml:"data"` }
IntentFilter ...
type JSModule ¶
type JSModule struct { Name string `xml:"name,attr"` Src string `xml:"src,attr"` Clobbers *Clobbers `xml:"clobbers,omitempty"` }
JSModule ...
type Metadata ¶
type Metadata struct { AndroidName string `xml:"value,attr,omitempty"` AndroidValue string `xml:"name,attr,omitempty"` }
Metadata ...
type Param ¶
type Param struct { Name string `xml:"name,attr,omitempty"` Value string `xml:"value,attr,omitempty"` }
Param ...
type Platform ¶
type Platform struct { Name string `xml:"name,attr"` Hooks []Hook `xml:"hook"` ConfigFiles []ConfigFile `xml:"config-file"` Frameworks []Framework `xml:"framework"` SourceFiles []SourceFile `xml:"source-file"` }
Platform ...
func (*Platform) NewSourceFrom ¶
NewSourceFrom ...
type Plugin ¶
type Plugin struct { XMLName xml.Name `xml:"plugin"` ID string `xml:"id,attr"` Version string `xml:"version,attr"` Xmlns string `xml:"xmlns,attr"` XmlnsAndroid string `xml:"android,attr"` Name string `xml:"name"` Description string `xml:"description"` License string `xml:"license,"` Keywords string `xml:"keywords"` Author string `xml:"author,omitempty"` Engines *Engines `xml:"engines,omitempty"` JsModule []JSModule `xml:"js-module"` Platform *Platform `xml:"platform"` }
Plugin ...
func (*Plugin) NewJsModulesFrom ¶
NewJsModulesFrom ...
type Receiver ¶
type Receiver struct { AndroidName string `xml:"name,attr,omitempty"` AndroidEnabled bool `xml:"enabled,attr,omitempty"` AndroidExported bool `xml:"exported,attr,omitempty"` IntentFilters []IntentFilter `xml:"intent-filter"` }
Receiver ...
type Service ¶
type Service struct { AndroidName string `xml:"name,attr,omitempty"` AndroidExported bool `xml:"exported,attr,omitempty"` IntentFilters []IntentFilter `xml:"intent-filter"` }
Service ...
type SourceFile ¶
SourceFile ...
type UsesPermission ¶
type UsesPermission struct {
AndroidName string `xml:"name,attr"`
}
UsesPermission ...
Click to show internal directories.
Click to hide internal directories.