diff --git a/README.md b/README.md index cfc63b0b7..f3ff908d2 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,10 @@ for verbose logging: adb shell setprop log.tag.FA VERBOSE ``` +## Publishing to google play + +(Only supported if you are a core developer that needs to do releases) + # Credits This project is the work of volunteers: diff --git a/app/build.gradle b/app/build.gradle index 71eac34fa..f904eff0b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,6 +3,8 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlinx-serialization' apply plugin: 'com.google.gms.google-services' +apply plugin: 'com.github.triplet.play' +// apply plugin: "app.brant.amazonappstorepublisher" // Apply the Crashlytics Gradle plugin apply plugin: 'com.google.firebase.crashlytics' @@ -11,14 +13,23 @@ apply plugin: 'com.google.firebase.crashlytics' apply plugin: 'com.google.protobuf' android { + /* + signingConfigs { + release { + storeFile "$meshtasticKeystoreFile" + keyAlias 'upload' + storePassword "$meshtasticKeystorePassword" + keyPassword "$meshtasticKeyPassword" + } + } */ compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.geeksville.mesh" minSdkVersion 21 // The oldest emulator image I have tried is 22 (though 21 probably works) targetSdkVersion 29 - versionCode 10802 // format is Mmmss (where M is 1+the numeric major number - versionName "0.8.02" + versionCode 10803 // format is Mmmss (where M is 1+the numeric major number + versionName "0.8.03" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { @@ -65,6 +76,12 @@ android { } } +play { + // configure per https://github.com/Triple-T/gradle-play-publisher#authenticating-gradle-play-publisher + track = 'internal' + defaultToAppBundles = true + serviceAccountCredentials = file("../../play-credentials.json") +} androidExtensions { experimental = true diff --git a/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt b/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt index 39e659e66..681ec6a4d 100644 --- a/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt +++ b/app/src/main/java/com/geeksville/mesh/service/SafeBluetooth.kt @@ -765,7 +765,7 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD // Cancel any notifications - because when the device comes back it might have forgotten about us notifyHandlers.clear() - + closeGatt() failAllWork(BLEException("Connection closing")) @@ -791,7 +791,7 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD notifyHandlers[c.uuid] = onChanged // c.writeType = BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT gatt!!.setCharacteristicNotification(c, enable) - + // per https://stackoverflow.com/questions/27068673/subscribe-to-a-ble-gatt-notification-android val descriptor: BluetoothGattDescriptor = c.getDescriptor(configurationDescriptorUUID) ?: throw BLEException("Notify descriptor not found for ${c.uuid}") // This can happen on buggy BLE implementations diff --git a/app/src/main/play/contact-email.txt b/app/src/main/play/contact-email.txt new file mode 100644 index 000000000..3d0d1c4e9 --- /dev/null +++ b/app/src/main/play/contact-email.txt @@ -0,0 +1 @@ +kevinh@geeksville.com diff --git a/app/src/main/play/contact-website.txt b/app/src/main/play/contact-website.txt new file mode 100644 index 000000000..30f891bfa --- /dev/null +++ b/app/src/main/play/contact-website.txt @@ -0,0 +1 @@ +http://www.meshtastic.org diff --git a/app/src/main/play/default-language.txt b/app/src/main/play/default-language.txt new file mode 100644 index 000000000..beb9970be --- /dev/null +++ b/app/src/main/play/default-language.txt @@ -0,0 +1 @@ +en-US diff --git a/app/src/main/play/listings/en-US/full-description.txt b/app/src/main/play/listings/en-US/full-description.txt new file mode 100644 index 000000000..32f45f058 --- /dev/null +++ b/app/src/main/play/listings/en-US/full-description.txt @@ -0,0 +1,3 @@ +This is a beta release of the meshtastic.org project. We'd love you to try it and tell us what you think. You'll need to buy an inexpensive ($30ish) radio from a variety of vendors to use this application, see our website for details. We don't make these devices. + +***Please*** if you encounter problems or have questions: post on our forum at meshtastic.discourse.group and we'll work together to fix them (we are volunteer hobbyists). We would really appreciate good Google reviews if you think this is a good project. diff --git a/app/src/main/play/listings/en-US/graphics/feature-graphic/1.png b/app/src/main/play/listings/en-US/graphics/feature-graphic/1.png new file mode 100644 index 000000000..044cee993 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/feature-graphic/1.png differ diff --git a/app/src/main/play/listings/en-US/graphics/icon/1.png b/app/src/main/play/listings/en-US/graphics/icon/1.png new file mode 100644 index 000000000..99f1c6749 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/icon/1.png differ diff --git a/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png b/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png new file mode 100644 index 000000000..78a81dccc Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png differ diff --git a/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png b/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png new file mode 100644 index 000000000..a884644e0 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png differ diff --git a/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png b/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png new file mode 100644 index 000000000..c198e8b39 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png differ diff --git a/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png b/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png new file mode 100644 index 000000000..63d3f1e20 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png differ diff --git a/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png b/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png new file mode 100644 index 000000000..1ed4e9df3 Binary files /dev/null and b/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png differ diff --git a/app/src/main/play/listings/en-US/short-description.txt b/app/src/main/play/listings/en-US/short-description.txt new file mode 100644 index 000000000..7d1be0bfd --- /dev/null +++ b/app/src/main/play/listings/en-US/short-description.txt @@ -0,0 +1 @@ +An inexpensive open-source GPS mesh radio for hiking, skiing, flying, marching. diff --git a/app/src/main/play/listings/en-US/title.txt b/app/src/main/play/listings/en-US/title.txt new file mode 100644 index 000000000..efef08b61 --- /dev/null +++ b/app/src/main/play/listings/en-US/title.txt @@ -0,0 +1 @@ +Meshtastic diff --git a/app/src/main/play/listings/en-US/video-url.txt b/app/src/main/play/listings/en-US/video-url.txt new file mode 100644 index 000000000..39b75c452 --- /dev/null +++ b/app/src/main/play/listings/en-US/video-url.txt @@ -0,0 +1 @@ +https://www.youtube.com/watch?v=TY6m6fS8bxU diff --git a/app/src/main/play/release-notes/en-US/alpha.txt b/app/src/main/play/release-notes/en-US/alpha.txt new file mode 100644 index 000000000..e7baf1655 --- /dev/null +++ b/app/src/main/play/release-notes/en-US/alpha.txt @@ -0,0 +1 @@ +Lots of improvements - see meshtastic.discourse.group diff --git a/app/src/main/play/release-notes/en-US/beta.txt b/app/src/main/play/release-notes/en-US/beta.txt new file mode 100644 index 000000000..e7baf1655 --- /dev/null +++ b/app/src/main/play/release-notes/en-US/beta.txt @@ -0,0 +1 @@ +Lots of improvements - see meshtastic.discourse.group diff --git a/app/src/main/play/release-notes/en-US/internal.txt b/app/src/main/play/release-notes/en-US/internal.txt new file mode 100644 index 000000000..322aae877 --- /dev/null +++ b/app/src/main/play/release-notes/en-US/internal.txt @@ -0,0 +1 @@ +An internal build diff --git a/app/src/main/play/release-notes/en-US/production.txt b/app/src/main/play/release-notes/en-US/production.txt new file mode 100644 index 000000000..e7baf1655 --- /dev/null +++ b/app/src/main/play/release-notes/en-US/production.txt @@ -0,0 +1 @@ +Lots of improvements - see meshtastic.discourse.group