mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-26 21:13:01 +00:00
migrated to github.io
This commit is contained in:
parent
46c4d207fe
commit
4680668761
2 changed files with 4 additions and 4 deletions
|
@ -44,8 +44,8 @@ open class Home : BaseFragment() {
|
|||
val microgLatestTxt = view.findViewById<TextView>(R.id.vanced_latest_version)
|
||||
|
||||
if (GetJson().isConnected(requireContext())) {
|
||||
val vancedVer: JsonObject = GetJson().AsJSONObject("https://github.com/X1nto/VancedFiles/blob/master/vanced.json")
|
||||
val microgVer: JsonObject = GetJson().AsJSONObject("https://github.com/X1nto/VancedFiles/blob/master/microg.json")
|
||||
val vancedVer: JsonObject = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/vanced.json")
|
||||
val microgVer: JsonObject = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/microg.json")
|
||||
vancedLatestTxt.text = vancedVer.get("version").asString
|
||||
microgLatestTxt.text = microgVer.get("version").asString
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class UpdateCheckFragment : DialogFragment() {
|
|||
closebtn.setOnClickListener { dismiss() }
|
||||
|
||||
if (GetJson().isConnected(requireContext())) {
|
||||
val checkUrl = GetJson().AsJSONObject("https://github.com/X1nto/VancedFiles/blob/master/manager.json")
|
||||
val checkUrl = GetJson().AsJSONObject("https://x1nto.github.io/VancedFiles/manager.json")
|
||||
val remoteVersion = checkUrl.get("versionCode").asInt
|
||||
|
||||
if (remoteVersion > BuildConfig.VERSION_CODE) {
|
||||
|
@ -57,7 +57,7 @@ class UpdateCheckFragment : DialogFragment() {
|
|||
|
||||
updatebtn.setOnClickListener {
|
||||
val url =
|
||||
"https://github.com/X1nto/VancedFiles/blob/master/release.apk"
|
||||
"https://x1nto.github.io/VancedFiles/release.apk"
|
||||
url.download()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribeBy(
|
||||
|
|
Loading…
Reference in a new issue