fplutil
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
fplutil.buildutil.android.AndroidManifest Class Reference

Class that extracts build information from an AndroidManifest.xml. More...

Inheritance diagram for fplutil.buildutil.android.AndroidManifest:
fplutil.buildutil.android.XMLFile

Classes

class  MissingActivityError
 Raised if an activity element isn't present in a manifest. More...
 

Public Member Functions

def process
 Process the parsed AndroidManifest to extract SDK version info. More...
 
- Public Member Functions inherited from fplutil.buildutil.android.XMLFile
def parse
 Parse the XML file and extract useful information. More...
 

Public Attributes

 activity_name
 Name of the first activity in the manifest. More...
 
 activity_names
 List of names of each of the activities. More...
 
 lib_name
 Name of the library loaded by android.app.NativeActivity. More...
 
 main_activity_name
 Name of the main activity. More...
 
 min_sdk
 Minimum SDK version from the uses-sdk element. More...
 
 package_name
 Name of the package. More...
 
 target_sdk
 Target SDK version from the uses-sdk element, or min_sdk if it.
 
 ignore_sdk_version_missing
 If set, ignore issues when the manifest doesn't.
 
- Public Attributes inherited from fplutil.buildutil.android.XMLFile
 path
 Path to XML file as set in initializer. More...
 

Detailed Description

Class that extracts build information from an AndroidManifest.xml.

contain SDK versioning elements. This is intended to be used when the minSdkVersion is defined in gradle configuration.

Member Function Documentation

def fplutil.buildutil.android.AndroidManifest.process (   self,
  etree 
)

Process the parsed AndroidManifest to extract SDK version info.

Parameters
etreeAn xml.etree.ElementTree object of the parsed XML file.
Exceptions
ConfigurationErrorRequired elements were missing or incorrect.
MissingActivityErrorIf the main activity element isn't present. This instance will be completely populated when this exception is thrown.

Member Data Documentation

fplutil.buildutil.android.AndroidManifest.activity_name

Name of the first activity in the manifest.

fplutil.buildutil.android.AndroidManifest.activity_names

List of names of each of the activities.

fplutil.buildutil.android.AndroidManifest.lib_name

Name of the library loaded by android.app.NativeActivity.

fplutil.buildutil.android.AndroidManifest.main_activity_name

Name of the main activity.

fplutil.buildutil.android.AndroidManifest.min_sdk

Minimum SDK version from the uses-sdk element.

fplutil.buildutil.android.AndroidManifest.package_name

Name of the package.


The documentation for this class was generated from the following file: