[ios] Added fifa2018 category

This commit is contained in:
VladiMihaylenko 2018-03-30 16:52:34 +03:00 committed by Roman Kuznetsov
parent 623df5a6c5
commit 30f48b1b98
10 changed files with 60 additions and 5 deletions

View file

@ -137,6 +137,7 @@ static NSString * const kStatExport = @"Export";
static NSString * const kStatExternal = @"external";
static NSString * const kStatFacebook = @"Facebook";
static NSString * const kStatFeedback = @"Feedback";
static NSString * const kStatFifa18 = @"FIFA2018";
static NSString * const kStatFrom = @"from";
static NSString * const kStatFromLocation = @"from_location";
static NSString * const kStatFromMyPosition = @"From my position";

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_fc2018_dark.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_fc2018_dark@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_fc2018_dark@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_fc2018_light.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_fc2018_light@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_fc2018_light@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -8,6 +8,8 @@
extern NSString * const kLuggageCategory = @"luggagehero";
static NSString * const kFifa18Category = @"fc2018";
@implementation MWMSearchCategoriesManager
{
vector<string> m_categories;
@ -70,13 +72,19 @@ extern NSString * const kLuggageCategory = @"luggagehero";
[delegate searchText:[L(string) stringByAppendingString:@" "]
forInputLocale:[[AppInfo sharedInfo] languageId]];
[delegate dismissKeyboard];
if ([string isEqualToString:kLuggageCategory])
{
auto doWork = ^(NSString * param) {
if (!IPAD)
delegate.state = MWMSearchManagerStateMapSearch;
[MRMyTracker trackEventWithName:@"Search_SponsoredCategory_selected_LuggageHero"];
[Statistics logEvent:kStatSearchSponsoredSelect withParameters:@{kStatProvider : kStatLuggageHero}];
}
[Statistics logEvent:kStatSearchSponsoredSelect withParameters:@{kStatProvider : param}];
[MRMyTracker trackEventWithName:[kStatLuggageHero stringByAppendingFormat:@"_%@", param]];
};
if ([string isEqualToString:kLuggageCategory])
doWork(kStatLuggageHero);
else if ([string isEqualToString:kFifa18Category])
doWork(kStatFifa18);
}
@end