Set targetSdkVersion for our tests to be API 26.
We have been incorrectly targetting api 23 in our test apis and thus
not getting 100% correct results for newer API level devices.
Bug: 62458070
Test: ./gradlew assembleAndroidTest and then inspect the APK using
aapt dump xmltree path/to/apk AndroidManifest.xml
Change-Id: I7c1a4bdec4c7a25e2750efe4554cf81059e6021f
diff --git a/media-compat/tests/AndroidManifest.xml b/media-compat/tests/AndroidManifest.xml
index 60b7890..6d9a4f6 100644
--- a/media-compat/tests/AndroidManifest.xml
+++ b/media-compat/tests/AndroidManifest.xml
@@ -15,19 +15,13 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
package="android.support.mediacompat.test">
-
- <uses-sdk
- android:minSdkVersion="14"
- android:targetSdkVersion="23"
- tools:overrideLibrary="android.support.test, android.app, android.support.test.rule,
- android.support.test.espresso, android.support.test.espresso.idling"/>
+ <uses-sdk android:targetSdkVersion="${target-sdk-version}"/>
<application android:supportsRtl="true">
- <receiver android:name="android.support.v4.media.session.MediaButtonReceiver" >
+ <receiver android:name="android.support.v4.media.session.MediaButtonReceiver">
<intent-filter>
- <action android:name="android.intent.action.MEDIA_BUTTON" />
+ <action android:name="android.intent.action.MEDIA_BUTTON"/>
</intent-filter>
</receiver>
<service android:name="android.support.v4.media.StubMediaBrowserServiceCompat">
@@ -41,7 +35,8 @@
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>
</service>
- <service android:name="android.support.v4.media.StubMediaBrowserServiceCompatWithDelayedMediaSession">
+ <service
+ android:name="android.support.v4.media.StubMediaBrowserServiceCompatWithDelayedMediaSession">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>