blob: 57937a6f77044bce6a385f915f3a28ed491a698c [file] [log] [blame]
#
# Test merge of uses-feature with android:glEsVersion:
# - Error if defined in lib+dest with dest < lib.
# - Never automatically change dest.
# - Default implied value is 1.0 (0x00010000).
#
# This tests a case that works. Also checks that glEsVersion attributes are stripped
# when merging uses-feature with the name attribute.
#
@main
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app1"
android:versionCode="100"
android:versionName="1.0.0">
<uses-feature
android:name="com.example.SomeFeature0" />
<uses-feature
android:name="com.example.SomeFeature1"
android:required="false" />
<uses-feature android:glEsVersion="0x00020001" />
<application
android:label="@string/app_name"
android:icon="@drawable/app_icon"
android:backupAgent="com.example.app.BackupAgentClass"
android:restoreAnyVersion="true"
android:allowBackup="true"
android:killAfterRestore="true"
android:name="com.example.TheApp" >
</application>
</manifest>
@lib1
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib1">
<!-- Add a new feature with a glEsVersion of 2.1 -->
<uses-feature
android:name="com.example.SomeFeature5"
android:required="false"
android:glEsVersion="0x00020001"
/>
<!-- Add a glEsVersion of 2.0, which will be ignored -->
<uses-feature
android:glEsVersion="0x00020000"
/>
<application android:label="@string/lib_name1" />
</manifest>
@lib2
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.lib2">
<!-- Add a new feature with a glEsVersion of 1.1 which will be ignored -->
<uses-feature
android:name="com.example.SomeFeature6"
android:required="false"
android:glEsVersion="0x00020001"
/>
<!-- Add a glEsVersion of 1.0, which will be ignored -->
<uses-feature android:glEsVersion="0x00010000" />
</manifest>
@result
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app1"
android:versionCode="100"
android:versionName="1.0.0">
<uses-feature
android:name="com.example.SomeFeature0" />
<uses-feature
android:name="com.example.SomeFeature1"
android:required="false" />
<uses-feature android:glEsVersion="0x00020001" />
<application
android:label="@string/app_name"
android:icon="@drawable/app_icon"
android:backupAgent="com.example.app.BackupAgentClass"
android:restoreAnyVersion="true"
android:allowBackup="true"
android:killAfterRestore="true"
android:name="com.example.TheApp" >
</application>
<!-- Add a new feature with a glEsVersion of 2.1 -->
# lib1 adds this new node. Note how the glEsVersion=2.1 is stripped out.
<uses-feature
android:name="com.example.SomeFeature5"
android:required="false"
/>
<!-- Add a new feature with a glEsVersion of 1.1 which will be ignored -->
# lib2 adds this new node. Note how the glEsVersion=2.0 is stripped out.
<uses-feature
android:name="com.example.SomeFeature6"
android:required="false"
/>
</manifest>
@errors