File tree Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Expand file tree Collapse file tree 3 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 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
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'
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
Original file line number Diff line number Diff line change 1+ import java.util.Properties
2+ import java.io.FileInputStream
3+
14plugins {
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+
817android {
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}
Original file line number Diff line number Diff 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.
55publish_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
99environment :
1010 sdk : " >=3.0.6 <4.0.0"
You can’t perform that action at this time.
0 commit comments