com.android.builder
Interface ManifestParser

All Known Implementing Classes:
DefaultManifestParser

public interface ManifestParser

A Manifest parser


Method Summary
 int getMinSdkVersion(java.io.File manifestFile)
          Returns the minSdkVersion parsed from the given manifest file.
 java.lang.String getPackage(java.io.File manifestFile)
          Returns the package name parsed from the given manifest file.
 int getTargetSdkVersion(java.io.File manifestFile)
          Returns the targetSdkVersion parsed from the given manifest file.
 int getVersionCode(java.io.File manifestFile)
          Returns the version code parsed from the given manifest file.
 java.lang.String getVersionName(java.io.File manifestFile)
          Returns the version name parsed from the given manifest file.
 

Method Detail

getPackage

@Nullable
java.lang.String getPackage(@NonNull
                                     java.io.File manifestFile)
Returns the package name parsed from the given manifest file.

Parameters:
manifestFile - the manifest file to parse
Returns:
the package name or null if not found.

getMinSdkVersion

int getMinSdkVersion(@NonNull
                     java.io.File manifestFile)
Returns the minSdkVersion parsed from the given manifest file.

Parameters:
manifestFile - the manifest file to parse
Returns:
the minSdkVersion or 1 if not found.

getTargetSdkVersion

int getTargetSdkVersion(@NonNull
                        java.io.File manifestFile)
Returns the targetSdkVersion parsed from the given manifest file.

Parameters:
manifestFile - the manifest file to parse
Returns:
the targetSdkVersion or -1 if not found.

getVersionName

@Nullable
java.lang.String getVersionName(@NonNull
                                         java.io.File manifestFile)
Returns the version name parsed from the given manifest file.

Parameters:
manifestFile - the manifest file to parse
Returns:
the version name or null if not found.

getVersionCode

int getVersionCode(@NonNull
                   java.io.File manifestFile)
Returns the version code parsed from the given manifest file.

Parameters:
manifestFile - the manifest file to parse
Returns:
the version code or -1 if not found.