Skip to content

Commit

Permalink
Revert min sdk version, and add an f-droid build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed May 8, 2024
1 parent 9255e56 commit a3866fd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/fdroid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build apk like F-Droid

on:
[workflow_dispatch]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- run: sed -i -e 's/^#f//' pubspec.yaml
- run: sed -i -e 's/^\(.*\bMultiDex\b\)/\/\/ \1/' android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java
- run: echo '{}' > lib/l10n/app_zh.arb
- run: export PUB_CACHE=$(pwd)/.pub-cache
- run: vendor/flutter/bin/flutter config --no-analytics
- run: vendor/flutter/bin/flutter pub get
- run: curl -L https://textual.ru/presets.db -o assets/presets.db
- run: vendor/flutter/bin/flutter build apk --release --flavor prod --split-per-abi --target-platform=android-arm64
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ android {
defaultConfig {
applicationId "info.zverev.ilya.every_door"
resValue "string", "app_name", "Every Door"
minSdk 24
minSdk 19
targetSdk 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down

0 comments on commit a3866fd

Please sign in to comment.