Skip to content

Commit

Permalink
FIX assets integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kodlian committed Mar 18, 2018
1 parent 252bed0 commit 0c6dd8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Sources/RemoteActionPositionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class RemoteActionPositionController: NSObject, PositionController {
case fastForward, rewind, jumpForward, jumpBackward, reset, pause

var images: (left: UIImage?, right: UIImage?) {
let bundle = Bundle(identifier: "org.cocoapods.TVVLCPlayer")
guard let url = Bundle.main.url(forResource: "TVVLCPlayer", withExtension: "bundle"),
let bundle = Bundle(url: url) else {
fatalError()
}

switch self {
case .fastForward:
Expand Down
6 changes: 4 additions & 2 deletions TVVLCPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "TVVLCPlayer"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "A powerfull video player"

s.description = <<-DESC
Expand All @@ -24,5 +24,7 @@ Pod::Spec.new do |s|
s.pod_target_xcconfig = {
'SWIFT_OBJC_BRIDGING_HEADER' => "${PODS_TARGET_SRCROOT}/Sources/TVVLCPlayer-Bridging-Header.h"
}
s.resources = ["Resources/*.{storyboard,xcassets}"]
s.resources = ["Resources/*.storyboard"]
s.resource_bundle = { 'TVVLCPlayer' => [ 'Resources/*.xcassets' ] }

end

0 comments on commit 0c6dd8f

Please sign in to comment.