diff --git a/iAppInfos/iAppInfos.xcodeproj/project.xcworkspace/xcshareddata/iAppInfos.xccheckout b/iAppInfos/iAppInfos.xcodeproj/project.xcworkspace/xcshareddata/iAppInfos.xccheckout
index 5866bbf..a68137b 100644
--- a/iAppInfos/iAppInfos.xcodeproj/project.xcworkspace/xcshareddata/iAppInfos.xccheckout
+++ b/iAppInfos/iAppInfos.xcodeproj/project.xcworkspace/xcshareddata/iAppInfos.xccheckout
@@ -5,7 +5,7 @@
IDESourceControlProjectFavoriteDictionaryKey
IDESourceControlProjectIdentifier
- D6008877-C990-4257-A197-5743A20C79CE
+ CBA42CAF-EF54-400E-80A7-7CD4D46CE682
IDESourceControlProjectName
iAppInfos
IDESourceControlProjectOriginsDictionary
diff --git a/iAppInfos/iAppInfos/iAppInfos/AppInformationsManager.m b/iAppInfos/iAppInfos/iAppInfos/AppInformationsManager.m
index 1601ef5..c0c7582 100644
--- a/iAppInfos/iAppInfos/iAppInfos/AppInformationsManager.m
+++ b/iAppInfos/iAppInfos/iAppInfos/AppInformationsManager.m
@@ -228,7 +228,7 @@ - (id)infoForKey:(NSString *)key
return [self freeDiskSpace];
}
else if ([key isEqualToString:AppVersionManagerKeyBatteryLevel]) {
- int batteryLevel = [self batteryLevel];
+ int batteryLevel = (int)[self batteryLevel];
return [NSString stringWithFormat:@"%d%%",batteryLevel];
}
else if ([key isEqualToString:AppVersionManagerKeyMobileProvisionning]) {
diff --git a/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.h b/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.h
index f8c5cc4..5212eb9 100644
--- a/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.h
+++ b/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.h
@@ -19,6 +19,12 @@
#define MobileProvisioningGetTaskAllow @"get-task-allow"
#define MobileProvisioningApsEnvironment @"aps-environment"
+typedef NS_ENUM(NSUInteger, JMOMobileProvisionningPushConfiguration) {
+ JMOMobileProvisionningPushConfigurationDisable,
+ JMOMobileProvisionningPushConfigurationDevelopment,
+ JMOMobileProvisionningPushConfigurationProduction
+};
+
@interface JMOMobileProvisionning : NSObject
@property (strong, nonatomic) NSDictionary *summary;
@@ -32,6 +38,7 @@
@property (strong, nonatomic) NSString *teamName;
@property (strong, nonatomic) NSString *isDevMobileProvisioning;
@property (strong, nonatomic) NSString *apsEnvironment;
+@property (assign, readonly, nonatomic) JMOMobileProvisionningPushConfiguration pushConfiguration;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
diff --git a/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.m b/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.m
index 3fe4efd..1c9ba37 100644
--- a/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.m
+++ b/iAppInfos/iAppInfos/iAppInfos/JMOMobileProvisionning.m
@@ -63,6 +63,17 @@ - (instancetype)initWithDictionary:(NSDictionary *)dict
return self;
}
+- (JMOMobileProvisionningPushConfiguration)pushConfiguration
+{
+ if ([_apsEnvironment isEqualToString:@"development"]) {
+ return JMOMobileProvisionningPushConfigurationDevelopment;
+ } else if ([_apsEnvironment isEqualToString:@"production"]) {
+ return JMOMobileProvisionningPushConfigurationProduction;
+ }
+
+ return JMOMobileProvisionningPushConfigurationDisable;
+}
+
- (NSDictionary *)summary //Overided setter, to change keyName
{
NSMutableDictionary *editedDict = [_summary mutableCopy];