aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java')
-rw-r--r--app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java b/app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java
new file mode 100644
index 0000000..63e7ae3
--- /dev/null
+++ b/app/src/main/java/moe/yuuta/gplicense/NullDeviceLimiter.java
@@ -0,0 +1,16 @@
+package moe.yuuta.gplicense;
+
+/**
+ * A DeviceLimiter that doesn't limit the number of devices that can use a
+ * given user's license.
+ * <p>
+ * Unless you have reason to believe that your application is being pirated
+ * by multiple users using the same license (signing in to Market as the same
+ * user), we recommend you use this implementation.
+ */
+public class NullDeviceLimiter implements DeviceLimiter {
+
+ public int isDeviceAllowed(String userId) {
+ return Policy.LICENSED;
+ }
+} \ No newline at end of file