diff --git a/.gitignore b/.gitignore index 79d8588b..75606597 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,5 @@ app.*.map.json !.idea/runConfigurations/ .firebase + +secrets diff --git a/android/app/build.gradle b/android/app/build.gradle index 4666710b..26293749 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -22,6 +22,12 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('../secrets/android/key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + android { namespace "com.verygoodventures.super_dash" compileSdkVersion flutter.compileSdkVersion @@ -50,11 +56,18 @@ android { versionName flutterVersionName } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { release { - // 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 + signingConfig signingConfigs.release } } } diff --git a/pubspec.yaml b/pubspec.yaml index 27e89f1f..8b0d6e56 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dash_run description: A Very Good Platformer Game generated by Very Good CLI. -version: 1.0.0+12 +version: 1.0.0+14 publish_to: none environment: @@ -55,7 +55,7 @@ dependency_overrides: flame_tiled: git: url: https://github.com/flame-engine/flame.git - ref: erick.tile-atlas-padding + ref: main path: packages/flame_tiled leap: git: