-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from s1204IT/gradle
Improve project
- Loading branch information
Showing
19 changed files
with
313 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.bat eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/build.yml' | ||
- 'service/**' | ||
workflow_dispatch: | ||
inputs: | ||
module: | ||
description: 'Make module' | ||
type: boolean | ||
required: true | ||
default: false | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Set environments | ||
run: | | ||
{ | ||
echo "apk_version=v$(grep -oP 'versionName \"\K[^\"]+' service/app/build.gradle)" | ||
echo "mod_version=v$(awk -F= '/^version=/ {print $2}' module/module.prop)" | ||
} >> $GITHUB_ENV | ||
- name: Build with Gradle | ||
working-directory: service | ||
run: | | ||
./gradlew assembleDebug | ||
cp -f app/build/outputs/apk/debug/app-debug.apk ../module/service/service.apk | ||
- name: Upload APK | ||
if: github.event.inputs.module != 'true' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: VBMetaFixerService-${{ env.apk_version }} | ||
path: module/service/service.apk | ||
|
||
- name: Make module | ||
if: github.event.inputs.module == 'true' | ||
working-directory: module | ||
run: | | ||
rm -f service/.gitkeep | ||
zip vbmeta-fixer-${{ env.mod_version }}.zip -r * | ||
# - name: Upload module | ||
# if: github.event.inputs.module == 'true' | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: vbmeta-fixer-${{ env.mod_version }} | ||
# path: module/vbmeta-fixer-${{ env.mod_version }}.zip | ||
|
||
- name: Release module | ||
uses: softprops/action-gh-release@v2 | ||
if: github.event.inputs.module == 'true' | ||
with: | ||
tag_name: ${{ env.mod_version }} | ||
draft: false | ||
prerelease: false | ||
fail_on_unmatched_files: true | ||
make_latest: true | ||
files: module/vbmeta-fixer-${{ env.mod_version }}.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
tools:targetApi="31"> | ||
android:label="VBMetaFixerService"> | ||
|
||
<service | ||
android:name=".FixerService" | ||
android:enabled="true" | ||
android:exported="true" /> | ||
|
||
<service android:name="com.reveny.vbmetafix.service.FixerService" android:enabled="true" android:exported="true"/> | ||
</application> | ||
|
||
</manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
alias(libs.plugins.android.application) apply false | ||
} | ||
alias(libs.plugins.android.application) apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
[versions] | ||
agp = "8.7.0" | ||
bcprovJdk18on = "1.77" | ||
agp = "8.7.1" | ||
bcprovJdk18on = "1.79" | ||
|
||
[libraries] | ||
bcprov-jdk18on = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bcprovJdk18on" } | ||
|
||
[plugins] | ||
android-application = { id = "com.android.application", version.ref = "agp" } | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Tue Oct 29 15:35:53 CET 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.