Skip to content

Commit

Permalink
Closing API, making necessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaciejm committed Dec 5, 2024
1 parent f80280b commit 4a9f773
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

val versionCode by extra { 7 }
val versionName by extra { "0.6.3" }
val versionName by extra { "0.6.4" }
val minSdkVersion by extra { 24 }
val compileSdkVersion by extra { 34 }
val targetSdkVersion by extra { 34 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ interface CheckType
* The enum containing all debugger checks.
*/
enum class DebuggerChecks : CheckType {
DebuggerCheck, Debuggable, DebugField, DebuggerConnected
DebuggerCheck, Debuggable, DebugField, DebuggerConnected;

override fun toString(): String = "Debugger: $name"
}

/**
Expand All @@ -32,7 +34,9 @@ enum class EmulatorChecks : CheckType {
SuspiciousProperties,
Mounts,
CPU,
Modules
Modules;

override fun toString(): String = "Emulator: $name"
}

/**
Expand All @@ -45,5 +49,7 @@ enum class RootChecks : CheckType {
RootApps,
RootCloakingApps,
WritablePaths,
SuspiciousProperties
SuspiciousProperties;

override fun toString(): String = "Root: $name"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.securevale.rasp.android.check
/**
* Result used by [DefaultCheck] (which is implemented by all internal check classes).
*/
sealed interface CheckResult {
internal sealed interface CheckResult {
data object Vulnerable : CheckResult
data object Secure : CheckResult
data object Ignored : CheckResult
Expand All @@ -12,4 +12,4 @@ sealed interface CheckResult {
/**
* Helper function for checking whether vulnerability was found.
*/
fun CheckResult.vulnerabilityFound() = this is CheckResult.Vulnerable
internal fun CheckResult.vulnerabilityFound() = this is CheckResult.Vulnerable
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import com.securevale.rasp.android.root.RootCheck
* @param debugger whether checks for debug should be triggered.
* @param root whether checks for root should be triggered.
*/
class ChecksMediator(
@PublishedApi
internal class ChecksMediator(
context: Context,
emulator: Boolean,
debugger: Boolean,
Expand Down

0 comments on commit 4a9f773

Please sign in to comment.