Package 

Interface AndroidFeatures


  • 
    public interface AndroidFeatures
    
                        

    Defines migration features that Grazel will use as part of migration. Mostly used to enable/disable features.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean getDataBinding() Migrate modules using dataBinding during migration.
      abstract Unit setDataBinding(Boolean dataBinding) Migrate modules using dataBinding during migration.
      abstract Boolean getDataBindingMetaData() Generate a .bazelrc compatible metadata file containing metadata about which maven dependencies use databinding.
      abstract Unit setDataBindingMetaData(Boolean dataBindingMetaData) Generate a .bazelrc compatible metadata file containing metadata about which maven dependencies use databinding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDataBinding

         abstract Boolean getDataBinding()

        Migrate modules using dataBinding during migration. Enabling this will use custom databinding macro provided from Bazel common project.

        Default false

      • setDataBinding

         abstract Unit setDataBinding(Boolean dataBinding)

        Migrate modules using dataBinding during migration. Enabling this will use custom databinding macro provided from Bazel common project.

        Default false

      • getDataBindingMetaData

         abstract Boolean getDataBindingMetaData()

        Generate a .bazelrc compatible metadata file containing metadata about which maven dependencies use databinding. Example:

        build --android_databinding_package_info=com_grab_grazel=com.grab.grazel

        Needed due to https://github.com/bazelbuild/bazel/issues/13640

        Note: This requires a patch on bazel to ensure the flag is read correctly

      • setDataBindingMetaData

         abstract Unit setDataBindingMetaData(Boolean dataBindingMetaData)

        Generate a .bazelrc compatible metadata file containing metadata about which maven dependencies use databinding. Example:

        build --android_databinding_package_info=com_grab_grazel=com.grab.grazel

        Needed due to https://github.com/bazelbuild/bazel/issues/13640

        Note: This requires a patch on bazel to ensure the flag is read correctly