File tree Expand file tree Collapse file tree 5 files changed +21
-9
lines changed
kotlin/com/example/paperless_share Expand file tree Collapse file tree 5 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
2525apply plugin : ' kotlin-android'
2626apply 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+
2834android {
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}
Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- package com.example .paperless_share
1+ package com.quinncasey .paperless_share
22
33import io.flutter.embedding.android.FlutterActivity
44
Original file line number Diff line number Diff line change 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 -->
You can’t perform that action at this time.
0 commit comments