public class InfoPlistSubstitution extends Object
${FOO}
$(FOO)
${FOO:modifier}
$(FOO:modifier)
with specified string values.Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<String,String> |
createVariableExpansionFunction(Map<String,String> variablesToExpand) |
static Optional<String> |
getVariableExpansionForPlatform(String keyName,
String platformName,
Map<String,String> variablesToExpand)
Returns a variable expansion for keys which may depend on platform name, trying from most to
least specific.
|
static String |
replaceVariablesInString(String input,
Map<String,String> variablesToExpand) |
public static Optional<String> getVariableExpansionForPlatform(String keyName, String platformName, Map<String,String> variablesToExpand)
e.g.VALID_ARCHS[sdk=iphoneos*]
keyName
- The name of the parent key. e.g. "VALID_ARCHS"platformName
- The name of the platform. e.g. "iphoneos"variablesToExpand
- The mapping of variable keys to values.public static String replaceVariablesInString(String input, Map<String,String> variablesToExpand)