com.android.builder.core
Interface ManifestParser

All Known Implementing Classes:
DefaultManifestParser

public interface ManifestParser

A Manifest parser


Method Summary
 java.lang.Object 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.
 java.lang.Object 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

java.lang.Object getMinSdkVersion(@NonNull
                                  java.io.File manifestFile)
Returns the minSdkVersion parsed from the given manifest file. The returned value can be an Integer or a String

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

getTargetSdkVersion

java.lang.Object getTargetSdkVersion(@NonNull
                                     java.io.File manifestFile)
Returns the targetSdkVersion parsed from the given manifest file. The returned value can be an Integer or a String

Parameters:
manifestFile - the manifest file to parse
Returns:
the targetSdkVersion or null 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.