Skip to content

Commit 5bda98a

Browse files
chore:signing issues
1 parent 601cba2 commit 5bda98a

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

.github/workflows/deployment.yaml

Lines changed: 3 additions & 14 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'
@@ -93,19 +92,9 @@ jobs:
9392
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9493
with:
9594
upload_url: ${{ steps.create_release.outputs.upload_url }}
96-
asset_path: build/app/outputs/flutter-apk/app-release.apk
95+
asset_path: build/app/outputs/flutter-apk/app-debug.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: 24 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,13 +38,26 @@ 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")
54+
}
55+
debug {
56+
// TODO: Add your own signing config for the release build.
57+
// Signing with the debug keys for now, so `flutter run --release` works.
58+
signingConfig = signingConfigs.getByName("debug")
3859
}
60+
3961
}
4062
}
4163

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: An app that strengthen your password.
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
55
publish_to: "none" # Remove this line if you wish to publish to pub.dev
66

7-
version: 0.0.1+9
7+
version: 0.0.1+11
88

99
environment:
1010
sdk: ">=3.0.6 <4.0.0"

0 commit comments

Comments
 (0)