0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-25 12:45:12 +00:00

added checks for dev options unlock

This commit is contained in:
X1nto 2020-05-20 15:53:35 +04:00
parent 87e038a2e6
commit dab09b1ce7
3 changed files with 8 additions and 20 deletions

View file

@ -4,13 +4,9 @@ on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
tags:
- '*'
jobs:
build:
@ -46,15 +42,6 @@ jobs:
name: 'Vanced-Manager'
path: ${{ steps.sign-app.outputs.signedReleaseFile }}
- name: Upload to GitHub releases
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.sign-app.outputs.signedReleaseFile }}
asset_name: release.apk
tag: ${{ github.ref }}
overwrite: true
- name: Upload to Discord
uses: sinshutu/upload-to-discord@master
env:

View file

@ -32,12 +32,13 @@ open class About : BaseFragment() {
}
if (count == 5) {
Toast.makeText(requireContext(), "Dev options unlocked!", Toast.LENGTH_SHORT).show()
val prefs =
PreferenceManager.getDefaultSharedPreferences(
requireContext()
)
prefs.edit().putBoolean("devSettings", true).apply()
val prefs = PreferenceManager.getDefaultSharedPreferences(requireContext())
val devSettings = prefs.getBoolean("devSettings", false)
if (!devSettings) {
Toast.makeText(requireContext(), "Dev options unlocked!", Toast.LENGTH_SHORT).show()
prefs.edit().putBoolean("devSettings", true).apply()
} else Toast.makeText(requireContext(), "Dev options already unlocked", Toast.LENGTH_SHORT).show()
}
return@setOnTouchListener true
}

View file

@ -49,7 +49,7 @@ class UpdateCheckFragment : DialogFragment() {
updatebtn.setOnClickListener {
val url =
"https://github.com/X1nto/VancedInstaller/releases/latest/download/release.apk"
"https://github.com/X1nto/VancedFiles/blob/master/release.apk"
url.download()
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy(