0
0
Fork 0
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:
X1nto 2020-05-20 19:51:19 +04:00
parent 46c4d207fe
commit 4680668761
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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(