2015-01-25 16:59:09 +00:00
|
|
|
/*
|
2015-09-28 16:30:12 +00:00
|
|
|
* Copyright 2013-2015 microG Project Team
|
2015-01-25 16:59:09 +00:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-02-01 23:02:32 +00:00
|
|
|
package org.microg.gms.common;
|
2015-01-25 16:59:09 +00:00
|
|
|
|
2015-01-25 23:42:56 +00:00
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
2015-01-25 17:03:54 +00:00
|
|
|
/**
|
|
|
|
* An class, method or field is named public, if it can be used with the original play services
|
|
|
|
* client library.
|
|
|
|
*/
|
2015-01-25 23:42:56 +00:00
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
|
|
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
|
2015-01-25 16:59:09 +00:00
|
|
|
public @interface PublicApi {
|
2015-01-25 17:03:54 +00:00
|
|
|
/**
|
|
|
|
* @return the first version that contains the given class, method or field
|
|
|
|
*/
|
|
|
|
String since() default "0";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the last version that contains the given class, method or field
|
|
|
|
*/
|
|
|
|
String until() default "latest";
|
2015-01-25 16:59:09 +00:00
|
|
|
|
2015-01-25 17:03:54 +00:00
|
|
|
/**
|
2015-03-30 21:55:35 +00:00
|
|
|
* Used on a method or field to exclude it from the public api if the corresponding class was
|
|
|
|
* marked as public api.
|
|
|
|
*
|
|
|
|
* @return true if the method or field is not part of the public api
|
2015-01-25 17:03:54 +00:00
|
|
|
*/
|
|
|
|
boolean exclude() default false;
|
2015-01-25 16:59:09 +00:00
|
|
|
}
|