setSDKLocalStorageMaxFileSize method

InTrackConfig setSDKLocalStorageMaxFileSize(
  1. double maxFileSizeInKiloBytes
)

limits local storage file size to a max value in KB(KiloBytes) this will not impact basic functionality of the sdk ,however, setting it will impact amount of cached requests to a certain level and older ones will get evicted!

Implementation

InTrackConfig setSDKLocalStorageMaxFileSize(double maxFileSizeInKiloBytes){
  if(maxFileSizeInKiloBytes <= 0){
    InTrack.log("file size can not be <= 0, consider a proper file size!" , logLevel: LogLevel.WARNING);
    InTrack.log("Can't set ${maxFileSizeInKiloBytes} (KB) as sdkLocalStorageMaxFileSize!" , logLevel: LogLevel.WARNING);
  }else{
    _sdkLocalStorageMaxFileSize = maxFileSizeInKiloBytes;
  }
  return this;
}