/// Created by Haoyi on 2022/2/26

part of "remote_config_manager.dart";

extension RemoteConfigReservedConstants on RemoteConfigManager {
  static const fbEventMapping = "fb_event_mapping";
  static const iosReviewVersion = "ios_review_version";
  static const taichiConfig = "taichi_config";

  // ads
  static const iadsConfig = "iads_config"; // Interstitial Ads Config
  static const badsConfig = "bads_config"; // Banner Ads Config
  static const radsConfig = "rads_config"; // Rewarded Ads Config
  static const oadsConfig = "oads_config"; // Open Ads Config
  static const sadsConfig = "sads_config"; // Strategy Ads Config
  static const iosAttConfig = "ios_att_config"; // iOS ATT Config
  static const commonAdsConfig = "common_ads_config"; // Common Ads Config

  // rater
  static const appRater = "app_rater";

  static const cdnConfig = "cdn_config";

  static const analyticsConfig = "analytics_config";

  static const deploymentConfig = "deployment_config";

  static const Set<String> _reservedRemoteConfigNames = <String>{
    fbEventMapping,
    iosReviewVersion,
    taichiConfig,
    iadsConfig,
    badsConfig,
    radsConfig,
    oadsConfig,
    iosAttConfig,
    appRater,
    cdnConfig,
    analyticsConfig,
    deploymentConfig
  };

  static String? getDefaultConfigString(String key) {
    return GuruApp.instance.defaultRemoteConfig[GuruApp.instance.getRemoteConfigKey(key)];
  }
}
