feat: add Android client with service integration, UI, and build configuration

This commit is contained in:
Sarto
2026-03-31 17:50:05 +03:30
parent b89fc93829
commit 96779ea4d1
16 changed files with 489 additions and 1 deletions
+46 -1
View File
@@ -92,8 +92,52 @@ jobs:
name: binaries-${{ matrix.goos }}-${{ matrix.goarch }}
path: build/
release:
android-apk:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Stage Android client binary into assets
run: |
test -f artifacts/thefeed-client-android-arm64
mkdir -p android/app/src/main/assets
cp artifacts/thefeed-client-android-arm64 android/app/src/main/assets/thefeed-client
chmod +x android/app/src/main/assets/thefeed-client
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Generate wrapper and build debug APK
working-directory: android
run: |
gradle wrapper --gradle-version 8.10.2
./gradlew --no-daemon assembleDebug
- name: Rename APK
run: |
cp android/app/build/outputs/apk/debug/app-debug.apk artifacts/thefeed-android-arm64.apk
- name: Upload Android APK artifact
uses: actions/upload-artifact@v4
with:
name: thefeed-android-apk
path: artifacts/thefeed-android-arm64.apk
release:
needs: [build, android-apk]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
@@ -108,3 +152,4 @@ jobs:
with:
files: artifacts/*
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-') }}