Skip to content

It is converted swift language from JailBrokenDector project

License

Notifications You must be signed in to change notification settings

ozzotto/MOJailBrokenDector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MOJailBrokenDector

I`m inspired JailBrokenDector Project. But JailBrokenDector proejct is writed Objective-C. Then I rewrite this code from Objective-C to Swift 2.0.

How to use it

// using do-try-catch
do {
	try MOJailBrokenDector.isBroken()
} catch JailBrokenError.Detected(let fileName) {
	print("Device is broken : \(fileName)")
} catch {
	print("Error : \(error)")
}

// using guard
guard let isBroken = try? MOJailBrokenDector.isBroken() else {
    print("Device is broken")
    return;
}

But..

I don't have jail broken device.. then, I didn`t test real device.

About

It is converted swift language from JailBrokenDector project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%