From b577541efa29e05be0c972931555ed6e57ea803c Mon Sep 17 00:00:00 2001 From: Michael Mee Date: Sun, 8 Oct 2017 11:52:04 -0700 Subject: [PATCH 1/3] Prepend sharing message to the URL --- README.md | 5 +++-- .../main/java/com/eggheadgames/aboutbox/share/ShareUtil.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9598017..24137eb 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Android About Box is configured with a set of (mostly) strings for the company n When triggered from a menu item, it will display the app name, icon and version, provide links to contact support, leave a review, share the app, go to other apps by the same company in the app store -- as well as links to Facebook etc. -You can omit most features if they don't apply (e.g. like website), by not setting the values. +You can omit most features if they don't apply (e.g. like website), by not setting the values. ## Installation Instructions @@ -88,7 +88,7 @@ Add AboutBox configuration to your Application class aboutConfig.emailSubject = EMAIL_SUBJECT; aboutConfig.emailBody = EMAIL_BODY; - + ``` ## Open the About Box from your app @@ -106,6 +106,7 @@ By default, the default Android share intent will be called with the values spec aboutConfig.shareMessage = getString(R.string.share_message); aboutConfig.sharingTitle = getString(R.string.sharing_title); ``` +The `share_message` string will have an app store URL appended to it (appropriately constructed for Google Play or Amazon). Alternatively, you can provide a custom sharing function (and omit `shareMessage` and `sharingTitle`): ```java diff --git a/library/src/main/java/com/eggheadgames/aboutbox/share/ShareUtil.java b/library/src/main/java/com/eggheadgames/aboutbox/share/ShareUtil.java index 851ec00..95c59a9 100644 --- a/library/src/main/java/com/eggheadgames/aboutbox/share/ShareUtil.java +++ b/library/src/main/java/com/eggheadgames/aboutbox/share/ShareUtil.java @@ -25,10 +25,10 @@ public final class ShareUtil { if (!TextUtils.isEmpty(config.packageName) && !TextUtils.isEmpty(shareMessage) && config.buildType != null) { switch (config.buildType) { case GOOGLE: - shareMessage = AboutBoxUtils.playStoreAppURI + config.packageName; + shareMessage = shareMessage + AboutBoxUtils.playStoreAppURI + config.packageName; break; case AMAZON: - shareMessage = AboutBoxUtils.amznStoreAppURI + config.packageName; + shareMessage = shareMessage + AboutBoxUtils.amznStoreAppURI + config.packageName; break; default: break; From da75a1835ca79fb92d31cb20a8aa25af28fdb849 Mon Sep 17 00:00:00 2001 From: Michael Mee Date: Sun, 8 Oct 2017 11:52:21 -0700 Subject: [PATCH 2/3] Bump version for immediate release --- library/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/build.gradle b/library/build.gradle index 4413b27..d5d552d 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -5,14 +5,14 @@ apply plugin: 'com.github.dcendents.android-maven' group='com.github.eggheadgames' android { - compileSdkVersion 24 - buildToolsVersion "25.0.2" + compileSdkVersion 25 + buildToolsVersion "25.0.3" defaultConfig { minSdkVersion 15 targetSdkVersion 24 - versionCode 6 - versionName "1.3.0" + versionCode 7 + versionName "1.3.1" } buildTypes { release { From c3e6dca4c8b7fb347dabe37378c6a95250137990 Mon Sep 17 00:00:00 2001 From: Michael Mee Date: Sun, 8 Oct 2017 11:59:15 -0700 Subject: [PATCH 3/3] Increment build tools to the latest 25.x point release --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index ed917c0..a6eee0c 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,7 @@ dependencies: pre: - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-25 - - echo y | android update sdk --no-ui --all --filter build-tools-25.0.2 + - echo y | android update sdk --no-ui --all --filter build-tools-25.0.3 test: override: