Skip to content

Commit

Permalink
New SDK (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Matúš Šikyňa <matus.sikyna@ahead-itec.com>
  • Loading branch information
msikyna and matussikyna authored Mar 25, 2024
1 parent 0ef5040 commit 0c9718f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion FreeRASPDemoApp/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

dependencies {
// freeRASP SDK
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.0'
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.2'

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.12.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,58 +29,58 @@ class TalsecApplication : Application(), ThreatListener.ThreatDetected {

override fun onRootDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onRootDetected")
}

override fun onDebuggerDetected() {
// Set your reaction
// Triggered only in release build
TODO("Not yet implemented")
println("onDebuggerDetected")
}

override fun onEmulatorDetected() {
// Set your reaction
// Triggered only in release build
TODO("Not yet implemented")
println("onEmulatorDetected")
}

override fun onTamperDetected() {
// Set your reaction
// Triggered only in release build
TODO("Not yet implemented")
println("onTamperDetected")
}

override fun onUntrustedInstallationSourceDetected() {
// Set your reaction
// Triggered only in release build
TODO("Not yet implemented")
println("onUntrustedInstallationSourceDetected")
}

override fun onHookDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onHookDetected")
}

override fun onDeviceBindingDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onDeviceBindingDetected")
}

override fun onObfuscationIssuesDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onObfuscationIssuesDetected")
}

// This is optional. Use only if you are interested in device state information like device lock and HW backed keystore state
private val deviceStateListener = object : ThreatListener.DeviceState {
override fun onUnlockedDeviceDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onUnlockedDeviceDetected")
}

override fun onHardwareBackedKeystoreNotAvailableDetected() {
// Set your reaction
TODO("Not yet implemented")
println("onHardwareBackedKeystoreNotAvailableDetected")
}
}

Expand Down
2 changes: 1 addition & 1 deletion FreeRASPDemoApp/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ':app'
rootProject.name = "freeRASPDemoApp"
rootProject.name = "FreeRASPDemoApp"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Set dependencies in your :app module's `build.gradle`:
dependencies {
// freeRASP SDK
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.0'
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.2'
...
```

Expand Down

0 comments on commit 0c9718f

Please sign in to comment.