Skip to content

Commit 4201afc

Browse files
committed
get latest release and license from repo
1 parent 42fcd81 commit 4201afc

File tree

6 files changed

+30
-15
lines changed

6 files changed

+30
-15
lines changed

assets/js/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,30 @@ Source:
144144
}
145145

146146
}());
147+
148+
149+
//get latest github release
150+
let resURL = 'https://api.github.com/repos/Surendrajat/APKLab/tags'
151+
fetch(resURL, {
152+
headers: {
153+
'Accept': 'application/vnd.github.v3+json',
154+
},
155+
})
156+
.then(res => res.json())
157+
.then(data => {
158+
document.getElementById('apklab_version').innerHTML = `<b>Release ${data[0].name}</b>`
159+
})
160+
.catch(error => console.log(error));
161+
162+
//get project license
163+
resURL = 'https://api.github.com/repos/Surendrajat/APKLab/license'
164+
fetch(resURL, {
165+
headers: {
166+
'Accept': 'application/vnd.github.v3+json',
167+
},
168+
})
169+
.then(res => res.json())
170+
.then(data => {
171+
document.getElementById('apklab_license').innerText = data.license.spdx_id
172+
})
173+
.catch(error => console.log(error));

data/apklab.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/doks.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

data/hyas.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1 class="mt-0">{{ .Title }}</h1>
88
<p class="lead">{{ .Params.Lead | safeHTML }}</p>
99
<p class="meta">{{ .Params.Description | safeHTML }}</p>
1010
<a class="btn btn-primary btn-lg px-4 mb-2" href='{{ "docs/user-guide/getting-started/" | absURL }}' role="button">Get started</a>
11-
<p class="meta">Open-source AGPLv3 Licensed. <a href="https://github.com/Surendrajat/APKLab">GitHub v{{ .Site.Data.apklab.version }}</a></p>
11+
<p class="meta">OpenSource <span id="apklab_license"></span> Licensed. <a id="apklab_version" href="https://github.com/Surendrajat/APKLab"></a></p>
1212
</div>
1313
</div>
1414
</section>

theme.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name = "APKLab"
2-
license = "AGPLv3"
3-
licenselink = "https://github.com/Surendrajat/APKLab/blob/master/LICENSE"
2+
license = "MIT"
43
description = "The ultimate Android RE experience right inside your VS Code."
5-
homepage = ""
4+
homepage = "https://apklab.surendrajat.xyz"
65
tags = ["bytecode", "disassembler", "decompiler", "re", "android", "apktool", "jadx", "apksigner", "apk studio", "apk", "reverse engineering", "analysis", "apk editor", "smali", "dalvik"]
76
min_version = "0.75.0"
87

0 commit comments

Comments
 (0)