Skip to content

Commit 0d3be75

Browse files
authored
Add firebase-annotations module. (#2167)
* Add firebase-annotations module. * Fix copyright
1 parent 4f3ffc5 commit 0d3be75

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
plugins {
16+
id 'firebase-java-library'
17+
}
18+
19+
firebaseLibrary {
20+
publishSources = true
21+
publishJavadoc = false
22+
}
23+
24+
java {
25+
sourceCompatibility JavaVersion.VERSION_1_8
26+
targetCompatibility JavaVersion.VERSION_1_8
27+
}
28+
29+
tasks.withType(JavaCompile) {
30+
options.compilerArgs << "-Werror"
31+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
version=16.0.0
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
package com.google.firebase.annotations;
16+
17+
import java.lang.annotation.ElementType;
18+
import java.lang.annotation.Inherited;
19+
import java.lang.annotation.Target;
20+
21+
/**
22+
* Indicates that the annotated symbol should be called from a {@code Deferred<T>} dependency.
23+
*
24+
* <p>This is particularly important for callback-style APIs in the context of <a
25+
* href="https://developer.android.com/guide/app-bundle/play-feature-delivery">dynamically loaded
26+
* modules</a>.
27+
*
28+
* @hide
29+
*/
30+
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
31+
@Inherited
32+
public @interface DeferredApi {}

subprojects.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
firebase-abt
2+
firebase-annotations
23
firebase-common
34
firebase-common:data-collection-tests
45
firebase-common:ktx

0 commit comments

Comments
 (0)