Skip to content

Commit

Permalink
fix: Fix iOS code that was missing from previous push (melos vs pub g…
Browse files Browse the repository at this point in the history
…et issue) (#1122)
  • Loading branch information
luanpotter authored May 8, 2022
1 parent 99d767d commit fe73784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Example App - Build web app
working-directory: ./packages/audioplayers/example
run: |
flutter pub get
flutter build web
- name: web integration test
Expand Down Expand Up @@ -75,7 +74,6 @@ jobs:
- name: Example App - Build android APK
working-directory: ./packages/audioplayers/example
run: |
flutter pub get
flutter build apk --release
- name: Run android unit tests
Expand Down Expand Up @@ -125,7 +123,6 @@ jobs:
- name: Example App - Build iOS
working-directory: ./packages/audioplayers/example
run: |
flutter pub get
flutter build ios --release --no-codesign
- name: Run Flutter Driver tests
working-directory: ./packages/audioplayers/example
Expand All @@ -149,7 +146,6 @@ jobs:
working-directory: ./packages/audioplayers/example
run: |
flutter config --enable-macos-desktop
flutter pub get
flutter build macos --release
- name: Run Flutter Driver tests
working-directory: ./packages/audioplayers/example
Expand All @@ -167,7 +163,6 @@ jobs:
- name: Example App - Build windows app
working-directory: ./packages/audioplayers/example
run: |
flutter pub get
flutter build windows --release
- name: Run Flutter Driver tests
working-directory: ./packages/audioplayers/example
Expand All @@ -190,7 +185,6 @@ jobs:
working-directory: ./packages/audioplayers/example
run: |
flutter config --enable-linux-desktop
flutter pub get
flutter build linux --release
- name: Run Flutter Driver tests
working-directory: ./packages/audioplayers/example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class WrappedMediaPlayer {
}

func getDurationCMTime() -> CMTime? {
return player?.currentItem?.asset?.duration
return player?.currentItem?.asset.duration
}

func getDuration() -> Int? {
Expand Down Expand Up @@ -178,7 +178,7 @@ class WrappedMediaPlayer {
player = existingPlayer
} else {
player = AVPlayer.init(playerItem: playerItem)
configParameters(player)
configParameters(player: player)

self.player = player
self.observers = []
Expand Down

0 comments on commit fe73784

Please sign in to comment.