Skip to content

Commit

Permalink
back
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed Apr 7, 2024
1 parent c48101c commit 7b0db46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/flutter-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ jobs:
- name: Analyze project source
run: dart analyze

- name: Decode Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: 'keystore.jks'
encodedString: ${{ secrets.KEYSTORE }}
# - name: Run tests
# run: flutter test

Expand Down
31 changes: 7 additions & 24 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}



android {
namespace "jdm.apps.reciper"
namespace "com.example.reciper"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand All @@ -44,7 +42,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "jdm.apps.reciper"
applicationId "com.example.reciper"
// 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.
minSdkVersion flutter.minSdkVersion
Expand All @@ -53,32 +51,17 @@ android {
versionName flutterVersionName
}

signingConfigs {
buildTypes {
release {
def tmpFilePath = System.getProperty("user.home") + "/work/_temp/"
def allFilesFromDir = new File(tmpFilePath).listFiles()

if (allFilesFromDir != null) {
def keystoreFile = allFilesFromDir.first()
keystoreFile.renameTo("keystore.jks")
}

storeFile = file("keystore.jks")
storePassword System.getenv("SIGNING_STORE_PASSWORD")
keyAlias System.getenv("SIGNING_KEY_ALIAS")
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
// 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
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}

}

flutter {
source '../..'
}

dependencies {}
dependencies {}

0 comments on commit 7b0db46

Please sign in to comment.