Browse Source

jailbreak test added

pull/1/head
gme_2 6 years ago
parent
commit
30ceb35a44
  1. 2
      GMERemittance/AppDelegate.swift
  2. 9
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift
  3. 80
      Pods/Pods.xcodeproj/xcshareddata/xcschemes/DTTJailbreakDetection.xcscheme

2
GMERemittance/AppDelegate.swift

@ -44,7 +44,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
IQKeyboardManager.shared.enable = true
FirebaseApp.configure()
Fabric.with([Crashlytics.self])
Fabric.sharedSDK().debug = true
Messaging.messaging().delegate = self
registerForNotification(application: application)

9
GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift

@ -10,6 +10,7 @@ import UIKit
import LTMorphingLabel
import Localize_Swift
import DTTJailbreakDetection
class SplashScreenViewController: UIViewController {
@ -99,6 +100,7 @@ class SplashScreenViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
checkJailBreak()
self.setup()
}
@ -117,6 +119,13 @@ class SplashScreenViewController: UIViewController {
}
// MARK: IBActions
private func checkJailBreak() {
if (DTTJailbreakDetection.isJailbroken()) {
self.alert(message: "Your device is jail broken.", title: "Alert!") {
exit(0)
}
}
}
@IBAction func login(_ sender: UIButton) {
self.presenter?.login()

80
Pods/Pods.xcodeproj/xcshareddata/xcschemes/DTTJailbreakDetection.xcscheme

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "88484A82F36386C24D77F693001A23D5"
BuildableName = "DTTJailbreakDetection.framework"
BlueprintName = "DTTJailbreakDetection"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "88484A82F36386C24D77F693001A23D5"
BuildableName = "DTTJailbreakDetection.framework"
BlueprintName = "DTTJailbreakDetection"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "88484A82F36386C24D77F693001A23D5"
BuildableName = "DTTJailbreakDetection.framework"
BlueprintName = "DTTJailbreakDetection"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading…
Cancel
Save