MarshallTechnology / video_stream

BSD 3-Clause "New" or "Revised" License
9 stars 25 forks source link

Kotlin error on latest flutter and kotlin versions #6

Open evilmtv opened 2 years ago

evilmtv commented 2 years ago
e: /.../flutter/.pub-cache/hosted/pub.dartlang.org/video_stream-0.0.1/android/src/main/kotlin/com/marshalltechnology/video_stream/VideoStreamPlugin.kt: (45, 17): Type mismatch: inferred type is Activity? but Activity was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':video_stream:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s

Tested with: Flutter 3.0.0/3.0.1 with ext.kotlin_version = '1.6.21'

evilmtv commented 2 years ago

Potentially fixed in #7 Not fully tested yet so please use with that in mind. Use by updating pubspec.yaml with:

  video_stream:
    git:
      url: https://github.com/evilmtv/video_stream
      ref: 4ca161ee0a9fce0f7608be7cdb6cfca7a53c2430
Muhammad-Gamal2 commented 2 years ago

kindly, this fix made the iOS version of my app crashed, You can use this package instead https://pub.dev/packages/apivideo_live_stream