Bump com.android.application from 8.5.2 to 8.6.0 (#62) #137
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
name: Android CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Checkout libxposed/api | |
uses: actions/checkout@v4 | |
with: | |
repository: libxposed/api | |
ref: 64e29bd657ef4d2540b34402f5a988778f29e676 | |
path: libxposed/api | |
fetch-depth: 0 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Write key | |
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' | |
run: | | |
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then | |
echo storePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties | |
echo keyAlias='${{ secrets.ALIAS }}' >> local.properties | |
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> local.properties | |
echo storeFile='key.jks' >> local.properties | |
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > key.jks | |
fi | |
- name: Build with Gradle | |
run: | | |
# gradle properties | |
mkdir -p ~/.gradle | |
echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties | |
echo 'org.gradle.parallel=true' >> ~/.gradle/gradle.properties | |
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC' >> ~/.gradle/gradle.properties | |
echo 'android.native.buildOutput=verbose' >> ~/.gradle/gradle.properties | |
# build dependencies | |
sed -i 's/VERSION_21/VERSION_17/g' libxposed/api/checks/build.gradle.kts | |
cd libxposed/api && ./gradlew publishToMavenLocal && cd ../.. | |
# build DisableFlagSecure | |
chmod +x gradlew | |
./gradlew assembleRelease assembleDebug | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Signed app bundle | |
path: app/build/outputs/apk |