Latest 0.0.1
Homepage https://github.com/kazu0620/SRGTimeCheatCapturer
License MIT
Platforms ios 6.0, requires ARC
Dependencies Reachability
Authors

Version
License
Platform

SRGTimeCheatCapturer validate device time by ntp client and capture time cheaters.

Examples

Open up the AppDelegate.m file and edit applicationDidBecomeActive: to be like so:

- (void)applicationDidBecomeActive:(UIApplication *)application {

    SRGTimeCheatCapturer *capturer = [SRGTimeCheatCapturer new];
    [capturer checkWithOnCheatCaptured:^(){
        // Here, you can show warning or impose a penalty if user cheating device time. 
    }];

}

See the demo project for more examples.

Setup Instructions

Install with CocoaPods by adding the following to your Podfile:

pod 'SRGTimeCheatCapturer', '~> 0.0.1'

Latest podspec

{
    "name": "SRGTimeCheatCapturer",
    "version": "0.0.1",
    "summary": "SRGTimeCheatCapturer can validate device time and capture time cheaters by ntp client.",
    "homepage": "https://github.com/kazu0620/SRGTimeCheatCapturer",
    "license": "MIT",
    "authors": {
        "Kazuhiro Sakamoto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kazu0620/SRGTimeCheatCapturer.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": [
        "SRGTimeCheatCapturer/**/*.{h,m}",
        "Library/**/*.{h,m}"
    ],
    "requires_arc": true,
    "dependencies": {
        "Reachability": [
            "3.2"
        ]
    },
    "prefix_header_contents": "#import n#define NTP_Logging(fmt, ...)n#define LogInProduction(fmt, ...)     NSLog((@"%@|" fmt), [NSString stringWithFormat: @"%16s",         [[[self class] description] UTF8String]], ##__VA_ARGS__)nn#ifdef IOS_NTP_LOGGINGn    #warning "IOS_NTP_LOGGING enabled"n    #undef NTP_Loggingn    #define NTP_Logging(fmt, ...)         NSLog((@"%@|" fmt), [NSString stringWithFormat: @"%16s",             [[[self class] description] UTF8String]], ##__VA_ARGS__)n#endifn"
}

Pin It on Pinterest

Share This