{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1228","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1228/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1228/events","html_url":"https://github.com/xamarin/xamarin-android/pull/1228","id":291257723,"number":1228,"title":"[Xamarin.Android.Build.Tasks] Prevent `$(AndroidUseLatestPlatformSdk)` from using Unstable APIs","user":{"login":"dellis1972","id":810617,"avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-24T15:49:04Z","updated_at":"2018-02-19T15:00:30Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/xamarin/xamarin-android/pulls/1228","html_url":"https://github.com/xamarin/xamarin-android/pull/1228","diff_url":"https://github.com/xamarin/xamarin-android/pull/1228.diff","patch_url":"https://github.com/xamarin/xamarin-android/pull/1228.patch"},"body":"Fixes #1221\r\n\r\nCurrently when a user sets `$(AndroidUseLatestPlatformSdk)` it will\r\nautomatically use the Max ApiLevel. This is not always a stable\r\nApiLevel. It is highly possible that it will be unstable.\r\nUsers will generally want to keep to the Max Stable in this senario.\r\n\r\nThis commit alters the code so that we use the latest Max Stable\r\nApiLevel when using `$(AndroidUseLatestPlatformSdk)`.\r\nHowever we should still allow users to use the unstable ones if\r\nthey really want to. This can be achieved in a number of ways\r\n\r\n1. Turn off `$(AndroidUseLatestPlatformSdk)` and set the\r\n`$(TargetFrameworkVersion)` directly.\r\n\r\n2. Leave `$(AndroidUseLatestPlatformSdk)` on and set the\r\n`$(TargetFrameworkVersion)` directly.\r\n\r\nSo effectviely, just manually target the unstable Api. But it\r\nis something the user will need to think about and do manaully.\r\nBy default we will only use to the latest stable ApiLevel."},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/comments/366718101","html_url":"https://github.com/xamarin/xamarin-android/pull/1228#issuecomment-366718101","issue_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1228","id":366718101,"user":{"login":"dellis1972","id":810617,"avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T15:00:30Z","updated_at":"2018-02-19T15:00:30Z","author_association":"CONTRIBUTOR","body":"if we merge https://github.com/xamarin/xamarin-android/pull/1321 I can add actual tests for this logic :)"}}
{"actor":{"display_login":"dellis1972"}}