Package com.android.builder.model
Interface NativeAndroidProject
public interface NativeAndroidProject
Entry point for the model of the Android native support.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturns the model api version.Returns a collection of native artifacts.Returns a collection of files that affects the build.Return the names of build systems used to create the native artifacts.Get the default NDK version.Return a map of file extension to each file type.Returns the model version.getName()Returns the name of the module.Returns a collection of all compile settings.Returns a collection of toolchains.Returns a map of variant name to information about that variant.
-
Field Details
-
BUILD_SYSTEM_UNKNOWN
- See Also:
-
BUILD_SYSTEM_GRADLE
- See Also:
-
BUILD_SYSTEM_CMAKE
- See Also:
-
BUILD_SYSTEM_NDK_BUILD
- See Also:
-
-
Method Details
-
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
Returns the name of the module. -
getVariantInfos
Returns a map of variant name to information about that variant. For example, it contains this list of ABIs built for that variant. -
getBuildFiles
Returns a collection of files that affects the build. -
getArtifacts
Returns a collection of native artifacts. -
getToolChains
Returns a collection of toolchains. -
getSettings
Returns a collection of all compile settings. -
getFileExtensions
Return a map of file extension to each file type.The key is the file extension, the value is either "c" or "c++".
-
getBuildSystems
Return the names of build systems used to create the native artifacts. -
getDefaultNdkVersion
Get the default NDK version.
-