add custom android manifest that declares microphone permission
This commit is contained in:
@@ -8,6 +8,8 @@ out_dir = "dist"
|
|||||||
# resource (public) file folder
|
# resource (public) file folder
|
||||||
asset_dir = "public"
|
asset_dir = "public"
|
||||||
|
|
||||||
|
android_manifest = "build/AndroidManifest.xml"
|
||||||
|
|
||||||
[web.app]
|
[web.app]
|
||||||
# HTML title tag content
|
# HTML title tag content
|
||||||
title = "Mumble Web 2"
|
title = "Mumble Web 2"
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Borrowed from https://github.com/irh/audio-app/blob/main/apps/dioxus/AndroidManifest.xml
|
||||||
|
-->
|
||||||
|
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||||
|
|
||||||
|
<uses-feature android:name="android.hardware.audio.low_latency" android:required="false" />
|
||||||
|
<uses-feature android:name="android.hardware.audio.output" android:required="false" />
|
||||||
|
<uses-feature android:name="android.hardware.audio.pro" android:required="false" />
|
||||||
|
<uses-feature android:name="android.hardware.microphone" android:required="false" />
|
||||||
|
|
||||||
|
<application android:hasCode="true" android:supportsRtl="true" android:icon="@mipmap/ic_launcher"
|
||||||
|
android:extractNativeLibs="true"
|
||||||
|
android:allowNativeHeapPointerTagging="false"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:theme="@style/AppTheme"
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config">
|
||||||
|
<activity android:configChanges="orientation|screenLayout|screenSize|keyboardHidden" android:exported="true"
|
||||||
|
android:label="@string/app_name" android:name="dev.dioxus.main.MainActivity">
|
||||||
|
<meta-data android:name="android.app.lib_name" android:value="dioxusmain" />
|
||||||
|
<meta-data android:name="android.app.func_name" android:value="ANativeActivity_onCreate" />
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
</application>
|
||||||
|
</manifest>
|
||||||
Reference in New Issue
Block a user