Skip to content

Commit a1cb18f

Browse files
authored
feat: Overhaul ReVanced Manager from Flutter to Jetpack Compose (#1409)
2 parents 40dd81e + 8d9c243 commit a1cb18f

File tree

455 files changed

+25365
-34499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

455 files changed

+25365
-34499
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🐞 Bug report
22
description: Report a bug or an issue.
3-
title: "bug: "
4-
labels: ["Bug report"]
3+
title: 'bug: '
4+
labels: ['Bug report']
55
body:
66
- type: markdown
77
attributes:
@@ -80,38 +80,21 @@ body:
8080
- Describe your bug in detail
8181
- Add steps to reproduce the bug if possible (Step 1. ... Step 2. ...)
8282
- Add images and videos if possible
83-
- List used patches if applicable
83+
- List used patches, downloader and settings if applicable
8484
validations:
8585
required: true
8686
- type: textarea
8787
attributes:
88-
label: Version of ReVanced Manager and version & name of app you are patching
89-
validations:
90-
required: true
91-
- type: dropdown
92-
attributes:
93-
label: Installation method
94-
options:
95-
- Regular
96-
- Mount
97-
validations:
98-
required: false
99-
- type: textarea
100-
attributes:
101-
label: ReVanced Manager logs
102-
description: Export logs from the ReVanced Manager settings.
88+
label: Patch logs
89+
description: Patch logs can be exported by clicking on the "Logs" button in the "Patcher" screen, when patching finishes.
10390
render: shell
104-
validations:
105-
required: true
10691
- type: textarea
10792
attributes:
108-
label: Patch logs
109-
description: Export logs from the "Patcher" screen.
110-
render: shell
93+
label: Debug logs
94+
description: Debug logs can be exported by clicking on "Export debug logs" in "Settings" > "Advanced".
11195
validations:
112-
required: false
96+
required: true
11397
- type: checkboxes
114-
id: acknowledgements
11598
attributes:
11699
label: Acknowledgements
117100
description: Your bug report will be closed if you don't follow the checklist below.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: false
22
contact_links:
33
- name: 🗨 Discussions
44
url: https://github.com/revanced/revanced-suggestions/discussions
5-
about: Have something unspecific to ReVanced Manager in mind? Search for or start a new discussion!
5+
about: Have something unspecific to ReVanced Manager in mind? Search for or start a new discussion!

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
name: ⭐ Feature request
2-
description: Create a detailed request for a new feature.
3-
title: "feat: "
4-
labels: ["Feature request"]
51
body:
62
- type: markdown
73
attributes:
@@ -84,7 +80,7 @@ body:
8480
label: Motivation
8581
description: |
8682
A strong motivation is necessary for a feature request to be considered.
87-
83+
8884
- Why should this feature be implemented?
8985
- What is the explicit use case?
9086
- What are the benefits?
@@ -97,9 +93,11 @@ body:
9793
label: Acknowledgements
9894
description: Your feature request will be closed if you don't follow the checklist below.
9995
options:
100-
- label: I have checked all open and closed feature requests and this is not a duplicate.
96+
- label: I have checked all open and closed feature requests and this is not a duplicate
10197
required: true
10298
- label: I have chosen an appropriate title.
10399
required: true
100+
- label: All requested information has been provided properly.
101+
required: true
104102
- label: The feature request is only related to ReVanced Manager.
105103
required: true

.github/dependabot.yml

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

.github/workflows/build_pull_request.yml

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,30 @@ name: Build pull request
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
pr-number:
7-
description: PR number
8-
required: true
9-
app-flavor:
10-
description: App flavor
11-
default: release
12-
type: choice
13-
options:
14-
- release
15-
- debug
16-
- profile
5+
pull_request:
6+
branches:
7+
- dev
178

189
jobs:
19-
build:
10+
release:
2011
name: Build
2112
runs-on: ubuntu-latest
22-
permissions:
23-
contents: read
24-
pull-requests: write
2513
steps:
26-
- name: Checkout PR
14+
- name: Checkout
2715
uses: actions/checkout@v4
28-
with:
29-
ref: refs/pull/${{ inputs.pr-number }}/merge
30-
31-
- name: Setup Java
32-
uses: actions/setup-java@v4
33-
with:
34-
distribution: 'temurin'
35-
java-version: '17'
3616

37-
- name: Set up Flutter
38-
uses: subosito/flutter-action@v2
39-
with:
40-
channel: stable
41-
flutter-version: 3.29.x
42-
cache: true
43-
4417
- name: Cache Gradle
45-
uses: burrunan/gradle-cache-action@v3
46-
with:
47-
build-root-directory: ${{ github.workspace }}/android
48-
49-
- name: Get dependencies
50-
run: flutter pub get
51-
52-
- name: Generate translations
53-
run: dart run slang
54-
55-
- name: Generate code files
56-
run: dart run build_runner build --delete-conflicting-outputs
18+
uses: burrunan/gradle-cache-action@v1
5719

5820
- name: Build
59-
id: flutter-build
60-
run: flutter build apk --${{ inputs.app-flavor }}
6121
env:
6222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: ./gradlew assembleRelease --no-daemon
6324

6425
- name: Upload artifacts
65-
if: steps.flutter-build.outcome == 'success'
6626
uses: actions/upload-artifact@v4
6727
with:
68-
name: revanced-manager-(${{ env.COMMIT_HASH }}
28+
name: revanced-manager
6929
path: |
70-
build/app/outputs/flutter-apk/app-*.apk
30+
app/build/outputs/apk/release/revanced-manager*.apk
31+
app/build/outputs/apk/release/revanced-manager*.apk.asc

.github/workflows/open_pull_request.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ env:
1212
jobs:
1313
pull-request:
1414
name: Open pull request
15-
permissions:
16-
pull-requests: write
1715
runs-on: ubuntu-latest
1816
steps:
1917
- name: Checkout
@@ -24,6 +22,5 @@ jobs:
2422
with:
2523
destination_branch: 'main'
2624
pr_title: 'chore: ${{ env.MESSAGE }}'
27-
pr_body: |
28-
This pull request will ${{ env.MESSAGE }}.
25+
pr_body: 'This pull request will ${{ env.MESSAGE }}.'
2926
pr_draft: true

.github/workflows/release.yml

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
name: Release
1313
permissions:
1414
contents: write
15+
packages: write
1516
id-token: write
1617
attestations: write
1718
runs-on: ubuntu-latest
@@ -25,51 +26,55 @@ jobs:
2526
distribution: 'temurin'
2627
java-version: '17'
2728

29+
- name: Cache Gradle
30+
uses: burrunan/gradle-cache-action@v3
31+
32+
- name: Build
33+
env:
34+
GITHUB_ACTOR: ${{ github.actor }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: ./gradlew assembleRelease
37+
2838
- name: Setup Node.js
2939
uses: actions/setup-node@v4
3040
with:
3141
node-version: "lts/*"
3242
cache: 'npm'
3343

34-
- name: Set up Flutter
35-
uses: subosito/flutter-action@v2
36-
with:
37-
channel: stable
38-
flutter-version: 3.29.x
39-
cache: true
40-
41-
- name: Cache Gradle
42-
uses: burrunan/gradle-cache-action@v3
43-
with:
44-
build-root-directory: ${{ github.workspace }}/android
45-
4644
- name: Install dependencies
47-
run: npm i
48-
49-
- name: Get dependencies
50-
run: flutter pub get
45+
run: npm ci
5146

52-
- name: Generate translations
53-
run: dart run slang
54-
55-
- name: Generate code files
56-
run: dart run build_runner build --delete-conflicting-outputs
47+
- name: Import GPG key
48+
uses: crazy-max/ghaction-import-gpg@v6
49+
with:
50+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
51+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
52+
fingerprint: ${{ vars.GPG_FINGERPRINT }}
5753

5854
- name: Setup keystore
5955
run: |
60-
echo "${{ secrets.KEYSTORE }}" | base64 --decode > "android/app/keystore.jks"
56+
echo "${{ secrets.KEYSTORE }}" | base64 --decode > "app/keystore.jks"
6157
62-
- name: Semantic Release
63-
uses: cycjimmy/semantic-release-action@v4
64-
id: semantic
58+
- name: Release API
59+
run: npx multi-semantic-release --tag-format 'api@${version}' --ignore-packages app
6560
env:
61+
GITHUB_ACTOR: ${{ github.actor }}
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
- name: Release
65+
id: release
66+
run: |
67+
echo "NEW_TAG=$(npx multi-semantic-release --tag-format 'v${version}' --ignore-packages api | tee | grep 'Created tag ' | sed -E 's/.*Created tag ([^ ]+).*/\1/')" >> $GITHUB_OUTPUT
68+
env:
69+
GITHUB_ACTOR: ${{ github.actor }}
6670
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6771
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
6872
KEYSTORE_ENTRY_ALIAS: ${{ secrets.KEYSTORE_ENTRY_ALIAS }}
6973
KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }}
70-
74+
7175
- name: Attest
72-
if: steps.semantic.outputs.new_release_published == 'true'
76+
if: steps.release.outputs.NEW_TAG != ''
7377
uses: actions/attest-build-provenance@v2
7478
with:
75-
subject-path: build/app/outputs/apk/release/revanced-manager-*.apk
79+
subject-name: 'ReVanced Manager ${{ steps.release.outputs.NEW_TAG }}'
80+
subject-path: app/build/outputs/apk/release/revanced-manager*.apk

0 commit comments

Comments
 (0)