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:
parent
4e3900f40c
commit
139cd11741
2 changed files with 21 additions and 9 deletions
28
README.md
28
README.md
|
@ -34,12 +34,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Setup AboutBox
|
||||||
### Setup Branch.io
|
|
||||||
|
|
||||||
Branch.io integration can be found [here](https://github.com/BranchMetrics/android-branch-deep-linking)
|
|
||||||
|
|
||||||
### Setup AboutBox
|
|
||||||
|
|
||||||
Add AboutBox configuration to your Application class
|
Add AboutBox configuration to your Application class
|
||||||
|
|
||||||
|
@ -90,12 +85,29 @@ Add AboutBox configuration to your Application class
|
||||||
aboutConfig.emailSubject = EMAIL_SUBJECT;
|
aboutConfig.emailSubject = EMAIL_SUBJECT;
|
||||||
aboutConfig.emailBody = EMAIL_BODY;
|
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.shareMessage = getString(R.string.share_message);
|
||||||
aboutConfig.sharingTitle = getString(R.string.sharing_title);
|
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
|
Open AboutBox screen
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
|
@ -12,7 +12,7 @@ android {
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
versionCode 4
|
versionCode 4
|
||||||
versionName "1.1.0"
|
versionName "1.2.0"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue