Skip to content

Commit

Permalink
Update tests and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Nov 10, 2018
1 parent 7ce76be commit 0a02b13
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void verifyUnauthorizedApps_ALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
.callback(new PiracyCheckerCallback() {
@Override
public void allow() {
Expand Down Expand Up @@ -172,7 +172,7 @@ public void verifyThirdPartyStores_ALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
.callback(new PiracyCheckerCallback() {
@Override
public void allow() {
Expand Down Expand Up @@ -201,7 +201,7 @@ public void verifyDeepPirate_ALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableFoldersCheck(true)
.enableFoldersCheck()
.callback(new PiracyCheckerCallback() {
@Override
public void allow() {
Expand Down Expand Up @@ -230,7 +230,7 @@ public void verifyDebug_DONTALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableDebugCheck(true)
.enableDebugCheck()
.callback(new PiracyCheckerCallback() {
@Override
public void allow() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void verifyUnauthorizedApps_DONTALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
.blockIfUnauthorizedAppUninstalled("piracychecker_preferences",
"app_unauthorized")
.callback(new PiracyCheckerCallback() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void verifyBlockUnauthorizedApps_DONTALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
.blockIfUnauthorizedAppUninstalled("piracychecker_preferences",
"app_unauthorized")
.callback(new PiracyCheckerCallback() {
Expand Down Expand Up @@ -75,7 +75,7 @@ public void verifyUnauthorizedApps_ALLOW() throws Throwable {
@Override
public void run() {
new PiracyChecker(InstrumentationRegistry.getTargetContext())
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
.callback(new PiracyCheckerCallback() {
@Override
public void allow() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class KotlinActivity : AppCompatActivity() {
fun verifyEmulator() {
piracyChecker {
display(piracyCheckerDisplay)
enableEmulatorCheck()
enableEmulatorCheck(false)
}.start()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,29 @@ public void verifyInstallerId(View view) {
public void verifyUnauthorizedApps(View view) {
new PiracyChecker(this)
.display(piracyCheckerDisplay)
.enableUnauthorizedAppsCheck(true)
.enableUnauthorizedAppsCheck()
//.blockIfUnauthorizedAppUninstalled("license_checker", "block")
.start();
}

public void verifyStores(View view) {
new PiracyChecker(this)
.display(piracyCheckerDisplay)
.enableStoresCheck(true)
.enableStoresCheck()
.start();
}

public void verifyDebug(View view) {
new PiracyChecker(this)
.display(piracyCheckerDisplay)
.enableDebugCheck(true)
.enableDebugCheck()
.start();
}

public void verifyEmulator(View view) {
new PiracyChecker(this)
.display(piracyCheckerDisplay)
.enableEmulatorCheck(true)
.enableEmulatorCheck(false)
.start();
}
}

0 comments on commit 0a02b13

Please sign in to comment.