|
| 1 | +# End of life |
| 2 | + |
| 3 | +Each AAPS version can have an end date. After this date, AAPS may limit the loop. AAPS warns you before a version expires. Plan to update before the end date, and follow the [update guide](UpdateToNewVersion.md). |
| 4 | + |
| 5 | +## How to use this page |
| 6 | + |
| 7 | +1. In AAPS, tap the three dots at the top right and choose **About**. You will see your AAPS version there. |
| 8 | +2. Find the same version in the first table below. Read the end date next to it. Dates are written as **year-month-day**. For example, `2026-10-30` means 30 October 2026. |
| 9 | +3. Check the [Release Notes](ReleaseNotes.md) and the [update guide](UpdateToNewVersion.md) before you update. The version you can use also depends on your phone's Android version. |
| 10 | + |
| 11 | +The table does not show an end date for every AAPS version. If your version is missing, its end date may not have been set yet. This does not mean it will be supported forever. |
| 12 | + |
| 13 | +## AAPS version end dates |
| 14 | + |
| 15 | +<div id="aaps-eol-status" role="status" aria-live="polite">Loading AAPS version data…</div> |
| 16 | +<noscript>Turn on JavaScript to see the tables.</noscript> |
| 17 | + |
| 18 | +<div id="aaps-eol-versions" class="wy-table-responsive" hidden> |
| 19 | + <table> |
| 20 | + <thead><tr><th scope="col">AAPS version</th><th scope="col">End date</th></tr></thead> |
| 21 | + <tbody></tbody> |
| 22 | + </table> |
| 23 | +</div> |
| 24 | + |
| 25 | +## Android API levels |
| 26 | + |
| 27 | +Android gives each system version an **API level**, which is a number used by apps. For example, API level 30 is Android 11. The table below uses API levels from AAPS version data. The AAPS version in each row is the value listed for the API level shown. This is not a full list of versions you can install. |
| 28 | + |
| 29 | +To choose an AAPS version for your phone, use the [Android version guidance in the Release Notes](ReleaseNotes.md#android-version-and-aaps-version). If no AAPS version is listed for an API level, the table says “None listed”. |
| 30 | + |
| 31 | +<div id="aaps-eol-android" class="wy-table-responsive" hidden> |
| 32 | + <table> |
| 33 | + <thead><tr><th scope="col">Android API level</th><th scope="col">AAPS version listed</th></tr></thead> |
| 34 | + <tbody></tbody> |
| 35 | + </table> |
| 36 | +</div> |
| 37 | + |
| 38 | +```{raw} html |
| 39 | +
|
| 40 | +<script> |
| 41 | +document.addEventListener('DOMContentLoaded', async () => { |
| 42 | + const status = document.getElementById('aaps-eol-status'); |
| 43 | + if (!status) return; |
| 44 | +
|
| 45 | + function showRows(id, rows) { |
| 46 | + const container = document.getElementById(id); |
| 47 | + const body = container.querySelector('tbody'); |
| 48 | + for (const values of rows) { |
| 49 | + const row = body.insertRow(); |
| 50 | + for (const value of values) row.insertCell().textContent = value; |
| 51 | + } |
| 52 | + container.hidden = rows.length === 0; |
| 53 | + } |
| 54 | +
|
| 55 | + try { |
| 56 | + const response = await fetch('https://raw.githubusercontent.com/nightscout/AndroidAPS/refs/heads/versions/definition.json'); |
| 57 | + if (!response.ok) throw new Error(`HTTP ${response.status}`); |
| 58 | + const data = await response.json(); |
| 59 | + if (!Array.isArray(data)) throw new Error('Invalid version data'); |
| 60 | +
|
| 61 | + const versions = data.filter(entry => |
| 62 | + entry && typeof entry.version === 'string' && |
| 63 | + typeof entry.endDate === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(entry.endDate) |
| 64 | + ).sort((a, b) => b.version.localeCompare(a.version, undefined, { numeric: true })); |
| 65 | + const android = data.filter(entry => |
| 66 | + entry && Number.isInteger(entry.minAndroid) && Number.isInteger(entry.maxAndroid) |
| 67 | + ).sort((a, b) => b.minAndroid - a.minAndroid); |
| 68 | + if (!versions.length && !android.length) throw new Error('No version data'); |
| 69 | +
|
| 70 | + showRows('aaps-eol-versions', versions.map(entry => [entry.version, entry.endDate])); |
| 71 | + showRows('aaps-eol-android', android.map(entry => [ |
| 72 | + entry.minAndroid === entry.maxAndroid |
| 73 | + ? String(entry.minAndroid) : `${entry.minAndroid}–${entry.maxAndroid}`, |
| 74 | + typeof entry.supported === 'string' && entry.supported ? entry.supported : 'None listed' |
| 75 | + ])); |
| 76 | + status.remove(); |
| 77 | + } catch { |
| 78 | + status.textContent = 'Could not load AAPS version data. Please try again later.'; |
| 79 | + } |
| 80 | +}); |
| 81 | +</script> |
| 82 | +``` |
0 commit comments