Skip to content

Commit

Permalink
SNP-1864 move simulator checks from first to last
Browse files Browse the repository at this point in the history
  • Loading branch information
KASAFF committed Sep 11, 2024
1 parent 569155d commit 29b5a3b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Utils/BrightSide/BrightSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ public final class BrightSide {

/// Method return false, if we can detect some common for jailbroken deivce files or can write to device
public static func isBright() -> Bool {
// Check 1 : check if current device is simulator
if isSimulator() {
return true
}

// Check 2 : Suspicious URL Schemes:
// Check 1 : Suspicious URL Schemes:
///Warning: Schemes should be added in Info.plist LSApplicationQueriesSchemes in other case check will always return false
if suspiciousURLs.contains(where: { canOpenUrl(urlString: $0) }) {
return false
Expand All @@ -36,6 +32,11 @@ public final class BrightSide {
return false
}

// Check 4 : check if current device is simulator
if isSimulator() {
return true
}

return true

}
Expand Down

0 comments on commit 29b5a3b

Please sign in to comment.