Skip to content

Commit 1437510

Browse files
friederbluemlefacebook-github-bot
authored andcommitted
Fix RNTester Lint errors (#26279)
Summary: Trying to build the Android RNTester app using Gradle fails with the following error: ``` Errors found: [...]/RNTester/android/app/src/main/AndroidManifest.xml:2: Error: Hardware feature android.hardware.touchscreen not explicitly marked as optional [ImpliedTouchscreenHardware] <manifest ~~~~~~~~ [...]/RNTester/android/app/src/main/AndroidManifest.xml:2: Error: Expecting <uses-feature android:name="android.software.leanback" android:required="false" /> tag. [MissingLeanbackSupport] <manifest ~~~~~~~~ ``` This PR adds the two missing `uses-feature` tags to AndroidManifest of RNTester. ## Changelog [Android] [Fixed] - Fix RNTester Lint errors Pull Request resolved: #26279 Test Plan: After adding the tags, the build is successful again. Differential Revision: D17177952 Pulled By: mdvacca fbshipit-source-id: c81dce9c6642fc8551f3d0eeb84c984ed06b18e3
1 parent d69387d commit 1437510

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

RNTester/android/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
package="com.facebook.react.uiapp">
55

6+
<uses-feature
7+
android:name="android.software.leanback"
8+
android:required="false" />
9+
<uses-feature
10+
android:name="android.hardware.touchscreen"
11+
android:required="false" />
12+
613
<uses-permission android:name="android.permission.INTERNET" />
714
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
815
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

0 commit comments

Comments
 (0)