Skip to content

Commit

Permalink
testing android signing
Browse files Browse the repository at this point in the history
  • Loading branch information
femalemonkeyman committed May 29, 2023
1 parent 241692d commit 0439bb7
Show file tree
Hide file tree
Showing 21 changed files with 1,701 additions and 893 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ jobs:
with:
files: build/windows/runner/Release/Release-${{github.ref_name}}-windows.zip




build-and-release-android:
runs-on: ubuntu-latest

Expand All @@ -89,7 +86,12 @@ jobs:
channel: 'master'

- name: Install dependencies
run: flutter pub get
run: flutter pub get
- name: Decode android/neumodore_key.jks
run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > .key/keystore.jks

- name: Decode android/key.properties
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > .key/key.properties

- run: flutter build apk --release --split-debug-info=''
- uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
.key/

# IntelliJ related
*.iml
Expand Down
28 changes: 20 additions & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('../.key/key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 33

Expand All @@ -40,14 +46,20 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

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
}
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}

flutter {
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.8.21'
repositories {
google()
jcenter()
Expand Down
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https://services.gradle.org/distributions/gradle-7.6.1-all.zip
253 changes: 0 additions & 253 deletions lib/info_page.dart

This file was deleted.

Loading

0 comments on commit 0439bb7

Please sign in to comment.