1
0
Fork 0
mirror of https://github.com/ethauvin/android-about-box.git synced 2025-04-25 02:37:11 -07:00

Updated Readme file. Incremented version number

This commit is contained in:
Alex Dibrivnyi 2017-05-16 22:13:11 +03:00
parent 4e3900f40c
commit 139cd11741
2 changed files with 21 additions and 9 deletions

View file

@ -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

View file

@ -12,7 +12,7 @@ android {
minSdkVersion 15
targetSdkVersion 24
versionCode 4
versionName "1.1.0"
versionName "1.2.0"
}
buildTypes {
release {