Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2017-05-19 17:58:48 +0300
committerVladiMihaylenko <vxmihaylenko@gmail.com>2017-05-22 14:17:39 +0300
commitac8c6c76271d6edd715f47c59ee0b2252c6961cc (patch)
tree157b755e217f7dc825b2616d27662f8e0c9b72da
parentba1af913053c6f686f3023e14db0bdfdf68e210e (diff)
Added additional logging.beta-820
-rw-r--r--iphone/Maps/Classes/MapsAppDelegate.mm3
-rw-r--r--iphone/Maps/Core/Notifications/MWMPushNotifications.mm5
-rw-r--r--iphone/Maps/Maps.xcodeproj/project.pbxproj16
3 files changed, 23 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm
index a3b9400169..43e638ec18 100644
--- a/iphone/Maps/Classes/MapsAppDelegate.mm
+++ b/iphone/Maps/Classes/MapsAppDelegate.mm
@@ -214,6 +214,7 @@ using namespace osm_auth_ios;
string const url = m_mwmURL.UTF8String;
auto const parsingType = f.ParseAndSetApiURL(url);
+ LOG(LWARNING, ("Started by url:", m_mwmURL.UTF8String));
switch (parsingType)
{
case ParsedMapApi::ParsingResult::Incorrect:
@@ -574,7 +575,7 @@ using namespace osm_auth_ios;
- (void)applicationDidBecomeActive:(UIApplication *)application
{
LOG(LINFO, ("applicationDidBecomeActive - begin"));
- LOG(LWARNING, ("Pushwoosh token: ", [MWMPushNotifications pushToken].UTF8String));
+ NSLog(@"Pushwoosh token: %@", [MWMPushNotifications pushToken]);
[self.mapViewController onGetFocus:YES];
[self handleURLs];
[[Statistics instance] applicationDidBecomeActive];
diff --git a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
index ca987af6eb..bb92521946 100644
--- a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
+++ b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
@@ -62,9 +62,14 @@ NSString * const kPushDeviceTokenLogEvent = @"iOSPushDeviceToken";
+ (BOOL)handleURLPush:(NSDictionary *)userInfo
{
auto app = UIApplication.sharedApplication;
+ NSLog(@"Handle url push");
+ [userInfo enumerateKeysAndObjectsUsingBlock:^(NSString * _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
+ NSLog(@"Key in push's user info: %@", key);
+ }];
if (app.applicationState != UIApplicationStateInactive)
return NO;
NSString * openLink = userInfo[@"openURL"];
+ NSLog(@"Push's url: %@", openLink);
if (!openLink)
return NO;
NSURL * url = [NSURL URLWithString:openLink];
diff --git a/iphone/Maps/Maps.xcodeproj/project.pbxproj b/iphone/Maps/Maps.xcodeproj/project.pbxproj
index 988780510a..5c627b4da8 100644
--- a/iphone/Maps/Maps.xcodeproj/project.pbxproj
+++ b/iphone/Maps/Maps.xcodeproj/project.pbxproj
@@ -2040,6 +2040,8 @@
F61579331AC2CE9A0032D8E9 /* MWMRateAlert.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMRateAlert.mm; sourceTree = "<group>"; };
F61579351AC2CEB60032D8E9 /* MWMRateAlert.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MWMRateAlert.xib; sourceTree = "<group>"; };
F6172FA41BBD5A3E0081D325 /* MWMiPadRoutePreview.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MWMiPadRoutePreview.xib; sourceTree = "<group>"; };
+ F619BE7D1ED2FCD100B796F7 /* maps.me dbg.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "maps.me dbg.entitlements"; sourceTree = "<group>"; };
+ F619BE7E1ED2FCD300B796F7 /* xc dbg.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "xc dbg.entitlements"; sourceTree = "<group>"; };
F623DA6A1C9C2731006A3436 /* opening_hours_how_to_edit.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = opening_hours_how_to_edit.html; path = ../../data/opening_hours_how_to_edit.html; sourceTree = "<group>"; };
F626D52C1C3E6CAA00C17D15 /* MWMTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMTableViewCell.h; sourceTree = "<group>"; };
F626D52D1C3E6CAA00C17D15 /* MWMTableViewCell.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMTableViewCell.mm; sourceTree = "<group>"; };
@@ -2594,6 +2596,8 @@
29B97314FDCFA39411CA2CEA /* Maps */ = {
isa = PBXGroup;
children = (
+ F619BE7E1ED2FCD300B796F7 /* xc dbg.entitlements */,
+ F619BE7D1ED2FCD100B796F7 /* maps.me dbg.entitlements */,
347526FA1DC0B00F00918CF5 /* common-debug.xcconfig */,
347526FB1DC0B00F00918CF5 /* common-release.xcconfig */,
FA36B8011540388B004560CC /* Bookmarks */,
@@ -6118,6 +6122,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6132,6 +6137,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6146,6 +6152,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6161,6 +6168,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6175,6 +6183,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6190,6 +6199,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "xc dbg.entitlements";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -6559,6 +6569,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",
@@ -6661,6 +6672,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",
@@ -6766,6 +6778,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",
@@ -6871,6 +6884,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",
@@ -6976,6 +6990,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",
@@ -7082,6 +7097,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = "maps.me dbg.entitlements";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/3party/MoPubSDK/AdNetworkSupport/Facebook/SDK",