Skip to content

Commit 8be2ea8

Browse files
chore:signing issues
1 parent 601cba2 commit 8be2ea8

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

.github/workflows/deployment.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Build Web
4242
if: matrix.os == 'ubuntu-latest'
43-
run: flutter build web --release --base-href "/passbag/"
43+
run: flutter build web --release
4444
- name: add privacy.html to output
4545
if: matrix.os == 'ubuntu-latest'
4646
run: cp privacy.html build/web/privacy.html
@@ -57,8 +57,7 @@ jobs:
5757
- name: Build Android
5858
if: matrix.os == 'ubuntu-latest'
5959
run: |
60-
flutter build apk --release
61-
flutter build appbundle --release
60+
flutter build apk --debug
6261
6362
# - name: Build Windows
6463
# if: matrix.os == 'windows-latest'
@@ -96,16 +95,6 @@ jobs:
9695
asset_path: build/app/outputs/flutter-apk/app-release.apk
9796
asset_name: passbag-${{ steps.version.outputs.version }}.apk
9897
asset_content_type: application/vnd.android.package-archive
99-
- name: Upload Android App Bundle
100-
if: matrix.os == 'ubuntu-latest'
101-
uses: actions/upload-release-asset@v1
102-
env:
103-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104-
with:
105-
upload_url: ${{ steps.create_release.outputs.upload_url }}
106-
asset_path: build/app/outputs/bundle/release/app-release.aab
107-
asset_name: passbag-${{ steps.version.outputs.version }}.aab
108-
asset_content_type: application/octet-stream
10998
# - name: Upload Linux Build
11099
# if: matrix.os == 'ubuntu-latest'
111100
# uses: actions/upload-release-asset@v1

android/app/build.gradle.kts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
import java.util.Properties
2+
import java.io.FileInputStream
3+
14
plugins {
25
id("com.android.application")
36
id("kotlin-android")
47
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
58
id("dev.flutter.flutter-gradle-plugin")
69
}
710

11+
val keystoreProperties = Properties()
12+
val keystorePropertiesFile = rootProject.file("key.properties")
13+
if (keystorePropertiesFile.exists()) {
14+
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
15+
}
16+
817
android {
918
namespace = "rw.ini.passbag"
1019
compileSdk = flutter.compileSdkVersion
@@ -29,12 +38,19 @@ android {
2938
versionCode = flutter.versionCode
3039
versionName = flutter.versionName
3140
}
32-
41+
signingConfigs {
42+
create("release") {
43+
keyAlias = keystoreProperties["keyAlias"] as String
44+
keyPassword = keystoreProperties["keyPassword"] as String
45+
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
46+
storePassword = keystoreProperties["storePassword"] as String
47+
}
48+
}
3349
buildTypes {
3450
release {
3551
// TODO: Add your own signing config for the release build.
3652
// Signing with the debug keys for now, so `flutter run --release` works.
37-
//signingConfig = signingConfigs.getByName("debug")
53+
signingConfig = signingConfigs.getByName("release")
3854
}
3955
}
4056
}

0 commit comments

Comments
 (0)