Skip to content

Commit 96306a4

Browse files
committed
feat add android sdk 16.0.1
1 parent 18cca72 commit 96306a4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version '1.0-SNAPSHOT'
33

44
buildscript {
55
ext.kotlin_version = '2.1.0'
6-
ext.talsec_version = '15.1.0'
6+
ext.talsec_version = '16.0.1'
77
repositories {
88
google()
99
mavenCentral()

android/src/main/kotlin/com/aheaditec/freerasp/Threat.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ internal sealed class Threat(val value: Int) {
3737
object Screenshot : Threat(705651459)
3838

3939
object ScreenRecording : Threat(64690214)
40+
41+
object MultiInstance : Threat(859307284)
4042
}

android/src/main/kotlin/com/aheaditec/freerasp/handlers/PluginThreatHandler.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ internal object PluginThreatHandler : ThreatDetected, DeviceState {
9292
notify(suspiciousApps)
9393
}
9494

95+
override fun onMultiInstanceDetected() {
96+
notify(Threat.MultiInstance)
97+
}
98+
9599
private fun notify(threat: Threat) {
96100
listener?.threatDetected(threat) ?: detectedThreats.add(threat)
97101
}

0 commit comments

Comments
 (0)