From 61d5ccde6ccad258245d06167317dc5c8f145c07 Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Sun, 25 Jan 2015 18:03:54 +0100 Subject: [PATCH] Further describe the public api interface --- src/org/microg/gms/PublicApi.java | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/org/microg/gms/PublicApi.java b/src/org/microg/gms/PublicApi.java index 00092ba..1766f22 100644 --- a/src/org/microg/gms/PublicApi.java +++ b/src/org/microg/gms/PublicApi.java @@ -16,8 +16,24 @@ package org.microg.gms; +/** + * An class, method or field is named public, if it can be used with the original play services + * client library. + */ public @interface PublicApi { - String since() default "-1"; + /** + * @return the first version that contains the given class, method or field + */ + String since() default "0"; - String until() default "-1"; + /** + * @return the last version that contains the given class, method or field + */ + String until() default "latest"; + + /** + * @return used on a method or field to exclude it from the public api if the corresponding + * class was marked as public api + */ + boolean exclude() default false; }