com.android.builder.model
Interface NativeAndroidProject


public interface NativeAndroidProject

Entry point for the model of the Android native support.


Method Summary
 int getApiVersion()
          Returns the model api version.
 java.util.Collection<NativeArtifact> getArtifacts()
          Returns a collection of native artifacts.
 java.util.Collection<java.io.File> getBuildFiles()
          Returns a collection of files that affects the build.
 java.util.Map<java.lang.String,java.lang.String> getFileExtensions()
          Return a map of file extension to each file type.
 java.lang.String getModelVersion()
          Returns the model version.
 java.lang.String getName()
          Returns the name of the module.
 java.util.Collection<NativeSettings> getSettings()
          Returns a collection of all compile settings.
 java.util.Collection<NativeToolchain> getToolChains()
          Returns a collection of toolchains.
 

Method Detail

getModelVersion

@NonNull
java.lang.String getModelVersion()
Returns the model version. This is a string in the format X.Y.Z


getApiVersion

int getApiVersion()
Returns the model api version.

This is different from getModelVersion() in a way that new model version might increment model version but keep existing api. That means that code which was built against particular 'api version' might be safely re-used for all new model versions as long as they don't change the api.

Every new model version is assumed to return an 'api version' value which is equal or greater than the value used by the previous model version.


getName

@NonNull
java.lang.String getName()
Returns the name of the module.


getBuildFiles

@NonNull
java.util.Collection<java.io.File> getBuildFiles()
Returns a collection of files that affects the build.


getArtifacts

@NonNull
java.util.Collection<NativeArtifact> getArtifacts()
Returns a collection of native artifacts.


getToolChains

@NonNull
java.util.Collection<NativeToolchain> getToolChains()
Returns a collection of toolchains.


getSettings

@NonNull
java.util.Collection<NativeSettings> getSettings()
Returns a collection of all compile settings.


getFileExtensions

@NonNull
java.util.Map<java.lang.String,java.lang.String> getFileExtensions()
Return a map of file extension to each file type. The key is the file extension, the value is either "c" or "c++".