Skip to content

fix bug in CustomToolbar #7

fix bug in CustomToolbar

fix bug in CustomToolbar #7

Workflow file for this run

name: WAE Business CI
on:
push:
branches: [ "master" ]
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
if: github.event_name == 'push' && !contains(github.event.head_commit.message, 'Merge')
steps:
- uses: actions/checkout@v4
- 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'
run: |
if [ ! -z "${{ secrets.KEY_STORE }}" ]; then
echo androidStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties
echo androidKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
echo androidStoreFile='key.jks' >> gradle.properties
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
fi
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Update package name
run: |
sed -i 's/applicationId = "com.wmods.wppenhacer"/applicationId = "com.wmods.wppenhacer.w4b"/g' app/build.gradle.kts
sed -i 's/Wa Enhancer/Wa Enhancer Business/g' app/src/main/res/values/strings.xml
sed -i 's/com.whatsapp/com.whatsapp.w4b/g' app/src/main/res/values/arrays.xml
sed -i 's/com.wmods.waenhancer.hookprovider/com.wmods.waenhancer.w4b.hookprovider/g' app/src/main/java/com/wmods/wppenhacer/xposed/bridge/ScopeHook.java
sed -i 's/com.wmods.waenhancer.hookprovider/com.wmods.waenhancer.w4b.hookprovider/g' app/src/main/AndroidManifest.xml
- name: Build and test app
run: |
./gradlew assembleDebug -Pminify=true
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Wa Enhancer ${{ steps.version.outputs.builddate }}
path: app/build/outputs/apk/debug/app-debug.apk
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Upload to release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: WaEnhancer Business ${{ env.SHORT_SHA }}
body_path: changelog.txt
files: app/build/outputs/apk/debug/app-debug.apk
tag_name: pre-release-business-${{ env.SHORT_SHA }}