UsesSdkpublic class AndroidManifest extends Object implements UsesSdk
| Constructor | Description |
|---|---|
AndroidManifest(Path androidManifestFile,
Path resDirectory,
Path assetsDirectory) |
Creates a Robolectric configuration using specified locations.
|
AndroidManifest(Path androidManifestFile,
Path resDirectory,
Path assetsDirectory,
String overridePackageName) |
Creates a Robolectric configuration using specified values.
|
AndroidManifest(Path androidManifestFile,
Path resDirectory,
Path assetsDirectory,
List<AndroidManifest> libraryManifests,
String overridePackageName) |
Creates a Robolectric configuration using specified values.
|
AndroidManifest(Path androidManifestFile,
Path resDirectory,
Path assetsDirectory,
List<AndroidManifest> libraryManifests,
String overridePackageName,
Path apkFile) |
public AndroidManifest(Path androidManifestFile, Path resDirectory, Path assetsDirectory)
androidManifestFile - Location of the AndroidManifest.xml file.resDirectory - Location of the res directory.assetsDirectory - Location of the assets directory.public AndroidManifest(Path androidManifestFile, Path resDirectory, Path assetsDirectory, String overridePackageName)
androidManifestFile - Location of the AndroidManifest.xml file.resDirectory - Location of the res directory.assetsDirectory - Location of the assets directory.overridePackageName - Application package name.public AndroidManifest(Path androidManifestFile, Path resDirectory, Path assetsDirectory, @Nonnull List<AndroidManifest> libraryManifests, String overridePackageName)
androidManifestFile - Location of the AndroidManifest.xml file.resDirectory - Location of the res directory.assetsDirectory - Location of the assets directory.libraryManifests - List of dependency library manifests.overridePackageName - Application package name.public Class getRClass()
public void initMetaData(ResourceTable resourceTable) throws RoboNotFoundException
resourceTable - used for getting resource IDs from string identifiersRoboNotFoundExceptionpublic String getApplicationName()
public String getPackageName()
public int getVersionCode()
public String getVersionName()
public String getLabelRef()
public int getMinSdkVersion()
Note that if targetSdkVersion isn't set, this value changes the behavior of some
Android code (notably SharedPreferences) to emulate old bugs.
getMinSdkVersion in interface UsesSdkpublic int getTargetSdkVersion()
Note that this value changes the behavior of some Android code (notably SharedPreferences) to emulate old bugs.
getTargetSdkVersion in interface UsesSdkpublic Integer getMaxSdkVersion()
UsesSdkIf no maximum version is specified, null may be returned.
getMaxSdkVersion in interface UsesSdkpublic String getProcessName()
public ResourcePath getResourcePath()
public List<ResourcePath> getIncludedResourcePaths()
public List<ContentProviderData> getContentProviders()
public List<AndroidManifest> getLibraryManifests()
public List<AndroidManifest> getAllManifests()
public Path getResDirectory()
public Path getAssetsDirectory()
public Path getAndroidManifestFile()
public List<BroadcastReceiverData> getBroadcastReceivers()
public List<ServiceData> getServices()
public ServiceData getServiceData(String serviceClassName)
public ActivityData getActivityData(String activityClassName)
public String getThemeRef()
public Map<String,ActivityData> getActivityDatas()
public Map<String,PermissionItemData> getPermissions()
public Map<String,PermissionGroupItemData> getPermissionGroups()
@Nullable public BroadcastReceiverData getBroadcastReceiver(String className)
className - the fully resolved class name of the receiverpublic Path getApkFile()
@Deprecated public boolean supportsLegacyResourcesMode()
@Deprecated public boolean supportsBinaryResourcesMode()