Class PlaceholderEncoder

java.lang.Object
com.android.manifmerger.PlaceholderEncoder

public class PlaceholderEncoder extends Object
encode all non resolved placeholders key names.
  • Constructor Details

    • PlaceholderEncoder

      public PlaceholderEncoder()
  • Method Details

    • encode

      public static boolean encode(@NonNull Node node)
      Iterate through each attribute for a placeholder existence. If one is found, encode its name so tools like aapt will not object invalid characters and such.
      Parameters:
      node - node to visit attributes on
      Returns:
      true if node was changed. False otherwise.