Deprecate android:isSplitRequired

Since android:requiredSplitTypes and android:splitTypes are introduced
android:isSplitRequired is been a bit too ambiguous to be very useful
to this point. requiredSplitTypes provides a more specific form of
isSplitRequired by defining exactly what is required and when provided
as anything other than empty string implies isSplitRequired="true".

Bug: 198708193
Test: build
Change-Id: Ic3803794df80fdbfc12c07ae84f3d46e2cf74db6
This commit is contained in:
Jackal Guo
2021-09-13 18:48:08 +08:00
parent dfee0b5b80
commit 9b8062eee3
3 changed files with 4 additions and 2 deletions

View File

@@ -842,7 +842,7 @@ package android {
field @Deprecated public static final int isModifier = 16843334; // 0x1010246
field @Deprecated public static final int isRepeatable = 16843336; // 0x1010248
field public static final int isScrollContainer = 16843342; // 0x101024e
field public static final int isSplitRequired = 16844177; // 0x1010591
field @Deprecated public static final int isSplitRequired = 16844177; // 0x1010591
field public static final int isStatic = 16844122; // 0x101055a
field @Deprecated public static final int isSticky = 16843335; // 0x1010247
field public static final int isolatedProcess = 16843689; // 0x10103a9

View File

@@ -1221,7 +1221,8 @@
<attr name="isFeatureSplit" format="boolean" />
<!-- Flag to specify if this APK requires at least one split [either feature or
resource] to be present in order to function. Default value is false. -->
resource] to be present in order to function. Default value is false.
@deprecated Use {@link android.R.attr#requiredSplitTypes} instead. -->
<attr name="isSplitRequired" format="boolean" />
<!-- List of split types required by this APK to be present in order to function properly,

View File

@@ -2905,6 +2905,7 @@
<public type="attr" name="usesNonSdkApi" id="0x0101058e" />
<public type="attr" name="nonInteractiveUiTimeout" id="0x0101058f" />
<public type="attr" name="isLightTheme" id="0x01010590" />
<!-- {@deprecated Use requiredSplitTypes instead.} -->
<public type="attr" name="isSplitRequired" id="0x01010591" />
<public type="attr" name="textLocale" id="0x01010592" />
<public type="attr" name="settingsSliceUri" id="0x01010593" />