- Initial release
- Created this package to cache apis results so next time when you call the same api, it will return the cached result instead of calling the api again. This will help to reduce the number of api calls and improve the user experience of your app.
- This package uses file based caching system.
- It give you couple of functions to manage the cache.
- I also added a log function so you can add, remove, clear and share logs.
- It also give you ability to set the cache expiry time.
- Examples updated
- Rename the function
storeCacheViaRest
tocacheViaRest
- New cache callbacks added to get the cache hit and miss.
- New API response callback added to get the api response and error.
- Added
justApi
parameter tocacheViaRest
function to get the api response without caching it. for example, if you just want to get the api response and don't want to cache it, you can setjustApi
totrue
and it will return the api response without caching it.
-
Removed share logs as file as this is not a default functionality and adding package increases the package size. If you want to share logs, you can use the
getLogFile
function to get the log file and share it however . -
Added
cacheKey
parameter tocacheViaRest
function to set the cache key. for example, if you want to cache the api response with a specific key, you can setcacheKey
toyour_key
and it will cache the api response with the keyyour_key
. -
Added
getCacheViaKey
function to get the cache with a specific key. for example, if you want to get the cache with a specific key, you can setcacheKey
toyour_key
and it will return the cache with the keyyour_key
. -
Added
setCacheViaKey
function to set the cache with a specific key. for example, if you want to set the cache with a specific key, you can setcacheKey
toyour_key
and it will set the cache with the keyyour_key
. -
Added
getCacheKeys
function to get all the cache keys. -
Added
removeCacheViaKey
function to remove the cache with a specific key. for example, if you want to remove the cache with a specific key, you can setcacheKey
toyour_key
and it will remove the cache with the keyyour_key
.
- Debug Prints added
- Added
baseUrl
setter to set the base url so you don't ned to pass the base url every time you call thecacheViaRest
function.
- Added
setHeaders
to set the headers so you don't need to pass the headers every time you call thecacheViaRest
function. - Test Updated
- Added
appendFormData
to append the form data so you don't need to pass the form data every time you call thecacheViaRest
function. - Test Updated with more cleanup
- Cache File type added to the cache file name so you can easily identify the cache file type.
- Test Updated with more cleanup
- Date Format in logs updated to
yyyy-MM-dd HH:mm:ss
- On Success will not called twice if the cache and api data is same
- Added response bodyBytes to the response model so you can get the response body bytes.
- Fix Logging and Update Form data
- Added Patch Method
- Tests Updated
- Base URL support is also added for network request method
- Read ME Updated
- Just API Deprecated in respect of network request method
- Just API is removed from the cacheViaRest method
- Added Log File name text test
- Added New files for particular methods
- Added Response Headers in Response Model
- Added In App Update Support
- Added Local Auth Support
- Added Package Info Support
- Added Url Launcher for Download app if available from Github Release
- Added Request Permission Method
- Above all are helper methods that can be used instantly in any app
- Removed Support for Url Launcher
- Removed Toast Method as Passing Context is not for this package
- Update Check for Update Method
- Version Tag added in update check method
- App Version Tab Widget Added
- Added abstract for testing
- Added Couple of Global Extensions
- Added ToIdentifier method to convert enum to String
- Removed Currency for now as it have some issues
- Added Web check for log method, Web Support is under development
- Play Store Check Updated
- Function Updates
- Added Extension Methods
- Added Web Cache Manager
- Added IndexedDB for Web
- Downgraded web to 0.5.0
- Removed idm_shim
- Added flutter_local_notifications
- Added device_info_plus
- Added Device info in logs
- Updated Device info to a separate method instead of in get all logs method
- Added
getAndroidVersion
method to get the android version
- Updated Dependencies
- Added Logger and Respective method
- Updated Dependencies