Skip to content

Commit

Permalink
Additional phase of Brave Ads regions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey authored and yrliou committed Nov 12, 2019
1 parent 2fe40f2 commit c50afec
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/brave_ads/common/pref_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const char kSupportedRegionsLastSchemaVersion[] =
const char kSupportedRegionsSchemaVersion[] =
"brave.brave_ads.supported_regions_schema_version_number";

const int kSupportedRegionsSchemaVersionNumber = 4;
const int kSupportedRegionsSchemaVersionNumber = 5;

// Stores the preferences version number
const char kVersion[] = "brave.brave_ads.prefs.version";
Expand Down
41 changes: 41 additions & 0 deletions vendor/bat-native-ads/src/bat/ads/internal/static_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,47 @@ const std::map<int, std::map<std::string, bool>> kSupportedRegionsSchemas = {
4, {
{ "KY", true } // Cayman Islands
}
},
{
5, {
{ "AE", false }, // United Arab Emirates
{ "AL", false }, // Albania
{ "AZ", false }, // Azerbaijan
{ "BD", false }, // Bangladesh
{ "BE", false }, // Belgium
{ "BG", false }, // Bulgaria
{ "CN", false }, // China
{ "CZ", false }, // Czechia
{ "DZ", false }, // Algeria
{ "EG", false }, // Egypt
{ "ES", false }, // Spain
{ "FI", false }, // Finland
{ "GR", false }, // Greece
{ "HK", false }, // Hong Kong
{ "HR", false }, // Croatia
{ "HU", false }, // Hungary
{ "ID", false }, // Indonesia
{ "IQ", false }, // Iraq
{ "KH", false }, // Cambodia
{ "LT", false }, // Lithuania
{ "MA", false }, // Morocco
{ "MY", false }, // Malaysia
{ "NG", false }, // Nigeria
{ "NO", false }, // Norway
{ "PK", false }, // Pakistan
{ "PT", false }, // Portugal
{ "RO", false }, // Romania
{ "RS", false }, // Serbia
{ "RU", false }, // Russian Federation
{ "SA", false }, // Saudi Arabia
{ "SI", false }, // Slovenia
{ "SK", false }, // Slovakia
{ "TH", false }, // Thailand
{ "TR", false }, // Turkey
{ "TW", false }, // Taiwan
{ "UA", false }, // Ukraine
{ "VN", false } // Vietnam
}
}
};

Expand Down

0 comments on commit c50afec

Please sign in to comment.