Skip to content

Commit

Permalink
Updated version names, removed unused extension functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cioccarellia committed Mar 15, 2019
1 parent b504e38 commit aa6f9fd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ allprojects {
And the dependency to your module build.gradle file:
```gradle
dependencies {
implementation 'com.github.AndreaCioccarelli:BillingProtector:1.3.0'
implementation 'com.github.AndreaCioccarelli:BillingProtector:1.3.1'
}
```

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

### Getting root binary path
```kotlin
toast(bp.getRootBinatyPath())
bp.getRootBinatyPath()
```

This method returns the absolute path of the `su` binary, if present. If not, an empty string is returned.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.andreacioccarelli.billingprotectorsample"
minSdkVersion 14
targetSdkVersion 28
versionCode 7
versionName "1.3.0"
versionCode 8
versionName "1.3.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 7
versionName "1.3.0"
versionCode 8
versionName "1.3.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import android.content.pm.PackageManager
import com.andreacioccarelli.billingprotector.data.DetectionCause
import com.andreacioccarelli.billingprotector.data.PirateApp
import com.andreacioccarelli.billingprotector.data.SelectionCriteria
import com.andreacioccarelli.billingprotector.extensions.removeDuplicatedPackages
import com.andreacioccarelli.billingprotector.extensions.valueOrNull
import com.andreacioccarelli.billingprotector.utils.RootUtils
import com.andreacioccarelli.billingprotector.utils.assembleAppList

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

if (label.matches(regexp))
foundThreats.add(it)
if (label.matches(regexp)) foundThreats.add(it)
}
}
}
}
}

return foundThreats.removeDuplicatedPackages()
return foundThreats
}
}

This file was deleted.

0 comments on commit aa6f9fd

Please sign in to comment.