* Extract couple filters to separate classes * Move ImageEffects to separate file * Refactor effects to use bitmap * Reformat code, extract last batch of effects to classes * Shitty intermediate refactor * Still intermediate sh**, buildable btw * More refactoring, still looks disgusting, but a bit better) * Add fixme about order * Remove unused stuff * Remove unused code, prevent re-creating of drawable * Refactor img effects to native * Add native lib sources * Implement Dim, Mosaic and Blur in native * Add pre-built libs * Get rid of filter abstraction * Include native build * Force rust toolchains * Fix typos * Comment not used smali * Simplify wallpapers handling * Fixes after main merge * Minor fixes, add prebuilt lib, disable auto re-builds for native * Fix missed copyscpec for native builds * Fix entry for dim effect * Fix resizing to respect current image dimensions * Wtf? who stole NDK from actions * Learning GH actions I don't want to read the docs * Revert "Learning GH actions" This reverts commitf6f9a97d10. * Revert "Wtf? who stole NDK from actions" This reverts commit1d0f1b8879. * Try out latest LTS just why not --------- Co-authored-by: saoq <wfmfe@ya.ru>
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
name: Build VTosters Lite
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up JDK 14
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '14'
|
|
distribution: 'adopt'
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Download tools
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install default-jre
|
|
sudo apt install python3
|
|
sudo apt install zipalign
|
|
chmod +x scripts/apktool.jar
|
|
chmod +x scripts/apksigner.jar
|
|
rustup target add armv7-linux-androideabi
|
|
rustup target add aarch64-linux-android
|
|
|
|
- name: Build VTLite
|
|
run: |
|
|
gradle prepareDexForMerge
|
|
java -jar scripts/apktool.jar b smali -o smali/VTLite.apk --use-aapt2 -p scripts/framework/
|
|
zipalign -p -f 4 smali/VTLite.apk smali/VTLite.apk_aligned
|
|
mv smali/VTLite.apk_aligned smali/VTLite.apk
|
|
|
|
- name: Sign and verify the apk
|
|
run: |
|
|
java -jar scripts/apksigner.jar sign --ks scripts/debug.keystore --ks-key-alias androiddebugkey --ks-pass pass:android smali/VTLite.apk
|
|
java -jar scripts/apksigner.jar verify smali/VTLite.apk
|
|
|
|
- name: Upload apk to artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: VTLite.apk
|
|
path: smali/VTLite.apk
|