Configure build.gradle script
Some of SDK-related features, keys and flags should be configured through app`s module build.gradle file.
The common flags/features are:
// resource filed values
resValue "bool", "calls_feature_enabled", "true|false"
resValue "bool", "meetings_feature_enabled", "true|false"
resValue "bool", "more_section_enabled", "true|false"
resValue "bool", "communities_feature_enabled", "true|false"
resValue "bool", "login_by_email_enabled", "true|false"
resValue "bool", "use_default_endpoints_only", "true|false"
resValue "bool", "visit_note_web_enabled", "true|false"
resValue "string", "map_box_api_token", "map_box_api_token_value"
// build config fields
buildConfigField "boolean", "USE_RECAPTCHA", "true|false"
buildConfigField "boolean", "USE_GIF", "true|false"
// this is oauth type, referc to sources for possiblwe values
buildConfigField "com.telepado.im.sdk.auth.domain.model.OauthType", "OAUTH_TYPE", "com.telepado.im.sdk.auth.domain.model.OauthType.NONE"
buildConfigField "boolean", "USE_PESDK", "true|false"
buildConfigField "boolean", "AWAIT_CONFIG_FETCH", "true|false"
buildConfigField "boolean", "SHOW_PUBLIC_CONTACTS", "true|false"
buildConfigField "boolean", "SHOW_LISTED_CHANNELS", "true|false"
buildConfigField "boolean", "BUSINESS_PROFILE_ENABLED", "true|false"
buildConfigField "String", "MEDIA_DIR_NAME", "\"directory_name\""
buildConfigField "String", "MTPROTO_EXPONENT", "\"mtproto_exponent_value\""
buildConfigField "String", "MTPROTO_MODULUS", "\"mtproto_modulus_value\""
Please, contact BE deployment team to get required MTPROTO keys, and fill up map_box_api_token and pesdk license keys, if applicable
Last updated
