Skip to content

Commit 78e22be

Browse files
authored
feat(cli): support AndroidTV by default (#10602)
closes #10534
1 parent f4cd68f commit 78e22be

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": "patch:feat"
3+
"@tauri-apps/cli": "patch:feat"
4+
---
5+
6+
Add necessary options to `AndroidManifest.xml` in android template to support AndroidTV.

tooling/cli/templates/mobile/android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
33
<uses-permission android:name="android.permission.INTERNET" />
4+
5+
<!-- AndroidTV support -->
6+
<uses-feature android:name="android.software.leanback" android:required="false" />
7+
48
<application
59
android:icon="@mipmap/ic_launcher"
610
android:label="@string/app_name"
@@ -15,6 +19,8 @@
1519
<intent-filter>
1620
<action android:name="android.intent.action.MAIN" />
1721
<category android:name="android.intent.category.LAUNCHER" />
22+
<!-- AndroidTV support -->
23+
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
1824
</intent-filter>
1925
</activity>
2026

0 commit comments

Comments
 (0)