Interface NativeAndroidProject


public interface NativeAndroidProject
Entry point for the model of the Android native support.
  • Field Details

  • Method Details

    • getModelVersion

      @NonNull 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 String getName()
      Returns the name of the module.
    • getVariantInfos

      @NonNull Map<String,NativeVariantInfo> 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

      @NonNull Collection<File> getBuildFiles()
      Returns a collection of files that affects the build.
    • getArtifacts

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

      @NonNull Collection<NativeToolchain> getToolChains()
      Returns a collection of toolchains.
    • getSettings

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

      @NonNull Map<String,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++".

    • getBuildSystems

      @NonNull Collection<String> getBuildSystems()
      Return the names of build systems used to create the native artifacts.
    • getDefaultNdkVersion

      @NonNull String getDefaultNdkVersion()
      Get the default NDK version.