Compare commits
185 Commits
Author | SHA1 | Date | |
---|---|---|---|
217d525cb2 | |||
85b166cbda | |||
9a57f8b858 | |||
3bfdc932c2 | |||
48c878af21 | |||
490a7a58fc | |||
567b1a3ace | |||
6a45db8a38 | |||
b272988929 | |||
9828857570 | |||
ecb54d8e44 | |||
344717b021 | |||
da6cf585c0 | |||
9e93177afd | |||
16318efb01 | |||
e83e13b6d4 | |||
7c2c695d88 | |||
c7b227529d | |||
14f49e9d30 | |||
1875c4ee73 | |||
76c68baa1f | |||
68876a4414 | |||
26d7e5b60f | |||
e78af6ae99 | |||
6fe05cd86e | |||
4100d7a391 | |||
c1cc812ea4 | |||
9663e3f0f4 | |||
941f618153 | |||
716a30bf7b | |||
d051ae576b | |||
35e99cb014 | |||
af054fba49 | |||
58d837d641 | |||
6cc1bd21cd | |||
cebfa7c8ae | |||
e2d7ab8f8f | |||
ec77987fcd | |||
b161608d02 | |||
5e7458ff1c | |||
ed06aaa1f5 | |||
13b7179941 | |||
da0d88d86f | |||
b7347c312a | |||
c876f2f7e3 | |||
adad5fd8ff | |||
2aaa7ae8c9 | |||
1f64ea37bd | |||
cac1525da0 | |||
1ad906fedc | |||
20ffef39a3 | |||
185460c054 | |||
0079e74d77 | |||
a8e019482f | |||
f01b8e47aa | |||
e43dfb7599 | |||
6b8cfe2b49 | |||
7f7b14bae3 | |||
810b02d9fd | |||
62813145b2 | |||
4877058253 | |||
2a9fd3abb8 | |||
a244f7b598 | |||
5396457ad5 | |||
0186b6ea61 | |||
f6e99f7e88 | |||
c24a3828be | |||
2e38a4567a | |||
67c5d67a61 | |||
9592dde534 | |||
d030b0af70 | |||
4ccb9ac94d | |||
8af62b917c | |||
311f114132 | |||
d015bd03f7 | |||
a61b9de0fa | |||
ef1b283917 | |||
c677f00105 | |||
8d2f778dfe | |||
c549d102f6 | |||
39a9ee4e9d | |||
a27dc6ad1c | |||
8ccb75fc8d | |||
8fc86dbe02 | |||
359f052608 | |||
4150e2265c | |||
b803ce7435 | |||
289c6cd7a9 | |||
31fc7b74c2 | |||
3e565f25be | |||
e509be4e21 | |||
170fc537ac | |||
3fe5882145 | |||
a290791410 | |||
2ebd38ff68 | |||
cd987a5b19 | |||
7f1dab7ee1 | |||
bed3945aa5 | |||
15a32a18b7 | |||
d2e8e7dd5d | |||
ce12ec89c4 | |||
b286444ad9 | |||
941263102d | |||
e2ed296dc7 | |||
cfc866bef2 | |||
affba669ce | |||
7230152ab8 | |||
21fee7171f | |||
ad17995f28 | |||
ac830cbe7f | |||
65da6af3f9 | |||
3d90bf7588 | |||
62ef1c88fe | |||
d6918920b6 | |||
cdfb09fbfa | |||
bb681e31c9 | |||
c7483936ec | |||
0a1f2da33d | |||
f5aafdb7d6 | |||
c9adf1c492 | |||
4c9cb560e3 | |||
f0b028279c | |||
197770b68b | |||
37b583f560 | |||
dca2d4fe12 | |||
3b677f8ae3 | |||
0b952578d1 | |||
054afbbedd | |||
866a6e4a44 | |||
8ea7dd478b | |||
7839252934 | |||
fa4063220f | |||
d214a02abd | |||
d1c12edd1b | |||
ded1a44c37 | |||
790a6cd1e3 | |||
a79f883a0f | |||
d9c5a540a3 | |||
276f33b9ec | |||
ded59d2da0 | |||
62f7a820d8 | |||
7063ffa013 | |||
bf4dc3c095 | |||
c10e5848bf | |||
92a3b0d6e0 | |||
b475bd25c8 | |||
d318224a6f | |||
0074fee865 | |||
5617535a63 | |||
68ccefc59f | |||
6d60541626 | |||
a635e5b8d0 | |||
48a10440fe | |||
8e3ba88318 | |||
ab8fccc544 | |||
8319dc9164 | |||
6829d3cdea | |||
3ae4d69110 | |||
dc665f227e | |||
a83496568f | |||
12d25570af | |||
378c947654 | |||
bd39a3140e | |||
7d3ca3dec1 | |||
1cb556c8f8 | |||
8c8f96de1c | |||
318cd87a9a | |||
5d63d5c2d3 | |||
7d347fccc6 | |||
a54ca799b9 | |||
f5bc1a996f | |||
8591bc4d01 | |||
40888c07f3 | |||
1c965c3788 | |||
4df690c2a2 | |||
d6abb61e2b | |||
3434c862e9 | |||
ea8af926fa | |||
c3df48174c | |||
f1e60f96c4 | |||
cdd852678b | |||
bf518b5467 | |||
ffd53fab26 | |||
5aad7dad35 | |||
b1c1a9f4e1 |
20
.github/ISSUE_TEMPLATE/bug-issue.yml
vendored
@ -29,7 +29,7 @@ body:
|
|||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Steps to reproduce
|
label: Steps to reproduce
|
||||||
description: Add the steps to reproduce this bug including your environment.
|
description: Add the steps to reproduce this bug, including your environment.
|
||||||
placeholder: Step 1. Download some files. Step 2. ...
|
placeholder: Step 1. Download some files. Step 2. ...
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@ -74,20 +74,20 @@ body:
|
|||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Device logs (exported using Manager settings).
|
label: Device logs (exported using Manager settings).
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so there is no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].
|
label: Installer logs (exported using Installer menu option) [unneeded if the issue is not during patching].
|
||||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so there is no need for backticks.
|
||||||
render: shell
|
render: shell
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Screenshots or videos
|
label: Screenshots or video
|
||||||
description: Add screenshots or videos that show the bug here.
|
description: Add screenshots or videos that show the bug here.
|
||||||
placeholder: Drag and drop the screenshots/videos into this box.
|
placeholder: Drag and drop the screenshots/videos into this box.
|
||||||
validations:
|
validations:
|
||||||
@ -105,16 +105,16 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
id: acknowledgements
|
id: acknowledgments
|
||||||
attributes:
|
attributes:
|
||||||
label: Acknowledgements
|
label: Acknowledgments
|
||||||
description: Your issue will be closed if you haven't done these steps.
|
description: Your issue will be closed if you haven't done these steps.
|
||||||
options:
|
options:
|
||||||
- label: I have searched the existing issues and this is a new and no duplicate or related to another open issue.
|
- label: I have searched the existing issues; this is new and no duplicate or related to another open issue.
|
||||||
required: true
|
required: true
|
||||||
- label: I have written a short but informative title.
|
- label: I have written a short but informative title.
|
||||||
required: true
|
required: true
|
||||||
- label: I filled out all of the requested information in this issue properly.
|
- label: I properly filled out all of the requested information in this issue.
|
||||||
required: true
|
required: true
|
||||||
- label: The issue is related solely to the ReVanced Manager
|
- label: The issue is solely related to ReVanced Manager and not caused by patches.
|
||||||
required: true
|
required: true
|
||||||
|
2
.github/config.yaml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
firstPRMergeComment: >
|
||||||
|
Thank you for contributing to ReVanced. Join us on [Discord](https://revanced.app/discord) if you want to receive a contributor role.
|
27
.github/workflows/analyze.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Analyze Code
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main", "dev" ]
|
||||||
|
paths:
|
||||||
|
- "**.dart"
|
||||||
|
- ".github/workflows/analyze.yml"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
cache: true
|
||||||
|
- name: Install Flutter dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
- name: Generate files with Builder
|
||||||
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
|
- name: Analyze code
|
||||||
|
uses: ValentinVignal/action-dart-analyze@v0.15
|
||||||
|
with:
|
||||||
|
fail-on: warning
|
55
.github/workflows/commit-build.yml
vendored
@ -1,55 +0,0 @@
|
|||||||
name: "Android CI Actions"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "**"
|
|
||||||
tags-ignore:
|
|
||||||
- "v*" # Ignore tags that start with "v" (e.g. v1.0.0) because they are handled by release-build.yml
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set env
|
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
||||||
- name: Set up JDK 12
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: '12'
|
|
||||||
distribution: 'zulu'
|
|
||||||
- uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: 'stable'
|
|
||||||
- name: Set environment variables
|
|
||||||
run: echo $SECRETS | base64 -d > lib/utils/environment.dart
|
|
||||||
env:
|
|
||||||
SECRETS: ${{ secrets.SECRETS }}
|
|
||||||
- name: Set up Flutter
|
|
||||||
run: flutter pub get
|
|
||||||
- name: Generate files with Builder
|
|
||||||
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
|
||||||
- name: Build with Flutter
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
||||||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
||||||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
|
|
||||||
run: flutter build apk
|
|
||||||
- name: Sign APK
|
|
||||||
id: sign_apk
|
|
||||||
uses: ilharp/sign-android-release@v1
|
|
||||||
with:
|
|
||||||
releaseDir: build/app/outputs/apk/release
|
|
||||||
signingKey: ${{ secrets.SIGNING_KEYSTORE }}
|
|
||||||
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
|
|
||||||
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
||||||
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
||||||
- name: Add version to APK
|
|
||||||
run: mv ${{ steps.sign_apk.outputs.signedFile }} revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
|
||||||
- name: Upload APK
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: revanced-manager-${{ env.RELEASE_VERSION }}
|
|
||||||
path: revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
|
4
.github/workflows/crowdin.yml
vendored
@ -3,7 +3,7 @@ name: Sync Crowdin translations
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "flutter"
|
- "dev"
|
||||||
paths:
|
paths:
|
||||||
- "assets/i18n/en_US.json"
|
- "assets/i18n/en_US.json"
|
||||||
- ".github/workflows/crowdin.yml"
|
- ".github/workflows/crowdin.yml"
|
||||||
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Crowdin
|
- name: Crowdin
|
||||||
uses: crowdin/github-action@1.5.0
|
uses: crowdin/github-action@v1
|
||||||
with:
|
with:
|
||||||
config: crowdin.yml
|
config: crowdin.yml
|
||||||
upload_sources: true
|
upload_sources: true
|
||||||
|
82
.github/workflows/pull-request-build.yml
vendored
@ -1,41 +1,41 @@
|
|||||||
name: "Android CI PR Build"
|
name: PR Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
workflow_dispatch:
|
||||||
branches:
|
|
||||||
- "**"
|
jobs:
|
||||||
|
build:
|
||||||
jobs:
|
name: Build
|
||||||
release:
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
steps:
|
||||||
steps:
|
- name: Checkout
|
||||||
- uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set env
|
with:
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
# Make sure the release step uses its own credentials:
|
||||||
- name: Set up JDK 12
|
# https://github.com/cycjimmy/semantic-release-action#private-packages
|
||||||
uses: actions/setup-java@v3
|
persist-credentials: false
|
||||||
with:
|
fetch-depth: 0
|
||||||
java-version: '12'
|
- name: Setup JDK
|
||||||
distribution: 'zulu'
|
uses: actions/setup-java@v3
|
||||||
- uses: subosito/flutter-action@v2
|
with:
|
||||||
with:
|
java-version: '11'
|
||||||
channel: 'stable'
|
distribution: 'zulu'
|
||||||
- name: Set environment variables
|
cache: 'gradle'
|
||||||
run: echo $SECRETS | base64 -d > lib/utils/environment.dart
|
- name: Setup Flutter
|
||||||
env:
|
uses: subosito/flutter-action@v2
|
||||||
SECRETS: ${{ secrets.SECRETS }}
|
with:
|
||||||
- name: Set up Flutter
|
channel: 'stable'
|
||||||
run: flutter pub get
|
cache: true
|
||||||
- name: Generate files with Builder
|
- name: Install Flutter dependencies
|
||||||
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
run: flutter pub get
|
||||||
- name: Build with Flutter
|
- name: Generate files with Builder
|
||||||
env:
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- name: Build with Flutter
|
||||||
run: flutter build apk
|
env:
|
||||||
- name: Add version to APK
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: mv build/app/outputs/flutter-apk/app-release.apk revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
run: flutter build apk
|
||||||
- name: Upload APK
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: revanced-manager-${{ env.RELEASE_VERSION }}
|
name: revanced-manager
|
||||||
path: revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
path: build/app/outputs/flutter-apk/app-release.apk
|
||||||
|
14
.github/workflows/release-build.yml
vendored
@ -12,18 +12,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
- name: Set up JDK 12
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '12'
|
java-version: "11"
|
||||||
distribution: 'zulu'
|
distribution: "zulu"
|
||||||
- uses: subosito/flutter-action@v2
|
- uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
channel: 'stable'
|
channel: "stable"
|
||||||
- name: Set environment variables
|
|
||||||
run: echo $SECRETS | base64 -d > lib/utils/environment.dart
|
|
||||||
env:
|
|
||||||
SECRETS: ${{ secrets.SECRETS }}
|
|
||||||
- name: Set up Flutter
|
- name: Set up Flutter
|
||||||
run: flutter pub get
|
run: flutter pub get
|
||||||
- name: Generate files with Builder
|
- name: Generate files with Builder
|
||||||
@ -51,4 +47,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
files: revanced-manager-${{ env.RELEASE_VERSION }}.apk
|
68
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
# Make sure the release step uses its own credentials:
|
||||||
|
# https://github.com/cycjimmy/semantic-release-action#private-packages
|
||||||
|
persist-credentials: false
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup JDK
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'zulu'
|
||||||
|
cache: 'gradle'
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
cache: 'npm'
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
cache: true
|
||||||
|
- name: Install Flutter dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
- name: Generate files with Builder
|
||||||
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
|
- name: Build with Flutter
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: flutter build apk
|
||||||
|
- name: Sign APK
|
||||||
|
id: sign_apk
|
||||||
|
uses: ilharp/sign-android-release@v1
|
||||||
|
with:
|
||||||
|
releaseDir: build/app/outputs/apk/release
|
||||||
|
signingKey: ${{ secrets.SIGNING_KEYSTORE }}
|
||||||
|
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
|
||||||
|
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
|
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
|
- name: Setup semantic-release
|
||||||
|
run: npm ci
|
||||||
|
- name: Get release version
|
||||||
|
run: npm exec -- semantic-release --dry-run
|
||||||
|
id: get-next-version
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Add version to APK
|
||||||
|
run: mv $SIGNED_FILE_PATH $(dirname $SIGNED_FILE_PATH)/revanced-manager-${{ steps.get-next-version.outputs.new-release-version }}.apk
|
||||||
|
env:
|
||||||
|
SIGNED_FILE_PATH: ${{steps.sign_apk.outputs.signedFile}}
|
||||||
|
- name: Release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
|
||||||
|
run: npm exec semantic-release
|
19
.github/workflows/update-documentation.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Update documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- docs/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trigger:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Dispatch event to documentation repository
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
steps:
|
||||||
|
- uses: peter-evans/repository-dispatch@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.DOCUMENTATION_REPO_ACCESS_TOKEN }}
|
||||||
|
repository: revanced/revanced-documentation
|
||||||
|
event-type: update-documentation
|
||||||
|
client-payload: '{"repo": "${{ github.event.repository.name }}", "ref": "${{ github.ref }}"}'
|
10
.gitignore
vendored
@ -134,5 +134,11 @@ app.*.map.json
|
|||||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||||
!/dev/ci/**/Gemfile.lock
|
!/dev/ci/**/Gemfile.lock
|
||||||
|
|
||||||
Firebase related
|
# Firebase related
|
||||||
.firebase
|
.firebase
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# FVM
|
||||||
|
.fvm
|
75
.releaserc
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
{
|
||||||
|
"branches": [
|
||||||
|
"main",
|
||||||
|
{
|
||||||
|
"name": "dev",
|
||||||
|
"prerelease": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"semantic-release-export-data",
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
[
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
{
|
||||||
|
"presetConfig": {
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"section": "Dependency Updates"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "chore",
|
||||||
|
"section": "Other Changes",
|
||||||
|
"hidden": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "perf",
|
||||||
|
"section": "Performance Improvements",
|
||||||
|
"hidden": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "refactor",
|
||||||
|
"section": "Code Improvements",
|
||||||
|
"hidden": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
"semantic-release-flutter-plugin",
|
||||||
|
[
|
||||||
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
"CHANGELOG.md",
|
||||||
|
"pubspec.yaml"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/github",
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
{
|
||||||
|
"path": "build/app/outputs/apk/release/revanced-manager-*.apk"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"successComment": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@saithodev/semantic-release-backmerge",
|
||||||
|
{
|
||||||
|
"backmergeBranches": [
|
||||||
|
{
|
||||||
|
"from": "main",
|
||||||
|
"to": "dev"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"clearWorkspace": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
1
CHANGELOG.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -3,15 +3,11 @@
|
|||||||
The official ReVanced Manager based on Flutter.
|
The official ReVanced Manager based on Flutter.
|
||||||
|
|
||||||
## 🔽 Download
|
## 🔽 Download
|
||||||
To download the Alpha version of Manager, go [here](https://github.com/revanced/revanced-manager/releases/latest) and install the provided APK file.
|
To download latest Manager, go [here](https://github.com/revanced/revanced-manager/releases/latest) and install the provided APK file.
|
||||||
|
|
||||||
## 📝 Prerequisites
|
## 📝 Prerequisites
|
||||||
1. Android 8 or higher
|
1. Android 8 or higher
|
||||||
2. Does not work on some armv7 devices
|
2. Does not work on some armv7 devices
|
||||||
3. [Vanced MicroG](https://github.com/TeamVanced/VancedMicroG/releases) required for YouTube and YouTube Music (Only for non-root)
|
|
||||||
|
|
||||||
## ⚠️ Disclaimer
|
|
||||||
*Please note that even though we're releasing the Manager, it is an ALPHA version. There's a big chance that the Manager might not work at all for you.*
|
|
||||||
|
|
||||||
## 🔴 Issues
|
## 🔴 Issues
|
||||||
For suggestions and bug reports, open an issue [here](https://github.com/revanced/revanced-manager/issues/new/choose).
|
For suggestions and bug reports, open an issue [here](https://github.com/revanced/revanced-manager/issues/new/choose).
|
||||||
@ -28,7 +24,7 @@ If you wish to translate ReVanced Manager, we're accepting translations on [Crow
|
|||||||
## 🛠️ Building Manager from source
|
## 🛠️ Building Manager from source
|
||||||
1. Setup flutter environment for your [platform](https://docs.flutter.dev/get-started/install)
|
1. Setup flutter environment for your [platform](https://docs.flutter.dev/get-started/install)
|
||||||
2. Clone the repository locally
|
2. Clone the repository locally
|
||||||
3. Add your github token in gradle.properties like [this](https://github.com/revanced/revanced-documentation/blob/main/docs/revanced-development/2_building_from_source.md)
|
3. Add your github token in gradle.properties like [this](/docs/4_building.md)
|
||||||
4. Open the project in terminal
|
4. Open the project in terminal
|
||||||
5. Run `flutter pub get` in terminal
|
5. Run `flutter pub get` in terminal
|
||||||
6. Then `flutter packages pub run build_runner build --delete-conflicting-outputs` (Must be done on each git pull)
|
6. Then `flutter packages pub run build_runner build --delete-conflicting-outputs` (Must be done on each git pull)
|
||||||
|
@ -11,23 +11,154 @@ include: package:flutter_lints/flutter.yaml
|
|||||||
|
|
||||||
analyzer:
|
analyzer:
|
||||||
exclude:
|
exclude:
|
||||||
- lib/utils/env_class.g.dart
|
- lib/app/app.locator.dart
|
||||||
|
- lib/app/app.router.dart
|
||||||
|
- lib/models/patch.g.dart
|
||||||
|
- lib/models/patched_application.g.dart
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at
|
|
||||||
# https://dart-lang.github.io/linter/lints/index.html.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
rules:
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
- always_declare_return_types
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
- require_trailing_commas
|
||||||
|
- always_put_control_body_on_new_line
|
||||||
# Additional information about this file can be found at
|
- always_require_non_null_named_parameters
|
||||||
# https://dart.dev/guides/language/analysis-options
|
- always_use_package_imports # we do this commonly
|
||||||
|
- annotate_overrides
|
||||||
|
- avoid_bool_literals_in_conditional_expressions
|
||||||
|
- avoid_double_and_int_checks
|
||||||
|
- avoid_empty_else
|
||||||
|
- avoid_equals_and_hash_code_on_mutable_classes
|
||||||
|
- avoid_escaping_inner_quotes
|
||||||
|
- avoid_field_initializers_in_const_classes
|
||||||
|
- avoid_function_literals_in_foreach_calls
|
||||||
|
- avoid_implementing_value_types
|
||||||
|
- avoid_init_to_null
|
||||||
|
- avoid_js_rounded_ints
|
||||||
|
- avoid_null_checks_in_equality_operators
|
||||||
|
- avoid_print
|
||||||
|
- avoid_redundant_argument_values
|
||||||
|
- avoid_relative_lib_imports
|
||||||
|
- avoid_renaming_method_parameters
|
||||||
|
- avoid_return_types_on_setters
|
||||||
|
- avoid_returning_null
|
||||||
|
- avoid_returning_null_for_future
|
||||||
|
- avoid_returning_null_for_void
|
||||||
|
- avoid_setters_without_getters
|
||||||
|
- avoid_shadowing_type_parameters
|
||||||
|
- avoid_single_cascade_in_expression_statements
|
||||||
|
- avoid_type_to_string
|
||||||
|
- avoid_types_as_parameter_names
|
||||||
|
- avoid_unnecessary_containers
|
||||||
|
- avoid_void_async
|
||||||
|
- avoid_web_libraries_in_flutter # we use web libraries in web-specific code, and our tests prevent us from using them elsewhere
|
||||||
|
- await_only_futures
|
||||||
|
- camel_case_extensions
|
||||||
|
- camel_case_types
|
||||||
|
- cancel_subscriptions
|
||||||
|
- cast_nullable_to_non_nullable
|
||||||
|
- close_sinks # not reliable enough
|
||||||
|
- control_flow_in_finally
|
||||||
|
- curly_braces_in_flow_control_structures
|
||||||
|
- depend_on_referenced_packages
|
||||||
|
- deprecated_consistency
|
||||||
|
- directives_ordering
|
||||||
|
- empty_catches
|
||||||
|
- empty_constructor_bodies
|
||||||
|
- empty_statements
|
||||||
|
- eol_at_end_of_file
|
||||||
|
- exhaustive_cases
|
||||||
|
- file_names
|
||||||
|
- flutter_style_todos
|
||||||
|
- hash_and_equals
|
||||||
|
- implementation_imports
|
||||||
|
- iterable_contains_unrelated_type
|
||||||
|
- leading_newlines_in_multiline_strings
|
||||||
|
- library_names
|
||||||
|
- library_prefixes
|
||||||
|
- library_private_types_in_public_api
|
||||||
|
- list_remove_unrelated_type
|
||||||
|
- missing_whitespace_between_adjacent_strings
|
||||||
|
- no_adjacent_strings_in_list
|
||||||
|
- no_duplicate_case_values
|
||||||
|
- no_logic_in_create_state
|
||||||
|
- non_constant_identifier_names
|
||||||
|
- noop_primitive_operations
|
||||||
|
- null_check_on_nullable_type_parameter
|
||||||
|
- null_closures
|
||||||
|
- overridden_fields
|
||||||
|
- package_api_docs
|
||||||
|
- package_names
|
||||||
|
- package_prefixed_library_names
|
||||||
|
- prefer_adjacent_string_concatenation
|
||||||
|
- prefer_asserts_in_initializer_lists
|
||||||
|
- prefer_collection_literals
|
||||||
|
- prefer_conditional_assignment
|
||||||
|
- prefer_const_constructors
|
||||||
|
- prefer_const_constructors_in_immutables
|
||||||
|
- prefer_const_declarations
|
||||||
|
- prefer_const_literals_to_create_immutables
|
||||||
|
- prefer_contains
|
||||||
|
- prefer_final_fields
|
||||||
|
- prefer_final_in_for_each
|
||||||
|
- prefer_final_locals
|
||||||
|
- prefer_for_elements_to_map_fromIterable
|
||||||
|
- prefer_foreach
|
||||||
|
- prefer_function_declarations_over_variables
|
||||||
|
- prefer_generic_function_type_aliases
|
||||||
|
- prefer_if_elements_to_conditional_expressions
|
||||||
|
- prefer_if_null_operators
|
||||||
|
- prefer_initializing_formals
|
||||||
|
- prefer_inlined_adds
|
||||||
|
- prefer_interpolation_to_compose_strings
|
||||||
|
- prefer_is_empty
|
||||||
|
- prefer_is_not_empty
|
||||||
|
- prefer_is_not_operator
|
||||||
|
- prefer_iterable_whereType
|
||||||
|
- prefer_mixin # Has false positives, see https://github.com/dart-lang/linter/issues/3018
|
||||||
|
- prefer_null_aware_method_calls # "call()" is confusing to people new to the language since it's not documented anywhere
|
||||||
|
- prefer_null_aware_operators
|
||||||
|
- prefer_single_quotes
|
||||||
|
- prefer_spread_collections
|
||||||
|
- prefer_typing_uninitialized_variables
|
||||||
|
- prefer_void_to_null
|
||||||
|
- provide_deprecation_message
|
||||||
|
- recursive_getters
|
||||||
|
- sized_box_for_whitespace
|
||||||
|
- slash_for_doc_comments
|
||||||
|
- sort_child_properties_last
|
||||||
|
- sort_constructors_first
|
||||||
|
- sort_unnamed_constructors_first
|
||||||
|
- test_types_in_equals
|
||||||
|
- throw_in_finally
|
||||||
|
- tighten_type_of_initializing_formals
|
||||||
|
- type_init_formals
|
||||||
|
- unnecessary_brace_in_string_interps
|
||||||
|
- unnecessary_const
|
||||||
|
- unnecessary_getters_setters
|
||||||
|
- unnecessary_new
|
||||||
|
- unnecessary_null_aware_assignments
|
||||||
|
- unnecessary_null_checks
|
||||||
|
- unnecessary_null_in_if_null_operators
|
||||||
|
- unnecessary_nullable_for_final_variable_declarations
|
||||||
|
- unnecessary_overrides
|
||||||
|
- unnecessary_parenthesis
|
||||||
|
- unnecessary_statements
|
||||||
|
- unnecessary_string_escapes
|
||||||
|
- unnecessary_string_interpolations
|
||||||
|
- unnecessary_this
|
||||||
|
- unrelated_type_equality_checks
|
||||||
|
- unsafe_html
|
||||||
|
- use_build_context_synchronously
|
||||||
|
- use_full_hex_values_for_flutter_colors
|
||||||
|
- use_function_type_syntax_for_parameters
|
||||||
|
- use_if_null_to_convert_nulls_to_bools
|
||||||
|
- use_is_even_rather_than_modulo
|
||||||
|
- use_key_in_widget_constructors
|
||||||
|
- use_late_for_private_fields_and_variables
|
||||||
|
- use_named_constants
|
||||||
|
- use_raw_strings
|
||||||
|
- use_rethrow_when_possible
|
||||||
|
- use_setters_to_change_properties
|
||||||
|
- use_test_throws_matchers
|
||||||
|
- valid_regexps
|
||||||
|
- void_checks
|
||||||
|
3
android/Gemfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "fastlane"
|
@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
|
|||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 33
|
compileSdkVersion flutter.compileSdkVersion
|
||||||
ndkVersion flutter.ndkVersion
|
ndkVersion flutter.ndkVersion
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@ -71,14 +71,10 @@ dependencies {
|
|||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
|
|
||||||
// ReVanced
|
// ReVanced
|
||||||
implementation "app.revanced:revanced-patcher:6.3.2"
|
implementation "app.revanced:revanced-patcher:11.0.4"
|
||||||
|
|
||||||
// Signing & aligning
|
// Signing & aligning
|
||||||
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
||||||
implementation("com.android.tools.build:apksig:7.2.2")
|
implementation("com.android.tools.build:apksig:7.2.2")
|
||||||
|
|
||||||
// MicroG cronet
|
|
||||||
implementation("org.microg:cronet-common:$cronetVersion")
|
|
||||||
implementation("org.microg:cronet-native:$cronetVersion")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
||||||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
||||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||||
@ -17,7 +19,8 @@
|
|||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
android:extractNativeLibs="true">
|
android:extractNativeLibs="true"
|
||||||
|
android:enableOnBackInvokedCallback="true">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
@ -28,8 +31,7 @@
|
|||||||
android:windowSoftInputMode="adjustResize">
|
android:windowSoftInputMode="adjustResize">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="io.flutter.embedding.android.NormalTheme"
|
android:name="io.flutter.embedding.android.NormalTheme"
|
||||||
android:resource="@style/NormalTheme"
|
android:resource="@style/NormalTheme"/>
|
||||||
/>
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
|
@ -43,8 +43,9 @@ class MainActivity : FlutterActivity() {
|
|||||||
val integrationsPath = call.argument<String>("integrationsPath")
|
val integrationsPath = call.argument<String>("integrationsPath")
|
||||||
val selectedPatches = call.argument<List<String>>("selectedPatches")
|
val selectedPatches = call.argument<List<String>>("selectedPatches")
|
||||||
val cacheDirPath = call.argument<String>("cacheDirPath")
|
val cacheDirPath = call.argument<String>("cacheDirPath")
|
||||||
val mergeIntegrations = call.argument<Boolean>("mergeIntegrations")
|
|
||||||
val keyStoreFilePath = call.argument<String>("keyStoreFilePath")
|
val keyStoreFilePath = call.argument<String>("keyStoreFilePath")
|
||||||
|
val keystorePassword = call.argument<String>("keystorePassword")
|
||||||
|
|
||||||
if (patchBundleFilePath != null &&
|
if (patchBundleFilePath != null &&
|
||||||
originalFilePath != null &&
|
originalFilePath != null &&
|
||||||
inputFilePath != null &&
|
inputFilePath != null &&
|
||||||
@ -53,8 +54,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
integrationsPath != null &&
|
integrationsPath != null &&
|
||||||
selectedPatches != null &&
|
selectedPatches != null &&
|
||||||
cacheDirPath != null &&
|
cacheDirPath != null &&
|
||||||
mergeIntegrations != null &&
|
keyStoreFilePath != null &&
|
||||||
keyStoreFilePath != null
|
keystorePassword != null
|
||||||
) {
|
) {
|
||||||
runPatcher(
|
runPatcher(
|
||||||
result,
|
result,
|
||||||
@ -66,8 +67,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
integrationsPath,
|
integrationsPath,
|
||||||
selectedPatches,
|
selectedPatches,
|
||||||
cacheDirPath,
|
cacheDirPath,
|
||||||
mergeIntegrations,
|
keyStoreFilePath,
|
||||||
keyStoreFilePath
|
keystorePassword
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
result.notImplemented()
|
result.notImplemented()
|
||||||
@ -88,8 +89,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
integrationsPath: String,
|
integrationsPath: String,
|
||||||
selectedPatches: List<String>,
|
selectedPatches: List<String>,
|
||||||
cacheDirPath: String,
|
cacheDirPath: String,
|
||||||
mergeIntegrations: Boolean,
|
keyStoreFilePath: String,
|
||||||
keyStoreFilePath: String
|
keystorePassword: String
|
||||||
) {
|
) {
|
||||||
val originalFile = File(originalFilePath)
|
val originalFile = File(originalFilePath)
|
||||||
val inputFile = File(inputFilePath)
|
val inputFile = File(inputFilePath)
|
||||||
@ -139,19 +140,17 @@ class MainActivity : FlutterActivity() {
|
|||||||
mapOf("progress" to 0.3, "header" to "", "log" to "")
|
mapOf("progress" to 0.3, "header" to "", "log" to "")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (mergeIntegrations) {
|
handler.post {
|
||||||
handler.post {
|
installerChannel.invokeMethod(
|
||||||
installerChannel.invokeMethod(
|
"update",
|
||||||
"update",
|
mapOf(
|
||||||
mapOf(
|
"progress" to 0.4,
|
||||||
"progress" to 0.4,
|
"header" to "Merging integrations...",
|
||||||
"header" to "Merging integrations...",
|
"log" to "Merging integrations"
|
||||||
"log" to "Merging integrations"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
}
|
)
|
||||||
patcher.addFiles(listOf(integrations)) {}
|
|
||||||
}
|
}
|
||||||
|
patcher.addIntegrations(listOf(integrations)) {}
|
||||||
|
|
||||||
handler.post {
|
handler.post {
|
||||||
installerChannel.invokeMethod(
|
installerChannel.invokeMethod(
|
||||||
@ -248,7 +247,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
// Signer("ReVanced", "s3cur3p@ssw0rd").signApk(patchedFile, outFile, keyStoreFile)
|
// Signer("ReVanced", "s3cur3p@ssw0rd").signApk(patchedFile, outFile, keyStoreFile)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Signer("ReVanced", "s3cur3p@ssw0rd").signApk(patchedFile, outFile, keyStoreFile)
|
Signer("ReVanced", keystorePassword).signApk(patchedFile, outFile, keyStoreFile)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
//log to console
|
//log to console
|
||||||
print("Error signing apk: ${e.message}")
|
print("Error signing apk: ${e.message}")
|
||||||
@ -272,8 +271,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
"update",
|
"update",
|
||||||
mapOf(
|
mapOf(
|
||||||
"progress" to -100.0,
|
"progress" to -100.0,
|
||||||
"header" to "Aborting...",
|
"header" to "Aborted...",
|
||||||
"log" to "An error occurred! Aborting\nError:\n$stack"
|
"log" to "An error occurred! Aborted\nError:\n$stack"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 5.4 KiB |
30
android/app/src/main/res/drawable/ic_launcher_foreground.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="256"
|
||||||
|
android:viewportHeight="256">
|
||||||
|
<group android:scaleX="0.23"
|
||||||
|
android:scaleY="0.23"
|
||||||
|
android:translateX="98.56"
|
||||||
|
android:translateY="98.56">
|
||||||
|
<path
|
||||||
|
android:pathData="M253.85,4.9C254.32,3.82 254.22,2.57 253.58,1.58C252.93,0.6 251.83,0 250.64,0C243.29,0 230.47,0 225.95,0C224.96,0 224.06,0.59 223.66,1.5C216.03,18.88 144.1,182.7 130.29,214.16C129.89,215.07 128.99,215.66 128,215.66C127.01,215.66 126.11,215.07 125.71,214.16C111.9,182.7 39.97,18.88 32.34,1.5C31.94,0.59 31.04,0 30.05,0C25.53,0 12.71,0 5.36,0C4.17,0 3.07,0.6 2.42,1.58C1.78,2.57 1.68,3.82 2.15,4.9C16.78,38.3 101.47,231.61 111.24,253.9C111.8,255.18 113.06,256 114.45,256C120.29,256 135.71,256 141.55,256C142.94,256 144.2,255.18 144.76,253.9C154.52,231.61 239.22,38.3 253.85,4.9Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M130.59,131.75C130.06,132.68 129.07,133.25 128,133.25C126.93,133.25 125.94,132.68 125.4,131.75C113.45,111.06 63.88,25.19 51.93,4.5C51.4,3.57 51.4,2.43 51.93,1.5C52.47,0.57 53.46,-0 54.53,-0L201.47,-0C202.54,-0 203.53,0.57 204.06,1.5C204.6,2.43 204.6,3.57 204.06,4.5C192.12,25.19 142.54,111.06 130.59,131.75Z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:startX="128"
|
||||||
|
android:startY="-0"
|
||||||
|
android:endX="128"
|
||||||
|
android:endY="254.6"
|
||||||
|
android:type="linear">
|
||||||
|
<item android:offset="0" android:color="#FFF04E98"/>
|
||||||
|
<item android:offset="0.5" android:color="#FF5F65D4"/>
|
||||||
|
<item android:offset="1" android:color="#FF4E98F0"/>
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
</group>
|
||||||
|
</vector>
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 5.3 KiB |
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@color/ic_launcher_background"/>
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.4 KiB |
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="ic_launcher_background">#1B1B1B</color>
|
<color name="ic_launcher_background">#1B1B1B</color>
|
||||||
</resources>
|
</resources>
|
@ -1,6 +1,5 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
ext.cronetVersion = '102.5005.125'
|
ext.kotlin_version = '1.7.10'
|
||||||
ext.kotlin_version = '1.7.20'
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -32,6 +31,6 @@ subprojects {
|
|||||||
project.evaluationDependsOn(':app')
|
project.evaluationDependsOn(':app')
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
tasks.register("clean", Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#Mon May 09 12:07:41 MSK 2022
|
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-rc-1-bin.zip
|
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
distributionSha256Sum=a01b6587e15fe7ed120a0ee299c25982a1eee045abd6a9dd5e216b2f628ef9ac
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "لم يتم اختيار أي تطبيق",
|
"widgetSubtitle": "لم يتم اختيار أي تطبيق",
|
||||||
"noAppsLabel": "لم يتم العثور على تطبيقات",
|
"noAppsLabel": "لم يتم العثور على تطبيقات",
|
||||||
"currentVersion": "الحالي",
|
"currentVersion": "الحالي",
|
||||||
"recommendedVersion": "موصى به",
|
"recommendedVersion": "موصى به"
|
||||||
"anyVersion": "أي"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "اختر التعديلات",
|
"widgetTitle": "اختر التعديلات",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Heç bir tətbiq seçilməyib",
|
"widgetSubtitle": "Heç bir tətbiq seçilməyib",
|
||||||
"noAppsLabel": "Heç bir tətbiq tapılmadı",
|
"noAppsLabel": "Heç bir tətbiq tapılmadı",
|
||||||
"currentVersion": "Hazırkı",
|
"currentVersion": "Hazırkı",
|
||||||
"recommendedVersion": "Tövsiyyə edilən",
|
"recommendedVersion": "Tövsiyyə edilən"
|
||||||
"anyVersion": "istənilən"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Yamaqları seçin",
|
"widgetTitle": "Yamaqları seçin",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Няма избрано приложение",
|
"widgetSubtitle": "Няма избрано приложение",
|
||||||
"noAppsLabel": "Няма намерени приложения",
|
"noAppsLabel": "Няма намерени приложения",
|
||||||
"currentVersion": "Текуща",
|
"currentVersion": "Текуща",
|
||||||
"recommendedVersion": "Препоръчана",
|
"recommendedVersion": "Препоръчана"
|
||||||
"anyVersion": "всяка"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Изберете модификации",
|
"widgetTitle": "Изберете модификации",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "কোনো অ্যাপ্লিকেশন নির্বাচন করা হয়নি",
|
"widgetSubtitle": "কোনো অ্যাপ্লিকেশন নির্বাচন করা হয়নি",
|
||||||
"noAppsLabel": "কোন অ্যাপ্লিকেশন পাওয়া যায়নি",
|
"noAppsLabel": "কোন অ্যাপ্লিকেশন পাওয়া যায়নি",
|
||||||
"currentVersion": "বর্তমান",
|
"currentVersion": "বর্তমান",
|
||||||
"recommendedVersion": "প্রস্তাবিত",
|
"recommendedVersion": "প্রস্তাবিত"
|
||||||
"anyVersion": "যেকোনো সংস্করণ"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "প্যাচ নির্বাচন করুন",
|
"widgetTitle": "প্যাচ নির্বাচন করুন",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Nebyla vybrána žádná aplikace",
|
"widgetSubtitle": "Nebyla vybrána žádná aplikace",
|
||||||
"noAppsLabel": "Nebyly nalezeny žádné aplikace",
|
"noAppsLabel": "Nebyly nalezeny žádné aplikace",
|
||||||
"currentVersion": "Aktuální",
|
"currentVersion": "Aktuální",
|
||||||
"recommendedVersion": "Doporučeno",
|
"recommendedVersion": "Doporučeno"
|
||||||
"anyVersion": "jakákoliv"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Vybrat záplaty",
|
"widgetTitle": "Vybrat záplaty",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Ingen applikation valgt",
|
"widgetSubtitle": "Ingen applikation valgt",
|
||||||
"noAppsLabel": "Ingen applikationer fundet",
|
"noAppsLabel": "Ingen applikationer fundet",
|
||||||
"currentVersion": "Nuværende",
|
"currentVersion": "Nuværende",
|
||||||
"recommendedVersion": "Anbefalet",
|
"recommendedVersion": "Anbefalet"
|
||||||
"anyVersion": "enhver"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Vælg patches",
|
"widgetTitle": "Vælg patches",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Keine App ausgewählt",
|
"widgetSubtitle": "Keine App ausgewählt",
|
||||||
"noAppsLabel": "Keine Apps gefunden",
|
"noAppsLabel": "Keine Apps gefunden",
|
||||||
"currentVersion": "Aktuell",
|
"currentVersion": "Aktuell",
|
||||||
"recommendedVersion": "Empfohlen",
|
"recommendedVersion": "Empfohlen"
|
||||||
"anyVersion": "beliebig"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Patches auswählen",
|
"widgetTitle": "Patches auswählen",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Δεν έχει επιλεχθεί εφαρμογή",
|
"widgetSubtitle": "Δεν έχει επιλεχθεί εφαρμογή",
|
||||||
"noAppsLabel": "Δεν βρέθηκαν εφαρμογές",
|
"noAppsLabel": "Δεν βρέθηκαν εφαρμογές",
|
||||||
"currentVersion": "Τρέχουσα",
|
"currentVersion": "Τρέχουσα",
|
||||||
"recommendedVersion": "Προτεινόμενη",
|
"recommendedVersion": "Προτεινόμενη"
|
||||||
"anyVersion": "οποιαδήποτε"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Επιλέξτε τροποποιήσεις",
|
"widgetTitle": "Επιλέξτε τροποποιήσεις",
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
"updateButton": "Update",
|
"updateButton": "Update",
|
||||||
"enabledLabel": "Enabled",
|
"enabledLabel": "Enabled",
|
||||||
"disabledLabel": "Disabled",
|
"disabledLabel": "Disabled",
|
||||||
|
"installed":"Installed: {version}",
|
||||||
|
"suggested":"Suggested: {version}",
|
||||||
"yesButton": "Yes",
|
"yesButton": "Yes",
|
||||||
"noButton": "No",
|
"noButton": "No",
|
||||||
"warning": "Warning",
|
"warning": "Warning",
|
||||||
@ -13,22 +15,35 @@
|
|||||||
"settingsTab": "Settings"
|
"settingsTab": "Settings"
|
||||||
},
|
},
|
||||||
"homeView": {
|
"homeView": {
|
||||||
|
"refreshSuccess": "Refreshed successfully",
|
||||||
"widgetTitle": "Dashboard",
|
"widgetTitle": "Dashboard",
|
||||||
|
|
||||||
"updatesSubtitle": "Updates",
|
"updatesSubtitle": "Updates",
|
||||||
"patchedSubtitle": "Patched applications",
|
"patchedSubtitle": "Patched applications",
|
||||||
|
|
||||||
"updatesAvailable": "Updates available",
|
"updatesAvailable": "Updates available",
|
||||||
"noUpdates": "No updates available",
|
"noUpdates": "No updates available",
|
||||||
|
|
||||||
"WIP": "Work in progress...",
|
"WIP": "Work in progress...",
|
||||||
|
|
||||||
"noInstallations": "No patched applications installed",
|
"noInstallations": "No patched applications installed",
|
||||||
"installed": "Installed",
|
"installed": "Installed",
|
||||||
|
"installUpdate": "Continue to install the update?",
|
||||||
|
|
||||||
"updateDialogTitle": "Update Manager",
|
"updateDialogTitle": "Update Manager",
|
||||||
"updateChangelogTitle": "Changelog",
|
"updateChangelogTitle": "Changelog",
|
||||||
|
|
||||||
"notificationTitle": "Update downloaded",
|
"notificationTitle": "Update downloaded",
|
||||||
"notificationText": "Tap to install the update",
|
"notificationText": "Tap to install the update",
|
||||||
|
|
||||||
"downloadingMessage": "Downloading update...",
|
"downloadingMessage": "Downloading update...",
|
||||||
|
"downloadedMessage": "Update downloaded!",
|
||||||
|
|
||||||
"installingMessage": "Installing update...",
|
"installingMessage": "Installing update...",
|
||||||
|
|
||||||
"errorDownloadMessage": "Unable to download update",
|
"errorDownloadMessage": "Unable to download update",
|
||||||
"errorInstallMessage": "Unable to install update",
|
"errorInstallMessage": "Unable to install update",
|
||||||
|
|
||||||
"noConnection": "No internet connection",
|
"noConnection": "No internet connection",
|
||||||
"updatesDisabled": "Updating a patched app is currently disabled. Repatch the app again."
|
"updatesDisabled": "Updating a patched app is currently disabled. Repatch the app again."
|
||||||
},
|
},
|
||||||
@ -47,20 +62,27 @@
|
|||||||
"patcherView": {
|
"patcherView": {
|
||||||
"widgetTitle": "Patcher",
|
"widgetTitle": "Patcher",
|
||||||
"patchButton": "Patch",
|
"patchButton": "Patch",
|
||||||
"patchDialogText": "You have selected a resource patch and a split APK installation has been detected, so patching errors may occur.\nAre you sure you want to proceed?"
|
|
||||||
|
"patchDialogText": "You have selected a resource patch and a split APK installation has been detected, so patching errors may occur.\nAre you sure you want to proceed?",
|
||||||
|
"armv7WarningDialogText": "Patching on ARMv7 devices is not yet supported and might fail. Proceed anyways?",
|
||||||
|
"splitApkWarningDialogText": "Patching a split APK is not yet supported and might fail. Proceed anyways?"
|
||||||
},
|
},
|
||||||
"appSelectorCard": {
|
"appSelectorCard": {
|
||||||
"widgetTitle": "Select an application",
|
"widgetTitle": "Select an application",
|
||||||
"widgetTitleSelected": "Selected application",
|
"widgetTitleSelected": "Selected application",
|
||||||
"widgetSubtitle": "No application selected",
|
"widgetSubtitle": "No application selected",
|
||||||
|
|
||||||
"noAppsLabel": "No applications found",
|
"noAppsLabel": "No applications found",
|
||||||
|
"notInstalled":"App not installed",
|
||||||
|
|
||||||
"currentVersion": "Current",
|
"currentVersion": "Current",
|
||||||
"recommendedVersion": "Recommended",
|
"suggestedVersion": "Suggested",
|
||||||
"anyVersion": "any"
|
"allVersions": "All versions"
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Select patches",
|
"widgetTitle": "Select patches",
|
||||||
"widgetTitleSelected": "Selected patches",
|
"widgetTitleSelected": "Selected patches",
|
||||||
|
|
||||||
"widgetSubtitle": "Select an application first",
|
"widgetSubtitle": "Select an application first",
|
||||||
"widgetEmptySubtitle": "No patches selected"
|
"widgetEmptySubtitle": "No patches selected"
|
||||||
},
|
},
|
||||||
@ -71,20 +93,34 @@
|
|||||||
"appSelectorView": {
|
"appSelectorView": {
|
||||||
"viewTitle": "Select an application",
|
"viewTitle": "Select an application",
|
||||||
"searchBarHint": "Search applications",
|
"searchBarHint": "Search applications",
|
||||||
|
|
||||||
"storageButton": "Storage",
|
"storageButton": "Storage",
|
||||||
"errorMessage": "Unable to use selected application"
|
"selectFromStorageButton": "Select from storage",
|
||||||
|
|
||||||
|
"errorMessage": "Unable to use selected application",
|
||||||
|
|
||||||
|
"downloadToast": "Download function is not available yet",
|
||||||
|
|
||||||
|
"featureNotAvailable": "Feature not implemented",
|
||||||
|
"featureNotAvailableText": "This application is a split APK and cannot be selected. Unfortunately, this feature is only available for rooted users at the moment. However, you can still install the application by selecting its APK files from your device's storage instead"
|
||||||
},
|
},
|
||||||
"patchesSelectorView": {
|
"patchesSelectorView": {
|
||||||
"viewTitle": "Select patches",
|
"viewTitle": "Select patches",
|
||||||
"searchBarHint": "Search patches",
|
"searchBarHint": "Search patches",
|
||||||
|
|
||||||
"doneButton": "Done",
|
"doneButton": "Done",
|
||||||
"recommended": "Recommended",
|
|
||||||
"all": "All",
|
"default": "Default",
|
||||||
|
"defaultTooltip": "Select all default patches",
|
||||||
|
|
||||||
"none": "None",
|
"none": "None",
|
||||||
|
"noneTooltip": "Deselect all patches",
|
||||||
|
|
||||||
"loadPatchesSelection": "Load patches selection",
|
"loadPatchesSelection": "Load patches selection",
|
||||||
"noSavedPatches": "No saved patches for the selected app.\nPress Done to save current selection.",
|
"noSavedPatches": "No saved patches for the selected app.\nPress Done to save current selection.",
|
||||||
"noPatchesFound": "No patches found for the selected app",
|
"noPatchesFound": "No patches found for the selected app",
|
||||||
"selectAllPatchesWarningContent": "You are about to select all patches, that includes unrecommended patches and can cause unwanted behavior."
|
|
||||||
|
"selectAllPatchesWarningContent": "You are about to select all patches, that includes non-suggested patches and can cause unwanted behavior."
|
||||||
},
|
},
|
||||||
"patchItem": {
|
"patchItem": {
|
||||||
"unsupportedDialogText": "Selecting this patch may result in patching errors.\n\nApp version: {packageVersion}\nSupported versions:\n{supportedVersions}",
|
"unsupportedDialogText": "Selecting this patch may result in patching errors.\n\nApp version: {packageVersion}\nSupported versions:\n{supportedVersions}",
|
||||||
@ -96,11 +132,14 @@
|
|||||||
"installRootButton": "Install as Root",
|
"installRootButton": "Install as Root",
|
||||||
"openButton": "Open",
|
"openButton": "Open",
|
||||||
"shareButton": "Share file",
|
"shareButton": "Share file",
|
||||||
|
|
||||||
"notificationTitle": "ReVanced Manager is patching",
|
"notificationTitle": "ReVanced Manager is patching",
|
||||||
"notificationText": "Tap to return to the installer",
|
"notificationText": "Tap to return to the installer",
|
||||||
|
|
||||||
"shareApkMenuOption": "Share APK",
|
"shareApkMenuOption": "Share APK",
|
||||||
"exportApkMenuOption": "Export APK",
|
"exportApkMenuOption": "Export APK",
|
||||||
"shareLogMenuOption": "Share log",
|
"shareLogMenuOption": "Share log",
|
||||||
|
|
||||||
"installErrorDialogTitle": "Error",
|
"installErrorDialogTitle": "Error",
|
||||||
"installErrorDialogText1": "Root install is not possible with the current patches selection.\nRepatch your app or choose non-root install.",
|
"installErrorDialogText1": "Root install is not possible with the current patches selection.\nRepatch your app or choose non-root install.",
|
||||||
"installErrorDialogText2": "Non-root install is not possible with the current patches selection.\nRepatch your app or choose root install if you have your device rooted.",
|
"installErrorDialogText2": "Non-root install is not possible with the current patches selection.\nRepatch your app or choose root install if you have your device rooted.",
|
||||||
@ -109,65 +148,95 @@
|
|||||||
},
|
},
|
||||||
"settingsView": {
|
"settingsView": {
|
||||||
"widgetTitle": "Settings",
|
"widgetTitle": "Settings",
|
||||||
|
|
||||||
"appearanceSectionTitle": "Appearance",
|
"appearanceSectionTitle": "Appearance",
|
||||||
"teamSectionTitle": "Team",
|
"teamSectionTitle": "Team",
|
||||||
"infoSectionTitle": "Info",
|
"infoSectionTitle": "Info",
|
||||||
"advancedSectionTitle": "Advanced",
|
"advancedSectionTitle": "Advanced",
|
||||||
|
"exportSectionTitle": "Import & export",
|
||||||
"logsSectionTitle": "Logs",
|
"logsSectionTitle": "Logs",
|
||||||
|
|
||||||
"darkThemeLabel": "Dark mode",
|
"darkThemeLabel": "Dark mode",
|
||||||
"darkThemeHint": "Welcome to the dark side",
|
"darkThemeHint": "Welcome to the dark side",
|
||||||
|
|
||||||
"dynamicThemeLabel": "Material You",
|
"dynamicThemeLabel": "Material You",
|
||||||
"dynamicThemeHint": "Enjoy an experience closer to your device",
|
"dynamicThemeHint": "Enjoy an experience closer to your device",
|
||||||
|
|
||||||
"languageLabel": "Language",
|
"languageLabel": "Language",
|
||||||
"englishOption": "English",
|
"englishOption": "English",
|
||||||
|
|
||||||
"sourcesLabel": "Sources",
|
"sourcesLabel": "Sources",
|
||||||
"sourcesLabelHint": "Configure your custom sources",
|
"sourcesLabelHint": "Configure your custom sources",
|
||||||
"hostRepositoryLabel": "Repository API",
|
|
||||||
"orgPatchesLabel": "Patches organization",
|
|
||||||
"sourcesPatchesLabel": "Patches source",
|
|
||||||
"orgIntegrationsLabel": "Integrations organization",
|
|
||||||
"sourcesIntegrationsLabel": "Integrations source",
|
"sourcesIntegrationsLabel": "Integrations source",
|
||||||
"sourcesResetDialogTitle": "Reset",
|
"sourcesResetDialogTitle": "Reset",
|
||||||
"sourcesResetDialogText": "Are you sure you want to reset custom sources to their default values?",
|
"sourcesResetDialogText": "Are you sure you want to reset custom sources to their default values?",
|
||||||
"apiURLResetDialogText": "Are you sure you want to reset API URL to its default value?",
|
"apiURLResetDialogText": "Are you sure you want to reset API URL to its default value?",
|
||||||
"contributorsLabel": "Contributors",
|
|
||||||
"contributorsHint": "A list of contributors of ReVanced",
|
|
||||||
"logsLabel": "Logs",
|
|
||||||
"logsHint": "Share Manager's logs",
|
|
||||||
"apiURLLabel": "API URL",
|
"apiURLLabel": "API URL",
|
||||||
"apiURLHint": "Configure your custom API URL",
|
"apiURLHint": "Configure your custom API URL",
|
||||||
"selectApiURL": "API URL",
|
"selectApiURL": "API URL",
|
||||||
|
"hostRepositoryLabel": "Repository API",
|
||||||
|
"orgPatchesLabel": "Patches organization",
|
||||||
|
"sourcesPatchesLabel": "Patches source",
|
||||||
|
"orgIntegrationsLabel": "Integrations organization",
|
||||||
|
|
||||||
|
"contributorsLabel": "Contributors",
|
||||||
|
"contributorsHint": "A list of contributors of ReVanced",
|
||||||
|
|
||||||
|
"logsLabel": "Logs",
|
||||||
|
"logsHint": "Share Manager's logs",
|
||||||
|
|
||||||
"experimentalUniversalPatchesLabel": "Experimental universal patches support",
|
"experimentalUniversalPatchesLabel": "Experimental universal patches support",
|
||||||
"experimentalUniversalPatchesHint": "Display all applications to use with universal patches, loading list of apps may be slower",
|
"experimentalUniversalPatchesHint": "Display all applications to use with universal patches, loading list of apps may be slower",
|
||||||
"experimentalPatchesLabel": "Experimental patches support",
|
"experimentalPatchesLabel": "Experimental patches support",
|
||||||
"experimentalPatchesHint": "Enable usage of unsupported patches in any app version",
|
"experimentalPatchesHint": "Enable usage of unsupported patches in any app version",
|
||||||
"enabledExperimentalPatches": "Experimental patches support enabled",
|
"enabledExperimentalPatches": "Experimental patches support enabled",
|
||||||
"exportSectionTitle": "Import & export",
|
|
||||||
"aboutLabel": "About",
|
"aboutLabel": "About",
|
||||||
"snackbarMessage": "Copied to clipboard",
|
"snackbarMessage": "Copied to clipboard",
|
||||||
"sentryLabel": "Sentry logging",
|
|
||||||
"sentryHint": "Send anonymous logs to help us improve ReVanced Manager",
|
|
||||||
"restartAppForChanges": "Restart the app to apply changes",
|
"restartAppForChanges": "Restart the app to apply changes",
|
||||||
"deleteKeystoreLabel": "Delete keystore",
|
|
||||||
"deleteKeystoreHint": "Delete the keystore used to sign the app",
|
|
||||||
"deletedKeystore": "Keystore deleted",
|
|
||||||
"deleteTempDirLabel": "Delete temporary files",
|
"deleteTempDirLabel": "Delete temporary files",
|
||||||
"deleteTempDirHint": "Delete unused temporary files",
|
"deleteTempDirHint": "Delete unused temporary files",
|
||||||
"deletedTempDir": "Temporary files deleted",
|
"deletedTempDir": "Temporary files deleted",
|
||||||
|
|
||||||
"exportPatchesLabel": "Export patches selection",
|
"exportPatchesLabel": "Export patches selection",
|
||||||
"exportPatchesHint": "Export patches selection to a JSON file",
|
"exportPatchesHint": "Export patches selection to a JSON file",
|
||||||
"exportedPatches": "Patches selection exported",
|
"exportedPatches": "Patches selection exported",
|
||||||
"noExportFileFound": "No patches selection to export",
|
"noExportFileFound": "No patches selection to export",
|
||||||
|
|
||||||
"importPatchesLabel": "Import patches selection",
|
"importPatchesLabel": "Import patches selection",
|
||||||
"importPatchesHint": "Import patches selection from a JSON file",
|
"importPatchesHint": "Import patches selection from a JSON file",
|
||||||
"importedPatches": "Patches selection imported",
|
"importedPatches": "Patches selection imported",
|
||||||
|
|
||||||
"resetStoredPatchesLabel": "Reset patches",
|
"resetStoredPatchesLabel": "Reset patches",
|
||||||
"resetStoredPatchesHint": "Reset the stored patches selection",
|
"resetStoredPatchesHint": "Reset the stored patches selection",
|
||||||
|
"resetStoredPatchesDialogText": "Are you sure you want to reset the stored patches selection?",
|
||||||
"resetStoredPatches": "Patches selection has been reset",
|
"resetStoredPatches": "Patches selection has been reset",
|
||||||
"jsonSelectorErrorMessage": "Unable to use selected JSON file",
|
|
||||||
"deleteLogsLabel": "Delete logs",
|
"deleteLogsLabel": "Delete logs",
|
||||||
"deleteLogsHint": "Delete collected manager logs",
|
"deleteLogsHint": "Delete collected manager logs",
|
||||||
"deletedLogs": "Logs deleted"
|
"deletedLogs": "Logs deleted",
|
||||||
|
|
||||||
|
"deleteKeystoreLabel": "Delete keystore",
|
||||||
|
"deleteKeystoreHint": "Delete the keystore used to sign the app",
|
||||||
|
"deleteKeystoreDialogText": "Are you sure you want to delete the keystore used to sign patched applications?",
|
||||||
|
"deletedKeystore": "Keystore deleted",
|
||||||
|
|
||||||
|
"exportKeystoreLabel": "Export keystore",
|
||||||
|
"exportKeystoreHint": "Export keystore used to sign apps",
|
||||||
|
"exportedKeystore": "Keystore exported",
|
||||||
|
"noKeystoreExportFileFound": "No keystore to export",
|
||||||
|
|
||||||
|
"importKeystoreLabel": "Import keystore",
|
||||||
|
"importKeystoreHint": "Import keystore used to sign apps",
|
||||||
|
"importedKeystore": "Keystore imported",
|
||||||
|
|
||||||
|
"selectKeystorePassword": "Keystore Password",
|
||||||
|
"selectKeystorePasswordHint": "Select keystore password used to sign the apk",
|
||||||
|
|
||||||
|
"jsonSelectorErrorMessage": "Unable to use selected JSON file",
|
||||||
|
"keystoreSelectorErrorMessage": "Unable to use selected KEYSTORE file"
|
||||||
},
|
},
|
||||||
"appInfoView": {
|
"appInfoView": {
|
||||||
"widgetTitle": "App info",
|
"widgetTitle": "App info",
|
||||||
@ -175,18 +244,22 @@
|
|||||||
"uninstallButton": "Uninstall",
|
"uninstallButton": "Uninstall",
|
||||||
"patchButton": "Patch",
|
"patchButton": "Patch",
|
||||||
"unpatchButton": "Unpatch",
|
"unpatchButton": "Unpatch",
|
||||||
"unpatchDialogText": "Are you sure you want to unpatch this app?",
|
|
||||||
"rootDialogTitle": "Error",
|
"rootDialogTitle": "Error",
|
||||||
|
|
||||||
|
"unpatchDialogText": "Are you sure you want to unpatch this app?",
|
||||||
"rootDialogText": "App was installed with superuser permissions, but currently ReVanced Manager has no permissions.\nPlease grant superuser permissions first.",
|
"rootDialogText": "App was installed with superuser permissions, but currently ReVanced Manager has no permissions.\nPlease grant superuser permissions first.",
|
||||||
|
|
||||||
"packageNameLabel": "Package name",
|
"packageNameLabel": "Package name",
|
||||||
"originalPackageNameLabel": "Original package name",
|
"originalPackageNameLabel": "Original package name",
|
||||||
"installTypeLabel": "Installation type",
|
"installTypeLabel": "Installation type",
|
||||||
"rootTypeLabel": "Root",
|
"rootTypeLabel": "Root",
|
||||||
"nonRootTypeLabel": "Non-root",
|
"nonRootTypeLabel": "Non-root",
|
||||||
"patchedDateLabel": "Patched date",
|
"patchedDateLabel": "Patched date",
|
||||||
"patchedDateHint": "{date} at {time}",
|
|
||||||
"appliedPatchesLabel": "Applied patches",
|
"appliedPatchesLabel": "Applied patches",
|
||||||
|
|
||||||
|
"patchedDateHint": "{date} at {time}",
|
||||||
"appliedPatchesHint": "{quantity} applied patches",
|
"appliedPatchesHint": "{quantity} applied patches",
|
||||||
|
|
||||||
"updateNotImplemented": "This feature has not been implemented yet"
|
"updateNotImplemented": "This feature has not been implemented yet"
|
||||||
},
|
},
|
||||||
"contributorsView": {
|
"contributorsView": {
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Ninguna aplicación seleccionada",
|
"widgetSubtitle": "Ninguna aplicación seleccionada",
|
||||||
"noAppsLabel": "No se encontraron aplicaciones",
|
"noAppsLabel": "No se encontraron aplicaciones",
|
||||||
"currentVersion": "Versión actual",
|
"currentVersion": "Versión actual",
|
||||||
"recommendedVersion": "Versión recomendada",
|
"recommendedVersion": "Versión recomendada"
|
||||||
"anyVersion": "cualquiera"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Seleccionar parches",
|
"widgetTitle": "Seleccionar parches",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Ninguna aplicación seleccionada",
|
"widgetSubtitle": "Ninguna aplicación seleccionada",
|
||||||
"noAppsLabel": "No se encontraron aplicaciones",
|
"noAppsLabel": "No se encontraron aplicaciones",
|
||||||
"currentVersion": "Versión actual",
|
"currentVersion": "Versión actual",
|
||||||
"recommendedVersion": "Versión recomendada",
|
"recommendedVersion": "Versión recomendada"
|
||||||
"anyVersion": "Cualquier versión"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Seleccionar parches",
|
"widgetTitle": "Seleccionar parches",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Sovellusta ei ole valittu",
|
"widgetSubtitle": "Sovellusta ei ole valittu",
|
||||||
"noAppsLabel": "Sovelluksia ei löytynyt",
|
"noAppsLabel": "Sovelluksia ei löytynyt",
|
||||||
"currentVersion": "Nykyinen",
|
"currentVersion": "Nykyinen",
|
||||||
"recommendedVersion": "Suositeltu",
|
"recommendedVersion": "Suositeltu"
|
||||||
"anyVersion": "mikä tahansa"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Valitse paikkaukset",
|
"widgetTitle": "Valitse paikkaukset",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Aucune application sélectionnée",
|
"widgetSubtitle": "Aucune application sélectionnée",
|
||||||
"noAppsLabel": "Aucune application trouvée",
|
"noAppsLabel": "Aucune application trouvée",
|
||||||
"currentVersion": "Version actuelle",
|
"currentVersion": "Version actuelle",
|
||||||
"recommendedVersion": "Version recommandée",
|
"recommendedVersion": "Version recommandée"
|
||||||
"anyVersion": "n'importe laquelle"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Sélectionner les patchs",
|
"widgetTitle": "Sélectionner les patchs",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "कोई ऐप्लकैशन चुना हुआ नहीं",
|
"widgetSubtitle": "कोई ऐप्लकैशन चुना हुआ नहीं",
|
||||||
"noAppsLabel": "कोई एप्लिकेशन नहीं मिला।",
|
"noAppsLabel": "कोई एप्लिकेशन नहीं मिला।",
|
||||||
"currentVersion": "वर्तमान",
|
"currentVersion": "वर्तमान",
|
||||||
"recommendedVersion": "अनुशंसित",
|
"recommendedVersion": "अनुशंसित"
|
||||||
"anyVersion": "कोई"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "पैच चुने",
|
"widgetTitle": "पैच चुने",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Nincs kiválasztott alkalmazás",
|
"widgetSubtitle": "Nincs kiválasztott alkalmazás",
|
||||||
"noAppsLabel": "Nem találhatóak alkalmazások",
|
"noAppsLabel": "Nem találhatóak alkalmazások",
|
||||||
"currentVersion": "Jelenlegi",
|
"currentVersion": "Jelenlegi",
|
||||||
"recommendedVersion": "Ajánlott",
|
"recommendedVersion": "Ajánlott"
|
||||||
"anyVersion": "bármely"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Patchek kiválasztása",
|
"widgetTitle": "Patchek kiválasztása",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Tidak ada aplikasi yang dipilih",
|
"widgetSubtitle": "Tidak ada aplikasi yang dipilih",
|
||||||
"noAppsLabel": "Aplikasi tidak ditemukan",
|
"noAppsLabel": "Aplikasi tidak ditemukan",
|
||||||
"currentVersion": "Saat ini",
|
"currentVersion": "Saat ini",
|
||||||
"recommendedVersion": "Rekomendasi",
|
"recommendedVersion": "Rekomendasi"
|
||||||
"anyVersion": "semua"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Pilih Modifikasi",
|
"widgetTitle": "Pilih Modifikasi",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nessuna applicazione selezionata",
|
"widgetSubtitle": "Nessuna applicazione selezionata",
|
||||||
"noAppsLabel": "Nessuna applicazione trovata",
|
"noAppsLabel": "Nessuna applicazione trovata",
|
||||||
"currentVersion": "Attuale",
|
"currentVersion": "Attuale",
|
||||||
"recommendedVersion": "Consigliata",
|
"recommendedVersion": "Consigliata"
|
||||||
"anyVersion": "qualsiasi"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Seleziona patch",
|
"widgetTitle": "Seleziona patch",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "선택된 앱 없음",
|
"widgetSubtitle": "선택된 앱 없음",
|
||||||
"noAppsLabel": "앱이 발견되지 않음",
|
"noAppsLabel": "앱이 발견되지 않음",
|
||||||
"currentVersion": "현재 버전",
|
"currentVersion": "현재 버전",
|
||||||
"recommendedVersion": "권장 버전",
|
"recommendedVersion": "권장 버전"
|
||||||
"anyVersion": "모든 버전"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "패치를 선택하세요",
|
"widgetTitle": "패치를 선택하세요",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nepasirinkta programa",
|
"widgetSubtitle": "Nepasirinkta programa",
|
||||||
"noAppsLabel": "Nerastos jokios programos",
|
"noAppsLabel": "Nerastos jokios programos",
|
||||||
"currentVersion": "Dabartinė",
|
"currentVersion": "Dabartinė",
|
||||||
"recommendedVersion": "Rekomenduojama",
|
"recommendedVersion": "Rekomenduojama"
|
||||||
"anyVersion": "bet kokia"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Pasirinkite modifikacijas",
|
"widgetTitle": "Pasirinkite modifikacijas",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Tiada aplikasi dipilih",
|
"widgetSubtitle": "Tiada aplikasi dipilih",
|
||||||
"noAppsLabel": "Tiada aplikasi ditemui",
|
"noAppsLabel": "Tiada aplikasi ditemui",
|
||||||
"currentVersion": "Semasa",
|
"currentVersion": "Semasa",
|
||||||
"recommendedVersion": "Disyorkan",
|
"recommendedVersion": "Disyorkan"
|
||||||
"anyVersion": "mana-mana"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Pilih modifikasi",
|
"widgetTitle": "Pilih modifikasi",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nie wybrano aplikacji",
|
"widgetSubtitle": "Nie wybrano aplikacji",
|
||||||
"noAppsLabel": "Nie znaleziono aplikacji",
|
"noAppsLabel": "Nie znaleziono aplikacji",
|
||||||
"currentVersion": "Aktualna",
|
"currentVersion": "Aktualna",
|
||||||
"recommendedVersion": "Zalecana",
|
"recommendedVersion": "Zalecana"
|
||||||
"anyVersion": "dowolna"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Wybierz łatki",
|
"widgetTitle": "Wybierz łatki",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Nenhum aplicativo selecionado",
|
"widgetSubtitle": "Nenhum aplicativo selecionado",
|
||||||
"noAppsLabel": "Nenhum app foi encontrado",
|
"noAppsLabel": "Nenhum app foi encontrado",
|
||||||
"currentVersion": "Atual",
|
"currentVersion": "Atual",
|
||||||
"recommendedVersion": "Recomendado",
|
"recommendedVersion": "Recomendado"
|
||||||
"anyVersion": "todos"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Selecionar patches",
|
"widgetTitle": "Selecionar patches",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nenhuma aplicação selecionada",
|
"widgetSubtitle": "Nenhuma aplicação selecionada",
|
||||||
"noAppsLabel": "Não foram encontradas aplicações",
|
"noAppsLabel": "Não foram encontradas aplicações",
|
||||||
"currentVersion": "Atual",
|
"currentVersion": "Atual",
|
||||||
"recommendedVersion": "Recomendada",
|
"recommendedVersion": "Recomendada"
|
||||||
"anyVersion": "qualquer"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Selecionar modificações",
|
"widgetTitle": "Selecionar modificações",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nicio aplicație selectată",
|
"widgetSubtitle": "Nicio aplicație selectată",
|
||||||
"noAppsLabel": "Nu s-au găsit aplicații",
|
"noAppsLabel": "Nu s-au găsit aplicații",
|
||||||
"currentVersion": "Actual",
|
"currentVersion": "Actual",
|
||||||
"recommendedVersion": "Recomandat",
|
"recommendedVersion": "Recomandat"
|
||||||
"anyVersion": "oricare"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Selectați patch-urile",
|
"widgetTitle": "Selectați patch-urile",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Не выбрано приложение",
|
"widgetSubtitle": "Не выбрано приложение",
|
||||||
"noAppsLabel": "Приложения не найдены",
|
"noAppsLabel": "Приложения не найдены",
|
||||||
"currentVersion": "Текущая",
|
"currentVersion": "Текущая",
|
||||||
"recommendedVersion": "Рекомендуемая",
|
"recommendedVersion": "Рекомендуемая"
|
||||||
"anyVersion": "любая"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Выберите патчи",
|
"widgetTitle": "Выберите патчи",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Nie je vybraná žiadna aplikácia",
|
"widgetSubtitle": "Nie je vybraná žiadna aplikácia",
|
||||||
"noAppsLabel": "Nebola nájdená žiadna aplikácia",
|
"noAppsLabel": "Nebola nájdená žiadna aplikácia",
|
||||||
"currentVersion": "Aktuálne",
|
"currentVersion": "Aktuálne",
|
||||||
"recommendedVersion": "Odporúčané",
|
"recommendedVersion": "Odporúčané"
|
||||||
"anyVersion": "akákoľvek"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Vyberte záplaty",
|
"widgetTitle": "Vyberte záplaty",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Nijedna aplikacija nije izabrana",
|
"widgetSubtitle": "Nijedna aplikacija nije izabrana",
|
||||||
"noAppsLabel": "Nijedna aplikacija nije pronađena",
|
"noAppsLabel": "Nijedna aplikacija nije pronađena",
|
||||||
"currentVersion": "Trenutna",
|
"currentVersion": "Trenutna",
|
||||||
"recommendedVersion": "Preporučena",
|
"recommendedVersion": "Preporučena"
|
||||||
"anyVersion": "bilo koja"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Izaberite pečeve",
|
"widgetTitle": "Izaberite pečeve",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Ниједна апликација није изабрана",
|
"widgetSubtitle": "Ниједна апликација није изабрана",
|
||||||
"noAppsLabel": "Ниједна апликација није пронађена",
|
"noAppsLabel": "Ниједна апликација није пронађена",
|
||||||
"currentVersion": "Тренутна",
|
"currentVersion": "Тренутна",
|
||||||
"recommendedVersion": "Препоручена",
|
"recommendedVersion": "Препоручена"
|
||||||
"anyVersion": "било која"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Изаберите печеве",
|
"widgetTitle": "Изаберите печеве",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "Ingen app vald",
|
"widgetSubtitle": "Ingen app vald",
|
||||||
"noAppsLabel": "Inga applikationer hittades",
|
"noAppsLabel": "Inga applikationer hittades",
|
||||||
"currentVersion": "Nuvarande",
|
"currentVersion": "Nuvarande",
|
||||||
"recommendedVersion": "Rekommenderad",
|
"recommendedVersion": "Rekommenderad"
|
||||||
"anyVersion": "alla"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Välj patchar",
|
"widgetTitle": "Välj patchar",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Hakuna programu iliyochaguliwa",
|
"widgetSubtitle": "Hakuna programu iliyochaguliwa",
|
||||||
"noAppsLabel": "Hakuna programu zilizopatikana",
|
"noAppsLabel": "Hakuna programu zilizopatikana",
|
||||||
"currentVersion": "Sasa",
|
"currentVersion": "Sasa",
|
||||||
"recommendedVersion": "Imependekezwa",
|
"recommendedVersion": "Imependekezwa"
|
||||||
"anyVersion": "yoyote"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Chagua viraka",
|
"widgetTitle": "Chagua viraka",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Hiçbir uygulama seçilmedi",
|
"widgetSubtitle": "Hiçbir uygulama seçilmedi",
|
||||||
"noAppsLabel": "Hiçbir uygulama bulunamadı",
|
"noAppsLabel": "Hiçbir uygulama bulunamadı",
|
||||||
"currentVersion": "Şu anki",
|
"currentVersion": "Şu anki",
|
||||||
"recommendedVersion": "Önerilen",
|
"recommendedVersion": "Önerilen"
|
||||||
"anyVersion": "herhangi"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Yamaları Seçin",
|
"widgetTitle": "Yamaları Seçin",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "کوئی ایپلیکیشن منتخب نہیں",
|
"widgetSubtitle": "کوئی ایپلیکیشن منتخب نہیں",
|
||||||
"noAppsLabel": "کوئی ایپلیکیشن نہیں ملی",
|
"noAppsLabel": "کوئی ایپلیکیشن نہیں ملی",
|
||||||
"currentVersion": "موجودہ",
|
"currentVersion": "موجودہ",
|
||||||
"recommendedVersion": "تجویز کردہ",
|
"recommendedVersion": "تجویز کردہ"
|
||||||
"anyVersion": "کوئی بھی"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "پیچز منتخب کریں",
|
"widgetTitle": "پیچز منتخب کریں",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "Chưa chọn ứng dụng nào",
|
"widgetSubtitle": "Chưa chọn ứng dụng nào",
|
||||||
"noAppsLabel": "Không tìm thấy ứng dụng nào",
|
"noAppsLabel": "Không tìm thấy ứng dụng nào",
|
||||||
"currentVersion": "Hiện tại",
|
"currentVersion": "Hiện tại",
|
||||||
"recommendedVersion": "Đề xuất",
|
"recommendedVersion": "Đề xuất"
|
||||||
"anyVersion": "bất kỳ"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "Chọn bản vá",
|
"widgetTitle": "Chọn bản vá",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "未选择应用程序",
|
"widgetSubtitle": "未选择应用程序",
|
||||||
"noAppsLabel": "未发现应用程序。",
|
"noAppsLabel": "未发现应用程序。",
|
||||||
"currentVersion": "当前",
|
"currentVersion": "当前",
|
||||||
"recommendedVersion": "推荐",
|
"recommendedVersion": "推荐"
|
||||||
"anyVersion": "任意"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "选择补丁",
|
"widgetTitle": "选择补丁",
|
||||||
|
@ -54,8 +54,7 @@
|
|||||||
"widgetSubtitle": "沒有選擇應用程式",
|
"widgetSubtitle": "沒有選擇應用程式",
|
||||||
"noAppsLabel": "找不到應用程式",
|
"noAppsLabel": "找不到應用程式",
|
||||||
"currentVersion": "目前版本",
|
"currentVersion": "目前版本",
|
||||||
"recommendedVersion": "推薦版本",
|
"recommendedVersion": "推薦版本"
|
||||||
"anyVersion": "任何版本"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "選擇補丁",
|
"widgetTitle": "選擇補丁",
|
||||||
|
@ -55,8 +55,7 @@
|
|||||||
"widgetSubtitle": "未選取應用程式",
|
"widgetSubtitle": "未選取應用程式",
|
||||||
"noAppsLabel": "找不到應用程式",
|
"noAppsLabel": "找不到應用程式",
|
||||||
"currentVersion": "目前",
|
"currentVersion": "目前",
|
||||||
"recommendedVersion": "建議",
|
"recommendedVersion": "建議"
|
||||||
"anyVersion": "任何"
|
|
||||||
},
|
},
|
||||||
"patchSelectorCard": {
|
"patchSelectorCard": {
|
||||||
"widgetTitle": "選取修補檔",
|
"widgetTitle": "選取修補檔",
|
||||||
|
16
docs/0_prerequisites.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 💼 Prerequisites
|
||||||
|
|
||||||
|
In order to use ReVanced Manager, certain requirements must be met.
|
||||||
|
|
||||||
|
## 🤝 Requirements
|
||||||
|
|
||||||
|
- An Android device running Android 8 or higher
|
||||||
|
- Any device architecture except ARMv7[^1]
|
||||||
|
|
||||||
|
[^1]: This constraint only applies to patches, that require patching APK resources which is why some patches may or may not work on ARMv7 architecture. You can find out, which architectures your device supports here: [⚙️ Configuring ReVanced Manager](2_4_settings.md#%E2%84%B9%EF%B8%8F-about).
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will guide you through patching an app.
|
||||||
|
|
||||||
|
Continue: [⬇️ Installation](1_installation.md)
|
14
docs/1_installation.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# ⬇️ Installation
|
||||||
|
|
||||||
|
In order to use ReVanced on your Android device, ReVanced Manager must be installed.
|
||||||
|
|
||||||
|
## 🪜 Installation steps
|
||||||
|
|
||||||
|
1. Download the latest version of ReVanced Manager from [here](https://github.com/revanced/revanced-manager/releases/latest)
|
||||||
|
2. Install ReVanced Manager
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will guide you through using ReVanced Manager.
|
||||||
|
|
||||||
|
Continue: [🪛 Usage](2_usage.md)
|
27
docs/2_1_patching.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# 🧩 Patching apps
|
||||||
|
|
||||||
|
The following pages will guide you through using ReVanced Manager to patch apps.
|
||||||
|
|
||||||
|
## 🪜 Steps to patch apps
|
||||||
|
|
||||||
|
1. Navigate to the **Patcher** tab from the bottom navigation bar
|
||||||
|
2. Tap on the **Select an app** card
|
||||||
|
3. Choose an app to patch[^1]
|
||||||
|
> **Note**: The suggested version is visible in each app's card.
|
||||||
|
4. Tap on the **Select patches** card and select the patches you want to apply[^2]
|
||||||
|
> **Warning**: If you see a warning you can click on it for more information.
|
||||||
|
5. Tap on the **Done** then **Patch** button
|
||||||
|
> **Warning**: The patching process may take ~5 minutes. Exiting the app may increase the time it takes to patch.
|
||||||
|
6. Tap on the **Install** button
|
||||||
|
> **Note**: If you are rooted, you can mount the patched app on top of the original app.[^3]
|
||||||
|
> Optionally, you may export the patched app to storage using the options in the top right corner.
|
||||||
|
|
||||||
|
[^1]: Non-root users may be prompted to select an APK from storage, in which case you have to source the APK file yourself. ReVanced does not provide any APK files.
|
||||||
|
[^2]: It is suggested to use the default set of patches by tapping on the **Default** button above the list of patches.
|
||||||
|
[^3]: Mounting the patched app on top of the original app will only work if the installed app version matches the version of the app selected in step 3. above.
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will bring you back to the usage page.
|
||||||
|
|
||||||
|
Continue: [🛠️ Usage](2_usage.md)
|
16
docs/2_2_managing.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 🧰 Managing patched apps
|
||||||
|
|
||||||
|
After patching an app, you may want to manage it. This page will guide you through managing patched apps.
|
||||||
|
|
||||||
|
## 🪜 Steps to manage patched apps
|
||||||
|
|
||||||
|
1. Tap on the **Dashboard** tab in the bottom navigation bar
|
||||||
|
2. Select the **Installed** chip
|
||||||
|
3. Tap on the **Info** button for the app you want to manage
|
||||||
|
4. Choose one of the options from the menu
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will bring you back to the usage page.
|
||||||
|
|
||||||
|
Continue: [🛠️ Usage](2_usage.md)
|
14
docs/2_3_updating.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 🔄 Updating ReVanced Manager
|
||||||
|
|
||||||
|
In order to keep up with the latest features and bug fixes, it is recommended to keep ReVanced Manager up to date.
|
||||||
|
|
||||||
|
## 🪜 Updating steps
|
||||||
|
|
||||||
|
1. Navigate to the **Dashboard** tab from the bottom navigation bar
|
||||||
|
2. Tap on the **Update** button in the **Updates** section
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will bring you back to the usage page.
|
||||||
|
|
||||||
|
Continue: [🛠️ Usage](2_usage.md)
|
39
docs/2_4_settings.md
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# ⚙️ Configuring ReVanced Manager
|
||||||
|
|
||||||
|
ReVanced Manager has settings that can be configured to your liking.
|
||||||
|
|
||||||
|
## 🪛 Essential settings
|
||||||
|
|
||||||
|
- ### 🔗 API URL
|
||||||
|
|
||||||
|
Specify the URL of the API to use. This is used to fetch ReVanced Patches and update ReVanced Manager.
|
||||||
|
|
||||||
|
- ### 🧬 Sources
|
||||||
|
|
||||||
|
Override the API and change the source of ReVanced Patches.
|
||||||
|
|
||||||
|
- ### 🧪 Experimental ReVanced Patches support
|
||||||
|
|
||||||
|
Lift app version constraints from ReVanced Patches. This allows you to patch any version of an app, even if the patch is not explicitly compatible with it.
|
||||||
|
|
||||||
|
- ### 🧑🔬 Experimental universal support
|
||||||
|
|
||||||
|
This will show or hide ReVanced Patches, which are not meant for any app in particular but rather for all apps but may not work on all apps.
|
||||||
|
|
||||||
|
- ### 🔑 Export, import or delete keystore
|
||||||
|
|
||||||
|
Manage the keystore used to sign patched apps.
|
||||||
|
|
||||||
|
- ### 📄 Export, import or reset ReVanced Patches selection
|
||||||
|
|
||||||
|
Manage the ReVanced Patches selection. This is useful if you want to share your ReVanced Patches selection with others or reset it to the default selection.
|
||||||
|
|
||||||
|
- ### ℹ️ About
|
||||||
|
|
||||||
|
View information about your device and ReVanced Manager. This includes the version of ReVanced Manager and supported architectures of your device.
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will bring you back to the usage page.
|
||||||
|
|
||||||
|
Continue: [🛠️ Usage](2_usage.md)
|
16
docs/2_usage.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 🛠️ Usage
|
||||||
|
|
||||||
|
The following pages will guide you through using ReVanced Manager to patch apps, manage patched apps, and update ReVanced Manager.
|
||||||
|
|
||||||
|
## 📖 Table of contents
|
||||||
|
|
||||||
|
1. [🧩 Patching apps](2_1_patching.md)
|
||||||
|
2. [🧰 Managing patched apps](2_2_managing.md)
|
||||||
|
3. [🔄 Updating ReVanced Manager](2_3_updating.md)
|
||||||
|
4. [⚙️ Configuring ReVanced Manager](2_4_settings.md)
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will guide you through troubleshooting ReVanced Manager.
|
||||||
|
|
||||||
|
Continue: [🛟 Troubleshooting](3_troubleshooting.md)
|
31
docs/3_troubleshooting.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# 🛟 Troubleshooting
|
||||||
|
|
||||||
|
In case you encounter any issues while using ReVanced Manager, please refer to this page for possible solutions.
|
||||||
|
|
||||||
|
- 💉 Patching fails with an error
|
||||||
|
|
||||||
|
Make sure ReVanced Manager is up to date by following [🔄 Updating ReVanced Manager](2_3_updating.md) and select the **Default** button when choosing patches.
|
||||||
|
|
||||||
|
- 💥 App not installed as package conflicts with an existing package
|
||||||
|
|
||||||
|
An existing installation of the app you're trying to patch is conflicting with the patched app. Uninstall the existing app before installing the patched app.
|
||||||
|
|
||||||
|
- ❗️ Error code `135`, `139` or `1` when patching the app
|
||||||
|
|
||||||
|
Your device is not supported. Refer to the [Prerequisites](0_prerequisites.md) page for supported devices.
|
||||||
|
|
||||||
|
Alternatively, you can use [ReVanced CLI](https://github.com/revanced/revanced-cli) to patch the app.
|
||||||
|
|
||||||
|
- 🚫 Non-root install is not possible with the current patches selection
|
||||||
|
|
||||||
|
Select the **Default** button when choosing patches.
|
||||||
|
|
||||||
|
- 🚨 Patched app crashes on launch
|
||||||
|
|
||||||
|
Select the **Default** button when choosing patches.
|
||||||
|
|
||||||
|
## ⏭️ What's next
|
||||||
|
|
||||||
|
The next page will teach you how to build ReVanced Manager from source.
|
||||||
|
|
||||||
|
Continue: [🛠️ Building from source](4_building.md)
|
40
docs/4_building.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# 🛠️ Building from source
|
||||||
|
|
||||||
|
This page will guide you through building ReVanced Manager from source.
|
||||||
|
|
||||||
|
1. Setup the Flutter environment for your [platform](https://docs.flutter.dev/get-started/install)
|
||||||
|
|
||||||
|
2. Clone the repository
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/revanced/revanced-manager.git && cd revanced-manager
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Create a GitHub personal access token with the `read:packages` scope [here](https://github.com/settings/tokens/new?scopes=read:packages&description=ReVanced)
|
||||||
|
|
||||||
|
4. Add your GitHub username and the token to `~/.gradle/gradle.properties`
|
||||||
|
|
||||||
|
```properties
|
||||||
|
gpr.user = YourUsername
|
||||||
|
gpr.key = ghp_longrandomkey
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Get dependencies
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flutter pub get
|
||||||
|
```
|
||||||
|
|
||||||
|
6. Delete conflicting outputs
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flutter packages pub run build_runner build --delete-conflicting-outputs
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Note**: Must be run every time you sync your local repository with the remote repository.
|
||||||
|
|
||||||
|
7. Build the APK
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flutter build apk
|
||||||
|
```
|
21
docs/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# 💊 ReVanced Manager
|
||||||
|
|
||||||
|
This documentation explains how to use [ReVanced Manager](https://github.com/revanced/revanced-manager).
|
||||||
|
|
||||||
|
## 📖 Table of contents
|
||||||
|
|
||||||
|
0. [💼 Prerequisites](0_prerequisites.md)
|
||||||
|
1. [⬇️ Installation](1_installation.md)
|
||||||
|
2. [🛠️ Usage](2_usage.md)
|
||||||
|
1. [🧩 Patching apps](2_1_patching.md)
|
||||||
|
2. [🧰 Managing patched apps](2_2_managing.md)
|
||||||
|
3. [🔄 Updating ReVanced Manager](2_3_updating.md)
|
||||||
|
4. [⚙️ Configuring ReVanced Manager](2_4_settings.md)
|
||||||
|
3. [🛟 Troubleshooting](3_troubleshooting.md)
|
||||||
|
4. [🛠 Building from source](4_building.md)
|
||||||
|
|
||||||
|
## ⏭️ Start here
|
||||||
|
|
||||||
|
The next page will tell you about the prerequisites for using ReVanced Manager.
|
||||||
|
|
||||||
|
Continue: [💼 Prerequisites](0_prerequisites.md)
|
2
fastlane/Appfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
|
||||||
|
package_name("app.revanced.manager.flutter") # e.g. com.krausefx.app
|
38
fastlane/Fastfile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# This file contains the fastlane.tools configuration
|
||||||
|
# You can find the documentation at https://docs.fastlane.tools
|
||||||
|
#
|
||||||
|
# For a list of all available actions, check out
|
||||||
|
#
|
||||||
|
# https://docs.fastlane.tools/actions
|
||||||
|
#
|
||||||
|
# For a list of all available plugins, check out
|
||||||
|
#
|
||||||
|
# https://docs.fastlane.tools/plugins/available-plugins
|
||||||
|
#
|
||||||
|
|
||||||
|
# Uncomment the line if you want fastlane to automatically update itself
|
||||||
|
# update_fastlane
|
||||||
|
|
||||||
|
default_platform(:android)
|
||||||
|
|
||||||
|
platform :android do
|
||||||
|
desc "Runs all the tests"
|
||||||
|
lane :test do
|
||||||
|
gradle(task: "test")
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||||
|
lane :beta do
|
||||||
|
gradle(task: "clean assembleRelease")
|
||||||
|
crashlytics
|
||||||
|
|
||||||
|
# sh "your_script.sh"
|
||||||
|
# You can also use other beta testing services here
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Deploy a new version to the Google Play"
|
||||||
|
lane :deploy do
|
||||||
|
gradle(task: "clean assembleRelease")
|
||||||
|
upload_to_play_store
|
||||||
|
end
|
||||||
|
end
|
48
fastlane/README.md
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
fastlane documentation
|
||||||
|
----
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
Make sure you have the latest version of the Xcode command line tools installed:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
xcode-select --install
|
||||||
|
```
|
||||||
|
|
||||||
|
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||||
|
|
||||||
|
# Available Actions
|
||||||
|
|
||||||
|
## Android
|
||||||
|
|
||||||
|
### android test
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android test
|
||||||
|
```
|
||||||
|
|
||||||
|
Runs all the tests
|
||||||
|
|
||||||
|
### android beta
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android beta
|
||||||
|
```
|
||||||
|
|
||||||
|
Submit a new Beta Build to Crashlytics Beta
|
||||||
|
|
||||||
|
### android deploy
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
Deploy a new version to the Google Play
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||||
|
|
||||||
|
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
||||||
|
|
||||||
|
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
1
fastlane/metadata/android/en-US/full_description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ReVanced Manager is an Android application that uses ReVanced Patcher to add, remove, and modify existing functionalities in Android applications
|
BIN
fastlane/metadata/android/en-US/images/featureGraphic.png
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
fastlane/metadata/android/en-US/images/icon.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpg
Normal file
After Width: | Height: | Size: 374 KiB |
BIN
fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpg
Normal file
After Width: | Height: | Size: 694 KiB |
1
fastlane/metadata/android/en-US/short_description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Patch your favourite apps, right on your device.
|
1
fastlane/metadata/android/en-US/title.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ReVanced Manager
|
20
fastlane/report.xml
Normal file
@ -1,4 +1,3 @@
|
|||||||
import 'package:revanced_manager/services/crowdin_api.dart';
|
|
||||||
import 'package:revanced_manager/services/github_api.dart';
|
import 'package:revanced_manager/services/github_api.dart';
|
||||||
import 'package:revanced_manager/services/manager_api.dart';
|
import 'package:revanced_manager/services/manager_api.dart';
|
||||||
import 'package:revanced_manager/services/patcher_api.dart';
|
import 'package:revanced_manager/services/patcher_api.dart';
|
||||||
@ -38,7 +37,6 @@ import 'package:stacked_services/stacked_services.dart';
|
|||||||
LazySingleton(classType: PatcherAPI),
|
LazySingleton(classType: PatcherAPI),
|
||||||
LazySingleton(classType: RevancedAPI),
|
LazySingleton(classType: RevancedAPI),
|
||||||
LazySingleton(classType: GithubAPI),
|
LazySingleton(classType: GithubAPI),
|
||||||
LazySingleton(classType: CrowdinAPI),
|
|
||||||
LazySingleton(classType: Toast),
|
LazySingleton(classType: Toast),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
|
import 'dart:developer';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_i18n/flutter_i18n.dart';
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
import 'package:revanced_manager/app/app.locator.dart';
|
import 'package:revanced_manager/app/app.locator.dart';
|
||||||
import 'package:revanced_manager/services/crowdin_api.dart';
|
|
||||||
import 'package:revanced_manager/services/github_api.dart';
|
import 'package:revanced_manager/services/github_api.dart';
|
||||||
import 'package:revanced_manager/services/manager_api.dart';
|
import 'package:revanced_manager/services/manager_api.dart';
|
||||||
import 'package:revanced_manager/services/patcher_api.dart';
|
import 'package:revanced_manager/services/patcher_api.dart';
|
||||||
import 'package:revanced_manager/services/revanced_api.dart';
|
import 'package:revanced_manager/services/revanced_api.dart';
|
||||||
import 'package:revanced_manager/ui/theme/dynamic_theme_builder.dart';
|
import 'package:revanced_manager/ui/theme/dynamic_theme_builder.dart';
|
||||||
import 'package:revanced_manager/ui/views/navigation/navigation_view.dart';
|
import 'package:revanced_manager/ui/views/navigation/navigation_view.dart';
|
||||||
import 'package:revanced_manager/utils/environment.dart';
|
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:stacked_themes/stacked_themes.dart';
|
import 'package:stacked_themes/stacked_themes.dart';
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
|
||||||
import 'package:timezone/data/latest.dart' as tz;
|
import 'package:timezone/data/latest.dart' as tz;
|
||||||
|
|
||||||
late SharedPreferences prefs;
|
late SharedPreferences prefs;
|
||||||
@ -21,38 +20,14 @@ Future main() async {
|
|||||||
await setupLocator();
|
await setupLocator();
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await locator<ManagerAPI>().initialize();
|
await locator<ManagerAPI>().initialize();
|
||||||
String apiUrl = locator<ManagerAPI>().getApiUrl();
|
final String apiUrl = locator<ManagerAPI>().getApiUrl();
|
||||||
await locator<RevancedAPI>().initialize(apiUrl);
|
await locator<RevancedAPI>().initialize(apiUrl);
|
||||||
await locator<CrowdinAPI>().initialize();
|
final String repoUrl = locator<ManagerAPI>().getRepoUrl();
|
||||||
bool isSentryEnabled = locator<ManagerAPI>().isSentryEnabled();
|
|
||||||
String repoUrl = locator<ManagerAPI>().getRepoUrl();
|
|
||||||
locator<GithubAPI>().initialize(repoUrl);
|
locator<GithubAPI>().initialize(repoUrl);
|
||||||
await locator<PatcherAPI>().initialize();
|
await locator<PatcherAPI>().initialize();
|
||||||
tz.initializeTimeZones();
|
tz.initializeTimeZones();
|
||||||
prefs = await SharedPreferences.getInstance();
|
prefs = await SharedPreferences.getInstance();
|
||||||
|
|
||||||
await SentryFlutter.init(
|
|
||||||
(options) {
|
|
||||||
options
|
|
||||||
..dsn = isSentryEnabled ? Environment.sentryDSN : ''
|
|
||||||
..environment = 'alpha'
|
|
||||||
..release = '0.1'
|
|
||||||
..tracesSampleRate = 1.0
|
|
||||||
..anrEnabled = true
|
|
||||||
..enableOutOfMemoryTracking = true
|
|
||||||
..sampleRate = isSentryEnabled ? 1.0 : 0.0
|
|
||||||
..beforeSend = (event, hint) {
|
|
||||||
if (isSentryEnabled) {
|
|
||||||
return event;
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
} as BeforeSendCallback?;
|
|
||||||
},
|
|
||||||
appRunner: () {
|
|
||||||
runApp(const MyApp());
|
|
||||||
},
|
|
||||||
);
|
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +40,7 @@ class MyApp extends StatelessWidget {
|
|||||||
// String replaceLocale = rawLocale.replaceAll('_', '-');
|
// String replaceLocale = rawLocale.replaceAll('_', '-');
|
||||||
// List<String> localeList = replaceLocale.split('-');
|
// List<String> localeList = replaceLocale.split('-');
|
||||||
// Locale locale = Locale(localeList[0], localeList[1]);
|
// Locale locale = Locale(localeList[0], localeList[1]);
|
||||||
Locale locale = const Locale('en', 'US');
|
const Locale locale = Locale('en', 'US');
|
||||||
|
|
||||||
return DynamicThemeBuilder(
|
return DynamicThemeBuilder(
|
||||||
title: 'ReVanced Manager',
|
title: 'ReVanced Manager',
|
||||||
@ -79,8 +54,9 @@ class MyApp extends StatelessWidget {
|
|||||||
useCountryCode: true,
|
useCountryCode: true,
|
||||||
),
|
),
|
||||||
missingTranslationHandler: (key, locale) {
|
missingTranslationHandler: (key, locale) {
|
||||||
print(
|
log(
|
||||||
'--> Missing translation: key: $key, languageCode: ${locale?.languageCode}');
|
'--> Missing translation: key: $key, languageCode: ${locale?.languageCode}',
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
GlobalMaterialLocalizations.delegate,
|
GlobalMaterialLocalizations.delegate,
|
||||||
|
@ -5,13 +5,6 @@ part 'patch.g.dart';
|
|||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class Patch {
|
class Patch {
|
||||||
final String name;
|
|
||||||
final String description;
|
|
||||||
final String version;
|
|
||||||
final bool excluded;
|
|
||||||
final List<String> dependencies;
|
|
||||||
final List<Package> compatiblePackages;
|
|
||||||
|
|
||||||
Patch({
|
Patch({
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.description,
|
required this.description,
|
||||||
@ -22,6 +15,12 @@ class Patch {
|
|||||||
});
|
});
|
||||||
|
|
||||||
factory Patch.fromJson(Map<String, dynamic> json) => _$PatchFromJson(json);
|
factory Patch.fromJson(Map<String, dynamic> json) => _$PatchFromJson(json);
|
||||||
|
final String name;
|
||||||
|
final String description;
|
||||||
|
final String version;
|
||||||
|
final bool excluded;
|
||||||
|
final List<String> dependencies;
|
||||||
|
final List<Package> compatiblePackages;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => _$PatchToJson(this);
|
Map<String, dynamic> toJson() => _$PatchToJson(this);
|
||||||
|
|
||||||
@ -37,9 +36,6 @@ class Patch {
|
|||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class Package {
|
class Package {
|
||||||
final String name;
|
|
||||||
final List<String> versions;
|
|
||||||
|
|
||||||
Package({
|
Package({
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.versions,
|
required this.versions,
|
||||||
@ -47,6 +43,8 @@ class Package {
|
|||||||
|
|
||||||
factory Package.fromJson(Map<String, dynamic> json) =>
|
factory Package.fromJson(Map<String, dynamic> json) =>
|
||||||
_$PackageFromJson(json);
|
_$PackageFromJson(json);
|
||||||
|
final String name;
|
||||||
|
final List<String> versions;
|
||||||
|
|
||||||
Map toJson() => _$PackageToJson(this);
|
Map toJson() => _$PackageToJson(this);
|
||||||
}
|
}
|
||||||
|
@ -6,23 +6,6 @@ part 'patched_application.g.dart';
|
|||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class PatchedApplication {
|
class PatchedApplication {
|
||||||
String name;
|
|
||||||
String packageName;
|
|
||||||
String originalPackageName;
|
|
||||||
String version;
|
|
||||||
final String apkFilePath;
|
|
||||||
@JsonKey(
|
|
||||||
fromJson: decodeBase64,
|
|
||||||
toJson: encodeBase64,
|
|
||||||
)
|
|
||||||
Uint8List icon;
|
|
||||||
DateTime patchDate;
|
|
||||||
bool isRooted;
|
|
||||||
bool isFromStorage;
|
|
||||||
bool hasUpdates;
|
|
||||||
List<String> appliedPatches;
|
|
||||||
List<String> changelog;
|
|
||||||
|
|
||||||
PatchedApplication({
|
PatchedApplication({
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.packageName,
|
required this.packageName,
|
||||||
@ -40,6 +23,22 @@ class PatchedApplication {
|
|||||||
|
|
||||||
factory PatchedApplication.fromJson(Map<String, dynamic> json) =>
|
factory PatchedApplication.fromJson(Map<String, dynamic> json) =>
|
||||||
_$PatchedApplicationFromJson(json);
|
_$PatchedApplicationFromJson(json);
|
||||||
|
String name;
|
||||||
|
String packageName;
|
||||||
|
String originalPackageName;
|
||||||
|
String version;
|
||||||
|
final String apkFilePath;
|
||||||
|
@JsonKey(
|
||||||
|
fromJson: decodeBase64,
|
||||||
|
toJson: encodeBase64,
|
||||||
|
)
|
||||||
|
Uint8List icon;
|
||||||
|
DateTime patchDate;
|
||||||
|
bool isRooted;
|
||||||
|
bool isFromStorage;
|
||||||
|
bool hasUpdates;
|
||||||
|
List<String> appliedPatches;
|
||||||
|
List<String> changelog;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => _$PatchedApplicationToJson(this);
|
Map<String, dynamic> toJson() => _$PatchedApplicationToJson(this);
|
||||||
|
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
import 'package:dio/dio.dart';
|
|
||||||
import 'package:dio_http_cache_lts/dio_http_cache_lts.dart';
|
|
||||||
import 'package:injectable/injectable.dart' hide Environment;
|
|
||||||
import 'package:revanced_manager/utils/environment.dart';
|
|
||||||
import 'package:sentry_dio/sentry_dio.dart';
|
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
|
||||||
|
|
||||||
@lazySingleton
|
|
||||||
class CrowdinAPI {
|
|
||||||
late Dio _dio = Dio();
|
|
||||||
final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig());
|
|
||||||
final apiKey = Environment.crowdinKEY;
|
|
||||||
|
|
||||||
Future<void> initialize() async {
|
|
||||||
try {
|
|
||||||
_dio = Dio(BaseOptions(
|
|
||||||
baseUrl: 'https://api.crowdin.com/api/v2',
|
|
||||||
));
|
|
||||||
|
|
||||||
_dio.interceptors.add(_dioCacheManager.interceptor);
|
|
||||||
_dio.addSentry(
|
|
||||||
captureFailedRequests: true,
|
|
||||||
);
|
|
||||||
} on Exception catch (e, s) {
|
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> clearAllCache() async {
|
|
||||||
try {
|
|
||||||
await _dioCacheManager.clearAll();
|
|
||||||
} on Exception catch (e, s) {
|
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List> getLanguages() async {
|
|
||||||
try {
|
|
||||||
var response = await _dio.get(
|
|
||||||
'/projects',
|
|
||||||
options: buildCacheOptions(
|
|
||||||
const Duration(hours: 6),
|
|
||||||
maxStale: const Duration(days: 1),
|
|
||||||
options: Options(
|
|
||||||
headers: {
|
|
||||||
'Authorization': 'Bearer $apiKey',
|
|
||||||
},
|
|
||||||
contentType: 'application/json',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
List targetLanguages =
|
|
||||||
await response.data['data'][0]['data']['targetLanguages'];
|
|
||||||
|
|
||||||
return targetLanguages;
|
|
||||||
} on Exception catch (e, s) {
|
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,21 +2,23 @@ import 'dart:convert';
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:dio_http_cache_lts/dio_http_cache_lts.dart';
|
import 'package:dio_cache_interceptor/dio_cache_interceptor.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||||
import 'package:injectable/injectable.dart';
|
import 'package:injectable/injectable.dart';
|
||||||
import 'package:revanced_manager/models/patch.dart';
|
import 'package:revanced_manager/models/patch.dart';
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
import 'package:revanced_manager/services/manager_api.dart';
|
||||||
import 'package:sentry_dio/sentry_dio.dart';
|
|
||||||
|
|
||||||
@lazySingleton
|
@lazySingleton
|
||||||
class GithubAPI {
|
class GithubAPI {
|
||||||
late Dio _dio = Dio();
|
late Dio _dio = Dio();
|
||||||
final DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig());
|
|
||||||
final Options _cacheOptions = buildCacheOptions(
|
final _cacheOptions = CacheOptions(
|
||||||
const Duration(hours: 6),
|
store: MemCacheStore(),
|
||||||
maxStale: const Duration(days: 1),
|
maxStale: const Duration(days: 1),
|
||||||
|
priority: CachePriority.high,
|
||||||
);
|
);
|
||||||
|
|
||||||
final Map<String, String> repoAppPath = {
|
final Map<String, String> repoAppPath = {
|
||||||
'com.google.android.youtube': 'youtube',
|
'com.google.android.youtube': 'youtube',
|
||||||
'com.google.android.apps.youtube.music': 'music',
|
'com.google.android.apps.youtube.music': 'music',
|
||||||
@ -28,38 +30,79 @@ class GithubAPI {
|
|||||||
'com.spotify.music': 'spotify',
|
'com.spotify.music': 'spotify',
|
||||||
};
|
};
|
||||||
|
|
||||||
void initialize(String repoUrl) async {
|
Future<void> initialize(String repoUrl) async {
|
||||||
try {
|
try {
|
||||||
_dio = Dio(BaseOptions(
|
_dio = Dio(
|
||||||
baseUrl: repoUrl,
|
BaseOptions(
|
||||||
));
|
baseUrl: repoUrl,
|
||||||
|
),
|
||||||
_dio.interceptors.add(_dioCacheManager.interceptor);
|
|
||||||
_dio.addSentry(
|
|
||||||
captureFailedRequests: true,
|
|
||||||
);
|
);
|
||||||
} on Exception catch (e, s) {
|
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
_dio.interceptors.add(DioCacheInterceptor(options: _cacheOptions));
|
||||||
|
} on Exception catch (e) {
|
||||||
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> clearAllCache() async {
|
Future<void> clearAllCache() async {
|
||||||
try {
|
try {
|
||||||
await _dioCacheManager.clearAll();
|
await _cacheOptions.store!.clean();
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Map<String, dynamic>?> getLatestRelease(String repoName) async {
|
Future<Map<String, dynamic>?> getLatestRelease(
|
||||||
|
String repoName,
|
||||||
|
) async {
|
||||||
try {
|
try {
|
||||||
var response = await _dio.get(
|
final response = await _dio.get(
|
||||||
'/repos/$repoName/releases',
|
'/repos/$repoName/releases',
|
||||||
options: _cacheOptions,
|
|
||||||
);
|
);
|
||||||
return response.data[0];
|
return response.data[0];
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<Map<String, dynamic>?> getLatestManagerRelease(
|
||||||
|
String repoName,
|
||||||
|
) async {
|
||||||
|
try {
|
||||||
|
final response = await _dio.get(
|
||||||
|
'/repos/$repoName/releases',
|
||||||
|
);
|
||||||
|
final Map<String, dynamic> releases = response.data[0];
|
||||||
|
int updates = 0;
|
||||||
|
final String currentVersion =
|
||||||
|
await ManagerAPI().getCurrentManagerVersion();
|
||||||
|
while (response.data[updates]['tag_name'] != 'v$currentVersion') {
|
||||||
|
updates++;
|
||||||
|
}
|
||||||
|
for (int i = 1; i < updates; i++) {
|
||||||
|
releases.update(
|
||||||
|
'body',
|
||||||
|
(value) =>
|
||||||
|
value +
|
||||||
|
'\n' +
|
||||||
|
'# ' +
|
||||||
|
response.data[i]['tag_name'] +
|
||||||
|
'\n' +
|
||||||
|
response.data[i]['body'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return releases;
|
||||||
|
} on Exception catch (e) {
|
||||||
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -69,37 +112,41 @@ class GithubAPI {
|
|||||||
String repoName,
|
String repoName,
|
||||||
DateTime since,
|
DateTime since,
|
||||||
) async {
|
) async {
|
||||||
String path =
|
final String path =
|
||||||
'src/main/kotlin/app/revanced/patches/${repoAppPath[packageName]}';
|
'src/main/kotlin/app/revanced/patches/${repoAppPath[packageName]}';
|
||||||
try {
|
try {
|
||||||
var response = await _dio.get(
|
final response = await _dio.get(
|
||||||
'/repos/$repoName/commits',
|
'/repos/$repoName/commits',
|
||||||
queryParameters: {
|
queryParameters: {
|
||||||
'path': path,
|
'path': path,
|
||||||
'since': since.toIso8601String(),
|
'since': since.toIso8601String(),
|
||||||
},
|
},
|
||||||
options: _cacheOptions,
|
|
||||||
);
|
);
|
||||||
List<dynamic> commits = response.data;
|
final List<dynamic> commits = response.data;
|
||||||
return commits
|
return commits
|
||||||
.map(
|
.map(
|
||||||
(commit) => (commit['commit']['message']).split('\n')[0] +
|
(commit) => commit['commit']['message'].split('\n')[0] +
|
||||||
' - ' +
|
' - ' +
|
||||||
commit['commit']['author']['name'] +
|
commit['commit']['author']['name'] +
|
||||||
'\n' as String,
|
'\n' as String,
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
return List.empty();
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<File?> getLatestReleaseFile(String extension, String repoName) async {
|
Future<File?> getLatestReleaseFile(
|
||||||
|
String extension,
|
||||||
|
String repoName,
|
||||||
|
) async {
|
||||||
try {
|
try {
|
||||||
Map<String, dynamic>? release = await getLatestRelease(repoName);
|
final Map<String, dynamic>? release = await getLatestRelease(repoName);
|
||||||
if (release != null) {
|
if (release != null) {
|
||||||
Map<String, dynamic>? asset =
|
final Map<String, dynamic>? asset =
|
||||||
(release['assets'] as List<dynamic>).firstWhereOrNull(
|
(release['assets'] as List<dynamic>).firstWhereOrNull(
|
||||||
(asset) => (asset['name'] as String).endsWith(extension),
|
(asset) => (asset['name'] as String).endsWith(extension),
|
||||||
);
|
);
|
||||||
@ -109,9 +156,10 @@ class GithubAPI {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
return null;
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -119,29 +167,34 @@ class GithubAPI {
|
|||||||
Future<List<Patch>> getPatches(String repoName) async {
|
Future<List<Patch>> getPatches(String repoName) async {
|
||||||
List<Patch> patches = [];
|
List<Patch> patches = [];
|
||||||
try {
|
try {
|
||||||
File? f = await getLatestReleaseFile('.json', repoName);
|
final File? f = await getLatestReleaseFile('.json', repoName);
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
List<dynamic> list = jsonDecode(f.readAsStringSync());
|
final List<dynamic> list = jsonDecode(f.readAsStringSync());
|
||||||
patches = list.map((patch) => Patch.fromJson(patch)).toList();
|
patches = list.map((patch) => Patch.fromJson(patch)).toList();
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
return List.empty();
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return patches;
|
return patches;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> getLastestReleaseVersion(String repoName) async {
|
Future<String> getLastestReleaseVersion(String repoName) async {
|
||||||
try {
|
try {
|
||||||
Map<String, dynamic>? release = await getLatestRelease(repoName);
|
final Map<String, dynamic>? release = await getLatestRelease(repoName);
|
||||||
if (release != null) {
|
if (release != null) {
|
||||||
return release['tag_name'];
|
return release['tag_name'];
|
||||||
} else {
|
} else {
|
||||||
return 'Unknown';
|
return 'Unknown';
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
return '';
|
print(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'Unknown';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'package:device_apps/device_apps.dart';
|
import 'package:device_apps/device_apps.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:injectable/injectable.dart';
|
import 'package:injectable/injectable.dart';
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
@ -10,7 +11,7 @@ import 'package:revanced_manager/models/patched_application.dart';
|
|||||||
import 'package:revanced_manager/services/github_api.dart';
|
import 'package:revanced_manager/services/github_api.dart';
|
||||||
import 'package:revanced_manager/services/revanced_api.dart';
|
import 'package:revanced_manager/services/revanced_api.dart';
|
||||||
import 'package:revanced_manager/services/root_api.dart';
|
import 'package:revanced_manager/services/root_api.dart';
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
import 'package:revanced_manager/utils/check_for_supported_patch.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
@lazySingleton
|
@lazySingleton
|
||||||
@ -20,8 +21,12 @@ class ManagerAPI {
|
|||||||
final RootAPI _rootAPI = RootAPI();
|
final RootAPI _rootAPI = RootAPI();
|
||||||
final String patcherRepo = 'revanced-patcher';
|
final String patcherRepo = 'revanced-patcher';
|
||||||
final String cliRepo = 'revanced-cli';
|
final String cliRepo = 'revanced-cli';
|
||||||
late String storedPatchesFile = '/selected-patches.json';
|
|
||||||
late SharedPreferences _prefs;
|
late SharedPreferences _prefs;
|
||||||
|
bool isRooted = false;
|
||||||
|
String storedPatchesFile = '/selected-patches.json';
|
||||||
|
String keystoreFile =
|
||||||
|
'/sdcard/Android/data/app.revanced.manager.flutter/files/revanced-manager.keystore';
|
||||||
|
String defaultKeystorePassword = 's3cur3p@ssw0rd';
|
||||||
String defaultApiUrl = 'https://releases.revanced.app/';
|
String defaultApiUrl = 'https://releases.revanced.app/';
|
||||||
String defaultRepoUrl = 'https://api.github.com';
|
String defaultRepoUrl = 'https://api.github.com';
|
||||||
String defaultPatcherRepo = 'revanced/revanced-patcher';
|
String defaultPatcherRepo = 'revanced/revanced-patcher';
|
||||||
@ -29,9 +34,14 @@ class ManagerAPI {
|
|||||||
String defaultIntegrationsRepo = 'revanced/revanced-integrations';
|
String defaultIntegrationsRepo = 'revanced/revanced-integrations';
|
||||||
String defaultCliRepo = 'revanced/revanced-cli';
|
String defaultCliRepo = 'revanced/revanced-cli';
|
||||||
String defaultManagerRepo = 'revanced/revanced-manager';
|
String defaultManagerRepo = 'revanced/revanced-manager';
|
||||||
|
String? patchesVersion = '';
|
||||||
|
bool isDefaultPatchesRepo() {
|
||||||
|
return getPatchesRepo() == 'revanced/revanced-patches';
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> initialize() async {
|
Future<void> initialize() async {
|
||||||
_prefs = await SharedPreferences.getInstance();
|
_prefs = await SharedPreferences.getInstance();
|
||||||
|
isRooted = await _rootAPI.isRooted();
|
||||||
storedPatchesFile =
|
storedPatchesFile =
|
||||||
(await getApplicationDocumentsDirectory()).path + storedPatchesFile;
|
(await getApplicationDocumentsDirectory()).path + storedPatchesFile;
|
||||||
}
|
}
|
||||||
@ -98,14 +108,6 @@ class ManagerAPI {
|
|||||||
await _prefs.setBool('useDarkTheme', value);
|
await _prefs.setBool('useDarkTheme', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isSentryEnabled() {
|
|
||||||
return _prefs.getBool('sentryEnabled') ?? true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> setSentryStatus(bool value) async {
|
|
||||||
await _prefs.setBool('sentryEnabled', value);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool areUniversalPatchesEnabled() {
|
bool areUniversalPatchesEnabled() {
|
||||||
return _prefs.getBool('universalPatchesEnabled') ?? false;
|
return _prefs.getBool('universalPatchesEnabled') ?? false;
|
||||||
}
|
}
|
||||||
@ -122,6 +124,14 @@ class ManagerAPI {
|
|||||||
await _prefs.setBool('experimentalPatchesEnabled', value);
|
await _prefs.setBool('experimentalPatchesEnabled', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> setKeystorePassword(String password) async {
|
||||||
|
await _prefs.setString('keystorePassword', password);
|
||||||
|
}
|
||||||
|
|
||||||
|
String getKeystorePassword() {
|
||||||
|
return _prefs.getString('keystorePassword') ?? defaultKeystorePassword;
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> deleteTempFolder() async {
|
Future<void> deleteTempFolder() async {
|
||||||
final Directory dir = Directory('/data/local/tmp/revanced-manager');
|
final Directory dir = Directory('/data/local/tmp/revanced-manager');
|
||||||
if (await dir.exists()) {
|
if (await dir.exists()) {
|
||||||
@ -131,29 +141,34 @@ class ManagerAPI {
|
|||||||
|
|
||||||
Future<void> deleteKeystore() async {
|
Future<void> deleteKeystore() async {
|
||||||
final File keystore = File(
|
final File keystore = File(
|
||||||
'/sdcard/Android/data/app.revanced.manager.flutter/files/revanced-manager.keystore');
|
keystoreFile,
|
||||||
|
);
|
||||||
if (await keystore.exists()) {
|
if (await keystore.exists()) {
|
||||||
await keystore.delete();
|
await keystore.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<PatchedApplication> getPatchedApps() {
|
List<PatchedApplication> getPatchedApps() {
|
||||||
List<String> apps = _prefs.getStringList('patchedApps') ?? [];
|
final List<String> apps = _prefs.getStringList('patchedApps') ?? [];
|
||||||
return apps.map((a) => PatchedApplication.fromJson(jsonDecode(a))).toList();
|
return apps.map((a) => PatchedApplication.fromJson(jsonDecode(a))).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setPatchedApps(List<PatchedApplication> patchedApps) async {
|
Future<void> setPatchedApps(
|
||||||
|
List<PatchedApplication> patchedApps,
|
||||||
|
) async {
|
||||||
if (patchedApps.length > 1) {
|
if (patchedApps.length > 1) {
|
||||||
patchedApps.sort((a, b) => a.name.compareTo(b.name));
|
patchedApps.sort((a, b) => a.name.compareTo(b.name));
|
||||||
}
|
}
|
||||||
await _prefs.setStringList('patchedApps',
|
await _prefs.setStringList(
|
||||||
patchedApps.map((a) => json.encode(a.toJson())).toList());
|
'patchedApps',
|
||||||
|
patchedApps.map((a) => json.encode(a.toJson())).toList(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> savePatchedApp(PatchedApplication app) async {
|
Future<void> savePatchedApp(PatchedApplication app) async {
|
||||||
List<PatchedApplication> patchedApps = getPatchedApps();
|
final List<PatchedApplication> patchedApps = getPatchedApps();
|
||||||
patchedApps.removeWhere((a) => a.packageName == app.packageName);
|
patchedApps.removeWhere((a) => a.packageName == app.packageName);
|
||||||
ApplicationWithIcon? installed = await DeviceApps.getApp(
|
final ApplicationWithIcon? installed = await DeviceApps.getApp(
|
||||||
app.packageName,
|
app.packageName,
|
||||||
true,
|
true,
|
||||||
) as ApplicationWithIcon?;
|
) as ApplicationWithIcon?;
|
||||||
@ -167,17 +182,19 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> deletePatchedApp(PatchedApplication app) async {
|
Future<void> deletePatchedApp(PatchedApplication app) async {
|
||||||
List<PatchedApplication> patchedApps = getPatchedApps();
|
final List<PatchedApplication> patchedApps = getPatchedApps();
|
||||||
patchedApps.removeWhere((a) => a.packageName == app.packageName);
|
patchedApps.removeWhere((a) => a.packageName == app.packageName);
|
||||||
await setPatchedApps(patchedApps);
|
await setPatchedApps(patchedApps);
|
||||||
}
|
}
|
||||||
|
|
||||||
void clearAllData() async {
|
Future<void> clearAllData() async {
|
||||||
try {
|
try {
|
||||||
_revancedAPI.clearAllCache();
|
_revancedAPI.clearAllCache();
|
||||||
_githubAPI.clearAllCache();
|
_githubAPI.clearAllCache();
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,21 +204,23 @@ class ManagerAPI {
|
|||||||
|
|
||||||
Future<List<Patch>> getPatches() async {
|
Future<List<Patch>> getPatches() async {
|
||||||
try {
|
try {
|
||||||
String repoName = getPatchesRepo();
|
final String repoName = getPatchesRepo();
|
||||||
if (repoName == defaultPatchesRepo) {
|
if (repoName == defaultPatchesRepo) {
|
||||||
return await _revancedAPI.getPatches();
|
return await _revancedAPI.getPatches();
|
||||||
} else {
|
} else {
|
||||||
return await _githubAPI.getPatches(repoName);
|
return await _githubAPI.getPatches(repoName);
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<File?> downloadPatches() async {
|
Future<File?> downloadPatches() async {
|
||||||
try {
|
try {
|
||||||
String repoName = getPatchesRepo();
|
final String repoName = getPatchesRepo();
|
||||||
if (repoName == defaultPatchesRepo) {
|
if (repoName == defaultPatchesRepo) {
|
||||||
return await _revancedAPI.getLatestReleaseFile(
|
return await _revancedAPI.getLatestReleaseFile(
|
||||||
'.jar',
|
'.jar',
|
||||||
@ -210,15 +229,17 @@ class ManagerAPI {
|
|||||||
} else {
|
} else {
|
||||||
return await _githubAPI.getLatestReleaseFile('.jar', repoName);
|
return await _githubAPI.getLatestReleaseFile('.jar', repoName);
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<File?> downloadIntegrations() async {
|
Future<File?> downloadIntegrations() async {
|
||||||
try {
|
try {
|
||||||
String repoName = getIntegrationsRepo();
|
final String repoName = getIntegrationsRepo();
|
||||||
if (repoName == defaultIntegrationsRepo) {
|
if (repoName == defaultIntegrationsRepo) {
|
||||||
return await _revancedAPI.getLatestReleaseFile(
|
return await _revancedAPI.getLatestReleaseFile(
|
||||||
'.apk',
|
'.apk',
|
||||||
@ -227,22 +248,33 @@ class ManagerAPI {
|
|||||||
} else {
|
} else {
|
||||||
return await _githubAPI.getLatestReleaseFile('.apk', repoName);
|
return await _githubAPI.getLatestReleaseFile('.apk', repoName);
|
||||||
}
|
}
|
||||||
} on Exception catch (e, s) {
|
} on Exception catch (e) {
|
||||||
await Sentry.captureException(e, stackTrace: s);
|
if (kDebugMode) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<File?> downloadManager() async {
|
Future<File?> downloadManager() async {
|
||||||
return await _revancedAPI.getLatestReleaseFile('.apk', defaultManagerRepo);
|
return await _revancedAPI.getLatestReleaseFile(
|
||||||
|
'.apk',
|
||||||
|
defaultManagerRepo,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String?> getLatestPatcherReleaseTime() async {
|
Future<String?> getLatestPatcherReleaseTime() async {
|
||||||
return await _revancedAPI.getLatestReleaseTime('.gz', defaultPatcherRepo);
|
return await _revancedAPI.getLatestReleaseTime(
|
||||||
|
'.gz',
|
||||||
|
defaultPatcherRepo,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String?> getLatestManagerReleaseTime() async {
|
Future<String?> getLatestManagerReleaseTime() async {
|
||||||
return await _revancedAPI.getLatestReleaseTime('.apk', defaultManagerRepo);
|
return await _revancedAPI.getLatestReleaseTime(
|
||||||
|
'.apk',
|
||||||
|
defaultManagerRepo,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String?> getLatestManagerVersion() async {
|
Future<String?> getLatestManagerVersion() async {
|
||||||
@ -260,16 +292,28 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<String> getCurrentManagerVersion() async {
|
Future<String> getCurrentManagerVersion() async {
|
||||||
PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
final PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
||||||
return packageInfo.version;
|
return packageInfo.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<String?> getCurrentPatchesVersion() async {
|
||||||
|
if (isDefaultPatchesRepo()) {
|
||||||
|
patchesVersion = await getLatestPatchesVersion();
|
||||||
|
// print('Patches version: $patchesVersion');
|
||||||
|
} else {
|
||||||
|
// fetch from github
|
||||||
|
patchesVersion =
|
||||||
|
await _githubAPI.getLastestReleaseVersion(getPatchesRepo());
|
||||||
|
}
|
||||||
|
return patchesVersion ?? '0.0.0';
|
||||||
|
}
|
||||||
|
|
||||||
Future<List<PatchedApplication>> getAppsToRemove(
|
Future<List<PatchedApplication>> getAppsToRemove(
|
||||||
List<PatchedApplication> patchedApps,
|
List<PatchedApplication> patchedApps,
|
||||||
) async {
|
) async {
|
||||||
List<PatchedApplication> toRemove = [];
|
final List<PatchedApplication> toRemove = [];
|
||||||
for (PatchedApplication app in patchedApps) {
|
for (final PatchedApplication app in patchedApps) {
|
||||||
bool isRemove = await isAppUninstalled(app);
|
final bool isRemove = await isAppUninstalled(app);
|
||||||
if (isRemove) {
|
if (isRemove) {
|
||||||
toRemove.add(app);
|
toRemove.add(app);
|
||||||
}
|
}
|
||||||
@ -280,13 +324,13 @@ class ManagerAPI {
|
|||||||
Future<List<PatchedApplication>> getUnsavedApps(
|
Future<List<PatchedApplication>> getUnsavedApps(
|
||||||
List<PatchedApplication> patchedApps,
|
List<PatchedApplication> patchedApps,
|
||||||
) async {
|
) async {
|
||||||
List<PatchedApplication> unsavedApps = [];
|
final List<PatchedApplication> unsavedApps = [];
|
||||||
bool hasRootPermissions = await _rootAPI.hasRootPermissions();
|
final bool hasRootPermissions = await _rootAPI.hasRootPermissions();
|
||||||
if (hasRootPermissions) {
|
if (hasRootPermissions) {
|
||||||
List<String> installedApps = await _rootAPI.getInstalledApps();
|
final List<String> installedApps = await _rootAPI.getInstalledApps();
|
||||||
for (String packageName in installedApps) {
|
for (final String packageName in installedApps) {
|
||||||
if (!patchedApps.any((app) => app.packageName == packageName)) {
|
if (!patchedApps.any((app) => app.packageName == packageName)) {
|
||||||
ApplicationWithIcon? application = await DeviceApps.getApp(
|
final ApplicationWithIcon? application = await DeviceApps.getApp(
|
||||||
packageName,
|
packageName,
|
||||||
true,
|
true,
|
||||||
) as ApplicationWithIcon?;
|
) as ApplicationWithIcon?;
|
||||||
@ -307,15 +351,13 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<Application> userApps = await DeviceApps.getInstalledApplications(
|
final List<Application> userApps =
|
||||||
includeSystemApps: false,
|
await DeviceApps.getInstalledApplications();
|
||||||
includeAppIcons: false,
|
for (final Application app in userApps) {
|
||||||
);
|
|
||||||
for (Application app in userApps) {
|
|
||||||
if (app.packageName.startsWith('app.revanced') &&
|
if (app.packageName.startsWith('app.revanced') &&
|
||||||
!app.packageName.startsWith('app.revanced.manager.') &&
|
!app.packageName.startsWith('app.revanced.manager.') &&
|
||||||
!patchedApps.any((uapp) => uapp.packageName == app.packageName)) {
|
!patchedApps.any((uapp) => uapp.packageName == app.packageName)) {
|
||||||
ApplicationWithIcon? application = await DeviceApps.getApp(
|
final ApplicationWithIcon? application = await DeviceApps.getApp(
|
||||||
app.packageName,
|
app.packageName,
|
||||||
true,
|
true,
|
||||||
) as ApplicationWithIcon?;
|
) as ApplicationWithIcon?;
|
||||||
@ -329,7 +371,6 @@ class ManagerAPI {
|
|||||||
apkFilePath: application.apkFilePath,
|
apkFilePath: application.apkFilePath,
|
||||||
icon: application.icon,
|
icon: application.icon,
|
||||||
patchDate: DateTime.now(),
|
patchDate: DateTime.now(),
|
||||||
isRooted: false,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -339,25 +380,29 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> reAssessSavedApps() async {
|
Future<void> reAssessSavedApps() async {
|
||||||
List<PatchedApplication> patchedApps = getPatchedApps();
|
final List<PatchedApplication> patchedApps = getPatchedApps();
|
||||||
List<PatchedApplication> unsavedApps = await getUnsavedApps(patchedApps);
|
final List<PatchedApplication> unsavedApps =
|
||||||
|
await getUnsavedApps(patchedApps);
|
||||||
patchedApps.addAll(unsavedApps);
|
patchedApps.addAll(unsavedApps);
|
||||||
List<PatchedApplication> toRemove = await getAppsToRemove(patchedApps);
|
final List<PatchedApplication> toRemove =
|
||||||
|
await getAppsToRemove(patchedApps);
|
||||||
patchedApps.removeWhere((a) => toRemove.contains(a));
|
patchedApps.removeWhere((a) => toRemove.contains(a));
|
||||||
for (PatchedApplication app in patchedApps) {
|
for (final PatchedApplication app in patchedApps) {
|
||||||
app.hasUpdates =
|
app.hasUpdates =
|
||||||
await hasAppUpdates(app.originalPackageName, app.patchDate);
|
await hasAppUpdates(app.originalPackageName, app.patchDate);
|
||||||
app.changelog =
|
app.changelog =
|
||||||
await getAppChangelog(app.originalPackageName, app.patchDate);
|
await getAppChangelog(app.originalPackageName, app.patchDate);
|
||||||
if (!app.hasUpdates) {
|
if (!app.hasUpdates) {
|
||||||
String? currentInstalledVersion =
|
final String? currentInstalledVersion =
|
||||||
(await DeviceApps.getApp(app.packageName))?.versionName;
|
(await DeviceApps.getApp(app.packageName))?.versionName;
|
||||||
if (currentInstalledVersion != null) {
|
if (currentInstalledVersion != null) {
|
||||||
String currentSavedVersion = app.version;
|
final String currentSavedVersion = app.version;
|
||||||
int currentInstalledVersionInt = int.parse(
|
final int currentInstalledVersionInt = int.parse(
|
||||||
currentInstalledVersion.replaceAll(RegExp('[^0-9]'), ''));
|
currentInstalledVersion.replaceAll(RegExp('[^0-9]'), ''),
|
||||||
int currentSavedVersionInt =
|
);
|
||||||
int.parse(currentSavedVersion.replaceAll(RegExp('[^0-9]'), ''));
|
final int currentSavedVersionInt = int.parse(
|
||||||
|
currentSavedVersion.replaceAll(RegExp('[^0-9]'), ''),
|
||||||
|
);
|
||||||
if (currentInstalledVersionInt > currentSavedVersionInt) {
|
if (currentInstalledVersionInt > currentSavedVersionInt) {
|
||||||
app.hasUpdates = true;
|
app.hasUpdates = true;
|
||||||
}
|
}
|
||||||
@ -369,9 +414,9 @@ class ManagerAPI {
|
|||||||
|
|
||||||
Future<bool> isAppUninstalled(PatchedApplication app) async {
|
Future<bool> isAppUninstalled(PatchedApplication app) async {
|
||||||
bool existsRoot = false;
|
bool existsRoot = false;
|
||||||
bool existsNonRoot = await DeviceApps.isAppInstalled(app.packageName);
|
final bool existsNonRoot = await DeviceApps.isAppInstalled(app.packageName);
|
||||||
if (app.isRooted) {
|
if (app.isRooted) {
|
||||||
bool hasRootPermissions = await _rootAPI.hasRootPermissions();
|
final bool hasRootPermissions = await _rootAPI.hasRootPermissions();
|
||||||
if (hasRootPermissions) {
|
if (hasRootPermissions) {
|
||||||
existsRoot = await _rootAPI.isAppInstalled(app.packageName);
|
existsRoot = await _rootAPI.isAppInstalled(app.packageName);
|
||||||
}
|
}
|
||||||
@ -380,8 +425,11 @@ class ManagerAPI {
|
|||||||
return !existsNonRoot;
|
return !existsNonRoot;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<bool> hasAppUpdates(String packageName, DateTime patchDate) async {
|
Future<bool> hasAppUpdates(
|
||||||
List<String> commits = await _githubAPI.getCommits(
|
String packageName,
|
||||||
|
DateTime patchDate,
|
||||||
|
) async {
|
||||||
|
final List<String> commits = await _githubAPI.getCommits(
|
||||||
packageName,
|
packageName,
|
||||||
getPatchesRepo(),
|
getPatchesRepo(),
|
||||||
patchDate,
|
patchDate,
|
||||||
@ -390,7 +438,9 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<List<String>> getAppChangelog(
|
Future<List<String>> getAppChangelog(
|
||||||
String packageName, DateTime patchDate) async {
|
String packageName,
|
||||||
|
DateTime patchDate,
|
||||||
|
) async {
|
||||||
List<String> newCommits = await _githubAPI.getCommits(
|
List<String> newCommits = await _githubAPI.getCommits(
|
||||||
packageName,
|
packageName,
|
||||||
getPatchesRepo(),
|
getPatchesRepo(),
|
||||||
@ -416,38 +466,59 @@ class ManagerAPI {
|
|||||||
return app != null && app.isSplit;
|
return app != null && app.isSplit;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setSelectedPatches(String app, List<String> patches) async {
|
Future<void> setSelectedPatches(
|
||||||
|
String app,
|
||||||
|
List<String> patches,
|
||||||
|
) async {
|
||||||
final File selectedPatchesFile = File(storedPatchesFile);
|
final File selectedPatchesFile = File(storedPatchesFile);
|
||||||
Map<String, dynamic> patchesMap = await readSelectedPatchesFile();
|
final Map<String, dynamic> patchesMap = await readSelectedPatchesFile();
|
||||||
if (patches.isEmpty) {
|
if (patches.isEmpty) {
|
||||||
patchesMap.remove(app);
|
patchesMap.remove(app);
|
||||||
} else {
|
} else {
|
||||||
patchesMap[app] = patches;
|
patchesMap[app] = patches;
|
||||||
}
|
}
|
||||||
if (selectedPatchesFile.existsSync()) {
|
|
||||||
selectedPatchesFile.createSync(recursive: true);
|
|
||||||
}
|
|
||||||
selectedPatchesFile.writeAsString(jsonEncode(patchesMap));
|
selectedPatchesFile.writeAsString(jsonEncode(patchesMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<String>> getSelectedPatches(String app) async {
|
// get default patches for app
|
||||||
Map<String, dynamic> patchesMap = await readSelectedPatchesFile();
|
Future<List<String>> getDefaultPatches() async {
|
||||||
if (patchesMap.isNotEmpty) {
|
final List<Patch> patches = await getPatches();
|
||||||
final List<String> patches =
|
final List<String> defaultPatches = [];
|
||||||
List.from(patchesMap.putIfAbsent(app, () => List.empty()));
|
if (areExperimentalPatchesEnabled() == false) {
|
||||||
return patches;
|
defaultPatches.addAll(
|
||||||
|
patches
|
||||||
|
.where(
|
||||||
|
(element) =>
|
||||||
|
element.excluded == false && isPatchSupported(element),
|
||||||
|
)
|
||||||
|
.map((p) => p.name),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
defaultPatches.addAll(
|
||||||
|
patches
|
||||||
|
.where((element) => isPatchSupported(element))
|
||||||
|
.map((p) => p.name),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return List.empty();
|
return defaultPatches;
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<List<String>> getSelectedPatches(String app) async {
|
||||||
|
final Map<String, dynamic> patchesMap = await readSelectedPatchesFile();
|
||||||
|
final List<String> defaultPatches = await getDefaultPatches();
|
||||||
|
return List.from(patchesMap.putIfAbsent(app, () => defaultPatches));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Map<String, dynamic>> readSelectedPatchesFile() async {
|
Future<Map<String, dynamic>> readSelectedPatchesFile() async {
|
||||||
final File selectedPatchesFile = File(storedPatchesFile);
|
final File selectedPatchesFile = File(storedPatchesFile);
|
||||||
if (selectedPatchesFile.existsSync()) {
|
if (!selectedPatchesFile.existsSync()) {
|
||||||
String string = selectedPatchesFile.readAsStringSync();
|
return {};
|
||||||
if (string.trim().isEmpty) return {};
|
|
||||||
return json.decode(string);
|
|
||||||
}
|
}
|
||||||
return {};
|
final String string = selectedPatchesFile.readAsStringSync();
|
||||||
|
if (string.trim().isEmpty) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
return jsonDecode(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> resetLastSelectedPatches() async {
|
Future<void> resetLastSelectedPatches() async {
|
||||||
|