Latest 0.0.1
Homepage https://github.com/dommmel/TwentyFourSeven
License MIT
Platforms ios 8.0, requires ARC
Dependencies NSUserDefaults+SettingsBundle
Authors

TwentyFourHours is a library for apps that are supposed to run all day long e.g. as a public display.
It lets you specify when the app is allowed to go idle and when not.

As of Version 0.0.1 you can specify

  • the hour of the day after which the app is NOT allowed to go idle
  • the hour of the day after which the app IS allowed to go idle
  • for a) Monday – Friday and b) Saturday.

On Sunday the app is always allowed to go idle

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party code like NSUserDefaults+SettingsBundle in your projects.

Podfile

pod 'TwentyFourSeven'

Usage

Add the setting pane to your existing Settings.bundle’s Root.plist

<dict>
  <key>Type</key>
  <string>PSChildPaneSpecifier</string>
  <key>Title</key>
  <string>Shop Hours</string>
  <key>File</key>
  <string>ShopHours</string>
</dict>

Initialize the Scheduler (objective-c)

in your AppDelegate.m file

#import "AppDelegate.h"

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    [TwentyFourSeven sharedInstance];
}
@end

in your AppDelegate.h file

#import "TwentyFourSeven-Swift.h"

Latest podspec

{
    "name": "TwentyFourSeven",
    "version": "0.0.1",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/dommmel/TwentyFourSeven",
    "authors": {
        "Dominik Heier": "[email protected]"
    },
    "summary": "Schedule when your app should be allowed to go idle and when it should not",
    "source": {
        "git": "https://github.com/dommmel/TwentyFourSeven.git",
        "tag": "0.0.1"
    },
    "source_files": "*.swift",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "resource_bundles": {
        "Settings": "ShopHours.plist"
    },
    "dependencies": {
        "NSUserDefaults+SettingsBundle": [
            "~> 0.0.2"
        ]
    }
}

Pin It on Pinterest

Share This