├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile └── Podfile.lock ├── android ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── learningsomethingnew │ │ │ │ │ └── fluttervideo │ │ │ │ │ └── flutter_video_sharing │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── .metadata ├── lib ├── models │ └── video_info.dart ├── apis │ ├── firebase_provider.dart │ └── encoding_provider.dart ├── widgets │ └── player.dart └── main.dart ├── .vscode └── launch.json ├── .flutter-plugins-dependencies ├── README.md ├── .gitignore ├── LICENSE.txt ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | #include "../Runner/Config.xcconfig" 4 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | #include "../Runner/Config.xcconfig" 4 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syonip/flutter_fbstorage_video_upload/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: fbabb264e0ab3e090d6ec056e0744aaeb1586735 8 | channel: dev 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /lib/models/video_info.dart: -------------------------------------------------------------------------------- 1 | class VideoInfo { 2 | String videoUrl; 3 | String thumbUrl; 4 | String coverUrl; 5 | double aspectRatio; 6 | int uploadedAt; 7 | String videoName; 8 | 9 | VideoInfo( 10 | {this.videoUrl, 11 | this.thumbUrl, 12 | this.coverUrl, 13 | this.aspectRatio, 14 | this.uploadedAt, 15 | this.videoName}); 16 | } 17 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Flutter", 9 | "request": "launch", 10 | "type": "dart" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/learningsomethingnew/fluttervideo/flutter_video_sharing/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.learningsomethingnew.fluttervideo.flutter_video_sharing 2 | 3 | import android.os.Bundle 4 | import io.flutter.app.FlutterActivity 5 | import io.flutter.plugins.GeneratedPluginRegistrant 6 | 7 | class MainActivity: FlutterActivity() { 8 | override fun onCreate(savedInstanceState: Bundle?) { 9 | super.onCreate(savedInstanceState) 10 | GeneratedPluginRegistrant.registerWith(this) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core","cloud_firestore_web"]},{"name":"cloud_firestore_web","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_storage","dependencies":["firebase_core"]},{"name":"flutter_ffmpeg","dependencies":[]},{"name":"image_picker","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]},{"name":"video_player","dependencies":["video_player_web"]},{"name":"video_player_web","dependencies":[]}]} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Video Sharing app 2 | 3 | ![final.gif](https://www.learningsomethingnew.com/flutter-video-hls/final.gif) 4 | 5 | An example app to demonstrate video sharing using Firebase Cloud Storage and with HLS. 6 | 7 | Read the full tutorial in my [blog](https://www.learningsomethingnew.com/flutter-video-upload-firebase-storage-hls). 8 | 9 | ## Getting Started 10 | 11 | You need to setup Firebase credentials in order to run the sample: 12 | 13 | ### Firebase setup 14 | Complete the setup process as described [here](https://firebase.google.com/docs/flutter/setup). 15 | 16 | You should add two files: 17 | - Android: `android/app/google-services.json` 18 | - iOS: `ios/Runner/GoogleService-Info.plist` 19 | 20 | 21 | ### Run the project 22 | Run the project as usual using `flutter run` -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.3' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | ext { 31 | flutterFFmpegPackage = "min-gpl-lts" 32 | } 33 | 34 | task clean(type: Delete) { 35 | delete rootProject.buildDir 36 | } 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Web related 33 | lib/generated_plugin_registrant.dart 34 | 35 | # Exceptions to above rules. 36 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 37 | .env* 38 | ios/Runner/Config.xcconfig 39 | android/app/google-services.json 40 | ios/Runner/GoogleService-Info.plist 41 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Jonathan Perry 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_video_sharing/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/apis/firebase_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter_video_sharing/models/video_info.dart'; 3 | 4 | class FirebaseProvider { 5 | static saveVideo(VideoInfo video) async { 6 | await Firestore.instance.collection('videos').document().setData({ 7 | 'videoUrl': video.videoUrl, 8 | 'thumbUrl': video.thumbUrl, 9 | 'coverUrl': video.coverUrl, 10 | 'aspectRatio': video.aspectRatio, 11 | 'uploadedAt': video.uploadedAt, 12 | 'videoName': video.videoName, 13 | }); 14 | } 15 | 16 | static listenToVideos(callback) async { 17 | Firestore.instance.collection('videos').snapshots().listen((qs) { 18 | final videos = mapQueryToVideoInfo(qs); 19 | callback(videos); 20 | }); 21 | } 22 | 23 | static mapQueryToVideoInfo(QuerySnapshot qs) { 24 | return qs.documents.map((DocumentSnapshot ds) { 25 | return VideoInfo( 26 | videoUrl: ds.data['videoUrl'], 27 | thumbUrl: ds.data['thumbUrl'], 28 | coverUrl: ds.data['coverUrl'], 29 | aspectRatio: ds.data['aspectRatio'], 30 | videoName: ds.data['videoName'], 31 | uploadedAt: ds.data['uploadedAt'], 32 | ); 33 | }).toList(); 34 | } 35 | } -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_video_sharing 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | NSCameraUsageDescription 45 | Need access to camera 46 | NSMicrophoneUsageDescription 47 | Need access to mic 48 | 49 | 50 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.learningsomethingnew.fluttervideo.flutter_video_sharing" 42 | minSdkVersion 24 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | multiDexEnabled true 48 | } 49 | 50 | buildTypes { 51 | release { 52 | // TODO: Add your own signing config for the release build. 53 | // Signing with the debug keys for now, so `flutter run --release` works. 54 | signingConfig signingConfigs.debug 55 | } 56 | } 57 | } 58 | 59 | flutter { 60 | source '../..' 61 | } 62 | 63 | dependencies { 64 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 65 | testImplementation 'junit:junit:4.12' 66 | androidTestImplementation 'androidx.test:runner:1.1.1' 67 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 68 | } 69 | 70 | apply plugin: 'com.google.gms.google-services' -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/apis/encoding_provider.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:flutter_ffmpeg/flutter_ffmpeg.dart'; 3 | 4 | removeExtension(String path) { 5 | final str = path.substring(0, path.length - 4); 6 | return str; 7 | } 8 | 9 | class EncodingProvider { 10 | static final FlutterFFmpeg _encoder = FlutterFFmpeg(); 11 | static final FlutterFFprobe _probe = FlutterFFprobe(); 12 | static final FlutterFFmpegConfig _config = FlutterFFmpegConfig(); 13 | 14 | static Future encodeHLS(videoPath, outDirPath) async { 15 | assert(File(videoPath).existsSync()); 16 | 17 | final arguments = '-y -i $videoPath ' + 18 | '-preset ultrafast -g 48 -sc_threshold 0 ' + 19 | '-map 0:0 -map 0:1 -map 0:0 -map 0:1 ' + 20 | '-c:v:0 libx264 -b:v:0 2000k ' + 21 | '-c:v:1 libx264 -b:v:1 365k ' + 22 | '-c:a copy ' + 23 | '-var_stream_map "v:0,a:0 v:1,a:1" ' + 24 | '-master_pl_name master.m3u8 ' + 25 | '-f hls -hls_time 6 -hls_list_size 0 ' + 26 | '-hls_segment_filename "$outDirPath/%v_fileSequence_%d.ts" ' + 27 | '$outDirPath/%v_playlistVariant.m3u8'; 28 | 29 | final int rc = await _encoder.execute(arguments); 30 | assert(rc == 0); 31 | 32 | return outDirPath; 33 | } 34 | 35 | static double getAspectRatio(Map info) { 36 | final int width = info['streams'][0]['width']; 37 | final int height = info['streams'][0]['height']; 38 | final double aspect = height / width; 39 | return aspect; 40 | } 41 | 42 | static Future getThumb(videoPath, width, height) async { 43 | assert(File(videoPath).existsSync()); 44 | 45 | final String outPath = '$videoPath.jpg'; 46 | final arguments = 47 | '-y -i $videoPath -vframes 1 -an -s ${width}x${height} -ss 1 $outPath'; 48 | 49 | final int rc = await _encoder.execute(arguments); 50 | assert(rc == 0); 51 | assert(File(outPath).existsSync()); 52 | 53 | return outPath; 54 | } 55 | 56 | static void enableStatisticsCallback(Function cb) { 57 | return _config.enableStatisticsCallback(cb); 58 | } 59 | 60 | static Future cancel() async { 61 | await _encoder.cancel(); 62 | } 63 | 64 | static Future> getMediaInformation(String path) async { 65 | assert(File(path).existsSync()); 66 | 67 | return await _probe.getMediaInformation(path); 68 | } 69 | 70 | static int getDuration(Map info) { 71 | return info['duration']; 72 | } 73 | 74 | static void enableLogCallback( 75 | void Function(int level, String message) logCallback) { 76 | _config.enableLogCallback(logCallback); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_video_sharing 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | timeago: ^2.0.21 27 | image_picker: ^0.6.1+11 28 | flutter_dotenv: ^2.0.3 29 | transparent_image: ^1.0.0 30 | video_player: ^0.10.8+1 31 | firebase_core: 0.4.4 32 | cloud_firestore: ^0.13.4+1 33 | firebase_storage: ^3.1.3 34 | flutter_ffmpeg: ^0.2.10 35 | filesize: ^1.0.4 36 | path_provider: ^1.1.0 37 | 38 | 39 | # dependency_overrides: 40 | # firebase_core: 41 | # git: 42 | # url: https://github.com/collinjackson/flutterfire 43 | # path: packages/firebase_core/firebase_core 44 | # ref: user_agent_mac 45 | 46 | dev_dependencies: 47 | flutter_test: 48 | sdk: flutter 49 | 50 | 51 | # For information on the generic Dart part of this file, see the 52 | # following page: https://dart.dev/tools/pub/pubspec 53 | 54 | # The following section is specific to Flutter. 55 | flutter: 56 | 57 | # The following line ensures that the Material Icons font is 58 | # included with your application, so that you can use the icons in 59 | # the material Icons class. 60 | uses-material-design: true 61 | 62 | # To add assets to your application, add an assets section, like this: 63 | # assets: 64 | 65 | # An image asset can refer to one or more resolution-specific "variants", see 66 | # https://flutter.dev/assets-and-images/#resolution-aware. 67 | 68 | # For details regarding adding assets from package dependencies, see 69 | # https://flutter.dev/assets-and-images/#from-packages 70 | 71 | # To add custom fonts to your application, add a fonts section here, 72 | # in this "flutter" section. Each entry in this list should have a 73 | # "family" key with the font family name, and a "fonts" key with a 74 | # list giving the asset and other descriptors for the font. For 75 | # example: 76 | # fonts: 77 | # - family: Schyler 78 | # fonts: 79 | # - asset: fonts/Schyler-Regular.ttf 80 | # - asset: fonts/Schyler-Italic.ttf 81 | # style: italic 82 | # - family: Trajan Pro 83 | # fonts: 84 | # - asset: fonts/TrajanPro.ttf 85 | # - asset: fonts/TrajanPro_Bold.ttf 86 | # weight: 700 87 | # 88 | # For details regarding fonts from package dependencies, 89 | # see https://flutter.dev/custom-fonts/#from-packages 90 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | if name == 'flutter_ffmpeg' 78 | pod name+'/min-gpl-lts', :path => File.join(symlink, 'ios') 79 | else 80 | pod name, :path => File.join(symlink, 'ios') 81 | end 82 | end 83 | end 84 | 85 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 86 | install! 'cocoapods', :disable_input_output_paths => true 87 | 88 | post_install do |installer| 89 | installer.pods_project.targets.each do |target| 90 | target.build_configurations.each do |config| 91 | config.build_settings['ENABLE_BITCODE'] = 'NO' 92 | end 93 | end 94 | end 95 | -------------------------------------------------------------------------------- /lib/widgets/player.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:video_player/video_player.dart'; 3 | import '../models/video_info.dart'; 4 | 5 | class Player extends StatefulWidget { 6 | final VideoInfo video; 7 | 8 | const Player({Key key, @required this.video}) : super(key: key); 9 | 10 | @override 11 | State createState() => _PlayerState(); 12 | } 13 | 14 | class _PlayerState extends State { 15 | String _error; 16 | 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Scaffold( 21 | backgroundColor: Colors.black, 22 | body: Stack( 23 | children: [ 24 | _error == null 25 | ? NetworkPlayerLifeCycle( 26 | widget.video.videoUrl, 27 | (BuildContext context, VideoPlayerController controller) => 28 | AspectRatioVideo(controller), 29 | ) 30 | : Center( 31 | child: Text(_error), 32 | ), 33 | Container( 34 | padding: EdgeInsets.all(16.0), 35 | child: IconButton( 36 | icon: Icon(Icons.close, color: Colors.white), 37 | onPressed: () => Navigator.pop(context), 38 | ), 39 | ), 40 | ], 41 | ), 42 | ); 43 | } 44 | } 45 | 46 | class VideoPlayPause extends StatefulWidget { 47 | VideoPlayPause(this.controller); 48 | 49 | final VideoPlayerController controller; 50 | 51 | @override 52 | State createState() { 53 | return _VideoPlayPauseState(); 54 | } 55 | } 56 | 57 | class _VideoPlayPauseState extends State { 58 | _VideoPlayPauseState() { 59 | listener = () { 60 | if (mounted) { 61 | setState(() {}); 62 | } 63 | }; 64 | } 65 | 66 | FadeAnimation imageFadeAnim = 67 | FadeAnimation(child: const Icon(Icons.play_arrow, size: 100.0)); 68 | VoidCallback listener; 69 | 70 | VideoPlayerController get controller => widget.controller; 71 | 72 | @override 73 | void initState() { 74 | super.initState(); 75 | controller.addListener(listener); 76 | controller.setVolume(1.0); 77 | controller.play(); 78 | } 79 | 80 | @override 81 | void deactivate() { 82 | controller.setVolume(0.0); 83 | controller.removeListener(listener); 84 | super.deactivate(); 85 | } 86 | 87 | @override 88 | Widget build(BuildContext context) { 89 | final List children = [ 90 | GestureDetector( 91 | child: VideoPlayer(controller), 92 | onTap: () { 93 | if (!controller.value.initialized) { 94 | return; 95 | } 96 | if (controller.value.isPlaying) { 97 | imageFadeAnim = 98 | FadeAnimation(child: const Icon(Icons.pause, size: 100.0)); 99 | controller.pause(); 100 | } else { 101 | imageFadeAnim = 102 | FadeAnimation(child: const Icon(Icons.play_arrow, size: 100.0)); 103 | controller.play(); 104 | } 105 | }, 106 | ), 107 | Align( 108 | alignment: Alignment.bottomCenter, 109 | child: VideoProgressIndicator( 110 | controller, 111 | allowScrubbing: true, 112 | ), 113 | ), 114 | Center(child: imageFadeAnim), 115 | Center( 116 | child: controller.value.isBuffering 117 | ? const CircularProgressIndicator() 118 | : null), 119 | ]; 120 | 121 | return Stack( 122 | fit: StackFit.passthrough, 123 | children: children, 124 | ); 125 | } 126 | } 127 | 128 | class FadeAnimation extends StatefulWidget { 129 | FadeAnimation( 130 | {this.child, this.duration = const Duration(milliseconds: 500)}); 131 | 132 | final Widget child; 133 | final Duration duration; 134 | 135 | @override 136 | _FadeAnimationState createState() => _FadeAnimationState(); 137 | } 138 | 139 | class _FadeAnimationState extends State 140 | with SingleTickerProviderStateMixin { 141 | AnimationController animationController; 142 | 143 | @override 144 | void initState() { 145 | super.initState(); 146 | animationController = 147 | AnimationController(duration: widget.duration, vsync: this); 148 | animationController.addListener(() { 149 | if (mounted) { 150 | setState(() {}); 151 | } 152 | }); 153 | animationController.forward(from: 0.0); 154 | } 155 | 156 | @override 157 | void deactivate() { 158 | animationController.stop(); 159 | super.deactivate(); 160 | } 161 | 162 | @override 163 | void didUpdateWidget(FadeAnimation oldWidget) { 164 | super.didUpdateWidget(oldWidget); 165 | if (oldWidget.child != widget.child) { 166 | animationController.forward(from: 0.0); 167 | } 168 | } 169 | 170 | @override 171 | void dispose() { 172 | if (animationController != null) animationController.dispose(); 173 | super.dispose(); 174 | } 175 | 176 | @override 177 | Widget build(BuildContext context) { 178 | return animationController.isAnimating 179 | ? Opacity( 180 | opacity: 1.0 - animationController.value, 181 | child: widget.child, 182 | ) 183 | : Container(); 184 | } 185 | } 186 | 187 | typedef Widget VideoWidgetBuilder( 188 | BuildContext context, VideoPlayerController controller); 189 | 190 | abstract class PlayerLifeCycle extends StatefulWidget { 191 | PlayerLifeCycle(this.dataSource, this.childBuilder); 192 | 193 | final VideoWidgetBuilder childBuilder; 194 | final String dataSource; 195 | } 196 | 197 | /// A widget connecting its life cycle to a [VideoPlayerController] using 198 | /// a data source from the network. 199 | class NetworkPlayerLifeCycle extends PlayerLifeCycle { 200 | NetworkPlayerLifeCycle(String dataSource, VideoWidgetBuilder childBuilder) 201 | : super(dataSource, childBuilder); 202 | 203 | @override 204 | _NetworkPlayerLifeCycleState createState() => _NetworkPlayerLifeCycleState(); 205 | } 206 | 207 | abstract class _PlayerLifeCycleState extends State { 208 | VideoPlayerController controller; 209 | 210 | @override 211 | 212 | /// Subclasses should implement [createVideoPlayerController], which is used 213 | /// by this method. 214 | void initState() { 215 | super.initState(); 216 | controller = createVideoPlayerController(); 217 | controller.addListener(() { 218 | if (controller.value.hasError) { 219 | setState(() {}); 220 | } 221 | }); 222 | controller.initialize(); 223 | controller.setLooping(true); 224 | controller.play(); 225 | } 226 | 227 | @override 228 | void deactivate() { 229 | super.deactivate(); 230 | } 231 | 232 | @override 233 | void dispose() { 234 | if (controller != null) controller.dispose(); 235 | super.dispose(); 236 | } 237 | 238 | @override 239 | Widget build(BuildContext context) { 240 | return widget.childBuilder(context, controller); 241 | } 242 | 243 | VideoPlayerController createVideoPlayerController(); 244 | } 245 | 246 | class _NetworkPlayerLifeCycleState extends _PlayerLifeCycleState { 247 | @override 248 | VideoPlayerController createVideoPlayerController() { 249 | return VideoPlayerController.network(widget.dataSource); 250 | } 251 | } 252 | 253 | class AspectRatioVideo extends StatefulWidget { 254 | AspectRatioVideo(this.controller); 255 | 256 | final VideoPlayerController controller; 257 | 258 | @override 259 | AspectRatioVideoState createState() => AspectRatioVideoState(); 260 | } 261 | 262 | class AspectRatioVideoState extends State { 263 | VideoPlayerController get controller => widget.controller; 264 | bool initialized = false; 265 | 266 | VoidCallback listener; 267 | 268 | @override 269 | void initState() { 270 | super.initState(); 271 | listener = () { 272 | if (!mounted) { 273 | return; 274 | } 275 | if (initialized != controller.value.initialized) { 276 | initialized = controller.value.initialized; 277 | if (mounted) { 278 | setState(() {}); 279 | } 280 | } 281 | }; 282 | controller.addListener(listener); 283 | } 284 | 285 | @override 286 | Widget build(BuildContext context) { 287 | if (controller.value.hasError) { 288 | return Center( 289 | child: Padding( 290 | padding: const EdgeInsets.all(20), 291 | child: Text(controller.value.errorDescription, 292 | style: TextStyle( 293 | color: Colors.white, 294 | fontSize: 18, 295 | fontWeight: FontWeight.bold)), 296 | ), 297 | ); 298 | } 299 | 300 | if (initialized) { 301 | return Center( 302 | child: AspectRatio( 303 | aspectRatio: controller.value.aspectRatio, 304 | child: VideoPlayPause(controller), 305 | ), 306 | ); 307 | } else { 308 | return Center(child: CircularProgressIndicator()); 309 | } 310 | } 311 | } 312 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | cloud_firestore: 40 | dependency: "direct main" 41 | description: 42 | name: cloud_firestore 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.13.4+1" 46 | cloud_firestore_platform_interface: 47 | dependency: transitive 48 | description: 49 | name: cloud_firestore_platform_interface 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0" 53 | cloud_firestore_web: 54 | dependency: transitive 55 | description: 56 | name: cloud_firestore_web 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.1.1+1" 60 | collection: 61 | dependency: transitive 62 | description: 63 | name: collection 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.14.11" 67 | convert: 68 | dependency: transitive 69 | description: 70 | name: convert 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.1" 74 | crypto: 75 | dependency: transitive 76 | description: 77 | name: crypto 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.1.3" 81 | cupertino_icons: 82 | dependency: "direct main" 83 | description: 84 | name: cupertino_icons 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "0.1.2" 88 | filesize: 89 | dependency: "direct main" 90 | description: 91 | name: filesize 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.0.4" 95 | firebase: 96 | dependency: transitive 97 | description: 98 | name: firebase 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "7.2.1" 102 | firebase_core: 103 | dependency: "direct main" 104 | description: 105 | name: firebase_core 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "0.4.4" 109 | firebase_core_platform_interface: 110 | dependency: transitive 111 | description: 112 | name: firebase_core_platform_interface 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.4" 116 | firebase_core_web: 117 | dependency: transitive 118 | description: 119 | name: firebase_core_web 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.1.1+2" 123 | firebase_storage: 124 | dependency: "direct main" 125 | description: 126 | name: firebase_storage 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "3.1.3" 130 | flutter: 131 | dependency: "direct main" 132 | description: flutter 133 | source: sdk 134 | version: "0.0.0" 135 | flutter_dotenv: 136 | dependency: "direct main" 137 | description: 138 | name: flutter_dotenv 139 | url: "https://pub.dartlang.org" 140 | source: hosted 141 | version: "2.0.3" 142 | flutter_ffmpeg: 143 | dependency: "direct main" 144 | description: 145 | name: flutter_ffmpeg 146 | url: "https://pub.dartlang.org" 147 | source: hosted 148 | version: "0.2.10" 149 | flutter_test: 150 | dependency: "direct dev" 151 | description: flutter 152 | source: sdk 153 | version: "0.0.0" 154 | flutter_web_plugins: 155 | dependency: transitive 156 | description: flutter 157 | source: sdk 158 | version: "0.0.0" 159 | http: 160 | dependency: transitive 161 | description: 162 | name: http 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.12.0+4" 166 | http_parser: 167 | dependency: transitive 168 | description: 169 | name: http_parser 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "3.1.3" 173 | image: 174 | dependency: transitive 175 | description: 176 | name: image 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.1.4" 180 | image_picker: 181 | dependency: "direct main" 182 | description: 183 | name: image_picker 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "0.6.2" 187 | js: 188 | dependency: transitive 189 | description: 190 | name: js 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "0.6.1+1" 194 | matcher: 195 | dependency: transitive 196 | description: 197 | name: matcher 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "0.12.6" 201 | meta: 202 | dependency: transitive 203 | description: 204 | name: meta 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.1.8" 208 | path: 209 | dependency: transitive 210 | description: 211 | name: path 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.6.4" 215 | path_provider: 216 | dependency: "direct main" 217 | description: 218 | name: path_provider 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.6.5" 222 | path_provider_macos: 223 | dependency: transitive 224 | description: 225 | name: path_provider_macos 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "0.0.4" 229 | path_provider_platform_interface: 230 | dependency: transitive 231 | description: 232 | name: path_provider_platform_interface 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.0.1" 236 | pedantic: 237 | dependency: transitive 238 | description: 239 | name: pedantic 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.8.0+1" 243 | petitparser: 244 | dependency: transitive 245 | description: 246 | name: petitparser 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.4.0" 250 | platform: 251 | dependency: transitive 252 | description: 253 | name: platform 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.2.1" 257 | plugin_platform_interface: 258 | dependency: transitive 259 | description: 260 | name: plugin_platform_interface 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.0.2" 264 | quiver: 265 | dependency: transitive 266 | description: 267 | name: quiver 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.0.5" 271 | sky_engine: 272 | dependency: transitive 273 | description: flutter 274 | source: sdk 275 | version: "0.0.99" 276 | source_span: 277 | dependency: transitive 278 | description: 279 | name: source_span 280 | url: "https://pub.dartlang.org" 281 | source: hosted 282 | version: "1.5.5" 283 | stack_trace: 284 | dependency: transitive 285 | description: 286 | name: stack_trace 287 | url: "https://pub.dartlang.org" 288 | source: hosted 289 | version: "1.9.3" 290 | stream_channel: 291 | dependency: transitive 292 | description: 293 | name: stream_channel 294 | url: "https://pub.dartlang.org" 295 | source: hosted 296 | version: "2.0.0" 297 | string_scanner: 298 | dependency: transitive 299 | description: 300 | name: string_scanner 301 | url: "https://pub.dartlang.org" 302 | source: hosted 303 | version: "1.0.5" 304 | term_glyph: 305 | dependency: transitive 306 | description: 307 | name: term_glyph 308 | url: "https://pub.dartlang.org" 309 | source: hosted 310 | version: "1.1.0" 311 | test_api: 312 | dependency: transitive 313 | description: 314 | name: test_api 315 | url: "https://pub.dartlang.org" 316 | source: hosted 317 | version: "0.2.11" 318 | timeago: 319 | dependency: "direct main" 320 | description: 321 | name: timeago 322 | url: "https://pub.dartlang.org" 323 | source: hosted 324 | version: "2.0.26" 325 | transparent_image: 326 | dependency: "direct main" 327 | description: 328 | name: transparent_image 329 | url: "https://pub.dartlang.org" 330 | source: hosted 331 | version: "1.0.0" 332 | typed_data: 333 | dependency: transitive 334 | description: 335 | name: typed_data 336 | url: "https://pub.dartlang.org" 337 | source: hosted 338 | version: "1.1.6" 339 | vector_math: 340 | dependency: transitive 341 | description: 342 | name: vector_math 343 | url: "https://pub.dartlang.org" 344 | source: hosted 345 | version: "2.0.8" 346 | video_player: 347 | dependency: "direct main" 348 | description: 349 | name: video_player 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "0.10.8+1" 353 | video_player_platform_interface: 354 | dependency: transitive 355 | description: 356 | name: video_player_platform_interface 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.0.5" 360 | video_player_web: 361 | dependency: transitive 362 | description: 363 | name: video_player_web 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "0.1.2+1" 367 | xml: 368 | dependency: transitive 369 | description: 370 | name: xml 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "3.5.0" 374 | sdks: 375 | dart: ">=2.7.0-dev <3.0.0" 376 | flutter: ">=1.12.13+hotfix.4 <2.0.0" 377 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:math'; 3 | import 'package:firebase_storage/firebase_storage.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:image_picker/image_picker.dart'; 7 | import 'package:path_provider/path_provider.dart'; 8 | import 'package:transparent_image/transparent_image.dart'; 9 | import 'apis/encoding_provider.dart'; 10 | import 'apis/firebase_provider.dart'; 11 | import 'package:path/path.dart' as p; 12 | import 'models/video_info.dart'; 13 | import 'widgets/player.dart'; 14 | import 'package:timeago/timeago.dart' as timeago; 15 | 16 | void main() => runApp(MyApp()); 17 | 18 | class MyApp extends StatelessWidget { 19 | @override 20 | Widget build(BuildContext context) { 21 | return MaterialApp( 22 | title: 'Flutter Video Sharing', 23 | theme: ThemeData( 24 | primarySwatch: Colors.blue, 25 | ), 26 | home: MyHomePage(title: 'Flutter Video Sharing'), 27 | ); 28 | } 29 | } 30 | 31 | class MyHomePage extends StatefulWidget { 32 | MyHomePage({Key key, this.title}) : super(key: key); 33 | 34 | final String title; 35 | 36 | @override 37 | _MyHomePageState createState() => _MyHomePageState(); 38 | } 39 | 40 | class _MyHomePageState extends State { 41 | final thumbWidth = 100; 42 | final thumbHeight = 150; 43 | List _videos = []; 44 | bool _imagePickerActive = false; 45 | bool _processing = false; 46 | bool _canceled = false; 47 | double _progress = 0.0; 48 | int _videoDuration = 0; 49 | String _processPhase = ''; 50 | final bool _debugMode = false; 51 | 52 | @override 53 | void initState() { 54 | FirebaseProvider.listenToVideos((newVideos) { 55 | setState(() { 56 | _videos = newVideos; 57 | }); 58 | }); 59 | 60 | EncodingProvider.enableStatisticsCallback((int time, 61 | int size, 62 | double bitrate, 63 | double speed, 64 | int videoFrameNumber, 65 | double videoQuality, 66 | double videoFps) { 67 | if (_canceled) return; 68 | 69 | setState(() { 70 | _progress = time / _videoDuration; 71 | }); 72 | }); 73 | 74 | super.initState(); 75 | } 76 | 77 | void _onUploadProgress(event) { 78 | if (event.type == StorageTaskEventType.progress) { 79 | final double progress = 80 | event.snapshot.bytesTransferred / event.snapshot.totalByteCount; 81 | setState(() { 82 | _progress = progress; 83 | }); 84 | } 85 | } 86 | 87 | Future _uploadFile(filePath, folderName) async { 88 | final file = new File(filePath); 89 | final basename = p.basename(filePath); 90 | 91 | final StorageReference ref = 92 | FirebaseStorage.instance.ref().child(folderName).child(basename); 93 | StorageUploadTask uploadTask = ref.putFile(file); 94 | uploadTask.events.listen(_onUploadProgress); 95 | StorageTaskSnapshot taskSnapshot = await uploadTask.onComplete; 96 | String videoUrl = await taskSnapshot.ref.getDownloadURL(); 97 | return videoUrl; 98 | } 99 | 100 | String getFileExtension(String fileName) { 101 | final exploded = fileName.split('.'); 102 | return exploded[exploded.length - 1]; 103 | } 104 | 105 | void _updatePlaylistUrls(File file, String videoName) { 106 | final lines = file.readAsLinesSync(); 107 | var updatedLines = List(); 108 | 109 | for (final String line in lines) { 110 | var updatedLine = line; 111 | if (line.contains('.ts') || line.contains('.m3u8')) { 112 | updatedLine = '$videoName%2F$line?alt=media'; 113 | } 114 | updatedLines.add(updatedLine); 115 | } 116 | final updatedContents = 117 | updatedLines.reduce((value, element) => value + '\n' + element); 118 | 119 | file.writeAsStringSync(updatedContents); 120 | } 121 | 122 | Future _uploadHLSFiles(dirPath, videoName) async { 123 | final videosDir = Directory(dirPath); 124 | 125 | var playlistUrl = ''; 126 | 127 | final files = videosDir.listSync(); 128 | int i = 1; 129 | for (FileSystemEntity file in files) { 130 | final fileName = p.basename(file.path); 131 | final fileExtension = getFileExtension(fileName); 132 | if (fileExtension == 'm3u8') _updatePlaylistUrls(file, videoName); 133 | 134 | setState(() { 135 | _processPhase = 'Uploading video file $i out of ${files.length}'; 136 | _progress = 0.0; 137 | }); 138 | 139 | final downloadUrl = await _uploadFile(file.path, videoName); 140 | 141 | if (fileName == 'master.m3u8') { 142 | playlistUrl = downloadUrl; 143 | } 144 | i++; 145 | } 146 | 147 | return playlistUrl; 148 | } 149 | 150 | Future _processVideo(File rawVideoFile) async { 151 | final String rand = '${new Random().nextInt(10000)}'; 152 | final videoName = 'video$rand'; 153 | final Directory extDir = await getApplicationDocumentsDirectory(); 154 | final outDirPath = '${extDir.path}/Videos/$videoName'; 155 | final videosDir = new Directory(outDirPath); 156 | videosDir.createSync(recursive: true); 157 | 158 | final rawVideoPath = rawVideoFile.path; 159 | final info = await EncodingProvider.getMediaInformation(rawVideoPath); 160 | final aspectRatio = EncodingProvider.getAspectRatio(info); 161 | 162 | setState(() { 163 | _processPhase = 'Generating thumbnail'; 164 | _videoDuration = EncodingProvider.getDuration(info); 165 | _progress = 0.0; 166 | }); 167 | 168 | final thumbFilePath = 169 | await EncodingProvider.getThumb(rawVideoPath, thumbWidth, thumbHeight); 170 | 171 | setState(() { 172 | _processPhase = 'Encoding video'; 173 | _progress = 0.0; 174 | }); 175 | 176 | final encodedFilesDir = 177 | await EncodingProvider.encodeHLS(rawVideoPath, outDirPath); 178 | 179 | setState(() { 180 | _processPhase = 'Uploading thumbnail to firebase storage'; 181 | _progress = 0.0; 182 | }); 183 | final thumbUrl = await _uploadFile(thumbFilePath, 'thumbnail'); 184 | final videoUrl = await _uploadHLSFiles(encodedFilesDir, videoName); 185 | 186 | final videoInfo = VideoInfo( 187 | videoUrl: videoUrl, 188 | thumbUrl: thumbUrl, 189 | coverUrl: thumbUrl, 190 | aspectRatio: aspectRatio, 191 | uploadedAt: DateTime.now().millisecondsSinceEpoch, 192 | videoName: videoName, 193 | ); 194 | 195 | setState(() { 196 | _processPhase = 'Saving video metadata to cloud firestore'; 197 | _progress = 0.0; 198 | }); 199 | 200 | await FirebaseProvider.saveVideo(videoInfo); 201 | 202 | setState(() { 203 | _processPhase = ''; 204 | _progress = 0.0; 205 | _processing = false; 206 | }); 207 | } 208 | 209 | void _takeVideo() async { 210 | var videoFile; 211 | if (_debugMode) { 212 | videoFile = File( 213 | '/storage/emulated/0/Android/data/com.learningsomethingnew.fluttervideo.flutter_video_sharing/files/Pictures/ebbafabc-dcbe-433b-93dd-80e7777ee4704451355941378265171.mp4'); 214 | } else { 215 | if (_imagePickerActive) return; 216 | 217 | _imagePickerActive = true; 218 | videoFile = await ImagePicker.pickVideo(source: ImageSource.camera); 219 | _imagePickerActive = false; 220 | 221 | if (videoFile == null) return; 222 | } 223 | setState(() { 224 | _processing = true; 225 | }); 226 | 227 | try { 228 | await _processVideo(videoFile); 229 | } catch (e) { 230 | print('${e.toString()}'); 231 | } finally { 232 | setState(() { 233 | _processing = false; 234 | }); 235 | } 236 | } 237 | 238 | _getListView() { 239 | return ListView.builder( 240 | padding: const EdgeInsets.all(8), 241 | itemCount: _videos.length, 242 | itemBuilder: (BuildContext context, int index) { 243 | final video = _videos[index]; 244 | return GestureDetector( 245 | onTap: () { 246 | Navigator.push( 247 | context, 248 | MaterialPageRoute( 249 | builder: (context) { 250 | return Player( 251 | video: video, 252 | ); 253 | }, 254 | ), 255 | ); 256 | }, 257 | child: Card( 258 | child: new Container( 259 | padding: new EdgeInsets.all(10.0), 260 | child: Stack( 261 | children: [ 262 | Row( 263 | crossAxisAlignment: CrossAxisAlignment.start, 264 | children: [ 265 | Stack( 266 | children: [ 267 | Container( 268 | width: thumbWidth.toDouble(), 269 | height: thumbHeight.toDouble(), 270 | child: Center(child: CircularProgressIndicator()), 271 | ), 272 | ClipRRect( 273 | borderRadius: new BorderRadius.circular(8.0), 274 | child: FadeInImage.memoryNetwork( 275 | placeholder: kTransparentImage, 276 | image: video.thumbUrl, 277 | ), 278 | ), 279 | ], 280 | ), 281 | Expanded( 282 | child: Container( 283 | margin: new EdgeInsets.only(left: 20.0), 284 | child: Column( 285 | crossAxisAlignment: CrossAxisAlignment.start, 286 | mainAxisSize: MainAxisSize.max, 287 | children: [ 288 | Text("${video.videoName}"), 289 | Container( 290 | margin: new EdgeInsets.only(top: 12.0), 291 | child: Text( 292 | 'Uploaded ${timeago.format(new DateTime.fromMillisecondsSinceEpoch(video.uploadedAt))}'), 293 | ), 294 | ], 295 | ), 296 | ), 297 | ), 298 | ], 299 | ), 300 | ], 301 | ), 302 | ), 303 | ), 304 | ); 305 | }); 306 | } 307 | 308 | _getProgressBar() { 309 | return Container( 310 | padding: EdgeInsets.all(30.0), 311 | child: Column( 312 | crossAxisAlignment: CrossAxisAlignment.center, 313 | mainAxisAlignment: MainAxisAlignment.center, 314 | children: [ 315 | Container( 316 | margin: EdgeInsets.only(bottom: 30.0), 317 | child: Text(_processPhase), 318 | ), 319 | LinearProgressIndicator( 320 | value: _progress, 321 | ), 322 | ], 323 | ), 324 | ); 325 | } 326 | 327 | @override 328 | Widget build(BuildContext context) { 329 | return Scaffold( 330 | appBar: AppBar( 331 | title: Text(widget.title), 332 | ), 333 | body: Center(child: _processing ? _getProgressBar() : _getListView()), 334 | floatingActionButton: FloatingActionButton( 335 | child: _processing 336 | ? CircularProgressIndicator( 337 | valueColor: new AlwaysStoppedAnimation(Colors.white), 338 | ) 339 | : Icon(Icons.add), 340 | onPressed: _takeVideo), 341 | ); 342 | } 343 | } 344 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - abseil/algorithm (0.20190808): 3 | - abseil/algorithm/algorithm (= 0.20190808) 4 | - abseil/algorithm/container (= 0.20190808) 5 | - abseil/algorithm/algorithm (0.20190808) 6 | - abseil/algorithm/container (0.20190808): 7 | - abseil/algorithm/algorithm 8 | - abseil/base/core_headers 9 | - abseil/meta/type_traits 10 | - abseil/base (0.20190808): 11 | - abseil/base/atomic_hook (= 0.20190808) 12 | - abseil/base/base (= 0.20190808) 13 | - abseil/base/base_internal (= 0.20190808) 14 | - abseil/base/bits (= 0.20190808) 15 | - abseil/base/config (= 0.20190808) 16 | - abseil/base/core_headers (= 0.20190808) 17 | - abseil/base/dynamic_annotations (= 0.20190808) 18 | - abseil/base/endian (= 0.20190808) 19 | - abseil/base/log_severity (= 0.20190808) 20 | - abseil/base/malloc_internal (= 0.20190808) 21 | - abseil/base/pretty_function (= 0.20190808) 22 | - abseil/base/spinlock_wait (= 0.20190808) 23 | - abseil/base/throw_delegate (= 0.20190808) 24 | - abseil/base/atomic_hook (0.20190808) 25 | - abseil/base/base (0.20190808): 26 | - abseil/base/atomic_hook 27 | - abseil/base/base_internal 28 | - abseil/base/config 29 | - abseil/base/core_headers 30 | - abseil/base/dynamic_annotations 31 | - abseil/base/log_severity 32 | - abseil/base/spinlock_wait 33 | - abseil/meta/type_traits 34 | - abseil/base/base_internal (0.20190808): 35 | - abseil/meta/type_traits 36 | - abseil/base/bits (0.20190808): 37 | - abseil/base/core_headers 38 | - abseil/base/config (0.20190808) 39 | - abseil/base/core_headers (0.20190808): 40 | - abseil/base/config 41 | - abseil/base/dynamic_annotations (0.20190808) 42 | - abseil/base/endian (0.20190808): 43 | - abseil/base/config 44 | - abseil/base/core_headers 45 | - abseil/base/log_severity (0.20190808): 46 | - abseil/base/core_headers 47 | - abseil/base/malloc_internal (0.20190808): 48 | - abseil/base/base 49 | - abseil/base/config 50 | - abseil/base/core_headers 51 | - abseil/base/dynamic_annotations 52 | - abseil/base/spinlock_wait 53 | - abseil/base/pretty_function (0.20190808) 54 | - abseil/base/spinlock_wait (0.20190808): 55 | - abseil/base/core_headers 56 | - abseil/base/throw_delegate (0.20190808): 57 | - abseil/base/base 58 | - abseil/base/config 59 | - abseil/memory (0.20190808): 60 | - abseil/memory/memory (= 0.20190808) 61 | - abseil/memory/memory (0.20190808): 62 | - abseil/base/core_headers 63 | - abseil/meta/type_traits 64 | - abseil/meta (0.20190808): 65 | - abseil/meta/type_traits (= 0.20190808) 66 | - abseil/meta/type_traits (0.20190808): 67 | - abseil/base/config 68 | - abseil/numeric/int128 (0.20190808): 69 | - abseil/base/config 70 | - abseil/base/core_headers 71 | - abseil/strings/internal (0.20190808): 72 | - abseil/base/core_headers 73 | - abseil/base/endian 74 | - abseil/meta/type_traits 75 | - abseil/strings/strings (0.20190808): 76 | - abseil/base/base 77 | - abseil/base/bits 78 | - abseil/base/config 79 | - abseil/base/core_headers 80 | - abseil/base/endian 81 | - abseil/base/throw_delegate 82 | - abseil/memory/memory 83 | - abseil/meta/type_traits 84 | - abseil/numeric/int128 85 | - abseil/strings/internal 86 | - abseil/time (0.20190808): 87 | - abseil/time/internal (= 0.20190808) 88 | - abseil/time/time (= 0.20190808) 89 | - abseil/time/internal (0.20190808): 90 | - abseil/time/internal/cctz (= 0.20190808) 91 | - abseil/time/internal/cctz (0.20190808): 92 | - abseil/time/internal/cctz/civil_time (= 0.20190808) 93 | - abseil/time/internal/cctz/includes (= 0.20190808) 94 | - abseil/time/internal/cctz/time_zone (= 0.20190808) 95 | - abseil/time/internal/cctz/civil_time (0.20190808) 96 | - abseil/time/internal/cctz/includes (0.20190808) 97 | - abseil/time/internal/cctz/time_zone (0.20190808): 98 | - abseil/time/internal/cctz/civil_time 99 | - abseil/time/time (0.20190808): 100 | - abseil/base/base 101 | - abseil/base/core_headers 102 | - abseil/numeric/int128 103 | - abseil/strings/strings 104 | - abseil/time/internal/cctz/civil_time 105 | - abseil/time/internal/cctz/time_zone 106 | - abseil/types (0.20190808): 107 | - abseil/types/any (= 0.20190808) 108 | - abseil/types/bad_any_cast (= 0.20190808) 109 | - abseil/types/bad_any_cast_impl (= 0.20190808) 110 | - abseil/types/bad_optional_access (= 0.20190808) 111 | - abseil/types/bad_variant_access (= 0.20190808) 112 | - abseil/types/compare (= 0.20190808) 113 | - abseil/types/optional (= 0.20190808) 114 | - abseil/types/span (= 0.20190808) 115 | - abseil/types/variant (= 0.20190808) 116 | - abseil/types/any (0.20190808): 117 | - abseil/base/config 118 | - abseil/base/core_headers 119 | - abseil/meta/type_traits 120 | - abseil/types/bad_any_cast 121 | - abseil/utility/utility 122 | - abseil/types/bad_any_cast (0.20190808): 123 | - abseil/base/config 124 | - abseil/types/bad_any_cast_impl 125 | - abseil/types/bad_any_cast_impl (0.20190808): 126 | - abseil/base/base 127 | - abseil/base/config 128 | - abseil/types/bad_optional_access (0.20190808): 129 | - abseil/base/base 130 | - abseil/base/config 131 | - abseil/types/bad_variant_access (0.20190808): 132 | - abseil/base/base 133 | - abseil/base/config 134 | - abseil/types/compare (0.20190808): 135 | - abseil/base/core_headers 136 | - abseil/meta/type_traits 137 | - abseil/types/optional (0.20190808): 138 | - abseil/base/base_internal 139 | - abseil/base/config 140 | - abseil/base/core_headers 141 | - abseil/memory/memory 142 | - abseil/meta/type_traits 143 | - abseil/types/bad_optional_access 144 | - abseil/utility/utility 145 | - abseil/types/span (0.20190808): 146 | - abseil/algorithm/algorithm 147 | - abseil/base/core_headers 148 | - abseil/base/throw_delegate 149 | - abseil/meta/type_traits 150 | - abseil/types/variant (0.20190808): 151 | - abseil/base/base_internal 152 | - abseil/base/config 153 | - abseil/base/core_headers 154 | - abseil/meta/type_traits 155 | - abseil/types/bad_variant_access 156 | - abseil/utility/utility 157 | - abseil/utility/utility (0.20190808): 158 | - abseil/base/base_internal 159 | - abseil/base/config 160 | - abseil/meta/type_traits 161 | - BoringSSL-GRPC (0.0.3): 162 | - BoringSSL-GRPC/Implementation (= 0.0.3) 163 | - BoringSSL-GRPC/Interface (= 0.0.3) 164 | - BoringSSL-GRPC/Implementation (0.0.3): 165 | - BoringSSL-GRPC/Interface (= 0.0.3) 166 | - BoringSSL-GRPC/Interface (0.0.3) 167 | - cloud_firestore (0.0.1): 168 | - Firebase/Core 169 | - Firebase/Firestore (~> 6.0) 170 | - Flutter 171 | - cloud_firestore_web (0.1.0): 172 | - Flutter 173 | - Firebase/Core (6.19.0): 174 | - Firebase/CoreOnly 175 | - FirebaseAnalytics (= 6.3.1) 176 | - Firebase/CoreOnly (6.19.0): 177 | - FirebaseCore (= 6.6.4) 178 | - Firebase/Firestore (6.19.0): 179 | - Firebase/CoreOnly 180 | - FirebaseFirestore (~> 1.11.1) 181 | - Firebase/Storage (6.19.0): 182 | - Firebase/CoreOnly 183 | - FirebaseStorage (~> 3.6.0) 184 | - firebase_core (0.0.1): 185 | - Firebase/Core 186 | - Flutter 187 | - firebase_core_web (0.1.0): 188 | - Flutter 189 | - firebase_storage (0.0.1): 190 | - Firebase/Storage 191 | - Flutter 192 | - FirebaseAnalytics (6.3.1): 193 | - FirebaseCore (~> 6.6) 194 | - FirebaseInstallations (~> 1.1) 195 | - GoogleAppMeasurement (= 6.3.1) 196 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 197 | - GoogleUtilities/MethodSwizzler (~> 6.0) 198 | - GoogleUtilities/Network (~> 6.0) 199 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 200 | - nanopb (= 0.3.9011) 201 | - FirebaseAuthInterop (1.1.0) 202 | - FirebaseCore (6.6.4): 203 | - FirebaseCoreDiagnostics (~> 1.2) 204 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 205 | - GoogleUtilities/Environment (~> 6.5) 206 | - GoogleUtilities/Logger (~> 6.5) 207 | - FirebaseCoreDiagnostics (1.2.2): 208 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 209 | - GoogleDataTransportCCTSupport (~> 2.0) 210 | - GoogleUtilities/Environment (~> 6.5) 211 | - GoogleUtilities/Logger (~> 6.5) 212 | - nanopb (~> 0.3.901) 213 | - FirebaseCoreDiagnosticsInterop (1.2.0) 214 | - FirebaseFirestore (1.11.2): 215 | - abseil/algorithm (= 0.20190808) 216 | - abseil/base (= 0.20190808) 217 | - abseil/memory (= 0.20190808) 218 | - abseil/meta (= 0.20190808) 219 | - abseil/strings/strings (= 0.20190808) 220 | - abseil/time (= 0.20190808) 221 | - abseil/types (= 0.20190808) 222 | - FirebaseAuthInterop (~> 1.0) 223 | - FirebaseCore (~> 6.2) 224 | - "gRPC-C++ (= 0.0.9)" 225 | - leveldb-library (~> 1.22) 226 | - nanopb (~> 0.3.901) 227 | - FirebaseInstallations (1.1.0): 228 | - FirebaseCore (~> 6.6) 229 | - GoogleUtilities/UserDefaults (~> 6.5) 230 | - PromisesObjC (~> 1.2) 231 | - FirebaseStorage (3.6.0): 232 | - FirebaseAuthInterop (~> 1.1) 233 | - FirebaseCore (~> 6.6) 234 | - GTMSessionFetcher/Core (~> 1.1) 235 | - Flutter (1.0.0) 236 | - flutter_ffmpeg/min-gpl-lts (0.2.10): 237 | - Flutter 238 | - mobile-ffmpeg-min-gpl (= 4.3.1.LTS) 239 | - GoogleAppMeasurement (6.3.1): 240 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 241 | - GoogleUtilities/MethodSwizzler (~> 6.0) 242 | - GoogleUtilities/Network (~> 6.0) 243 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 244 | - nanopb (= 0.3.9011) 245 | - GoogleDataTransport (5.0.0) 246 | - GoogleDataTransportCCTSupport (2.0.0): 247 | - GoogleDataTransport (~> 5.0) 248 | - nanopb (~> 0.3.901) 249 | - GoogleUtilities/AppDelegateSwizzler (6.5.1): 250 | - GoogleUtilities/Environment 251 | - GoogleUtilities/Logger 252 | - GoogleUtilities/Network 253 | - GoogleUtilities/Environment (6.5.1) 254 | - GoogleUtilities/Logger (6.5.1): 255 | - GoogleUtilities/Environment 256 | - GoogleUtilities/MethodSwizzler (6.5.1): 257 | - GoogleUtilities/Logger 258 | - GoogleUtilities/Network (6.5.1): 259 | - GoogleUtilities/Logger 260 | - "GoogleUtilities/NSData+zlib" 261 | - GoogleUtilities/Reachability 262 | - "GoogleUtilities/NSData+zlib (6.5.1)" 263 | - GoogleUtilities/Reachability (6.5.1): 264 | - GoogleUtilities/Logger 265 | - GoogleUtilities/UserDefaults (6.5.1): 266 | - GoogleUtilities/Logger 267 | - "gRPC-C++ (0.0.9)": 268 | - "gRPC-C++/Implementation (= 0.0.9)" 269 | - "gRPC-C++/Interface (= 0.0.9)" 270 | - "gRPC-C++/Implementation (0.0.9)": 271 | - "gRPC-C++/Interface (= 0.0.9)" 272 | - gRPC-Core (= 1.21.0) 273 | - nanopb (~> 0.3) 274 | - "gRPC-C++/Interface (0.0.9)" 275 | - gRPC-Core (1.21.0): 276 | - gRPC-Core/Implementation (= 1.21.0) 277 | - gRPC-Core/Interface (= 1.21.0) 278 | - gRPC-Core/Implementation (1.21.0): 279 | - BoringSSL-GRPC (= 0.0.3) 280 | - gRPC-Core/Interface (= 1.21.0) 281 | - nanopb (~> 0.3) 282 | - gRPC-Core/Interface (1.21.0) 283 | - GTMSessionFetcher/Core (1.3.1) 284 | - image_picker (0.0.1): 285 | - Flutter 286 | - leveldb-library (1.22) 287 | - mobile-ffmpeg-min-gpl (4.3.1.LTS) 288 | - nanopb (0.3.9011): 289 | - nanopb/decode (= 0.3.9011) 290 | - nanopb/encode (= 0.3.9011) 291 | - nanopb/decode (0.3.9011) 292 | - nanopb/encode (0.3.9011) 293 | - path_provider (0.0.1): 294 | - Flutter 295 | - path_provider_macos (0.0.1): 296 | - Flutter 297 | - PromisesObjC (1.2.8) 298 | - video_player (0.0.1): 299 | - Flutter 300 | - video_player_web (0.0.1): 301 | - Flutter 302 | 303 | DEPENDENCIES: 304 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) 305 | - cloud_firestore_web (from `.symlinks/plugins/cloud_firestore_web/ios`) 306 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 307 | - firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`) 308 | - firebase_storage (from `.symlinks/plugins/firebase_storage/ios`) 309 | - Flutter (from `Flutter`) 310 | - flutter_ffmpeg/min-gpl-lts (from `.symlinks/plugins/flutter_ffmpeg/ios`) 311 | - image_picker (from `.symlinks/plugins/image_picker/ios`) 312 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 313 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`) 314 | - video_player (from `.symlinks/plugins/video_player/ios`) 315 | - video_player_web (from `.symlinks/plugins/video_player_web/ios`) 316 | 317 | SPEC REPOS: 318 | trunk: 319 | - abseil 320 | - BoringSSL-GRPC 321 | - Firebase 322 | - FirebaseAnalytics 323 | - FirebaseAuthInterop 324 | - FirebaseCore 325 | - FirebaseCoreDiagnostics 326 | - FirebaseCoreDiagnosticsInterop 327 | - FirebaseFirestore 328 | - FirebaseInstallations 329 | - FirebaseStorage 330 | - GoogleAppMeasurement 331 | - GoogleDataTransport 332 | - GoogleDataTransportCCTSupport 333 | - GoogleUtilities 334 | - "gRPC-C++" 335 | - gRPC-Core 336 | - GTMSessionFetcher 337 | - leveldb-library 338 | - mobile-ffmpeg-min-gpl 339 | - nanopb 340 | - PromisesObjC 341 | 342 | EXTERNAL SOURCES: 343 | cloud_firestore: 344 | :path: ".symlinks/plugins/cloud_firestore/ios" 345 | cloud_firestore_web: 346 | :path: ".symlinks/plugins/cloud_firestore_web/ios" 347 | firebase_core: 348 | :path: ".symlinks/plugins/firebase_core/ios" 349 | firebase_core_web: 350 | :path: ".symlinks/plugins/firebase_core_web/ios" 351 | firebase_storage: 352 | :path: ".symlinks/plugins/firebase_storage/ios" 353 | Flutter: 354 | :path: Flutter 355 | flutter_ffmpeg: 356 | :path: ".symlinks/plugins/flutter_ffmpeg/ios" 357 | image_picker: 358 | :path: ".symlinks/plugins/image_picker/ios" 359 | path_provider: 360 | :path: ".symlinks/plugins/path_provider/ios" 361 | path_provider_macos: 362 | :path: ".symlinks/plugins/path_provider_macos/ios" 363 | video_player: 364 | :path: ".symlinks/plugins/video_player/ios" 365 | video_player_web: 366 | :path: ".symlinks/plugins/video_player_web/ios" 367 | 368 | SPEC CHECKSUMS: 369 | abseil: 18063d773f5366ff8736a050fe035a28f635fd27 370 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318 371 | cloud_firestore: 49a237bd7b154ac2134bc1fca087e7d2f790973b 372 | cloud_firestore_web: 9ec3dc7f5f98de5129339802d491c1204462bfec 373 | Firebase: d55ddb0e0bb3207166cddc028647833d8a1b5b6f 374 | firebase_core: dc539d4bdc69894823e4a6e557034a9e48960f21 375 | firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1 376 | firebase_storage: 1a07bf32f792e2b804803e68fc7b61a81c4b122d 377 | FirebaseAnalytics: 572e467f3d977825266e8ccd52674aa3e6f47eac 378 | FirebaseAuthInterop: a0f37ae05833af156e72028f648d313f7e7592e9 379 | FirebaseCore: ed0a24c758a57c2b88c5efa8e6a8195e868af589 380 | FirebaseCoreDiagnostics: e9b4cd8ba60dee0f2d13347332e4b7898cca5b61 381 | FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850 382 | FirebaseFirestore: 71925e62a5d1cbfaff46aa4d5107e525cc48356a 383 | FirebaseInstallations: 575cd32f2aec0feeb0e44f5d0110a09e5e60b47b 384 | FirebaseStorage: b43ee271294227e1a3225544b073f3b49b427f46 385 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 386 | flutter_ffmpeg: cf0a6941ef67e88248c998cc3e34f8acb0b4e454 387 | GoogleAppMeasurement: c29d405ff76e18551b5d158eaba6753fda8c7542 388 | GoogleDataTransport: a857c6a002d201b524dd4bc2ed7e7355ed07e785 389 | GoogleDataTransportCCTSupport: 32f75fbe904c82772fcbb6b6bd4525bfb6f2a862 390 | GoogleUtilities: 06eb53bb579efe7099152735900dd04bf09e7275 391 | "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83 392 | gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947 393 | GTMSessionFetcher: cea130bbfe5a7edc8d06d3f0d17288c32ffe9925 394 | image_picker: e3eacd46b94694dde7cf2705955cece853aa1a8f 395 | leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7 396 | mobile-ffmpeg-min-gpl: 873aefca7f7de141d16907413fb2b505a7e5cdb4 397 | nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd 398 | path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d 399 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0 400 | PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6 401 | video_player: 69c5f029fac4ffe4fc8a85ea7f7b793709661549 402 | video_player_web: da8cadb8274ed4f8dbee8d7171b420dedd437ce7 403 | 404 | PODFILE CHECKSUM: 89d8accb887b57e6697815dcfa9c2334b33805c2 405 | 406 | COCOAPODS: 1.8.4 407 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 658C3164916A923219B7BB1E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 536FF81EC1A91AF716A9AC85 /* Pods_Runner.framework */; }; 15 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 21 | B22AD7702387F7000044FB16 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B22AD76F2387F7000044FB16 /* GoogleService-Info.plist */; }; 22 | B2AEA61223866D280019E500 /* Config.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = B2AEA61123866D280019E500 /* Config.xcconfig */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 44 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 45 | 41AA0F527E74E14DB8C912D7 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 46 | 536FF81EC1A91AF716A9AC85 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 48 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 49 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 9DF3D5FC9AF388D6844F7852 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 59 | B22AD76F2387F7000044FB16 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 60 | B2AEA61123866D280019E500 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = ""; }; 61 | F04A8F89AD3B7B8069660822 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 62 | /* End PBXFileReference section */ 63 | 64 | /* Begin PBXFrameworksBuildPhase section */ 65 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 70 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 71 | 658C3164916A923219B7BB1E /* Pods_Runner.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 579F0A7265AE7AF1C7446D33 /* Pods */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 9DF3D5FC9AF388D6844F7852 /* Pods-Runner.debug.xcconfig */, 82 | F04A8F89AD3B7B8069660822 /* Pods-Runner.release.xcconfig */, 83 | 41AA0F527E74E14DB8C912D7 /* Pods-Runner.profile.xcconfig */, 84 | ); 85 | path = Pods; 86 | sourceTree = ""; 87 | }; 88 | 9740EEB11CF90186004384FC /* Flutter */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 3B80C3931E831B6300D905FE /* App.framework */, 92 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 93 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 96 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 97 | ); 98 | name = Flutter; 99 | sourceTree = ""; 100 | }; 101 | 97C146E51CF9000F007C117D = { 102 | isa = PBXGroup; 103 | children = ( 104 | 9740EEB11CF90186004384FC /* Flutter */, 105 | 97C146F01CF9000F007C117D /* Runner */, 106 | 97C146EF1CF9000F007C117D /* Products */, 107 | 579F0A7265AE7AF1C7446D33 /* Pods */, 108 | F7A8DC196D272009E6B4ACA8 /* Frameworks */, 109 | ); 110 | sourceTree = ""; 111 | }; 112 | 97C146EF1CF9000F007C117D /* Products */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 97C146EE1CF9000F007C117D /* Runner.app */, 116 | ); 117 | name = Products; 118 | sourceTree = ""; 119 | }; 120 | 97C146F01CF9000F007C117D /* Runner */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | B22AD76F2387F7000044FB16 /* GoogleService-Info.plist */, 124 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 125 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 126 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 127 | 97C147021CF9000F007C117D /* Info.plist */, 128 | 97C146F11CF9000F007C117D /* Supporting Files */, 129 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 130 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 131 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 132 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 133 | B2AEA61123866D280019E500 /* Config.xcconfig */, 134 | ); 135 | path = Runner; 136 | sourceTree = ""; 137 | }; 138 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | ); 142 | name = "Supporting Files"; 143 | sourceTree = ""; 144 | }; 145 | F7A8DC196D272009E6B4ACA8 /* Frameworks */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 536FF81EC1A91AF716A9AC85 /* Pods_Runner.framework */, 149 | ); 150 | name = Frameworks; 151 | sourceTree = ""; 152 | }; 153 | /* End PBXGroup section */ 154 | 155 | /* Begin PBXNativeTarget section */ 156 | 97C146ED1CF9000F007C117D /* Runner */ = { 157 | isa = PBXNativeTarget; 158 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 159 | buildPhases = ( 160 | 5978D51204DD1888AC021339 /* [CP] Check Pods Manifest.lock */, 161 | 9740EEB61CF901F6004384FC /* Run Script */, 162 | 97C146EA1CF9000F007C117D /* Sources */, 163 | 97C146EB1CF9000F007C117D /* Frameworks */, 164 | 97C146EC1CF9000F007C117D /* Resources */, 165 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 166 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 167 | 34DFECD351E66C803FC66E29 /* [CP] Embed Pods Frameworks */, 168 | ); 169 | buildRules = ( 170 | ); 171 | dependencies = ( 172 | ); 173 | name = Runner; 174 | productName = Runner; 175 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 176 | productType = "com.apple.product-type.application"; 177 | }; 178 | /* End PBXNativeTarget section */ 179 | 180 | /* Begin PBXProject section */ 181 | 97C146E61CF9000F007C117D /* Project object */ = { 182 | isa = PBXProject; 183 | attributes = { 184 | LastUpgradeCheck = 1020; 185 | ORGANIZATIONNAME = "The Chromium Authors"; 186 | TargetAttributes = { 187 | 97C146ED1CF9000F007C117D = { 188 | CreatedOnToolsVersion = 7.3.1; 189 | DevelopmentTeam = UYJJ7T58H6; 190 | LastSwiftMigration = 1100; 191 | }; 192 | }; 193 | }; 194 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 195 | compatibilityVersion = "Xcode 3.2"; 196 | developmentRegion = en; 197 | hasScannedForEncodings = 0; 198 | knownRegions = ( 199 | en, 200 | Base, 201 | ); 202 | mainGroup = 97C146E51CF9000F007C117D; 203 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 204 | projectDirPath = ""; 205 | projectRoot = ""; 206 | targets = ( 207 | 97C146ED1CF9000F007C117D /* Runner */, 208 | ); 209 | }; 210 | /* End PBXProject section */ 211 | 212 | /* Begin PBXResourcesBuildPhase section */ 213 | 97C146EC1CF9000F007C117D /* Resources */ = { 214 | isa = PBXResourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 218 | B2AEA61223866D280019E500 /* Config.xcconfig in Resources */, 219 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 220 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 221 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 222 | B22AD7702387F7000044FB16 /* GoogleService-Info.plist in Resources */, 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | }; 226 | /* End PBXResourcesBuildPhase section */ 227 | 228 | /* Begin PBXShellScriptBuildPhase section */ 229 | 34DFECD351E66C803FC66E29 /* [CP] Embed Pods Frameworks */ = { 230 | isa = PBXShellScriptBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | ); 234 | inputPaths = ( 235 | ); 236 | name = "[CP] Embed Pods Frameworks"; 237 | outputPaths = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 242 | showEnvVarsInLog = 0; 243 | }; 244 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 245 | isa = PBXShellScriptBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | inputPaths = ( 250 | ); 251 | name = "Thin Binary"; 252 | outputPaths = ( 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | shellPath = /bin/sh; 256 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 257 | }; 258 | 5978D51204DD1888AC021339 /* [CP] Check Pods Manifest.lock */ = { 259 | isa = PBXShellScriptBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | inputFileListPaths = ( 264 | ); 265 | inputPaths = ( 266 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 267 | "${PODS_ROOT}/Manifest.lock", 268 | ); 269 | name = "[CP] Check Pods Manifest.lock"; 270 | outputFileListPaths = ( 271 | ); 272 | outputPaths = ( 273 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | 9740EEB61CF901F6004384FC /* Run Script */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputPaths = ( 286 | ); 287 | name = "Run Script"; 288 | outputPaths = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 293 | }; 294 | /* End PBXShellScriptBuildPhase section */ 295 | 296 | /* Begin PBXSourcesBuildPhase section */ 297 | 97C146EA1CF9000F007C117D /* Sources */ = { 298 | isa = PBXSourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 302 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | /* End PBXSourcesBuildPhase section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 97C146FB1CF9000F007C117D /* Base */, 313 | ); 314 | name = Main.storyboard; 315 | sourceTree = ""; 316 | }; 317 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 97C147001CF9000F007C117D /* Base */, 321 | ); 322 | name = LaunchScreen.storyboard; 323 | sourceTree = ""; 324 | }; 325 | /* End PBXVariantGroup section */ 326 | 327 | /* Begin XCBuildConfiguration section */ 328 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 329 | isa = XCBuildConfiguration; 330 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 331 | buildSettings = { 332 | ALWAYS_SEARCH_USER_PATHS = NO; 333 | CLANG_ANALYZER_NONNULL = YES; 334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 335 | CLANG_CXX_LIBRARY = "libc++"; 336 | CLANG_ENABLE_MODULES = YES; 337 | CLANG_ENABLE_OBJC_ARC = YES; 338 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 339 | CLANG_WARN_BOOL_CONVERSION = YES; 340 | CLANG_WARN_COMMA = YES; 341 | CLANG_WARN_CONSTANT_CONVERSION = YES; 342 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 343 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 344 | CLANG_WARN_EMPTY_BODY = YES; 345 | CLANG_WARN_ENUM_CONVERSION = YES; 346 | CLANG_WARN_INFINITE_RECURSION = YES; 347 | CLANG_WARN_INT_CONVERSION = YES; 348 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 349 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 350 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 351 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 352 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 353 | CLANG_WARN_STRICT_PROTOTYPES = YES; 354 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 355 | CLANG_WARN_UNREACHABLE_CODE = YES; 356 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 357 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 358 | COPY_PHASE_STRIP = NO; 359 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 360 | ENABLE_NS_ASSERTIONS = NO; 361 | ENABLE_STRICT_OBJC_MSGSEND = YES; 362 | GCC_C_LANGUAGE_STANDARD = gnu99; 363 | GCC_NO_COMMON_BLOCKS = YES; 364 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 365 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 366 | GCC_WARN_UNDECLARED_SELECTOR = YES; 367 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 368 | GCC_WARN_UNUSED_FUNCTION = YES; 369 | GCC_WARN_UNUSED_VARIABLE = YES; 370 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 371 | MTL_ENABLE_DEBUG_INFO = NO; 372 | SDKROOT = iphoneos; 373 | SUPPORTED_PLATFORMS = iphoneos; 374 | TARGETED_DEVICE_FAMILY = "1,2"; 375 | VALIDATE_PRODUCT = YES; 376 | }; 377 | name = Profile; 378 | }; 379 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 380 | isa = XCBuildConfiguration; 381 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 382 | buildSettings = { 383 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 384 | CLANG_ENABLE_MODULES = YES; 385 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 386 | DEVELOPMENT_TEAM = UYJJ7T58H6; 387 | ENABLE_BITCODE = NO; 388 | FRAMEWORK_SEARCH_PATHS = ( 389 | "$(inherited)", 390 | "$(PROJECT_DIR)/Flutter", 391 | ); 392 | INFOPLIST_FILE = Runner/Info.plist; 393 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 395 | LIBRARY_SEARCH_PATHS = ( 396 | "$(inherited)", 397 | "$(PROJECT_DIR)/Flutter", 398 | ); 399 | PRODUCT_BUNDLE_IDENTIFIER = com.learningsomethingnew.fluttervideo.flutterVideoSharing; 400 | PRODUCT_NAME = "$(TARGET_NAME)"; 401 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 402 | SWIFT_VERSION = 5.0; 403 | VERSIONING_SYSTEM = "apple-generic"; 404 | }; 405 | name = Profile; 406 | }; 407 | 97C147031CF9000F007C117D /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 410 | buildSettings = { 411 | ALWAYS_SEARCH_USER_PATHS = NO; 412 | CLANG_ANALYZER_NONNULL = YES; 413 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 414 | CLANG_CXX_LIBRARY = "libc++"; 415 | CLANG_ENABLE_MODULES = YES; 416 | CLANG_ENABLE_OBJC_ARC = YES; 417 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 418 | CLANG_WARN_BOOL_CONVERSION = YES; 419 | CLANG_WARN_COMMA = YES; 420 | CLANG_WARN_CONSTANT_CONVERSION = YES; 421 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 422 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 423 | CLANG_WARN_EMPTY_BODY = YES; 424 | CLANG_WARN_ENUM_CONVERSION = YES; 425 | CLANG_WARN_INFINITE_RECURSION = YES; 426 | CLANG_WARN_INT_CONVERSION = YES; 427 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 428 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 429 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 430 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 431 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 432 | CLANG_WARN_STRICT_PROTOTYPES = YES; 433 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 434 | CLANG_WARN_UNREACHABLE_CODE = YES; 435 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 437 | COPY_PHASE_STRIP = NO; 438 | DEBUG_INFORMATION_FORMAT = dwarf; 439 | ENABLE_STRICT_OBJC_MSGSEND = YES; 440 | ENABLE_TESTABILITY = YES; 441 | GCC_C_LANGUAGE_STANDARD = gnu99; 442 | GCC_DYNAMIC_NO_PIC = NO; 443 | GCC_NO_COMMON_BLOCKS = YES; 444 | GCC_OPTIMIZATION_LEVEL = 0; 445 | GCC_PREPROCESSOR_DEFINITIONS = ( 446 | "DEBUG=1", 447 | "$(inherited)", 448 | ); 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 456 | MTL_ENABLE_DEBUG_INFO = YES; 457 | ONLY_ACTIVE_ARCH = YES; 458 | SDKROOT = iphoneos; 459 | TARGETED_DEVICE_FAMILY = "1,2"; 460 | }; 461 | name = Debug; 462 | }; 463 | 97C147041CF9000F007C117D /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 466 | buildSettings = { 467 | ALWAYS_SEARCH_USER_PATHS = NO; 468 | CLANG_ANALYZER_NONNULL = YES; 469 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 470 | CLANG_CXX_LIBRARY = "libc++"; 471 | CLANG_ENABLE_MODULES = YES; 472 | CLANG_ENABLE_OBJC_ARC = YES; 473 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 474 | CLANG_WARN_BOOL_CONVERSION = YES; 475 | CLANG_WARN_COMMA = YES; 476 | CLANG_WARN_CONSTANT_CONVERSION = YES; 477 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 478 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 479 | CLANG_WARN_EMPTY_BODY = YES; 480 | CLANG_WARN_ENUM_CONVERSION = YES; 481 | CLANG_WARN_INFINITE_RECURSION = YES; 482 | CLANG_WARN_INT_CONVERSION = YES; 483 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 484 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 485 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 486 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 487 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 488 | CLANG_WARN_STRICT_PROTOTYPES = YES; 489 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 490 | CLANG_WARN_UNREACHABLE_CODE = YES; 491 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 492 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 493 | COPY_PHASE_STRIP = NO; 494 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 495 | ENABLE_NS_ASSERTIONS = NO; 496 | ENABLE_STRICT_OBJC_MSGSEND = YES; 497 | GCC_C_LANGUAGE_STANDARD = gnu99; 498 | GCC_NO_COMMON_BLOCKS = YES; 499 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 500 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 501 | GCC_WARN_UNDECLARED_SELECTOR = YES; 502 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 503 | GCC_WARN_UNUSED_FUNCTION = YES; 504 | GCC_WARN_UNUSED_VARIABLE = YES; 505 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 506 | MTL_ENABLE_DEBUG_INFO = NO; 507 | SDKROOT = iphoneos; 508 | SUPPORTED_PLATFORMS = iphoneos; 509 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | VALIDATE_PRODUCT = YES; 512 | }; 513 | name = Release; 514 | }; 515 | 97C147061CF9000F007C117D /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 518 | buildSettings = { 519 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 520 | CLANG_ENABLE_MODULES = YES; 521 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 522 | DEVELOPMENT_TEAM = UYJJ7T58H6; 523 | ENABLE_BITCODE = NO; 524 | FRAMEWORK_SEARCH_PATHS = ( 525 | "$(inherited)", 526 | "$(PROJECT_DIR)/Flutter", 527 | ); 528 | INFOPLIST_FILE = Runner/Info.plist; 529 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 531 | LIBRARY_SEARCH_PATHS = ( 532 | "$(inherited)", 533 | "$(PROJECT_DIR)/Flutter", 534 | ); 535 | PRODUCT_BUNDLE_IDENTIFIER = com.learningsomethingnew.fluttervideo.flutterVideoSharing; 536 | PRODUCT_NAME = "$(TARGET_NAME)"; 537 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 538 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 539 | SWIFT_VERSION = 5.0; 540 | VERSIONING_SYSTEM = "apple-generic"; 541 | }; 542 | name = Debug; 543 | }; 544 | 97C147071CF9000F007C117D /* Release */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 547 | buildSettings = { 548 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 549 | CLANG_ENABLE_MODULES = YES; 550 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 551 | DEVELOPMENT_TEAM = UYJJ7T58H6; 552 | ENABLE_BITCODE = NO; 553 | FRAMEWORK_SEARCH_PATHS = ( 554 | "$(inherited)", 555 | "$(PROJECT_DIR)/Flutter", 556 | ); 557 | INFOPLIST_FILE = Runner/Info.plist; 558 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 560 | LIBRARY_SEARCH_PATHS = ( 561 | "$(inherited)", 562 | "$(PROJECT_DIR)/Flutter", 563 | ); 564 | PRODUCT_BUNDLE_IDENTIFIER = com.learningsomethingnew.fluttervideo.flutterVideoSharing; 565 | PRODUCT_NAME = "$(TARGET_NAME)"; 566 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 567 | SWIFT_VERSION = 5.0; 568 | VERSIONING_SYSTEM = "apple-generic"; 569 | }; 570 | name = Release; 571 | }; 572 | /* End XCBuildConfiguration section */ 573 | 574 | /* Begin XCConfigurationList section */ 575 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 97C147031CF9000F007C117D /* Debug */, 579 | 97C147041CF9000F007C117D /* Release */, 580 | 249021D3217E4FDB00AE95B9 /* Profile */, 581 | ); 582 | defaultConfigurationIsVisible = 0; 583 | defaultConfigurationName = Release; 584 | }; 585 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 586 | isa = XCConfigurationList; 587 | buildConfigurations = ( 588 | 97C147061CF9000F007C117D /* Debug */, 589 | 97C147071CF9000F007C117D /* Release */, 590 | 249021D4217E4FDB00AE95B9 /* Profile */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | /* End XCConfigurationList section */ 596 | }; 597 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 598 | } 599 | --------------------------------------------------------------------------------