forked from Schanbro/WeekFocus
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ab1b230d8 | ||
|
|
ce4a40c4f3 | ||
|
|
a8375c4025 | ||
|
|
0d3577aa2f | ||
|
|
33277b25e5 | ||
|
|
e2dff7cdf6 | ||
|
|
2ea4c2dbad | ||
|
|
f05184a712 | ||
|
|
e415b49232 | ||
|
|
642bb0c3bd | ||
|
|
bdc9208b8b | ||
|
|
2d88c0464b | ||
|
|
d9bb781135 | ||
|
|
c373c523a5 |
No files matched your search
@@ -134,12 +134,36 @@ jobs:
|
|||||||
echo "Release-Notes:"
|
echo "Release-Notes:"
|
||||||
cat "$NOTES_FILE"
|
cat "$NOTES_FILE"
|
||||||
|
|
||||||
- name: Release in Gitea erstellen
|
- name: Release in Gitea erstellen und APK hochladen
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref_name }}
|
|
||||||
name: ${{ github.ref_name }}
|
|
||||||
body_path: ${{ runner.temp }}/release_notes.md
|
|
||||||
files: app/build/outputs/apk/release/WeekFocus-*.apk
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
TAG="$GITHUB_REF_NAME"
|
||||||
|
NOTES_FILE="$RUNNER_TEMP/release_notes.md"
|
||||||
|
AUTH="Authorization: token $TOKEN"
|
||||||
|
|
||||||
|
# Release holen oder neu anlegen
|
||||||
|
CODE=$(curl -sS -o release.json -w '%{http_code}' -H "$AUTH" "$API/releases/tags/$TAG")
|
||||||
|
if [ "$CODE" = "404" ]; then
|
||||||
|
jq -n --arg tag "$TAG" --arg name "$TAG" --rawfile body "$NOTES_FILE" \
|
||||||
|
'{tag_name:$tag, name:$name, body:$body}' > payload.json
|
||||||
|
curl -fsS -X POST -H "$AUTH" -H "Content-Type: application/json" \
|
||||||
|
-d @payload.json "$API/releases" -o release.json
|
||||||
|
elif [ "$CODE" != "200" ]; then
|
||||||
|
echo "Release konnte nicht abgefragt werden (HTTP $CODE)"
|
||||||
|
cat release.json
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
RELEASE_ID=$(jq -r .id release.json)
|
||||||
|
|
||||||
|
# APK hochladen, gleichnamige alte Assets vorher löschen
|
||||||
|
for APK in app/build/outputs/apk/release/WeekFocus-*.apk; do
|
||||||
|
NAME=$(basename "$APK")
|
||||||
|
for ID in $(jq -r --arg n "$NAME" '.assets[]? | select(.name==$n) | .id' release.json); do
|
||||||
|
curl -fsS -X DELETE -H "$AUTH" "$API/releases/$RELEASE_ID/assets/$ID"
|
||||||
|
done
|
||||||
|
curl -fsS -X POST -H "$AUTH" -F "attachment=@$APK" \
|
||||||
|
"$API/releases/$RELEASE_ID/assets?name=$NAME"
|
||||||
|
done
|
||||||
+8
-1
@@ -1,6 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [1.1.0] - 2026-10-03
|
## [1.1.3] - 2026-10-03
|
||||||
|
### Changed
|
||||||
|
- chore: refactor: switch from release github action to bash
|
||||||
|
|
||||||
|
## [1.1.1] - 2026-10-03
|
||||||
|
### Changed
|
||||||
|
- refactor: move hardcoded text to strings.xml
|
||||||
|
|
||||||
|
## [1.1.0] - 2026-10-03
|
||||||
### New
|
### New
|
||||||
- chore: auto-generate apk files #6
|
- chore: auto-generate apk files #6
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
> [!IMPORTANT]
|
||||||
|
> This app is under heavy development currently.
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
# WeekFocus
|
# WeekFocus
|
||||||
@@ -8,9 +11,20 @@
|
|||||||
<img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="64">
|
<img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="64">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||

|
|
||||||
[](https://git.schamagusa.de/Schanbro/WeekFocus/releases)
|
[](https://git.schamagusa.de/Schanbro/WeekFocus/releases)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
[](https://weblate.schamagusa.de/engage/weekfocus/)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -26,6 +40,7 @@
|
|||||||
- [Building from Source](#building-from-source)
|
- [Building from Source](#building-from-source)
|
||||||
- [Contributing](#contributing)
|
- [Contributing](#contributing)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
|
- [Translations](#translations)
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
@@ -117,3 +132,10 @@ Found a bug or have an idea? Please open an [issue](https://git.schamagusa.de/Sc
|
|||||||
This project is licensed under the [GNU General Public License v3.0](LICENSE) (GPL-3.0).
|
This project is licensed under the [GNU General Public License v3.0](LICENSE) (GPL-3.0).
|
||||||
|
|
||||||
You are free to use, modify and redistribute this software under the terms of the GPLv3. Derivative works must be released under the same license.
|
You are free to use, modify and redistribute this software under the terms of the GPLv3. Derivative works must be released under the same license.
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
WeekFocus is translated via [Weblate](https://weblate.schamagusa.de/engage/weekfocus/).
|
||||||
|
Help translate the app into your language!
|
||||||
|
|
||||||
|
[](https://weblate.schamagusa.de/engage/weekfocus/)
|
||||||
@@ -16,6 +16,7 @@ import androidx.compose.ui.unit.dp
|
|||||||
import android.appwidget.AppWidgetManager
|
import android.appwidget.AppWidgetManager
|
||||||
import android.content.ComponentName
|
import android.content.ComponentName
|
||||||
import de.schanbro.weekfocus.ui.theme.WeekFocusTheme
|
import de.schanbro.weekfocus.ui.theme.WeekFocusTheme
|
||||||
|
import androidx.compose.ui.res.stringResource
|
||||||
|
|
||||||
class MainActivity : ComponentActivity() {
|
class MainActivity : ComponentActivity() {
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
@@ -63,7 +64,7 @@ fun WordListScreen(modifier: Modifier = Modifier) {
|
|||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
value = textInput,
|
value = textInput,
|
||||||
onValueChange = { textInput = it },
|
onValueChange = { textInput = it },
|
||||||
label = { Text("Neues Wort eingeben...") },
|
label = { Text(stringResource(R.string.hint_new_word)) },
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
singleLine = true
|
singleLine = true
|
||||||
)
|
)
|
||||||
@@ -83,13 +84,13 @@ fun WordListScreen(modifier: Modifier = Modifier) {
|
|||||||
},
|
},
|
||||||
modifier = Modifier.fillMaxWidth()
|
modifier = Modifier.fillMaxWidth()
|
||||||
) {
|
) {
|
||||||
Text("Wort hinzufügen")
|
Text(stringResource(R.string.hint_add_word))
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(24.dp))
|
Spacer(modifier = Modifier.height(24.dp))
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = "Gespeicherte Wörter:",
|
text = stringResource(R.string.title_saved_words),
|
||||||
style = MaterialTheme.typography.titleMedium
|
style = MaterialTheme.typography.titleMedium
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ fun WordListScreen(modifier: Modifier = Modifier) {
|
|||||||
// Liste der Wörter
|
// Liste der Wörter
|
||||||
if (wordList.isEmpty()) {
|
if (wordList.isEmpty()) {
|
||||||
Text(
|
Text(
|
||||||
text = "Noch keine Wörter vorhanden.",
|
text = stringResource(R.string.msg_no_words_yet),
|
||||||
style = MaterialTheme.typography.bodyMedium
|
style = MaterialTheme.typography.bodyMedium
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">WeekFocus</string>
|
||||||
|
<string name="hint_new_word">Enter new Word</string>
|
||||||
|
<string name="hint_add_word">Add word</string>
|
||||||
|
<string name="title_saved_words">Saved words:</string>
|
||||||
|
<string name="msg_no_words_yet">No words yet.</string>
|
||||||
|
</resources>
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">WeekFocus</string>
|
<string name="app_name">WeekFocus</string>
|
||||||
</resources>
|
<string name="hint_new_word">Neues Wort eingeben</string>
|
||||||
|
<string name="hint_add_word">Wort hinzufügen</string>
|
||||||
|
<string name="title_saved_words">Gespeicherte Wörter:</string>
|
||||||
|
<string name="msg_no_words_yet">Noch keine Wörter vorhanden.</string>
|
||||||
|
</resources>
|
||||||
Reference in new issue
Block a user