environment

This property allows the super app to customize the SDK environment name.

Note: Must configure this property before initializing the SDK.

Property

copy
/**
 environment for fetching mini-program package: prod、sit、test
 */
@property (nonatomic, copy, nullable) NSString *environment;

Name

Type

Description

Required

environment

NSString

Indicates the SDK environment name.

Note: If this parameter is empty or null, the default "prod" is used, which indicates the production environment.

Yes

Sample

copy
func createGriverConfiguration() -> GRVConfiguration {
    let configuration = GRVConfiguration()
    configuration.environment = "prod"
    return configuration
}