Skip to content

Commit 2666086

Browse files
authored
Merge pull request #4 from parsamrrelax/main
sign apk properly when building
2 parents 4fe3790 + fd52306 commit 2666086

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

android/app/build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,24 @@ android {
2020
}
2121

2222
defaultConfig {
23-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2423
applicationId = "com.rdnbenet.rdnbenet"
25-
// You can update the following values to match your application needs.
26-
// For more information, see: https://flutter.dev/to/review-gradle-config.
2724
minSdk = flutter.minSdkVersion
2825
targetSdk = flutter.targetSdkVersion
2926
versionCode = flutter.versionCode
3027
versionName = flutter.versionName
3128
}
3229

30+
signingConfigs {
31+
release {
32+
storeFile file(System.getenv("KEYSTORE_FILE") ?: "keystore.jks")
33+
storePassword System.getenv("KEYSTORE_PASSWORD")
34+
keyAlias System.getenv("KEY_ALIAS")
35+
keyPassword System.getenv("KEY_PASSWORD")
36+
}
37+
}
3338
buildTypes {
3439
release {
35-
// TODO: Add your own signing config for the release build.
36-
// Signing with the debug keys for now, so `flutter run --release` works.
37-
signingConfig = signingConfigs.getByName("debug")
40+
signingConfig signingConfigs.release
3841
}
3942
}
4043
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: rdnbenet
22
description: "Network connectivity checker - test domains and IP ranges"
33
publish_to: 'none'
4-
version: 0.1.7
4+
version: 0.1.8
55

66
environment:
77
sdk: ^3.10.4

0 commit comments

Comments
 (0)