forked from mirrors/linphone-iphone
show version number in settings
This commit is contained in:
parent
65071364a7
commit
32bbedefc8
3 changed files with 28 additions and 1 deletions
|
|
@ -159,6 +159,11 @@
|
|||
NSMutableArray *preferences = [rootSettings objectForKey:@"PreferenceSpecifiers"];
|
||||
NSMutableDictionary *defaultsToRegister = [[NSMutableDictionary alloc] initWithCapacity:[preferences count]];
|
||||
|
||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||
// NSString *appDisplayName = [infoDictionary objectForKey:@"CFBundleDisplayName"];
|
||||
NSString *majorVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
||||
// NSString *minorVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
|
||||
|
||||
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"YES", @"debugenable_preference",
|
||||
@"YES", @"enable_video_preference",
|
||||
|
|
@ -175,13 +180,15 @@
|
|||
@"ringtone_01_1600", @"ringtone_preference",
|
||||
@"ringtone_01_1600", @"level_ringtone_preference",
|
||||
@"NO", @"lockdoors_preference",
|
||||
majorVersion, @"version_preference",
|
||||
nil];
|
||||
|
||||
[defaultsToRegister addEntriesFromDictionary:appDefaults];
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultsToRegister];
|
||||
[defaultsToRegister release];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setValue:majorVersion forKey:@"version_preference"];
|
||||
}
|
||||
|
||||
/**/
|
||||
|
|
|
|||
|
|
@ -168,6 +168,24 @@
|
|||
<key>Type</key>
|
||||
<string>PSToggleSwitchSpecifier</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>AutocapitalizationType</key>
|
||||
<string>None</string>
|
||||
<key>AutocorrectionType</key>
|
||||
<string>No</string>
|
||||
<key>DefaultValue</key>
|
||||
<string></string>
|
||||
<key>IsSecure</key>
|
||||
<false/>
|
||||
<key>Key</key>
|
||||
<string>version_preference</string>
|
||||
<key>KeyboardType</key>
|
||||
<string>Alphabet</string>
|
||||
<key>Title</key>
|
||||
<string>Version</string>
|
||||
<key>Type</key>
|
||||
<string>PSTitleValueSpecifier</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>StringsTable</key>
|
||||
<string>Root</string>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
<string>buschjaeger_icon_57@2x.png</string>
|
||||
<string>buschjaeger_icon_72@2x.png</string>
|
||||
</array>
|
||||
<key>UIPrerenderedIcon</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue