Skip to content

Commit 2359db9

Browse files
authored
Merge pull request #2632 from luborjurena/master
docs: add live AAPS end-of-life page
2 parents 72159ea + 4aaa119 commit 2359db9

4 files changed

Lines changed: 86 additions & 1 deletion

File tree

‎docs/EN/Maintenance/EndOfLife.md‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
```

‎docs/EN/Maintenance/ReleaseNotes.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ You will receive a notification like this when a new update is available:
99

1010
If you do not update until expiration date **AAPS** will switch to Open Loop.
1111

12+
See [End of life](EndOfLife.md) for AAPS version end dates.
13+
1214
**Do not ignore the notification.** New versions of **AAPS** provide important safety fixes. Therefore, every **AAPS** user must update to the latest version as soon as possible. This an effort to try to improve the safety for each **AAPS** user and the DIY community. Thank you for your understanding.
1315

1416
(maintenance-android-version-aaps-version)=

‎docs/EN/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
'twitter:title': 'Welcome to the AAPS documentation — AndroidAPS Documentation',
6262
'twitter:description':'Android APS (AAPS) is an open source app for people living with insulin-dependent diabetes. It is an artificial pancreas system (APS) which runs on Android smartphones.',
6363
'twitter:image': 'https://androidaps.readthedocs.io/en/latest/_static/androidaps-logo.png',
64-
}
64+
}

‎docs/EN/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Exchange site custom watchfaces <./ExchangeSiteCustomWatchfaces/index.md>
150150
Export/Import Settings <./Maintenance/ExportImportSettings.md>
151151
Reviewing your data <./Maintenance/Reviewing.md>
152152
AAPS Release Notes <./Maintenance/ReleaseNotes.md>
153+
End of life <./Maintenance/EndOfLife.md>
153154
Documentation updates <./Maintenance/DocumentationUpdate.md>
154155
Updating to a new version of AAPS <./Maintenance/UpdateToNewVersion.md>
155156
- Browser Update <./Maintenance/UpdateBrowserBuild.md>

0 commit comments

Comments
 (0)