Skip to content

Commit 4b6757f

Browse files
authored
New version (#42)
1 parent cb128a3 commit 4b6757f

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

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.6.0'
37+
implementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:11.1.0'
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: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.aheaditec.talsec.demoapp
22

33
import android.app.Application
44
import android.util.Log
5+
import com.aheaditec.talsec_security.security.api.SuspiciousAppInfo
56
import com.aheaditec.talsec_security.security.api.Talsec
67
import com.aheaditec.talsec_security.security.api.TalsecConfig
78
import com.aheaditec.talsec_security.security.api.ThreatListener
@@ -15,13 +16,13 @@ class TalsecApplication : Application(), ThreatListener.ThreatDetected {
1516
// Copy the result from logcat and assign to expectedSigningCertificateHashBase64
1617
// Log.e("SigningCertificateHash", Utils.computeSigningCertificateHash(this))
1718

18-
val config = TalsecConfig(
19+
val config = TalsecConfig.Builder(
1920
expectedPackageName,
20-
expectedSigningCertificateHashBase64,
21-
watcherMail,
22-
supportedAlternativeStores,
23-
isProd
24-
)
21+
expectedSigningCertificateHashBase64)
22+
.watcherMail(watcherMail)
23+
.supportedAlternativeStores(supportedAlternativeStores)
24+
.prod(isProd)
25+
.build()
2526

2627
ThreatListener(this, deviceStateListener).registerListener(this)
2728
Talsec.start(this, config)
@@ -71,6 +72,11 @@ class TalsecApplication : Application(), ThreatListener.ThreatDetected {
7172
println("onObfuscationIssuesDetected")
7273
}
7374

75+
override fun onMalwareDetected(p0: MutableList<SuspiciousAppInfo>?) {
76+
// Set your reaction
77+
println("onMalwareDetected")
78+
}
79+
7480
// This is optional. Use only if you are interested in device state information like device lock and HW backed keystore state
7581
private val deviceStateListener = object : ThreatListener.DeviceState {
7682
override fun onUnlockedDeviceDetected() {

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ Don’t miss out on any updates and explore the changelog to see how we’re con
7575
If you have any ideas for improvements, feel free to [raise an issue](https://github.com/talsec/Free-RASP-Android/issues) and mark it with an **enhancement** label. We track these enhancements using [GitHub Projects](https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects) to keep tasks organized and connected to relevant issues or pull requests.
7676

7777
You can check out the project board [here](https://github.com/orgs/talsec/projects/2).
78+
79+
# :page_facing_up: License
80+
This project is provided as freemium software, i.e. there is a fair usage policy that imposes some limitations on the free usage. The SDK software consists of open-source and binary parts, which is the property of Talsec. The open-source part is licensed under the MIT License - see the LICENSE file for details.

0 commit comments

Comments
 (0)