Compare commits

...
27 Commits
Author SHA1 Message Date
robin 78d23f9cda fix
Build & Release Android App / build (push) Successful in 29m7s
2026-10-03 12:39:37 +02:00
robin 1bfe36309c fix
Build & Release Android App / build (push) Successful in 11m10s
2026-09-29 20:39:36 +02:00
robin 9ad23b2a3b fix
Build & Release Android App / build (push) Failing after 8m48s
2026-09-29 20:30:18 +02:00
robin 658f6a9506 fix
Build & Release Android App / build (push) Failing after 10m18s
2026-09-29 20:17:41 +02:00
robin f9b666fe15 chore: fix for 1.0.3 2026-09-29 20:10:43 +02:00
robin b1977d790d chore: fix for v1.0.2
Build & Release Android App / build (push) Successful in 12m16s
2026-09-29 19:53:01 +02:00
robin 3d5cc10a1a chore: fix for v1.0.1
Build & Release Android App / build (push) Failing after 5m4s
2026-09-29 19:28:26 +02:00
robin 52a758ff16 chore: add CHANGELOG
Build & Release Android App / build (push) Failing after 9m26s
2026-09-29 19:18:16 +02:00
robin 7dde81a715 chore: v1.0.1 2026-09-29 19:17:53 +02:00
robin e563b2e796 chore: add .idea/misc.xml to .gitignore 2026-09-19 19:38:31 +02:00
robin c27184551c chore: updated to gradle 9.4.1 2026-09-19 19:34:13 +02:00
robin f275ffe0ba fix workflow #16
Build & Release Android App / build (push) Failing after 22m32s
2026-09-19 19:26:05 +02:00
robin 9ef3cb1ee6 fix workflow #15
Build & Release Android App / build (push) Failing after 13m39s
2026-09-19 19:09:09 +02:00
robin 660dc8fd89 fix workflow #14
Build & Release Android App / build (push) Failing after 8m15s
2026-09-19 18:58:50 +02:00
robin 70f0e22e5e fix workflow #13
Build & Release Android App / build (push) Failing after 5m22s
2026-09-19 18:48:11 +02:00
robin f5775cd5a1 fix workflow #13
Build & Release Android App / build (push) Failing after 5m22s
2026-09-19 18:39:01 +02:00
robin 0d189a69de fix workflow #12
Build & Release Android App / build (push) Failing after 5m23s
2026-09-19 18:31:36 +02:00
robin 19dffdc001 fix workflow #11
Build & Release Android App / build (push) Failing after 5m15s
2026-09-19 18:20:55 +02:00
robin 344963a4e5 Merge pull request 'Initial code' (#3) from initial into chore
Reviewed-on: #3
2026-09-19 16:12:08 +00:00
robin 10b0183945 Merge branch 'chore' into initial 2026-09-19 16:11:44 +00:00
robin c74e428bce fix workflow #7 2026-09-18 19:24:53 +00:00
robin 137c8fee49 fix workflow #7
Build & Release Android App / build (push) Failing after 5m12s
2026-09-18 20:34:49 +02:00
robin 2e2c3a9382 fix workflow #6 2026-09-18 20:28:07 +02:00
robin 2ab4dae20d fix workflow #5
Build & Release Android App / build (push) Failing after 2m10s
2026-09-18 19:34:56 +02:00
robin 03cce71d14 fix workflow #4
Build & Release Android App / build (push) Failing after 4m11s
2026-09-18 19:21:21 +02:00
robin c90ec8843e fix workflow #3
Build & Release Android App / build (push) Failing after 17m32s
2026-09-18 18:59:54 +02:00
robin 358a357e07 chore: fix workflow #2
Build & Release Android App / build (push) Failing after 27m18s
2026-09-18 18:19:19 +02:00
7 changed files with 128 additions and 15 deletions

No files matched your search

+89 -7
View File
@@ -1,31 +1,113 @@
# .gitea/workflows/build-release.yml
name: Build & Release Android App name: Build & Release Android App
on: on:
push: push:
tags: tags:
- 'v*' # Startet bei Tags wie v1.0.0, v1.0.1 etc. - 'v*'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Secrets prüfen
run: |
[ -n "$KEYSTORE_PASSWORD" ] && echo "KEYSTORE_PASSWORD gesetzt" || echo "KEYSTORE_PASSWORD LEER"
[ -n "$KEY_ALIAS" ] && echo "KEY_ALIAS gesetzt" || echo "KEY_ALIAS LEER"
[ -n "$KEY_PASSWORD" ] && echo "KEY_PASSWORD gesetzt" || echo "KEY_PASSWORD LEER"
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Code auschecken - name: Code auschecken
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Java/JDK einrichten - name: Java/JDK 17 einrichten
uses: actions/setup-java@v3 uses: actions/setup-java@v5
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: gradle
- name: Rechte für gradlew setzen
run: chmod +x gradlew
- name: Android SDK einrichten
run: |
SDK_PATH="$HOME/android-sdk"
SDKMANAGER="$SDK_PATH/cmdline-tools/latest/bin/sdkmanager"
if [ ! -x "$SDKMANAGER" ]; then
echo "Installiere Android cmdline-tools..."
mkdir -p "$SDK_PATH/cmdline-tools"
curl -sSL -o /tmp/tools.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
unzip -q /tmp/tools.zip -d "$SDK_PATH/cmdline-tools"
mv "$SDK_PATH/cmdline-tools/cmdline-tools" "$SDK_PATH/cmdline-tools/latest"
rm /tmp/tools.zip
fi
# Lizenzen korrekt akzeptieren (kein "yes |", wegen pipefail/SIGPIPE)
"$SDKMANAGER" --sdk_root="$SDK_PATH" --licenses < <(yes) > /dev/null
# Benötigte Pakete direkt installieren
"$SDKMANAGER" --sdk_root="$SDK_PATH" \
"platform-tools" \
"platforms;android-37.0" \
"build-tools;36.0.0"
echo "ANDROID_HOME=$SDK_PATH" >> $GITHUB_ENV
echo "ANDROID_SDK_ROOT=$SDK_PATH" >> $GITHUB_ENV
echo "sdk.dir=$SDK_PATH" > "$GITHUB_WORKSPACE/local.properties"
- name: Keystore dekodieren
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "$KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.keystore"
echo "KEYSTORE_PATH=$RUNNER_TEMP/release.keystore" >> $GITHUB_ENV
- name: Android Release APK bauen - name: Android Release APK bauen
run: | run: |
chmod +x gradlew set -euo pipefail
./gradlew assembleRelease
VERSION="${GITHUB_REF_NAME#v}"
echo "Baue Version: $VERSION"
./gradlew assembleRelease \
--no-daemon \
-PversionNameOverride="$VERSION"
echo "Erzeugte APK-Dateien:"
find app/build/outputs -type f -name "*.apk" -print
APK_SOURCE="$(find app/build/outputs/apk/release -maxdepth 1 -type f -name "*.apk" ! -name "*unsigned*" | head -n 1)"
if [ -z "$APK_SOURCE" ]; then
echo "Keine Release-APK gefunden."
exit 1
fi
APK_DIR="app/build/outputs/apk/release"
APK_NAME="WeekFocus-${VERSION}.apk"
APK_TARGET="$APK_DIR/$APK_NAME"
mv "$APK_SOURCE" "$APK_TARGET"
"$ANDROID_HOME/build-tools/36.0.0/apksigner" verify --verbose "$APK_TARGET"
echo "APK erstellt: $APK_TARGET"
ls -lh "$APK_DIR"
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Release in Gitea erstellen - name: Release in Gitea erstellen
uses: gitea/action-gitea-release@v1 uses: softprops/action-gh-release@v2
with: with:
files: app/build/outputs/apk/release/*.apk tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: app/build/outputs/apk/release/WeekFocus-*.apk
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2 -1
View File
@@ -1,13 +1,14 @@
*.iml *.iml
.gradle .gradle
.idea
/local.properties /local.properties
/.idea
/.idea/caches /.idea/caches
/.idea/libraries /.idea/libraries
/.idea/modules.xml /.idea/modules.xml
/.idea/workspace.xml /.idea/workspace.xml
/.idea/navEditor.xml /.idea/navEditor.xml
/.idea/assetWizardSettings.xml /.idea/assetWizardSettings.xml
/.idea/misc.xml
.DS_Store .DS_Store
/build /build
/captures /captures
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7"> <component name="ProjectRootManager" version="2" languageLevel="JDK_25" project-jdk-name="jbr-25" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
+9
View File
@@ -0,0 +1,9 @@
# Changelog
## [1.0.1] - 2026-09-29
### Neu
- Erste stabile Version mit automatischen APK-Builds
- CHANGELOG.md als Release-Body
### Behoben
- VersionCode und -Name
+26 -2
View File
@@ -3,6 +3,17 @@ plugins {
alias(libs.plugins.kotlin.compose) alias(libs.plugins.kotlin.compose)
} }
val tagVersion = (project.findProperty("versionNameOverride") as String?) ?: "0.0.0-dev"
// "1.2.3" oder "1.2.3-alpha9" -> Kern "1.2.3" für den versionCode
val core = tagVersion
.removePrefix("v")
.substringBefore("-")
val parts = core.split(".").map { it.toIntOrNull() ?: 0 }
val major = parts.getOrElse(0) { 0 }
val minor = parts.getOrElse(1) { 0 }
val patch = parts.getOrElse(2) { 0 }
android { android {
namespace = "de.schanbro.weekfocus" namespace = "de.schanbro.weekfocus"
compileSdk { compileSdk {
@@ -13,14 +24,27 @@ android {
applicationId = "de.schanbro.weekfocus" applicationId = "de.schanbro.weekfocus"
minSdk = 29 minSdk = 29
targetSdk = 37 targetSdk = 37
versionCode = 1 versionCode = major * 10000 + minor * 100 + patch
versionName = "1.0" versionName = tagVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }
signingConfigs {
create("release") {
val ksPath = System.getenv("KEYSTORE_PATH")
if (ksPath != null) {
storeFile = file(ksPath)
storePassword = System.getenv("KEYSTORE_PASSWORD")
keyAlias = System.getenv("KEY_ALIAS")
keyPassword = System.getenv("KEY_PASSWORD")
}
}
}
buildTypes { buildTypes {
release { release {
signingConfig = signingConfigs.getByName("release")
optimization { optimization {
enable = false enable = false
} }
+1 -1
View File
@@ -1,5 +1,5 @@
[versions] [versions]
agp = "9.4.0" agp = "9.4.1"
coreKtx = "1.10.1" coreKtx = "1.10.1"
junit = "4.13.2" junit = "4.13.2"
junitVersion = "1.1.5" junitVersion = "1.1.5"
-3
View File
@@ -11,9 +11,6 @@ pluginManagement {
gradlePluginPortal() gradlePluginPortal()
} }
} }
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
dependencyResolutionManagement { dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {