diff options
Diffstat (limited to 'manifmerger/tests/src/com/android/manifmerger/data/50_uses_conf_warning.xml')
-rwxr-xr-x | manifmerger/tests/src/com/android/manifmerger/data/50_uses_conf_warning.xml | 162 |
1 files changed, 0 insertions, 162 deletions
diff --git a/manifmerger/tests/src/com/android/manifmerger/data/50_uses_conf_warning.xml b/manifmerger/tests/src/com/android/manifmerger/data/50_uses_conf_warning.xml deleted file mode 100755 index b1cb3f9..0000000 --- a/manifmerger/tests/src/com/android/manifmerger/data/50_uses_conf_warning.xml +++ /dev/null @@ -1,162 +0,0 @@ -# -# Test uses-configuration: -# - it's OK if a library defines one or multiple times an element already in the application. -# - it's a warning if the library defines an element not in the application. -# - this does not actually merge anything. The XML is not changed at all. -# - -@main - -<manifest - xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.app1" - android:versionCode="100" - android:versionName="1.0.0"> - - <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="11"/> - - <supports-screens - android:largeScreens="true" - android:smallScreens="true" - android:normalScreens="true" - android:resizeable="true" - android:xlargeScreens="true" - /> - - <uses-configuration - android:reqFiveWayNav="true" - android:reqHardKeyboard="false" - android:reqKeyboardType="undefined" - android:reqNavigation="nonav" - android:reqTouchScreen="stylus" - /> - - <uses-feature - android:name="android.hardware.touchscreen" - android:required="false" /> - - <supports-gl-texture android:name="some.gl.texture1" /> - <supports-gl-texture android:name="some.gl.texture2" /> - - <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" > - - <activity - android:name="com.example.MainActivity" - android:label="@string/activity_name" - android:icon="@drawable/activity_icon" - android:theme="@style/Some.Theme"> - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - - </application> - -</manifest> - - -@lib1 - -<manifest - xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.lib1"> - - <!-- this is the same uses-conf than in the main. --> - <uses-configuration - android:reqFiveWayNav="true" - android:reqHardKeyboard="false" - android:reqKeyboardType="undefined" - android:reqNavigation="nonav" - android:reqTouchScreen="stylus" - /> - -</manifest> - - -@lib2 - -<manifest - xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.lib2"> - - <!-- this is the not same uses-conf than in the main. --> - <uses-configuration - android:reqFiveWayNav="false" - android:reqNavigation="trackball" - android:reqTouchScreen="finger" /> - -</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-sdk android:minSdkVersion="3" android:targetSdkVersion="11"/> - - <supports-screens - android:largeScreens="true" - android:smallScreens="true" - android:normalScreens="true" - android:resizeable="true" - android:xlargeScreens="true" - /> - - <uses-configuration - android:reqFiveWayNav="true" - android:reqHardKeyboard="false" - android:reqKeyboardType="undefined" - android:reqNavigation="nonav" - android:reqTouchScreen="stylus" - /> - - <uses-feature - android:name="android.hardware.touchscreen" - android:required="false" /> - - <supports-gl-texture android:name="some.gl.texture1" /> - <supports-gl-texture android:name="some.gl.texture2" /> - - <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" > - - <activity - android:name="com.example.MainActivity" - android:label="@string/activity_name" - android:icon="@drawable/activity_icon" - android:theme="@style/Some.Theme"> - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - - </application> - -</manifest> - - -@errors - -W [ManifestMergerTest0_main.xml:1, ManifestMergerTest2_lib2.xml:4] /manifest/uses-configuration defined in library, missing from main manifest: -<uses-configuration> - @android:reqFiveWayNav = false - @android:reqNavigation = trackball - @android:reqTouchScreen = finger |