Repository navigation
docs: add live AAPS end-of-life page #2632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| # End of life | ||
|
|
||
| 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). | ||
|
|
||
| ## How to use this page | ||
|
|
||
| 1. In AAPS, tap the three dots at the top right and choose **About**. You will see your AAPS version there. | ||
| 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. | ||
| 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. | ||
|
|
||
| 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. | ||
|
|
||
| ## AAPS version end dates | ||
|
|
||
| <div id="aaps-eol-status" role="status" aria-live="polite">Loading AAPS version data…</div> | ||
| <noscript>Turn on JavaScript to see the tables.</noscript> | ||
|
|
||
| <div id="aaps-eol-versions" class="wy-table-responsive" hidden> | ||
| <table> | ||
| <thead><tr><th scope="col">AAPS version</th><th scope="col">End date</th></tr></thead> | ||
| <tbody></tbody> | ||
| </table> | ||
| </div> | ||
|
|
||
| ## Android API levels | ||
|
|
||
| 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. | ||
|
|
||
| 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”. | ||
|
|
||
| <div id="aaps-eol-android" class="wy-table-responsive" hidden> | ||
| <table> | ||
| <thead><tr><th scope="col">Android API level</th><th scope="col">AAPS version listed</th></tr></thead> | ||
| <tbody></tbody> | ||
| </table> | ||
| </div> | ||
|
|
||
| ```{raw} html | ||
|
|
||
| <script> | ||
| document.addEventListener('DOMContentLoaded', async () => { | ||
| const status = document.getElementById('aaps-eol-status'); | ||
| if (!status) return; | ||
|
|
||
| function showRows(id, rows) { | ||
| const container = document.getElementById(id); | ||
| const body = container.querySelector('tbody'); | ||
| for (const values of rows) { | ||
| const row = body.insertRow(); | ||
| for (const value of values) row.insertCell().textContent = value; | ||
| } | ||
| container.hidden = rows.length === 0; | ||
| } | ||
|
|
||
| try { | ||
| const response = await fetch('https://raw.githubusercontent.com/nightscout/AndroidAPS/refs/heads/versions/definition.json'); | ||
| if (!response.ok) throw new Error(`HTTP ${response.status}`); | ||
| const data = await response.json(); | ||
| if (!Array.isArray(data)) throw new Error('Invalid version data'); | ||
|
|
||
| const versions = data.filter(entry => | ||
| entry && typeof entry.version === 'string' && | ||
| typeof entry.endDate === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(entry.endDate) | ||
| ).sort((a, b) => b.version.localeCompare(a.version, undefined, { numeric: true })); | ||
| const android = data.filter(entry => | ||
| entry && Number.isInteger(entry.minAndroid) && Number.isInteger(entry.maxAndroid) | ||
| ).sort((a, b) => b.minAndroid - a.minAndroid); | ||
| if (!versions.length && !android.length) throw new Error('No version data'); | ||
|
|
||
| showRows('aaps-eol-versions', versions.map(entry => [entry.version, entry.endDate])); | ||
| showRows('aaps-eol-android', android.map(entry => [ | ||
| entry.minAndroid === entry.maxAndroid | ||
| ? String(entry.minAndroid) : `${entry.minAndroid}–${entry.maxAndroid}`, | ||
| typeof entry.supported === 'string' && entry.supported ? entry.supported : 'None listed' | ||
| ])); | ||
| status.remove(); | ||
| } catch { | ||
| status.textContent = 'Could not load AAPS version data. Please try again later.'; | ||
| } | ||
| }); | ||
| </script> | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.