Skip to content

Commit 0c9718f

Browse files
msikynamatussikyna
andauthored
New SDK (#32)
Co-authored-by: Matúš Šikyňa <matus.sikyna@ahead-itec.com>
1 parent 0ef5040 commit 0c9718f

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

FreeRASPDemoApp/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434

3535
dependencies {
3636
// freeRASP SDK
37-
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.0'
37+
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.2'
3838

3939
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
4040
implementation 'androidx.core:core-ktx:1.12.0'

FreeRASPDemoApp/app/src/main/java/com/aheaditec/talsec/demoapp/TalsecApplication.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,58 +29,58 @@ class TalsecApplication : Application(), ThreatListener.ThreatDetected {
2929

3030
override fun onRootDetected() {
3131
// Set your reaction
32-
TODO("Not yet implemented")
32+
println("onRootDetected")
3333
}
3434

3535
override fun onDebuggerDetected() {
3636
// Set your reaction
3737
// Triggered only in release build
38-
TODO("Not yet implemented")
38+
println("onDebuggerDetected")
3939
}
4040

4141
override fun onEmulatorDetected() {
4242
// Set your reaction
4343
// Triggered only in release build
44-
TODO("Not yet implemented")
44+
println("onEmulatorDetected")
4545
}
4646

4747
override fun onTamperDetected() {
4848
// Set your reaction
4949
// Triggered only in release build
50-
TODO("Not yet implemented")
50+
println("onTamperDetected")
5151
}
5252

5353
override fun onUntrustedInstallationSourceDetected() {
5454
// Set your reaction
5555
// Triggered only in release build
56-
TODO("Not yet implemented")
56+
println("onUntrustedInstallationSourceDetected")
5757
}
5858

5959
override fun onHookDetected() {
6060
// Set your reaction
61-
TODO("Not yet implemented")
61+
println("onHookDetected")
6262
}
6363

6464
override fun onDeviceBindingDetected() {
6565
// Set your reaction
66-
TODO("Not yet implemented")
66+
println("onDeviceBindingDetected")
6767
}
6868

6969
override fun onObfuscationIssuesDetected() {
7070
// Set your reaction
71-
TODO("Not yet implemented")
71+
println("onObfuscationIssuesDetected")
7272
}
7373

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

8181
override fun onHardwareBackedKeystoreNotAvailableDetected() {
8282
// Set your reaction
83-
TODO("Not yet implemented")
83+
println("onHardwareBackedKeystoreNotAvailableDetected")
8484
}
8585
}
8686

FreeRASPDemoApp/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
include ':app'
2-
rootProject.name = "freeRASPDemoApp"
2+
rootProject.name = "FreeRASPDemoApp"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Set dependencies in your :app module's `build.gradle`:
6565
6666
dependencies {
6767
// freeRASP SDK
68-
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.0'
68+
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:9.0.2'
6969
...
7070
```
7171

0 commit comments

Comments
 (0)