Skip to content

Commit

Permalink
Merge pull request #113 from Giphy/update-demo-2.0.8
Browse files Browse the repository at this point in the history
- update to SDK 2.0.8
  • Loading branch information
ALexanderLonsky authored Jan 14, 2021
2 parents 935cb95 + b096c4f commit 6831aea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maven {

Then add the GIPHY SDK dependency in the module ```build.gradle``` file:
```
implementation 'com.giphy.sdk:ui:2.0.7'
implementation 'com.giphy.sdk:ui:2.0.8'
```

### Basic Setup
Expand Down Expand Up @@ -152,6 +152,11 @@ settings.stickerColumnCount: Int = 3
settings.showSuggestionsBar = false
```
- **Image Format**: You can choose a file type for the grid.
```kotlin
settings.imageFormat = ImageFormat.WEBP
```
#### Presentation
Show your `GiphyDialogFragment` using the `SupportFragmentManager` and watch as the GIFs start flowin'.

Expand Down Expand Up @@ -273,6 +278,7 @@ If you require a more flexible experience, use the `GiphyGridView` instead of th
- **cellPadding** - spacing between rendered GIFs
- **showViewOnGiphy** - enables/disables the `Show on Giphy` action in the long-press menu
- **showCheckeredBackground** - use a checkered background (for stickers only)
- **imageFormat** - choose a file type for the grid
- **fixedSizeCells** - display content in equally sized cells (for stickers only)

## Loading GIFs using `GPHContent`
Expand Down Expand Up @@ -373,6 +379,9 @@ In order to interact with the `GiphyGridView` you can apply the following callba
```kotlin
interface GPHGridCallback {
/**
* @param resultCount results count, in case of error it equals -1
*/
fun contentDidUpdate(resultCount: Int)
fun didSelectMedia(media: Media)
}
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
implementation "com.google.android.material:material:1.1.0"
implementation "com.giphy.sdk:ui:2.0.7"
implementation "com.giphy.sdk:ui:2.0.8"
implementation "com.squareup.leakcanary:leakcanary-android:1.6.3"
implementation "com.github.savvyapps:ToggleButtonLayout:1.2.0"
implementation "androidx.gridlayout:gridlayout:1.0.0"
Expand Down

0 comments on commit 6831aea

Please sign in to comment.