Skip to content

[Xamarin.Android.Build.Tasks] Ignore the ObsoleteSdkInt Lint Check - #1179

Merged
jonpryor merged 2 commits into
dotnet:masterfrom
dellis1972:Issue1171
Jan 10, 2018
Merged

jonpryor merged 2 commits into
dotnet:masterfrom
dellis1972:Issue1171

Conversation

@dellis1972

Copy link
Copy Markdown
Contributor

Context #1171

There is a new test [ObsoleteSdkInt] which produces a warning
such as

obj/Debug/android/src/mono/MonoPackageManager.java(85,6): warning XA0102:  Unnecessary; SDK_INT is always >= 10 [ObsoleteSdkInt]

So our MonoPackageManager.java file is the cause of this
particular warning [1]. I am not sure we can remove that
line of code yet, since our apps can run on older devices.
That said once the % share of devices for API's < 8 is 0,
we can probably remove that line of code completely and
re-enable this check.

[1] https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Resources/MonoPackageManager.java#L85

Context dotnet#1171

There is a new test [ObsoleteSdkInt] which produces a warning
such as

	obj/Debug/android/src/mono/MonoPackageManager.java(85,6): warning XA0102:  Unnecessary; SDK_INT is always >= 10 [ObsoleteSdkInt]

So our MonoPackageManager.java file is the cause of this
particular warning [1]. I am not sure we can remove that
line of code yet, since our apps can run on older devices.
That said once the % share of devices for API's < 8 is 0,
we can probably remove that line of code completely and
re-enable this check.

[1] https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Resources/MonoPackageManager.java#L85
@jonpryor
jonpryor merged commit 18afc2c into dotnet:master Jan 10, 2018
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Mar 10, 2021
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants