Skip to content

Commit 1ec8901

Browse files
committed
update with signed release
1 parent c7bbe3f commit 1ec8901

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

android/app/build.gradle

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
2525
apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

28+
def keystoreProperties = new Properties()
29+
def keystorePropertiesFile = rootProject.file('key.properties')
30+
if (keystorePropertiesFile.exists()) {
31+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32+
}
33+
2834
android {
2935
compileSdkVersion 29
3036

@@ -37,19 +43,25 @@ android {
3743
}
3844

3945
defaultConfig {
40-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.example.paperless_share"
46+
applicationId "com.quinncasey.paperless_share"
4247
minSdkVersion 16
4348
targetSdkVersion 29
4449
versionCode flutterVersionCode.toInteger()
4550
versionName flutterVersionName
4651
}
4752

53+
signingConfigs {
54+
release {
55+
keyAlias keystoreProperties['keyAlias']
56+
keyPassword keystoreProperties['keyPassword']
57+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
58+
storePassword keystoreProperties['storePassword']
59+
}
60+
}
61+
4862
buildTypes {
4963
release {
50-
// TODO: Add your own signing config for the release build.
51-
// Signing with the debug keys for now, so `flutter run --release` works.
52-
signingConfig signingConfigs.debug
64+
signingConfig signingConfigs.release
5365
}
5466
}
5567
}

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.paperless_share">
2+
package="com.quinncasey.paperless_share">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.paperless_share">
2+
package="com.quinncasey.paperless_share">
33
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
44
calls FlutterMain.startInitialization(this); in its onCreate method.
55
In most cases you can leave this as-is, but you if you want to provide

android/app/src/main/kotlin/com/example/paperless_share/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.paperless_share
1+
package com.quinncasey.paperless_share
22

33
import io.flutter.embedding.android.FlutterActivity
44

android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.paperless_share">
2+
package="com.quinncasey.paperless_share">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

0 commit comments

Comments
 (0)