浏览代码

版本升级维护

yyqxiaoyin 5 年之前
父节点
当前提交
a9bdf7b897

+ 2 - 2
Example/Podfile.lock

@@ -1,5 +1,5 @@
 PODS:
-  - MKRRadioManager (0.0.2)
+  - MKRRadioManager (0.0.1)
   - YYCategory (0.0.1)
 
 DEPENDENCIES:
@@ -15,7 +15,7 @@ EXTERNAL SOURCES:
     :path: "../"
 
 SPEC CHECKSUMS:
-  MKRRadioManager: 11a29ba22ec11c476bfadcc85770af93d0937792
+  MKRRadioManager: dc051d4b5361a49c481dc08d28eaf07fa1c1084c
   YYCategory: d85135b05d2806c90930a5bbadfc1501396a3db9
 
 PODFILE CHECKSUM: f65396e8a7f07654404054ab9d38dc4b7b6f8818

+ 2 - 2
Example/Pods/Local Podspecs/MKRRadioManager.podspec.json

@@ -1,6 +1,6 @@
 {
   "name": "MKRRadioManager",
-  "version": "0.0.2",
+  "version": "0.0.1",
   "summary": "A short description of MKRRadioManager.",
   "description": "TODO: Add long description of the pod here.",
   "homepage": "http://60.205.190.38:9000/iOS/MKRRadioManager.git",
@@ -13,7 +13,7 @@
   },
   "source": {
     "git": "http://60.205.190.38:9000/iOS/MKRRadioManager.git",
-    "tag": "0.0.2"
+    "tag": "0.0.1"
   },
   "platforms": {
     "ios": "8.0"

+ 2 - 2
Example/Pods/Manifest.lock

@@ -1,5 +1,5 @@
 PODS:
-  - MKRRadioManager (0.0.2)
+  - MKRRadioManager (0.0.1)
   - YYCategory (0.0.1)
 
 DEPENDENCIES:
@@ -15,7 +15,7 @@ EXTERNAL SOURCES:
     :path: "../"
 
 SPEC CHECKSUMS:
-  MKRRadioManager: 11a29ba22ec11c476bfadcc85770af93d0937792
+  MKRRadioManager: dc051d4b5361a49c481dc08d28eaf07fa1c1084c
   YYCategory: d85135b05d2806c90930a5bbadfc1501396a3db9
 
 PODFILE CHECKSUM: f65396e8a7f07654404054ab9d38dc4b7b6f8818

+ 1 - 1
MKRRadioManager.podspec

@@ -8,7 +8,7 @@
 
 Pod::Spec.new do |s|
   s.name             = 'MKRRadioManager'
-  s.version          = '0.0.2'
+  s.version          = '0.0.1'
   s.summary          = 'A short description of MKRRadioManager.'
 
 # This description is used to generate tags and improve search results.

+ 0 - 4
MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.h

@@ -111,8 +111,6 @@ typedef enum : NSUInteger {
 
 - (void)updatePlayList:(NSArray<NSString *> *)playList;
 
-- (void)updateResourcePlayList:(NSArray<id<MKRRadioResorce>> *)playList;
-
 @property(nonatomic, weak) id<MKRAVPlayerDelegate> delegate;
 
 /**
@@ -126,8 +124,6 @@ typedef enum : NSUInteger {
  */
 @property (nonatomic, assign) NSInteger currentIndex;
 
-@property (nonatomic, assign) id <MKRRadioResorce> currentResource;
-
 /**
  是否正在播放中
  */

+ 2 - 30
MKRRadioManager/Classes/MKRRadioManager/MKRAVPlayer/MKRAVPlayer.m

@@ -34,8 +34,6 @@ static void * PlayerStatusObservationContext = &PlayerStatusObservationContext;
 @property (nonatomic, copy)   MKRAVPlayerURLRequsetBlcok block;
 @property (nonatomic, assign) BOOL isSeeking;//是否快进或快退
 @property (nonatomic, assign) NSTimeInterval seekTime;//快进或者快退的目标时间
-@property (nonatomic, strong) NSMutableArray *resourcePlayList;//MKRRadioResorce播放列表
-@property (nonatomic, assign) BOOL initByUrlPlayList;//是字符串播放列表
 @end
 
 @implementation MKRAVPlayer
@@ -71,7 +69,6 @@ NSURL * MKRUrlWithString(NSString *string){
 - (id)initWithPlayList:(NSArray<NSString *> *)playList{
     self = [self init];
     if (self) {
-        self.initByUrlPlayList = YES;
         self.playList = playList;
     }
     return self;
@@ -88,7 +85,6 @@ NSURL * MKRUrlWithString(NSString *string){
 - (id)initWithContentURL:(NSURL *)aUrl{
     self = [self init];
     if (self) {
-        self.initByUrlPlayList = YES;
         self.playUrl  = aUrl;
         self.playList = [NSArray arrayWithObject:aUrl];
     }
@@ -101,24 +97,12 @@ NSURL * MKRUrlWithString(NSString *string){
 }
 
 - (id)initWithObjectsPlayList:(NSArray<id<MKRRadioResorce>> *)playList{
-    NSMutableArray *urls = [NSMutableArray arrayWithArray:[self.playList valueForKey:@"songUrl"]];
-    for (NSInteger i = 0; i<urls.count; i++) {
-        if ([urls[i] isEqual:[NSNull null]]) {
-            [urls replaceObjectAtIndex:i withObject:@""];
-        }
-    }
-    self.resourcePlayList = [NSMutableArray arrayWithArray:playList];
+    NSArray *urls = [playList valueForKey:@"songUrl"];
     return [self initWithPlayList:urls];
 }
 
 - (id)initWithObjectsPlayList:(NSArray<id<MKRRadioResorce>> *)playList playMode:(MKRAVPlayerPlayMode)playMode{
-    NSMutableArray *urls = [NSMutableArray arrayWithArray:[self.playList valueForKey:@"songUrl"]];
-    for (NSInteger i = 0; i<urls.count; i++) {
-        if ([urls[i] isEqual:[NSNull null]]) {
-            [urls replaceObjectAtIndex:i withObject:@""];
-        }
-    }
-    self.resourcePlayList = [NSMutableArray arrayWithArray:playList];
+    NSArray *urls = [playList valueForKey:@"songUrl"];
     return [self initWithPlayList:urls playMode:playMode];
 }
 
@@ -130,16 +114,6 @@ NSURL * MKRUrlWithString(NSString *string){
     }
 }
 
-- (void)updateResourcePlayList:(NSArray<id<MKRRadioResorce>> *)playList{
-    NSMutableArray *urls = [NSMutableArray arrayWithArray:[self.playList valueForKey:@"songUrl"]];
-    for (NSInteger i = 0; i<urls.count; i++) {
-        if ([urls[i] isEqual:[NSNull null]]) {
-            [urls replaceObjectAtIndex:i withObject:@""];
-        }
-    }
-    self.playList = urls;
-}
-
 #pragma mark - 播放相关
 
 - (void)play{
@@ -169,7 +143,6 @@ NSURL * MKRUrlWithString(NSString *string){
         self.currentIndex = index;
         NSString *url = [self.playList objectAtIndex:index];
         self.playUrl = MKRUrlWithString(url);
-        self.currentResource = self.resourcePlayList[index];
         [self play];
     }
 }
@@ -421,7 +394,6 @@ NSURL * MKRUrlWithString(NSString *string){
         }
         [self resetPlayer];
         self.currentIndex = nextIndex;
-        self.currentResource = self.resourcePlayList[nextIndex];
         self.currentStatus = nil;
         NSString *url = [self.playList objectAtIndex:self.currentIndex];
         self.playUrl = MKRUrlWithString(url);

+ 1 - 1
upgrade.sh

@@ -1 +1 @@
-fastlane ManagerLib tag:0.0.2 target:MKRRadioManager
+fastlane ManagerLib tag:0.0.1 target:MKRRadioManager