dhis2_android_configure_storage
Configure local storage and database settings for the DHIS2 Android app. Define storage type, encryption level, cache strategy, and purge policies to optimize data management and performance.
Instructions
Set up local storage and database configuration for DHIS2 Android app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cacheStrategy | No | ||
encryptionLevel | No | Database encryption level | |
purgePolicy | No | ||
storageType | Yes | Local database technology |
Input Schema (JSON Schema)
{
"properties": {
"cacheStrategy": {
"properties": {
"images": {
"properties": {
"compression": {
"description": "Enable image compression",
"type": "boolean"
},
"maxResolution": {
"description": "Maximum image resolution (e.g., \"1920x1080\")",
"type": "string"
}
},
"type": "object"
},
"metadata": {
"properties": {
"maxSize": {
"description": "Maximum cache size (MB)",
"type": "number"
},
"ttl": {
"description": "Time-to-live for metadata cache (hours)",
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
},
"encryptionLevel": {
"description": "Database encryption level",
"enum": [
"none",
"basic",
"advanced"
],
"type": "string"
},
"purgePolicy": {
"properties": {
"conditions": {
"description": "Conditions that trigger data purging",
"items": {
"enum": [
"storage_full",
"data_old",
"user_logout"
],
"type": "string"
},
"type": "array"
},
"enabled": {
"description": "Enable automatic data purging",
"type": "boolean"
},
"retentionDays": {
"description": "Number of days to retain data",
"type": "number"
}
},
"type": "object"
},
"storageType": {
"description": "Local database technology",
"enum": [
"room",
"sqlite",
"realm"
],
"type": "string"
}
},
"required": [
"storageType"
],
"type": "object"
}