Class AndroidManifestUtils
- Namespace
- HomaGames.HomaBelly
- Assembly
- HomaGames.HomaBelly.Core.Editor.dll
Utilities to manage AndroidManifest files
public static class AndroidManifestUtils
- Inheritance
-
AndroidManifestUtils
- Inherited Members
Methods
AddAdMobIdToManifest(string, string)
Adds the required AdMob meta-data element to the given AndroidManifest
public static void AddAdMobIdToManifest(string appId, string manifestFilePath)
Parameters
AddAttributeToApplication(string, string, string)
Adds the given attribute name/value to the application tag inside
the specified manifest.
public static void AddAttributeToApplication(string manifestFilePath, string attributeName, string attributeValue)
Parameters
manifestFilePathstringThe AndroidManifest file path
attributeNamestringThe attribute local name. Do not specify namespace:
androidwill be usedattributeValuestringThe attribute value
AddMetaDataToManifest(string, string, string)
Adds a meta-data element into the given AndroidManifest
public static void AddMetaDataToManifest(string manifestFilePath, string metadataName, string metadataValue)
Parameters
manifestFilePathstringThe AndroidManifest file path
metadataNamestringThe meta-data name. Do not specify namespace:
androidwill be usedmetadataValuestringThe meta-data value
UpdatePermissionInManifest(string, string, bool)
public static void UpdatePermissionInManifest(string manifestFilePath, string permission, bool add = true)