Skip to content

Commit 8e4042b

Browse files
committed
Convert AGAudioPlayer to Swift
1 parent 8f9e470 commit 8e4042b

File tree

4 files changed

+500
-20
lines changed

4 files changed

+500
-20
lines changed

AGAudioPlayer.xcodeproj/project.pbxproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
00F6D8B8EE7CDB10908B8E7F /* Pods_AGAudioPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D67DF68517CEBB91D42D7E1 /* Pods_AGAudioPlayer.framework */; };
1111
4333981B2249E91E00BECC8A /* UIColor+AGAudioPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4333981A2249E91E00BECC8A /* UIColor+AGAudioPlayer.swift */; };
12+
43861642254E8FD60084814C /* AudioPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43861641254E8FD60084814C /* AudioPlayer.swift */; };
1213
7C0D7BC81A44B68600607581 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7C0D7BC41A44B68600607581 /* LaunchScreen.xib */; };
1314
7C3FE4461AB3B69900A52266 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C3FE4451AB3B69900A52266 /* MediaPlayer.framework */; };
1415
7C3FF8361AB6723B003BAE01 /* AGAudioItemCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = 7C3FF8351AB6723B003BAE01 /* AGAudioItemCollection.m */; };
@@ -39,16 +40,16 @@
3940
13AE2D5751E4226410EF7FD4 /* libPods-AGAudioPlayerOSX.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AGAudioPlayerOSX.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4041
1D67DF68517CEBB91D42D7E1 /* Pods_AGAudioPlayer.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AGAudioPlayer.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4142
4333981A2249E91E00BECC8A /* UIColor+AGAudioPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+AGAudioPlayer.swift"; sourceTree = "<group>"; };
43+
4386163E254E8F5A0084814C /* AGAudioPlayer-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AGAudioPlayer-Bridging-Header.h"; sourceTree = "<group>"; };
44+
43861641254E8FD60084814C /* AudioPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AudioPlayer.swift; sourceTree = "<group>"; };
4245
7C0D7BC51A44B68600607581 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
4346
7C12F7681C493219006FA021 /* Pods-AGAudioPlayer.debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Pods-AGAudioPlayer.debug.xcconfig"; path = "Target Support Files/Pods-AGAudioPlayer/Pods-AGAudioPlayer.debug.xcconfig"; sourceTree = "<group>"; };
4447
7C12F7691C493219006FA021 /* Pods-AGAudioPlayer.release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "Pods-AGAudioPlayer.release.xcconfig"; path = "Target Support Files/Pods-AGAudioPlayer/Pods-AGAudioPlayer.release.xcconfig"; sourceTree = "<group>"; };
4548
7C3FE4451AB3B69900A52266 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
4649
7C3FF8341AB6723B003BAE01 /* AGAudioItemCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AGAudioItemCollection.h; sourceTree = "<group>"; };
4750
7C3FF8351AB6723B003BAE01 /* AGAudioItemCollection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AGAudioItemCollection.m; sourceTree = "<group>"; };
48-
7C3FF8381AB67FE6003BAE01 /* AGCachable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AGCachable.h; path = AGAudioPlayer/AGCachable.h; sourceTree = "<group>"; };
4951
7C4B52521AB38CBC00A57843 /* Icons.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Icons.xcassets; sourceTree = "<group>"; };
5052
7C7FE9981F79D9DA003D47C6 /* RemoteCommandManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteCommandManager.swift; sourceTree = "<group>"; };
51-
7CB928C51E316AD000D963A0 /* AGAudioPlayer-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AGAudioPlayer-Bridging-Header.h"; sourceTree = "<group>"; };
5253
7CB928CC1E316BDB00D963A0 /* AGAudioPlayerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AGAudioPlayerViewController.swift; sourceTree = "<group>"; };
5354
7CB928CD1E316BDB00D963A0 /* AGAudioPlayerViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AGAudioPlayerViewController.xib; sourceTree = "<group>"; };
5455
7CB928D01E316DB700D963A0 /* AGAudioPlayerTitleView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AGAudioPlayerTitleView.swift; sourceTree = "<group>"; };
@@ -108,7 +109,6 @@
108109
7CB928D71E32B35400D963A0 /* Transition */,
109110
7CB928D41E316EBF00D963A0 /* Components */,
110111
7C4B52521AB38CBC00A57843 /* Icons.xcassets */,
111-
7CB928C51E316AD000D963A0 /* AGAudioPlayer-Bridging-Header.h */,
112112
7CB928CC1E316BDB00D963A0 /* AGAudioPlayerViewController.swift */,
113113
7CB928CD1E316BDB00D963A0 /* AGAudioPlayerViewController.xib */,
114114
7CB928DA1E32C3B900D963A0 /* AGExtensions.swift */,
@@ -145,7 +145,6 @@
145145
7CC2508B1A447901009F91C8 = {
146146
isa = PBXGroup;
147147
children = (
148-
7C3FF8381AB67FE6003BAE01 /* AGCachable.h */,
149148
7CC250BD1A447910009F91C8 /* Example */,
150149
7CC250961A447901009F91C8 /* AGAudioPlayer */,
151150
7CC250B01A447901009F91C8 /* AGAudioPlayerTests */,
@@ -169,13 +168,15 @@
169168
7C4B52481AB383C800A57843 /* UI */,
170169
7CC250BE1A44792F009F91C8 /* AGAudioPlayer.h */,
171170
7CC250BF1A44792F009F91C8 /* AGAudioPlayer.m */,
171+
43861641254E8FD60084814C /* AudioPlayer.swift */,
172172
7CC250CC1A447A98009F91C8 /* AGAudioPlayerUpNextQueue.h */,
173173
7CC250CD1A447A98009F91C8 /* AGAudioPlayerUpNextQueue.m */,
174174
7CC250CF1A447AB0009F91C8 /* AGAudioItem.h */,
175175
7CC250D01A447AB0009F91C8 /* AGAudioItem.m */,
176176
7C3FF8341AB6723B003BAE01 /* AGAudioItemCollection.h */,
177177
7C3FF8351AB6723B003BAE01 /* AGAudioItemCollection.m */,
178178
4333981A2249E91E00BECC8A /* UIColor+AGAudioPlayer.swift */,
179+
4386163E254E8F5A0084814C /* AGAudioPlayer-Bridging-Header.h */,
179180
);
180181
path = AGAudioPlayer;
181182
sourceTree = "<group>";
@@ -359,6 +360,7 @@
359360
files = (
360361
7C7FE9991F79D9DA003D47C6 /* RemoteCommandManager.swift in Sources */,
361362
7CB928D11E316DB700D963A0 /* AGAudioPlayerTitleView.swift in Sources */,
363+
43861642254E8FD60084814C /* AudioPlayer.swift in Sources */,
362364
7CC250CE1A447A98009F91C8 /* AGAudioPlayerUpNextQueue.m in Sources */,
363365
7CC250A01A447901009F91C8 /* ViewController.m in Sources */,
364366
7CC250C01A44792F009F91C8 /* AGAudioPlayer.m in Sources */,
@@ -511,7 +513,7 @@
511513
OTHER_LIBTOOLFLAGS = "$(inherited)";
512514
PRODUCT_BUNDLE_IDENTIFIER = "com.alecgorge.$(PRODUCT_NAME:rfc1034identifier)";
513515
PRODUCT_NAME = "$(TARGET_NAME)";
514-
SWIFT_OBJC_BRIDGING_HEADER = "AGAudioPlayer/UI/AGAudioPlayer-Bridging-Header.h";
516+
SWIFT_OBJC_BRIDGING_HEADER = "AGAudioPlayer/AGAudioPlayer-Bridging-Header.h";
515517
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
516518
SWIFT_VERSION = 5.0;
517519
};
@@ -545,7 +547,7 @@
545547
OTHER_LIBTOOLFLAGS = "$(inherited)";
546548
PRODUCT_BUNDLE_IDENTIFIER = "com.alecgorge.$(PRODUCT_NAME:rfc1034identifier)";
547549
PRODUCT_NAME = "$(TARGET_NAME)";
548-
SWIFT_OBJC_BRIDGING_HEADER = "AGAudioPlayer/UI/AGAudioPlayer-Bridging-Header.h";
550+
SWIFT_OBJC_BRIDGING_HEADER = "AGAudioPlayer/AGAudioPlayer-Bridging-Header.h";
549551
SWIFT_VERSION = 5.0;
550552
};
551553
name = Release;

AGAudioPlayer/UI/AGAudioPlayer-Bridging-Header.h renamed to AGAudioPlayer/AGAudioPlayer-Bridging-Header.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
//
44

55
#import "AGAudioPlayer.h"
6+
#import "AGAudioItem.h"
7+
#import "AGAudioPlayerUpNextQueue.h"
8+
9+
#import <BASSGaplessAudioPlayer/ObjectiveBASS.h>

AGAudioPlayer/AGCachable.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)