Skip to main content

giphy_flutter_sdk 2.0.0 copy "giphy_flutter_sdk: ^2.0.0" to clipboard
giphy_flutter_sdk: ^2.0.0 copied to clipboard

A Flutter plugin for integrating Giphy SDK in Android/iOS application.

2.0.0 #

Native SDKs #

Breaking Changes #

  • iOS: apps now need iOS 15.0 or later and Xcode 26.4 or later (the first Xcode with the Swift 6.3 compiler), because GIPHY iOS SDK 2.4.0 requires them. Apps can still be written in Swift 5 language mode or Objective-C.
  • iOS: with CocoaPods, set your Podfile's platform :ios to 15.0 or later.

Bug Fixes #

  • Android: GiphyVideoView.onPlaybackStateChanged now reports playing, paused and unknown. Android sent these states under a key the Dart side didn't read, so they all arrived as unknown.
  • Android: GiphyVideoManager.pauseAll() now reports paused to the video view that was playing.
  • Android: the bundled ExoPlayer video player adapter now sends GPHVideoPlayerState.MuteChanged(true) when the player is muted, as the GIPHY Android SDK defines it, and GiphyVideoView reports that as onMute. If you use a custom video player adapter copied from an earlier version, change MuteChanged(volume > 0) to MuteChanged(muted = volume == 0f). Otherwise onMute and onUnmute are swapped.
  • Passing a GiphyMedia that lacks some renditions to GiphyMediaView(media:) or GiphyVideoView(media:) no longer throws "Unsupported rendition type".
  • GiphyMediaView and GiphyVideoView ignore the answer to a media lookup once they were given other media. Before, a slow lookup could replace newer media, or report an error for media the view no longer shows.
  • GiphyVideoView pauses when the app goes to the background and plays again when it comes back. Since Flutter 3.13 reports the steps in between (inactive, hidden), the plugin no longer noticed the change: on iOS a clip stopped in the background and didn't play again. A clip the user unmuted comes back muted and reports onMute.
  • iOS: GiphyVideoView is released once Flutter disposes it, and a clip it was playing stops. Before, a registry kept every video view alive, and the shared player kept playing into a removed view.
  • Android: a disposed GiphyVideoView no longer gets media loaded into it by a late lookup or by GiphyVideoManager.resume().

Developer Tooling #

  • Replace the template tests with Dart unit tests (flutter test) and integration tests that run the example app against the native SDKs (cd example && flutter test integration_test -d <device-id>). See CONTRIBUTING.md.
  • The example app now needs Flutter 3.47.0 or newer. Apps using the plugin aren't affected.

1.1.3 #

Native SDKs #

1.1.2 #

Native SDKs #

Bug Fixes #

1.1.1 #

Native SDKs #

1.1.0 #

Build System #

  • Migrate Android Gradle setup toward AGP 9 built-in Kotlin support.
  • The plugin now uses AGP built-in Kotlin on AGP 9+ when built-in Kotlin is enabled.
  • The plugin still falls back to the Kotlin Gradle Plugin for AGP < 9.
  • For compatibility, AGP 9+ consumers that explicitly set android.builtInKotlin=false also use the Kotlin Gradle Plugin fallback. Those builds may still show AGP's KGP deprecation warning for :giphy_flutter_sdk.
  • AGP 9+ consumers can keep android.newDsl=false for Flutter's temporary legacy DSL compatibility, but should leave built-in Kotlin enabled to avoid the SDK KGP warning.
  • Android Java/Kotlin compilation now targets JVM 17.
  • The Android plugin default GiphyFlutterSDK.compileSdkVersion is now 34.
  • Update the Android example project Gradle setup for AGP 9 and Flutter 3.44 compatibility.
  • Add iOS Swift Package Manager support for the plugin while keeping CocoaPods support for existing consumers.
  • Migrate the iOS example app from CocoaPods to Flutter Swift Package Manager integration.

Developer Tooling #

  • Add scripts/sdk.sh clean to remove generated Flutter, Gradle, CocoaPods, SwiftPM, and iOS build artifacts from the SDK package and example app.
  • Update scripts/sdk.sh bump ios to keep the iOS Package.swift dependency version in sync with the podspec.
  • Add scripts/sdk.sh bump [patch|minor|major|x.y.z] to update the Flutter package version in pubspec.yaml.
  • Add scripts/sdk.sh publish-dry-run and scripts/sdk.sh publish helpers for pub.dev publishing.

Bug Fixes #

1.0.9 #

Native SDKs #

Bug Fixes #

1.0.8 #

Native SDKs #

Bug Fixes #

1.0.7 #

1.0.6 #

Native SDKs #

Bug Fixes #

1.0.5 #

Native SDKs #

Features #

  • [android] Add Edge-To-Edge support (cb32804)

1.0.4 #

Native SDKs #

1.0.3 #

Native SDKs #

Bug Fixes #

1.0.2 #

Native SDKs #

Static Analysis #

  • Address Static Analysis issues

Documentation #

  • Update the minimum required Xcode version.

Build System #

  • bump Android AGP version from 7.3.0 to 8.1.0
  • bump Android Gradle version from 8.0 to 8.3
  • bump Kotlin version from 1.7.10 to 1.9.0

Bug Fixes #

  • Remove the package from the AndroidManifest file based on the following PRs:

1.0.1 #

Native SDKs #

Static Analysis #

  • Address Static Analysis issues

Bug Fixes #

  • Add support for Xcode 16

1.0.0 #

Native SDKs #

Documentation #

  • Add dartdoc comments

Bug Fixes #

  • The GiphyMediaView: No Error Handling (#25) (3cdee1e)

0.1.2 #

Native SDKs #

7
likes
130
points
80.1k
downloads

Documentation

API reference

Publisher

verified publishergiphy.com

Weekly Downloads

A Flutter plugin for integrating Giphy SDK in Android/iOS application.

Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on giphy_flutter_sdk

Packages that implement giphy_flutter_sdk