Table of Contents

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

appId string

The AdMob App ID

manifestFilePath string

The AndroidManifest file path

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

manifestFilePath string

The AndroidManifest file path

attributeName string

The attribute local name. Do not specify namespace: android will be used

attributeValue string

The 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

manifestFilePath string

The AndroidManifest file path

metadataName string

The meta-data name. Do not specify namespace: android will be used

metadataValue string

The meta-data value

UpdatePermissionInManifest(string, string, bool)

public static void UpdatePermissionInManifest(string manifestFilePath, string permission, bool add = true)

Parameters

manifestFilePath string
permission string
add bool