Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starikcetin/eflatun.androidmanifesthook
Utilities for hooking into AndroidManifest.xml generation in Unity.
https://github.com/starikcetin/eflatun.androidmanifesthook
Last synced: 16 days ago
JSON representation
Utilities for hooking into AndroidManifest.xml generation in Unity.
- Host: GitHub
- URL: https://github.com/starikcetin/eflatun.androidmanifesthook
- Owner: starikcetin
- License: mit
- Created: 2019-10-25T22:43:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T23:35:33.000Z (about 5 years ago)
- Last Synced: 2024-10-11T10:25:24.767Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 63.5 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eflatun.AndroidManifestHook
Utilites for hooking into AndroidManifest.xml generation in Unity.## Installation
1. Get this: https://github.com/mob-sakai/UpmGitExtension
2. Install this repo from Unity Package Manager window, inside Unity.
## Usage
```cs
using Eflatun.AndroidManifestHook;public class TestManifestHook : AndroidManifestHooker
{
protected override void Modify(AndroidManifest androidManifest)
{
var value = androidManifest.SetAttributeWithAndroidNamespace(androidManifest.ApplicationElement, "foo", "bar");
}
}
```The code above will result in this:
```xml
...
...
```You need to create an asmdef file with:
1. only Editor platform selected
2. a reference to Eflatun.AndroidManifestHook asmdeffor your manifest hooker scripts. Otherwise you will get build errors.
It should look like this:
![asmdef screenshot](https://raw.githubusercontent.com/starikcetin/Eflatun.AndroidManifestHook/repo-res/asmdef.png)
## License
MIT license. Refer to the [LICENSE](/LICENSE) file.
Copyright (c) 2019 S. Tarık Çetin.
This library is basically a convinience wrapper around [this StackOverflow answer](https://stackoverflow.com/a/54894488/6301627) by [pale bone](https://stackoverflow.com/users/7613702/pale-bone).