Skip to content

Commit 0314d1f

Browse files
committed
Fix CI.
1 parent 8e8afec commit 0314d1f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

firebase-firestore/api.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,34 @@ package com.google.firebase.firestore {
316316
}
317317

318318
public final class MemoryCacheSettings implements com.google.firebase.firestore.LocalCacheSettings {
319+
method @NonNull public com.google.firebase.firestore.MemoryGarbageCollectorSettings getGarbageCollectorSettings();
319320
method @NonNull public static com.google.firebase.firestore.MemoryCacheSettings.Builder newBuilder();
320321
}
321322

322323
public static class MemoryCacheSettings.Builder {
323324
method @NonNull public com.google.firebase.firestore.MemoryCacheSettings build();
325+
method @NonNull public com.google.firebase.firestore.MemoryCacheSettings.Builder setGcSettings(@NonNull com.google.firebase.firestore.MemoryGarbageCollectorSettings);
326+
}
327+
328+
public final class MemoryEagerGcSettings implements com.google.firebase.firestore.MemoryGarbageCollectorSettings {
329+
method @NonNull public static com.google.firebase.firestore.MemoryEagerGcSettings.Builder newBuilder();
330+
}
331+
332+
public static class MemoryEagerGcSettings.Builder {
333+
method @NonNull public com.google.firebase.firestore.MemoryEagerGcSettings build();
334+
}
335+
336+
public interface MemoryGarbageCollectorSettings {
337+
}
338+
339+
public final class MemoryLruGcSettings implements com.google.firebase.firestore.MemoryGarbageCollectorSettings {
340+
method public long getSizeBytes();
341+
method @NonNull public static com.google.firebase.firestore.MemoryLruGcSettings.Builder newBuilder();
342+
}
343+
344+
public static class MemoryLruGcSettings.Builder {
345+
method @NonNull public com.google.firebase.firestore.MemoryLruGcSettings build();
346+
method public void setSizeBytes(long);
324347
}
325348

326349
public enum MetadataChanges {

firebase-firestore/src/main/java/com/google/firebase/firestore/MemoryLruGcSettings.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2023 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+
115
package com.google.firebase.firestore;
216

317
import androidx.annotation.NonNull;

0 commit comments

Comments
 (0)