Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-10-25 13:51:52 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d9ebfef9f125401896c7d9bf08cf922ec52d27b4
d9ebfef9
1 parent
55076383
add applicationData trackers
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
View file @
d9ebfef
...
...
@@ -1053,6 +1053,34 @@ static const char* jailbreak_apps[] =
}
///////////////////////////////////////////////////////////////////////////////
// - (NSDictionary *)applicationData
// {
// //Application Data Hack
// NSBundle *mainBundle = [NSBundle mainBundle];
// NSMutableDictionary *applicationData = [NSMutableDictionary dictionaryWithCapacity:3];
// if ([Warply get].length != 0) {
// [applicationData setValue:[Warply get] forKey:@"sdk_version"];
// }
// NSString *CFBundleIdentifier = [mainBundle objectForInfoDictionaryKey:@"CFBundleIdentifier"];
// if (CFBundleIdentifier.length != 0) {
// [applicationData setValue:CFBundleIdentifier forKey:@"bundle_identifier"];
// }
// NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
// if (CFBundleShortVersionString.length != 0) {
// [applicationData setValue:CFBundleShortVersionString forKey:@"app_version"];
// }
// NSString *CFBundleVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"];
// if (CFBundleVersion.length != 0) {
// [applicationData setValue:CFBundleVersion forKey:@"app_build"];
// }
// return applicationData;
// }
///////////////////////////////////////////////////////////////////////////////
-
(
NSDictionary
*
)
applicationData
{
//Application Data Hack
...
...
@@ -1063,11 +1091,6 @@ static const char* jailbreak_apps[] =
[
applicationData
setValue
:[
Warply
get
]
forKey
:
@"sdk_version"
];
}
NSString
*
CFBundleIdentifier
=
[
mainBundle
objectForInfoDictionaryKey
:
@"CFBundleIdentifier"
];
if
(
CFBundleIdentifier
.
length
!=
0
)
{
[
applicationData
setValue
:
CFBundleIdentifier
forKey
:
@"bundle_identifier"
];
}
NSString
*
CFBundleShortVersionString
=
[
mainBundle
objectForInfoDictionaryKey
:
@"CFBundleShortVersionString"
];
if
(
CFBundleShortVersionString
.
length
!=
0
)
{
[
applicationData
setValue
:
CFBundleShortVersionString
forKey
:
@"app_version"
];
...
...
Please
register
or
login
to post a comment