Skip to content

Commit

Permalink
allow to sign debug version alongside release version for android (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
casimir authored Aug 14, 2023
1 parent 9bba64b commit 7e5916f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/upload_to_playstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- run: flutter --version
- run: flutter pub get
- run: flutter build appbundle
env:
NO_SIGNING: true
- name: Sign Release
uses: r0adkll/sign-android-release@v1
id: sign_release
Expand Down
3 changes: 1 addition & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ android {
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "net.casimirlab.frigoligo"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
Expand All @@ -56,7 +55,7 @@ android {

buildTypes {
release {
signingConfig null
signingConfig System.getenv('NO_SIGNING') != null ? null : signingConfigs.debug
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.4.0+4
version: 0.4.1+1

environment:
sdk: ">=3.0.5 <4.0.0"
Expand Down

0 comments on commit 7e5916f

Please sign in to comment.