Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

feat: adding android signing #171

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,5 @@ app.*.map.json
!.idea/runConfigurations/

.firebase

secrets
19 changes: 16 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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:
Expand Down