Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ente-io/motion_photo
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Nov 2, 2023
2 parents 5ff94a6 + a436db0 commit a48d2a9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
## 0.0.2
## 0.0.5
* Fixed invalid motion photo detection for Pixel Pro 8.

## 0.0.4
- Add valid package description

## 0.0.3
- Fix typos

## 0.0.2
- Fix formatting

## 0.0.1

* Features:
Expand All @@ -10,5 +19,5 @@

- `getMotionVideo` method returns [Uint8List] bytes for the video content of the motion photo.

- `getMotionVideo` method extracts and returns mp4 file of the video content of the motion photo.
- `getMotionVideoFile` method extracts and returns mp4 file of the video content of the motion photo.

16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# motion_photo
The Flutter [MotionPhoto](https://support.google.com/googlecamera/answer/9937175?hl=en) Package to detect and extract the video content from the motion photos by [ente](https://ente.io).
# motion_photos
The Flutter [MotionPhotos](https://pub.dev/packages/motion_photos) Package to detect and extract the video content from the motion photos by [ente](https://ente.io).

**Related Blog** [How to detect Android motion photos in Flutter](https://ente.io/blog/tech/android-motion-photos-flutter/)

## Features

Expand All @@ -9,22 +11,22 @@ The Flutter [MotionPhoto](https://support.google.com/googlecamera/answer/9937175

* `getMotionVideo` method returns [Uint8List] bytes for the video content of the motion photo.

* `getMotionVideo` method extracts and returns mp4 file of the video content of the motion photo.
* `getMotionVideoFile` method extracts and returns mp4 file of the video content of the motion photo.

## Getting started

To use this package:
* Add dependency to your [pubspec.yaml](https://flutter.dev/docs/development/packages-and-plugins/using-packages) file either by directly adding the dependency or by using terminal.
- Via Terminal
```
flutter pub get motion_photo
flutter pub get motion_photos
```
- Or Add the following in pubspec.yaml file
```yml
dependencies:
flutter:
sdk: flutter
motion_photo:
motion_photos:
```
## Usage
Expand All @@ -33,11 +35,11 @@ To use this package:
* Clone the codebase.
```sh
git clone [email protected]:ente-io/motion_photo.git
git clone [email protected]:ente-io/motion_photos.git
```
* Go to example folder.
```sh
cd /example
cd ./example
```
* Run the App.
```sh
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = '1.8.21'
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.3"
path:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: motion_photos
description: Flutter plugin for detecting motion photos
version: 0.0.2
description: A Flutter package for detecting and extracting motionphotos from a image file.
version: 0.0.5
homepage: https://ente.io

environment:
Expand Down

0 comments on commit a48d2a9

Please sign in to comment.