Skip to content

Commit aa6f9fd

Browse files
committed
Updated version names, removed unused extension functions
1 parent b504e38 commit aa6f9fd

File tree

5 files changed

+8
-21
lines changed

5 files changed

+8
-21
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ allprojects {
3535
And the dependency to your module build.gradle file:
3636
```gradle
3737
dependencies {
38-
implementation 'com.github.AndreaCioccarelli:BillingProtector:1.3.0'
38+
implementation 'com.github.AndreaCioccarelli:BillingProtector:1.3.1'
3939
}
4040
```
4141

@@ -83,7 +83,7 @@ The method `getPirateAppsList()` instead returns a list of `PirateApp`s, that yo
8383

8484
### Getting root binary path
8585
```kotlin
86-
toast(bp.getRootBinatyPath())
86+
bp.getRootBinatyPath()
8787
```
8888

8989
This method returns the absolute path of the `su` binary, if present. If not, an empty string is returned.

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.andreacioccarelli.billingprotectorsample"
99
minSdkVersion 14
1010
targetSdkVersion 28
11-
versionCode 7
12-
versionName "1.3.0"
11+
versionCode 8
12+
versionName "1.3.1"
1313
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1414
}
1515
buildTypes {

library/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 14
1212
targetSdkVersion 28
13-
versionCode 7
14-
versionName "1.3.0"
13+
versionCode 8
14+
versionName "1.3.1"
1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1616
}
1717

library/src/main/java/com/andreacioccarelli/billingprotector/BillingProtector.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import android.content.pm.PackageManager
77
import com.andreacioccarelli.billingprotector.data.DetectionCause
88
import com.andreacioccarelli.billingprotector.data.PirateApp
99
import com.andreacioccarelli.billingprotector.data.SelectionCriteria
10-
import com.andreacioccarelli.billingprotector.extensions.removeDuplicatedPackages
11-
import com.andreacioccarelli.billingprotector.extensions.valueOrNull
1210
import com.andreacioccarelli.billingprotector.utils.RootUtils
1311
import com.andreacioccarelli.billingprotector.utils.assembleAppList
1412

@@ -68,14 +66,13 @@ class BillingProtector(private val context: Context) {
6866
} else {
6967
val label = installedApp.loadLabel(context.packageManager)
7068

71-
if (label.matches(regexp))
72-
foundThreats.add(it)
69+
if (label.matches(regexp)) foundThreats.add(it)
7370
}
7471
}
7572
}
7673
}
7774
}
7875

79-
return foundThreats.removeDuplicatedPackages()
76+
return foundThreats
8077
}
8178
}

library/src/main/java/com/andreacioccarelli/billingprotector/extensions/StringExtensions.kt

-10
This file was deleted.

0 commit comments

Comments
 (0)