diff --git a/README.md b/README.md index 4dc387a..15dafe8 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,7 @@ dependencies { } ``` -## Example -### Setup Branch.io - -Branch.io integration can be found [here](https://github.com/BranchMetrics/android-branch-deep-linking) - -### Setup AboutBox +## Setup AboutBox Add AboutBox configuration to your Application class @@ -90,12 +85,29 @@ Add AboutBox configuration to your Application class aboutConfig.emailSubject = EMAIL_SUBJECT; aboutConfig.emailBody = EMAIL_BODY; - // Branch.io labels. - aboutConfig.shareMessageTitle = getString(R.string.share_message_title); + +``` + +You need to provide only one sharing solution. + +Android Native share. +Android share intent will be called when you specify only `shareMessage` and `sharingTitle`. +``` aboutConfig.shareMessage = getString(R.string.share_message); aboutConfig.sharingTitle = getString(R.string.sharing_title); ``` +Custom share. +Override this callback if you want to call your own share implementation. In this case no need to specify `shareMessage` and `sharingTitle`. + ``` + aboutConfig.share = new IShare() { + @Override + public void share(Activity activity) { + // do custom sharing + } + }; +``` + Open AboutBox screen ```java diff --git a/library/build.gradle b/library/build.gradle index a80bf55..33530f1 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -12,7 +12,7 @@ android { minSdkVersion 15 targetSdkVersion 24 versionCode 4 - versionName "1.1.0" + versionName "1.2.0" } buildTypes { release {