1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.ide.common.resources.deprecated; 17 18 /** 19 * @deprecated This class is part of an obsolete resource repository system that is no longer used 20 * in production code. The class is preserved temporarily for LayoutLib tests. 21 */ 22 @Deprecated 23 public class ScanningContext { 24 private boolean mNeedsFullAapt; 25 26 /** 27 * Marks that a full aapt compilation of the resources is necessary because it has 28 * detected a change that cannot be incrementally handled. 29 */ requestFullAapt()30 protected void requestFullAapt() { 31 mNeedsFullAapt = true; 32 } 33 34 /** 35 * Returns whether this repository has been marked as "dirty"; if one or 36 * more of the constituent files have declared that the resource item names 37 * that they provide have changed. 38 * 39 * @return true if a full aapt compilation is required 40 */ needsFullAapt()41 public boolean needsFullAapt() { 42 return mNeedsFullAapt; 43 } 44 } 45