Skip to content

Commit 22ce711

Browse files
committed
Android Play Store submission
1 parent b2f9710 commit 22ce711

File tree

10 files changed

+37
-12
lines changed

10 files changed

+37
-12
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ flutter build ipa
4444

4545
Uploaded it using transport app.
4646

47+
# Play Store
48+
49+
## App Bundle (recommended, but it seems more complex)
50+
51+
```
52+
flutter build appbundle
53+
```
54+
55+
Upload that to google play. [Here](https://docs.flutter.dev/deployment/android#offline-using-the-bundle-tool) are some docs about testing it locally.
4756

4857
# Contributing
4958

android/app/build.gradle

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// For Play Store uploads https://docs.flutter.dev/deployment/android#configure-signing-in-gradle
2+
def keystoreProperties = new Properties()
3+
def keystorePropertiesFile = rootProject.file('key.properties')
4+
if (keystorePropertiesFile.exists()) {
5+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
6+
}
7+
18
def localProperties = new Properties()
29
def localPropertiesFile = rootProject.file('local.properties')
310
if (localPropertiesFile.exists()) {
@@ -45,19 +52,26 @@ android {
4552
}
4653

4754
defaultConfig {
48-
applicationId "com.example.fluttermint"
55+
applicationId "com.justinmoon.fluttermint"
4956
// qr_code_scanner only works with v20
5057
minSdkVersion 20
5158
targetSdkVersion flutter.targetSdkVersion
5259
versionCode flutterVersionCode.toInteger()
5360
versionName flutterVersionName
5461
}
5562

63+
signingConfigs {
64+
release {
65+
keyAlias keystoreProperties['keyAlias']
66+
keyPassword keystoreProperties['keyPassword']
67+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
68+
storePassword keystoreProperties['storePassword']
69+
}
70+
}
71+
5672
buildTypes {
5773
release {
58-
// TODO: Add your own signing config for the release build.
59-
// Signing with the debug keys for now, so `flutter run --release` works.
60-
signingConfig signingConfigs.debug
74+
signingConfig signingConfigs.release
6175
}
6276
}
6377
}

android/app/src/debug/AndroidManifest.xml

+1-1
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.fluttermint">
2+
package="com.justinmoon.fluttermint">
33
<!-- The INTERNET permission is required for development. Specifically,
44
the Flutter tool needs it to communicate with the running application
55
to allow setting breakpoints, to provide hot reload, etc.

android/app/src/main/AndroidManifest.xml

+1-1
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.fluttermint">
2+
package="com.justinmoon.fluttermint">
33
<application
44
android:label="fluttermint"
55
android:name="${applicationName}"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.fluttermint
1+
package com.justinmoon.fluttermint
22

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

android/app/src/profile/AndroidManifest.xml

+1-1
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.fluttermint">
2+
package="com.justinmoon.fluttermint">
33
<!-- The INTERNET permission is required for development. Specifically,
44
the Flutter tool needs it to communicate with the running application
55
to allow setting breakpoints, to provide hot reload, etc.

android/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
# https://docs.flutter.dev/deployment/android#building-the-app-for-release
5+
android.bundle.enableUncompressedNativeLibs=false

linux/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(runner LANGUAGES CXX)
77
set(BINARY_NAME "fluttermint")
88
# The unique GTK application identifier for this application. See:
99
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
10-
set(APPLICATION_ID "com.example.fluttermint")
10+
set(APPLICATION_ID "com.justinmoon.fluttermint")
1111

1212
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
1313
# versions of CMake.

minimint-bridge/src/api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn init(path: String) -> Result<bool> {
4343
#[cfg(target_os = "android")]
4444
tracing_subscriber::registry()
4545
.with(
46-
paranoid_android::layer("com.example.flutter_rust_bridge_template")
46+
paranoid_android::layer("com.justinmoon.fluttermint")
4747
.with_filter(tracing_subscriber::filter::LevelFilter::INFO),
4848
)
4949
.try_init()
@@ -55,7 +55,7 @@ pub fn init(path: String) -> Result<bool> {
5555
tracing_subscriber::registry()
5656
.with(
5757
tracing_oslog::OsLogger::new(
58-
"com.example.flutter_rust_bridge_template",
58+
"com.justinmoon.fluttermint",
5959
"INFO", // I don't know what this does ...
6060
)
6161
.with_filter(tracing_subscriber::filter::LevelFilter::INFO),

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 0.0.5
18+
version: 0.0.5+2
1919

2020
environment:
2121
sdk: ">=2.17.1 <3.0.0"

0 commit comments

Comments
 (0)