mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
Compare commits
2
Commits
eccc98b3aa
...
v1.1.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f972989c42 | ||
|
|
72e3a45995 |
@@ -0,0 +1,52 @@
|
||||
# Builds unsigned release APK and AAB. Download them from the run's "Artifacts" and sign locally.
|
||||
name: Build unsigned release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"]
|
||||
paths-ignore: ["**.md", "fastlane/**", ".github/ISSUE_TEMPLATE/**"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: build-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NAME: SparkleDNS
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew --no-daemon clean assembleRelease bundleRelease
|
||||
|
||||
- name: Collect files
|
||||
run: |
|
||||
ver=$(grep -oP 'versionName = "\K[^"]+' app/build.gradle.kts)
|
||||
mkdir out
|
||||
cp app/build/outputs/apk/release/app-release-unsigned.apk "out/$NAME-v$ver-unsigned.apk"
|
||||
cp app/build/outputs/bundle/release/app-release.aab "out/$NAME-v$ver-unsigned.aab"
|
||||
cp app/build/outputs/mapping/release/mapping.txt "out/$NAME-v$ver-mapping.txt"
|
||||
git log -1 --format="Commit %h, %ci: %s" > out/BUILD-INFO.txt
|
||||
echo "VER=$ver" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.NAME }}-v${{ env.VER }}-unsigned
|
||||
path: out/
|
||||
retention-days: 30
|
||||
@@ -199,17 +199,13 @@ private fun AboutContent(modifier: Modifier, onOpenLicenses: () -> Unit) {
|
||||
// The server costs money every month; the card asks for help without getting in the way
|
||||
@Composable
|
||||
private fun SupportCard(onDonate: () -> Unit) {
|
||||
val context = LocalContext.current
|
||||
Card(Modifier.fillMaxWidth()) {
|
||||
Row(
|
||||
modifier = Modifier.padding(start = 16.dp, top = 16.dp, end = 16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Image(
|
||||
remember { AppLogo.get(context) },
|
||||
contentDescription = null,
|
||||
modifier = Modifier.size(48.dp),
|
||||
)
|
||||
// The logo is already at the top of the screen
|
||||
IconBadge(R.drawable.ic_donate, size = 48.dp)
|
||||
Spacer(Modifier.width(14.dp))
|
||||
Column(Modifier.weight(1f)) {
|
||||
Text(stringResource(R.string.support_title), style = MaterialTheme.typography.titleMedium)
|
||||
|
||||
Reference in New Issue
Block a user