forked from organicmaps/organicmaps
[ios] Added fifa2018 category
This commit is contained in:
parent
623df5a6c5
commit
30f48b1b98
10 changed files with 60 additions and 5 deletions
|
@ -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";
|
||||
|
|
23
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/Contents.json
vendored
Normal file
23
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/Contents.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark@2x.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark@3x.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_dark.imageset/ic_fc2018_dark@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
23
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/Contents.json
vendored
Normal file
23
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/Contents.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light@2x.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light@3x.png
vendored
Normal file
BIN
iphone/Maps/Images.xcassets/Search/Categories/ic_fc2018_light.imageset/ic_fc2018_light@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue