public class DefaultAndroidManifestReader extends Object implements AndroidManifestReader
Modifier and Type | Method and Description |
---|---|
static AndroidManifestReader |
forPath(Path absolutePath)
Parses an XML given via its path and returns an
AndroidManifestReader for it. |
static AndroidManifestReader |
forString(String xmlString)
Parses an XML given as a string and returns an
AndroidManifestReader for it. |
String |
getInstrumentationTestRunner() |
List<String> |
getLauncherActivities() |
String |
getPackage() |
String |
getTargetPackage() |
String |
getVersionCode() |
public List<String> getLauncherActivities()
getLauncherActivities
in interface AndroidManifestReader
public String getPackage()
getPackage
in interface AndroidManifestReader
public String getVersionCode()
getVersionCode
in interface AndroidManifestReader
public String getInstrumentationTestRunner()
getInstrumentationTestRunner
in interface AndroidManifestReader
public String getTargetPackage()
getTargetPackage
in interface AndroidManifestReader
public static AndroidManifestReader forPath(Path absolutePath) throws IOException
AndroidManifestReader
for it.absolutePath
- absolute path to an AndroidManifest.xml fileAndroidManifestReader
for path
IOException
public static AndroidManifestReader forString(String xmlString) throws IOException
AndroidManifestReader
for it.xmlString
- a string representation of an XML documentAndroidManifestReader
for the XML documentIOException