|
fplutil
An open source project by
FPL.
|
Class that extracts build information from an AndroidManifest.xml. More...
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... | |
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.
| def fplutil.buildutil.android.AndroidManifest.process | ( | self, | |
| etree | |||
| ) |
Process the parsed AndroidManifest to extract SDK version info.
| etree | An xml.etree.ElementTree object of the parsed XML file. |
| ConfigurationError | Required elements were missing or incorrect. |
| MissingActivityError | If the main activity element isn't present. This instance will be completely populated when this exception is thrown. |
| 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.