aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/moe/yuuta/gplicense/Policy.java
diff options
context:
space:
mode:
authorYuutaW <17158086+trumeet@users.noreply.github.com>2019-05-16 16:03:24 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-05-16 16:03:24 -0700
commit1ae04c3850eb876c7f4d1956089741e747691b3a (patch)
tree0f6f2e105fe170613d9eac6d2bdec055b5cf0a8a /app/src/main/java/moe/yuuta/gplicense/Policy.java
parent757fe89c745fc404259bda6653c046c13a4e617f (diff)
downloadWorkMode-1ae04c3850eb876c7f4d1956089741e747691b3a.tar
WorkMode-1ae04c3850eb876c7f4d1956089741e747691b3a.tar.gz
WorkMode-1ae04c3850eb876c7f4d1956089741e747691b3a.tar.bz2
WorkMode-1ae04c3850eb876c7f4d1956089741e747691b3a.zip
refactor: remove #Anti-Crack
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app/src/main/java/moe/yuuta/gplicense/Policy.java')
-rw-r--r--app/src/main/java/moe/yuuta/gplicense/Policy.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/app/src/main/java/moe/yuuta/gplicense/Policy.java b/app/src/main/java/moe/yuuta/gplicense/Policy.java
deleted file mode 100644
index c261d82..0000000
--- a/app/src/main/java/moe/yuuta/gplicense/Policy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package moe.yuuta.gplicense;
-
-/**
- * Policy used by {@link LicenseChecker} to determine whether a user should have
- * access to the application.
- */
-public interface Policy {
-
- /**
- * Change these values to make it more difficult for tools to automatically
- * strip LVL protection from your APK.
- */
-
- /**
- * LICENSED means that the server returned back a valid license response
- */
- int LICENSED = 0x0100;
- /**
- * NOT_LICENSED means that the server returned back a valid license response
- * that indicated that the user definitively is not licensed
- */
- int NOT_LICENSED = 0x0231;
- /**
- * RETRY means that the license response was unable to be determined ---
- * perhaps as a result of faulty networking
- */
- int RETRY = 0x0123;
-
- /**
- * Provide results from contact with the license server. Retry counts are
- * incremented if the current value of response is RETRY. Results will be
- * used for any future policy decisions.
- *
- * @param response the result from validating the server response
- * @param rawData the raw server response data, can be null for RETRY
- */
- void processServerResponse(int response, ResponseData rawData);
-
- /**
- * Check if the user should be allowed access to the application.
- */
- boolean allowAccess();
-
- /**
- * Gets the licensing URL returned by the server that can enable access for unlicensed apps (e.g.
- * buy app on the Play Store).
- */
- String getLicensingUrl();
-} \ No newline at end of file