miniProgramPackageCacheCleanEnabled

This property allows the super app to enable/disable automatic cleanup of offline packages.

Note: Must configure this property before initializing the SDK.

Property

copy
/**
 Whether expired mini program packages will be automatically cleaned up.
 Defaults to NO.
 */
@property (nonatomic, assign) BOOL miniProgramPackageCacheCleanEnabled;

Name

Type

Description

Required

miniProgramPackageCacheCleanEnabled

BOOL

Controlls whether to automatic cleanup of offline packages:

  • YES: Enable this feature.
  • NO: Disable this feature. This is the default value.

Yes

Sample

copy
func createGriverConfiguration() -> GRVConfiguration {
    let configuration = GRVConfiguration()
    configuration.miniProgramPackageCacheCleanEnabled = true
    return configuration
}