Skip to content

Commit

Permalink
Sign APK
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Apr 14, 2024
1 parent d951dee commit 08e5e6f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
- name: Build Android Binary
run: flutter build apk

- uses: r0adkll/sign-android-release@v1
name: Sign app APK
with:
releaseDirectory: build/app/outputs/flutter-apk/app-release.apk
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
Expand Down
18 changes: 13 additions & 5 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,19 @@ android {
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
// release {
// // TODO: Add your own signing config for the release build.
// // Signing with the debug keys for now, so `flutter run --release` works.
// signingConfig signingConfigs.debug
// }
}

// https://github.com/enm10k/nocodb-mobile/issues/6
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
}

Expand Down

0 comments on commit 08e5e6f

Please sign in to comment.