UNPKG

1.53 kBMarkdownView Raw
1<!-- Title -->
2<h1 align="center">
3👋 Welcome to <br><code>@expo/android-manifest</code>
4</h1>
5
6<!-- Header -->
7
8<p align="center">
9 <b>A library for interacting with the `AndroidManifest.xml`</b>
10 <br/>
11 <br/>
12 <a aria-label="Circle CI" href="https://circleci.com/gh/expo/expo-cli/tree/master">
13 <img alt="Circle CI" src="https://flat.badgen.net/circleci/github/expo/expo-cli?label=Circle%20CI&labelColor=555555&icon=circleci">
14 </a>
15</p>
16
17---
18
19<!-- Body -->
20
21## 🏁 Setup
22
23Install `@expo/android-manifest` in your project.
24
25```sh
26yarn add @expo/android-manifest
27```
28
29## ⚽️ Usage
30
31```ts
32import * as Manifest from '@expo/android-manifest';
33
34// Read the project's manifest
35const manifest = await Manifest.readAsync(manifestPath);
36
37// Get the Android app permissions as an array
38const permissions: string[] = Manifest.getPermissions(manifest);
39```
40
41## License
42
43The Expo source code is made available under the [MIT license](LICENSE). Some of the dependencies are licensed differently, with the BSD license, for example.
44
45<!-- Footer -->
46
47---
48
49<p>
50 <a aria-label="sponsored by expo" href="http://expo.io">
51 <img src="https://img.shields.io/badge/SPONSORED%20BY%20EXPO-4630EB.svg?style=for-the-badge" target="_blank" />
52 </a>
53 <a aria-label="@expo/android-manifest is free to use" href="/LICENSE" target="_blank">
54 <img align="right" alt="License: MIT" src="https://img.shields.io/badge/License-MIT-success.svg?style=for-the-badge&color=33CC12" target="_blank" />
55 </a>
56</p>