Environment tags
import AppfigurateLibrary
@objcMembers class Configuration: APLConfiguration {
@IntPropertyList(description: "Quality rating", restart: false, values: [
"{DEV,TEST}Low": 10,
"{PVT}Average": 50,
"Excellent": 95
])
var rating: Int
override func environmentTags() -> [String] {
return ["Dev", "Test", "PVT"]
}
override func reset() {
rating = 10
}
...@import AppfigurateLibrary;
@interface Configuration : APLConfiguration
@property(nonatomic, assign) NSInteger rating;
@end
@implementation Configuration
INT_PROPERTY_LIST(rating, @"Quality rating", NO, @{
@"{DEV,TEST}Low": @10,
@"{PVT}Average": @50,
@"Excellent": @95
});
- (NSArray<NSString*>*) environmentTags {
return @{@"Dev", @"Test", @"PVT"};
}
- (void) reset {
self.rating = 10;
}
...



Last updated