/
amapi-changelog.njk
44 lines (34 loc) · 2 KB
/
amapi-changelog.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: AMAPI release notes tracker
permalink: /amapi-tracker.html
eleventyExcludeFromCollections: true
type: page
layout: base.njk
---
<script>
function timeSince(date) {
let now = new Date();
let givenDate = new Date(date);
let months = now.getMonth() - givenDate.getMonth()
+ (12 * (now.getFullYear() - givenDate.getFullYear()));
let days = now.getDate() - givenDate.getDate();
if (days < 0) {
months--;
days += new Date(givenDate.getFullYear(), givenDate.getMonth()+1, 0).getDate();
}
return {
months: `${months} month(s)`,
days: `${days} day(s)`
};
}
window.onload = function() {
let time = timeSince('2024-03-25');
document.getElementById('outputMonths').textContent = time.months;
document.getElementById('outputDays').textContent = time.days;
};
</script>
<p>Time since Google last provided Android Management API release notes:</p>
<h2><span class="blood-orange" id="outputMonths"></span> and <span class="blood-orange" id="outputDays"></span></h2>
<p>This is based on the <a href="https://developers.google.com/android/management/release-notes">AMAPI Release notes</a> page and the <a href="https://groups.google.com/g/android-management-api">Android Management API mailing list</a>.</p>
<h3>Why does this matter?</h3>
<p>Google has a monthly cadence for features released to the Android Management API, and fortnightly for Android Device Policy. Without timely and detailed release notes (because "bug fixes" provided on <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.work.clouddpc">Google Play</a> don't count) developers have to frequently manually review resources such as the <a href="https://developers.google.com/android/management/reference/rest/v1/enterprises.policies">reference docs</a> for specific changes. Such an important and widely-used service must be held to a high standard for the partners that rely on it.</p>