Skip to content

Commit

Permalink
refactor(*): move to federated plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 1, 2024
1 parent c5f934c commit 30d03cc
Show file tree
Hide file tree
Showing 168 changed files with 5,195 additions and 36 deletions.
54 changes: 27 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,29 @@ unlinked_spec.ds
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/ephemeral
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
packages/live_stream_apple/apple/**/*sync/
packages/live_stream_apple/apple/**/.sconsign.dblite
packages/live_stream_apple/apple/**/.tags*
packages/live_stream_apple/apple/**/.vagrant/
packages/live_stream_apple/apple/**/DerivedData/
packages/live_stream_apple/apple/**/Icon?
packages/live_stream_apple/apple/**/Pods/
packages/live_stream_apple/apple/**/.symlinks/
packages/live_stream_apple/apple/**/profile
packages/live_stream_apple/apple/**/xcuserdata
packages/live_stream_apple/apple/.generated/
packages/live_stream_apple/apple/Flutter/.last_build_id
packages/live_stream_apple/apple/Flutter/App.framework
packages/live_stream_apple/apple/Flutter/Flutter.framework
packages/live_stream_apple/apple/Flutter/Flutter.podspec
packages/live_stream_apple/apple/Flutter/Generated.xcconfig
packages/live_stream_apple/apple/Flutter/ephemeral
packages/live_stream_apple/apple/Flutter/app.flx
packages/live_stream_apple/apple/Flutter/app.zip
packages/live_stream_apple/apple/Flutter/flutter_assets/
packages/live_stream_apple/apple/Flutter/flutter_export_environment.sh
packages/live_stream_apple/apple/ServiceDefinitions.json
packages/live_stream_apple/apple/Runner/GeneratedPluginRegistrant.*

# macOS
**/macos/Flutter/GeneratedPluginRegistrant.swift
Expand All @@ -110,9 +110,9 @@ coverage/
app.*.symbols

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!packages/live_stream_apple/apple/**/default.mode1v3
!packages/live_stream_apple/apple/**/default.mode2v3
!packages/live_stream_apple/apple/**/default.pbxuser
!packages/live_stream_apple/apple/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ flutter pub add apivideo_live_stream
In your dart file, import the package:

```dart
import 'package:apivideo_live_stream/apivideo_live_stream.dart';
import 'package:apivideo_live_stream/apivideo_live_stream_android.dart';
```

### Permissions
Expand Down
File renamed without changes.
228 changes: 228 additions & 0 deletions packages/apivideo_live_stream/CONTRIBUTING.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions packages/apivideo_live_stream/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 api.video

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:apivideo_live_stream/apivideo_live_stream.dart';
import 'package:apivideo_live_stream/apivideo_live_stream_android.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions pubspec.yaml → packages/apivideo_live_stream/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ environment:
dependencies:
flutter:
sdk: flutter
json_annotation: ^4.8.1
native_device_orientation: ^2.0.3
plugin_platform_interface: ^2.1.6
meta: ^1.9.0
apivideo_live_stream_android: ^1.3.0
apivideo_live_stream_apple: ^1.3.0
apivideo_live_stream_platform_interface: ^1.3.0

dev_dependencies:
flutter_test:
sdk: flutter
pigeon: ^22.4.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:apivideo_live_stream/apivideo_live_stream.dart';
import 'package:apivideo_live_stream/src/platform/platform_interface.dart';
import 'package:apivideo_live_stream/apivideo_live_stream_android.dart';
import 'package:apivideo_live_stream/src/platform/live_stream_platform_interface.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
Expand Down
82 changes: 82 additions & 0 deletions packages/apivideo_live_stream_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Changelog

All changes to this project will be documented in this file.

## [1.2.0] - 2024-02-12

- Add a `fit` parameter to `ApiVideoCameraPreview` to control the fit of the preview inside its
parent widget
- Improve and fix few video resolution issues
- Android: The package automatically requests the camera and microphone permissions
- Android: upgrade gradle, kotlin, AGP and other dependencies
- iOS: add missing `getVideoSize` method
- iOS: send events from the main thread
- Example: lower default bitrate to run the example effortlessly
- Example: enable wake lock to keep the device awake during the live stream
- Example: put the application in the safe area

## [1.1.3] - 2023-10-16

- Android: call `disconnect` event when `stopStream` is explicitly called
- Add api.video application icon for Android and iOS

## [1.1.2] - 2023-08-16

- Android: fix the `videoSize` cast

## [1.1.1] - 2023-01-23

- iOS: fix the orientation when device is turned

## [1.1.0] - 2023-01-11

- Major refactor:
- use `initialize` instead of `create` and pass default parameters
to `ApiVideoLiveStreamController` constructor
- simplified usage of `CameraPreview` (and renamed to `ApiVideoCameraPreview`)
- Getter for properties such as `isMuted`, `cameraPosition`, ... (
see [#13](https://github.com/apivideo/api.video-flutter-live-stream/issues/13))
- Few fixes on Android and iOS

## [1.0.7] - 2022-10-12

- Fix crash on `stopStreaming`.
See [#14](https://github.com/apivideo/api.video-flutter-live-stream/issues/14)

## [1.0.6] - 2022-09-30

- Fix 1080p configuration.
See [#16](https://github.com/apivideo/api.video-flutter-live-stream/issues/16)
- Upgrade HaishinKit to 1.3.0.
See [#15](https://github.com/apivideo/api.video-flutter-live-stream/issues/15)
- Upgrade dependencies

## [1.0.5] - 2022-08-03

- Few fixes on FLV/RTMP to increase compatibility
- iOS: fix landscape orientation.
See [#12](https://github.com/apivideo/api.video-flutter-live-stream/issues/12)

## [1.0.4] - 2022-06-01

- iOS: Fix the random aspect ratio of the preview and random crashes.
See [#7](https://github.com/apivideo/api.video-flutter-live-stream/issues/7)

## [1.0.3] - 2022-05-30

- Android: do not obfuscate rtmpdroid classes to
fix [#6](https://github.com/apivideo/api.video-flutter-live-stream/issues/6)

## [1.0.2] - 2022-05-25

- iOS: implements `stopPreview` and `startPreview` to
fix [#4](https://github.com/apivideo/api.video-flutter-live-stream/issues/4)

## [1.0.1] - 2022-04-13

- Fix audio and video configuration for iOS
- Fix setAudioConfig when preview is running for Android

## [1.0.0] - 2022-04-08

- Initial release.
Loading

0 comments on commit 30d03cc

Please sign in to comment.