File tree 2 files changed +17
-19
lines changed
library/src/main/java/com/andreacioccarelli/billingprotector
2 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ allprojects {
32
32
And the dependency to your module build.gradle file:
33
33
``` gradle
34
34
dependencies {
35
- implementation 'com.github.AndreaCioccarelli:BillingProtector:1.1.0 '
35
+ implementation 'com.github.AndreaCioccarelli:BillingProtector:1.1.1 '
36
36
}
37
37
```
38
38
Original file line number Diff line number Diff line change @@ -34,28 +34,26 @@ class BillingProtector(private val context: Context) {
34
34
35
35
installedApps.forEach { installedApp ->
36
36
pirateApps.forEach {
37
- if (installedApp.packageName == " ru.tQFiUIAj.NfssCFlDV" ) {
38
- when (it.criteria) {
39
- SelectionCriteria .SLICE -> {
40
- if (installedApp.packageName.contains(it.field)) return true
41
- }
42
-
43
- SelectionCriteria .MATCH -> {
44
- if (it.field == installedApp.packageName) return true
45
- }
46
-
47
- SelectionCriteria .CLASS_NAME -> {
48
- if (it.name == installedApp.className) return true
49
- }
50
-
51
- SelectionCriteria .LABEL -> {
52
- if (it.name == installedApp.nonLocalizedLabel) return true
53
- }
37
+ when (it.criteria) {
38
+ SelectionCriteria .SLICE -> {
39
+ if (installedApp.packageName.contains(it.field)) return true
54
40
}
55
- }
56
41
42
+ SelectionCriteria .MATCH -> {
43
+ if (it.field == installedApp.packageName) return true
44
+ }
45
+
46
+ SelectionCriteria .CLASS_NAME -> {
47
+ if (it.name == installedApp.className) return true
48
+ }
49
+
50
+ SelectionCriteria .LABEL -> {
51
+ if (it.name == installedApp.nonLocalizedLabel) return true
52
+ }
53
+ }
57
54
}
58
55
}
56
+
59
57
return false
60
58
}
61
59
You can’t perform that action at this time.
0 commit comments