1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="org.robolectric" android:sharedUserId="sharedUserId.robolectric" 4 android:versionCode="123" 5 android:versionName="aVersionName"> 6 <uses-sdk android:targetSdkVersion="23"/> 7 8 <permission android:name="some_permission" 9 android:description="@string/test_permission_description" 10 android:icon="@drawable/an_image" 11 android:label="@string/test_permission_label" 12 android:permissionGroup="my_permission_group" 13 android:protectionLevel="dangerous"> 14 <meta-data android:name="meta_data_name" android:value="meta_data_value"/> 15 </permission> 16 17 <permission android:name="permission_with_literal_label" 18 android:description="@string/test_permission_description" 19 android:icon="@drawable/an_image" 20 android:label="Literal label"/> 21 22 <permission android:name="permission_with_minimal_fields"/> 23 24 <permission-group android:name="package_permission_group" 25 android:icon="@drawable/an_image" 26 android:label="Permission Group Label" 27 /> 28 29 <!-- For SettingsTest --> 30 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> 31 32 <uses-permission android:name="android.permission.INTERNET"/> 33 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 34 <uses-permission android:name="android.permission.GET_TASKS"/> 35 36 <application android:name="org.robolectric.shadows.testing.TestApplication" 37 android:theme="@style/Theme.Robolectric" 38 android:label="@string/app_name" 39 android:allowBackup="true" 40 android:allowClearUserData="true" 41 android:allowTaskReparenting="true" 42 android:debuggable="true" 43 android:hasCode="true" 44 android:killAfterRestore="true" 45 android:persistent="true" 46 android:resizeable="true" 47 android:restoreAnyVersion="true" 48 android:largeScreens="true" 49 android:normalScreens="true" 50 android:smallScreens="true" 51 android:anyDensity="true" 52 android:vmSafeMode="true"> 53 54 <meta-data android:name="android.content.APP_RESTRICTIONS" android:resource="@xml/app_restrictions" /> 55 <meta-data android:name="org.robolectric.metaName1" android:value="metaValue1" /> 56 <meta-data android:name="org.robolectric.metaName2" android:value="metaValue2" /> 57 <meta-data android:name="org.robolectric.metaTrueLiteral" android:value="true" /> 58 <meta-data android:name="org.robolectric.metaFalseLiteral" android:value="false" /> 59 <meta-data android:name="org.robolectric.metaInt" android:value="123" /> 60 <meta-data android:name="org.robolectric.metaFloat" android:value="1.23" /> 61 <meta-data android:name="org.robolectric.metaColor" android:value="#FFFFFF" /> 62 <meta-data android:name="org.robolectric.metaBooleanFromRes" android:value="@bool/false_bool_value" /> 63 <meta-data android:name="org.robolectric.metaIntFromRes" android:value="@integer/test_integer1" /> 64 <meta-data android:name="org.robolectric.metaColorFromRes" android:value="@color/clear" /> 65 <meta-data android:name="org.robolectric.metaStringFromRes" android:value="@string/app_name" /> 66 <meta-data android:name="org.robolectric.metaStringOfIntFromRes" android:value="@string/str_int" /> 67 <meta-data android:name="org.robolectric.metaStringRes" android:resource="@string/app_name" /> 68 69 <activity android:name="org.robolectric.shadows.ShadowThemeTest$TestActivity"/> 70 71 <activity android:name="org.robolectric.shadows.ShadowThemeTest$TestActivityWithAnotherTheme" 72 android:theme="@style/Theme.AnotherTheme"/> 73 74 <activity android:name="org.robolectric.shadows.ShadowActivityTest$ParentActivity"/> 75 <activity android:name="org.robolectric.shadows.ShadowActivityTest$ChildActivity" 76 android:parentActivityName="org.robolectric.shadows.ShadowActivityTest$ParentActivity"/> 77 78 <activity android:name="org.robolectric.shadows.ShadowPackageManagerTest$ActivityWithMetadata"> 79 <meta-data android:name="someName" android:value="someValue"/> 80 </activity> 81 82 <activity android:name="org.robolectric.shadows.ShadowPackageManagerTest$ActivityWithConfigChanges" 83 android:configChanges="screenLayout|orientation"/> 84 85 <activity android:name="org.robolectric.shadows.ShadowActivityTest$LabelTestActivity1" /> 86 <activity android:name="org.robolectric.shadows.ShadowActivityTest$LabelTestActivity2" 87 android:label="@string/activity_name"/> 88 <activity android:name=".shadows.ShadowActivityTest$LabelTestActivity3" 89 android:label="@string/activity_name"/> 90 91 <activity android:name=".android.controller.ActivityControllerTest$ConfigAwareActivity" 92 android:configChanges="fontScale" /> 93 94 <activity android:name="org.robolectric.shadows.TestActivity"> 95 <intent-filter> 96 <action android:name="android.intent.action.VIEW"/> 97 <category android:name="android.intent.category.DEFAULT"/> 98 <data android:scheme="content" 99 android:host="testhost1.com" 100 android:port="1" 101 android:path="/testPath/test.jpeg" 102 android:mimeType="video/mpeg" /> 103 <data android:scheme="http" 104 android:host="testhost2.com" 105 android:port="2" 106 android:pathPrefix="/testPrefix" 107 android:mimeType="image/jpeg" /> 108 <data android:scheme="https" 109 android:host="testhost3.com" 110 android:port="3" 111 android:pathPattern="/.*testPattern" 112 android:mimeType="image/*" /> 113 </intent-filter> 114 </activity> 115 116 <activity android:name="org.robolectric.shadows.ShadowPackageManagerTest$ActivityWithFilters" 117 android:permission="com.foo.MY_PERMISSION"> 118 <intent-filter> 119 <action android:name="android.intent.action.VIEW"/> 120 <category android:name="android.intent.category.DEFAULT"/> 121 <data android:scheme="content" 122 android:host="testhost1.com" 123 android:port="1" 124 android:path="/testPath/test.jpeg" 125 android:mimeType="video/mpeg" /> 126 </intent-filter> 127 </activity> 128 129 <activity android:name="org.robolectric.shadows.DisabledActivity" android:enabled="false"/> 130 131 <activity-alias 132 android:name="org.robolectric.shadows.TestActivityAlias" 133 android:targetActivity=".shadows.TestActivity"> 134 <intent-filter> 135 <action android:name="android.intent.action.MAIN"/> 136 <category android:name="android.intent.category.LAUNCHER"/> 137 </intent-filter> 138 </activity-alias> 139 140 <service android:name="com.foo.Service" android:permission="com.foo.MY_PERMISSION"> 141 <intent-filter> 142 <action android:name="org.robolectric.ACTION_DIFFERENT_PACKAGE"/> 143 <data android:mimeType="image/jpeg"/> 144 <category android:name="android.intent.category.LAUNCHER"/> 145 </intent-filter> 146 <meta-data android:name="metadatasample" android:value="sample"/> 147 </service> 148 149 <service android:name="com.bar.ServiceWithoutIntentFilter"/> 150 151 <service android:name="org.robolectric.shadows.DisabledService" android:enabled="false"/> 152 153 <!-- Fully qualified name reference --> 154 <provider 155 android:name="org.robolectric.shadows.testing.TestContentProvider1" 156 android:authorities="org.robolectric.authority1" 157 android:permission="PERMISSION" 158 android:readPermission="READ_PERMISSION" 159 android:writePermission="WRITE_PERMISSION"> 160 <path-permission 161 android:pathPattern="/path/*" 162 android:readPermission="PATH_READ_PERMISSION" 163 android:writePermission="PATH_WRITE_PERMISSION"/> 164 <meta-data android:name="greeting" android:value="@string/hello"/> 165 </provider> 166 167 168 <!-- Partially qualified name reference --> 169 <provider 170 android:name=".shadows.testing.TestContentProvider2" 171 android:authorities="org.robolectric.authority2"/> 172 173 <receiver android:name="org.robolectric.ConfigTestReceiver.InnerReceiver" 174 android:permission="com.ignored.PERM"> 175 <intent-filter> 176 <action android:name="org.robolectric.ACTION1"/> 177 <category android:name="com.ignored"/> 178 </intent-filter> 179 <intent-filter> 180 <action android:name="org.robolectric.ACTION2"/> 181 <category android:name="com.ignored"/> 182 </intent-filter> 183 </receiver> 184 185 <receiver android:name="org.robolectric.fakes.ConfigTestReceiver"> 186 <intent-filter> 187 <action android:name="org.robolectric.ACTION_SUPERSET_PACKAGE"/> 188 </intent-filter> 189 </receiver> 190 191 <receiver android:name="org.robolectric.ConfigTestReceiver"> 192 <intent-filter> 193 <action android:name="org.robolectric.ACTION_SUBSET_PACKAGE"/> 194 </intent-filter> 195 </receiver> 196 197 <receiver android:name=".DotConfigTestReceiver"> 198 <intent-filter> 199 <action android:name="org.robolectric.ACTION_DOT_PACKAGE"/> 200 </intent-filter> 201 </receiver> 202 203 <receiver android:name=".test.ConfigTestReceiver"> 204 <intent-filter> 205 <action android:name="org.robolectric.ACTION_DOT_SUBPACKAGE"/> 206 </intent-filter> 207 <meta-data android:name="numberOfSheep" android:value="42" /> 208 </receiver> 209 210 <receiver android:name="com.foo.Receiver"> 211 <intent-filter> 212 <action android:name="org.robolectric.ACTION_DIFFERENT_PACKAGE"/> 213 </intent-filter> 214 </receiver> 215 216 <receiver android:name="com.bar.ReceiverWithoutIntentFilter"/> 217 <receiver android:name="org.robolectric.ConfigTestReceiverPermissionsAndActions" 218 android:permission="org.robolectric.CUSTOM_PERM"> 219 <intent-filter> 220 <action android:name="org.robolectric.ACTION_RECEIVER_PERMISSION_PACKAGE"/> 221 </intent-filter> 222 </receiver> 223 </application> 224</manifest> 225