* feat: WiFi-Connect Auto-Sync + Debug Logging [skip ci]
- WiFi-Connect Auto-Sync via NetworkCallback + Broadcast (statt WorkManager)
- onResume Auto-Sync mit Toast-Feedback (nur Success)
- File-Logging Feature für Debugging (letzte 500 Einträge)
- Settings: Debug/Logs Section mit Test-Button
- FileProvider für Log-Sharing
- Extensive Debug-Logs für NetworkMonitor + MainActivity
- Material Design 3 Migration (alle 17 Tasks)
- Bug-Fixes: Input underlines, section rename, swipe-to-delete, flat cards
PROBLEM: WiFi-Connect sendet Broadcast aber MainActivity empfängt nicht
→ Benötigt logcat debugging auf anderem Gerät
* 🐛 fix: Remove WiFi-Connect related code and UI elements to streamline sync process
* feat: Konfigurierbare Sync-Intervalle + Über-Sektion (v1.1.0)
## Neue Features
### Konfigurierbare Sync-Intervalle
- Wählbare Intervalle: 15/30/60 Minuten in Settings
- Transparente Akkuverbrauchs-Anzeige (0.2-0.8% pro Tag)
- Sofortige Anwendung ohne App-Neustart
- NetworkMonitor liest Intervall dynamisch aus SharedPreferences
### Über-Sektion
- App-Version & Build-Datum Anzeige
- Klickbare Links zu GitHub Repository & Entwickler-Profil
- Lizenz-Information (MIT License)
- Ersetzt alte Debug/Logs Sektion
## Verbesserungen
- Benutzerfreundliche Doze-Mode Erklärung in Settings
- Keine störenden Sync-Fehler Toasts mehr im Hintergrund
- Modernisierte README mit Badges und kompakter Struktur
- F-Droid Metadaten aktualisiert (changelogs + descriptions)
## Technische Änderungen
- Version Bump: 1.0 → 1.1.0 (versionCode: 1 → 2)
- BUILD_DATE buildConfigField hinzugefügt
- PREF_SYNC_INTERVAL_MINUTES Konstante in Constants.kt
- NetworkMonitor.startPeriodicSync() nutzt konfigurierbare Intervalle
- SettingsActivity: setupSyncIntervalPicker() + setupAboutSection()
- activity_settings.xml: RadioGroup für Intervalle + About Cards
199 lines
7.6 KiB
YAML
199 lines
7.6 KiB
YAML
name: Build Android Production APK
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ] # Trigger on push to main branch
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
permissions:
|
|
contents: write # Required for creating releases
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Production APK
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Generate Production version number
|
|
run: |
|
|
# Generate semantic version: YYYY.MM.DD
|
|
VERSION_NAME="$(date +'%Y.%m.%d')"
|
|
|
|
# Use GitHub run number as build number for production
|
|
BUILD_NUMBER="${{ github.run_number }}"
|
|
|
|
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
|
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
|
|
echo "VERSION_TAG=v$VERSION_NAME-prod.$BUILD_NUMBER" >> $GITHUB_ENV
|
|
|
|
echo "🚀 Generated PRODUCTION version: $VERSION_NAME+$BUILD_NUMBER"
|
|
|
|
- name: Update build.gradle.kts with Production version
|
|
run: |
|
|
# Update versionCode and versionName in build.gradle.kts
|
|
sed -i "s/versionCode = [0-9]*/versionCode = ${{ env.BUILD_NUMBER }}/" android/app/build.gradle.kts
|
|
sed -i "s/versionName = \".*\"/versionName = \"${{ env.VERSION_NAME }}\"/" android/app/build.gradle.kts
|
|
|
|
echo "✅ Updated build.gradle.kts:"
|
|
grep -E "versionCode|versionName" android/app/build.gradle.kts
|
|
|
|
- name: Setup Android signing
|
|
run: |
|
|
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > android/app/simple-notes-release.jks
|
|
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" > android/key.properties
|
|
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
|
|
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
|
|
echo "storeFile=simple-notes-release.jks" >> android/key.properties
|
|
echo "✅ Signing configuration created"
|
|
|
|
- name: Build Production APK (Release)
|
|
run: |
|
|
cd android
|
|
./gradlew assembleRelease --no-daemon --stacktrace
|
|
|
|
- name: Copy APK variants to root with version names
|
|
run: |
|
|
mkdir -p apk-output
|
|
|
|
# Universal APK
|
|
cp android/app/build/outputs/apk/release/app-universal-release.apk \
|
|
apk-output/simple-notes-sync-v${{ env.VERSION_NAME }}-universal.apk
|
|
|
|
# ARM64 APK
|
|
cp android/app/build/outputs/apk/release/app-arm64-v8a-release.apk \
|
|
apk-output/simple-notes-sync-v${{ env.VERSION_NAME }}-arm64-v8a.apk
|
|
|
|
# ARMv7 APK
|
|
cp android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk \
|
|
apk-output/simple-notes-sync-v${{ env.VERSION_NAME }}-armeabi-v7a.apk
|
|
|
|
echo "✅ APK files prepared:"
|
|
ls -lh apk-output/
|
|
|
|
- name: Upload APK artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: simple-notes-sync-apks-v${{ env.VERSION_NAME }}
|
|
path: apk-output/*.apk
|
|
retention-days: 90 # Keep production builds longer
|
|
|
|
- name: Get commit info
|
|
run: |
|
|
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
|
echo "COMMIT_DATE=$(git log -1 --format=%cd --date=iso-strict)" >> $GITHUB_ENV
|
|
|
|
# Get full commit message preserving newlines and emojis (UTF-8)
|
|
{
|
|
echo 'COMMIT_MSG<<EOF'
|
|
git -c core.quotepath=false log -1 --pretty=%B
|
|
echo 'EOF'
|
|
} >> $GITHUB_ENV
|
|
|
|
- name: Create Production Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: ${{ env.VERSION_TAG }}
|
|
name: "📝 Simple Notes Sync v${{ env.VERSION_NAME }} (Produktions-Release)"
|
|
files: apk-output/*.apk
|
|
draft: false
|
|
prerelease: false
|
|
generate_release_notes: false
|
|
body: |
|
|
# 📝 Produktions-Release: Simple Notes Sync v${{ env.VERSION_NAME }}
|
|
|
|
## Build-Informationen
|
|
|
|
- **Version:** ${{ env.VERSION_NAME }}+${{ env.BUILD_NUMBER }}
|
|
- **Build-Datum:** ${{ env.COMMIT_DATE }}
|
|
- **Commit:** ${{ env.SHORT_SHA }}
|
|
- **Umgebung:** 🟢 **PRODUKTION**
|
|
|
|
---
|
|
|
|
## 📋 Änderungen
|
|
|
|
${{ env.COMMIT_MSG }}
|
|
|
|
---
|
|
|
|
## 📦 Download & Installation
|
|
|
|
### Welche APK soll ich herunterladen?
|
|
|
|
| Dein Gerät | Lade diese APK herunter | Größe | Kompatibilität |
|
|
|------------|------------------------|-------|----------------|
|
|
| 🤷 Nicht sicher? | `simple-notes-sync-v${{ env.VERSION_NAME }}-universal.apk` | ~5 MB | Funktioniert auf allen Geräten |
|
|
| Modern (2018+) | `simple-notes-sync-v${{ env.VERSION_NAME }}-arm64-v8a.apk` | ~3 MB | Schneller, kleiner |
|
|
| Ältere Geräte | `simple-notes-sync-v${{ env.VERSION_NAME }}-armeabi-v7a.apk` | ~3 MB | Ältere ARM-Chips |
|
|
|
|
### Installationsschritte
|
|
1. Lade die passende APK aus den Assets unten herunter
|
|
2. Aktiviere "Installation aus unbekannten Quellen" in den Android-Einstellungen
|
|
3. Öffne die heruntergeladene APK-Datei
|
|
4. Folge den Installationsanweisungen
|
|
5. Konfiguriere die WebDAV-Einstellungen in der App
|
|
|
|
---
|
|
|
|
## ⚙️ Funktionen
|
|
|
|
- ✅ Automatische WebDAV-Synchronisation alle 30 Minuten (~0,4% Akku/Tag)
|
|
- ✅ Intelligente Gateway-Erkennung (automatische Heimnetzwerk-Erkennung)
|
|
- ✅ Material Design 3 Oberfläche
|
|
- ✅ Datenschutzorientiert (kein Tracking, keine Analysen)
|
|
- ✅ Offline-First Architektur
|
|
|
|
---
|
|
|
|
## 🔄 Update von vorheriger Version
|
|
|
|
Installiere diese APK einfach über die bestehende Installation - alle Daten und Einstellungen bleiben erhalten.
|
|
|
|
---
|
|
|
|
## 📱 Obtanium - Auto-Update App
|
|
|
|
Erhalte automatische Updates mit [Obtanium](https://github.com/ImranR98/Obtanium/releases/latest).
|
|
|
|
**Einrichtung:**
|
|
1. Installiere Obtanium über den Link oben
|
|
2. Füge die App mit dieser URL hinzu: `https://github.com/dettmersLiq/simple-notes-sync`
|
|
3. Aktiviere Auto-Updates
|
|
|
|
---
|
|
|
|
## 🆘 Support
|
|
|
|
Bei Problemen oder Fragen öffne bitte ein Issue auf GitHub.
|
|
|
|
---
|
|
|
|
## 🔒 Datenschutz & Sicherheit
|
|
|
|
- Alle Daten werden über deinen eigenen WebDAV-Server synchronisiert
|
|
- Keine Drittanbieter-Analysen oder Tracking
|
|
- Keine Internet-Berechtigungen außer für WebDAV-Sync
|
|
- Alle Synchronisationsvorgänge verschlüsselt (HTTPS)
|
|
- Open Source - prüfe den Code selbst
|
|
|
|
---
|
|
|
|
## 🛠️ Erstellt mit
|
|
|
|
- **Sprache:** Kotlin
|
|
- **UI:** Material Design 3
|
|
- **Sync:** WorkManager + WebDAV
|
|
- **Target SDK:** Android 16 (API 36)
|
|
- **Min SDK:** Android 8.0 (API 26)
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|