diff --git a/ios/Classes/BetterPlayer.m b/ios/Classes/BetterPlayer.m index 2837ef6..35d93cf 100644 --- a/ios/Classes/BetterPlayer.m +++ b/ios/Classes/BetterPlayer.m @@ -3,7 +3,7 @@ // found in the LICENSE file. #import "BetterPlayer.h" -#import +#import static void* timeRangeContext = &timeRangeContext; static void* statusContext = &statusContext; diff --git a/ios/Classes/BetterPlayerPlugin.h b/ios/Classes/RiverPlayerPlugin.h similarity index 87% rename from ios/Classes/BetterPlayerPlugin.h rename to ios/Classes/RiverPlayerPlugin.h index 2854eda..62fd83c 100644 --- a/ios/Classes/BetterPlayerPlugin.h +++ b/ios/Classes/RiverPlayerPlugin.h @@ -11,10 +11,10 @@ #import "BetterPlayer.h" #import -@interface BetterPlayerPlugin : NSObject +@interface RiverPlayerPlugin : NSObject @property(readonly, weak, nonatomic) NSObject* messenger; @property(readonly, strong, nonatomic) NSMutableDictionary* players; @property(readonly, strong, nonatomic) NSObject* registrar; -@end \ No newline at end of file +@end diff --git a/ios/Classes/BetterPlayerPlugin.m b/ios/Classes/RiverPlayerPlugin.m similarity index 98% rename from ios/Classes/BetterPlayerPlugin.m rename to ios/Classes/RiverPlayerPlugin.m index ed50403..71b41d6 100644 --- a/ios/Classes/BetterPlayerPlugin.m +++ b/ios/Classes/RiverPlayerPlugin.m @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#import "BetterPlayerPlugin.h" -#import +#import "RiverPlayerPlugin.h" +#import #if !__has_feature(objc_arc) #error Code Requires ARC. #endif -@implementation BetterPlayerPlugin +@implementation RiverPlayerPlugin NSMutableDictionary* _dataSourceDict; NSMutableDictionary* _timeObserverIdDict; NSMutableDictionary* _artworkImageDict; @@ -25,7 +25,7 @@ + (void)registerWithRegistrar:(NSObject*)registrar { FlutterMethodChannel* channel = [FlutterMethodChannel methodChannelWithName:@"better_player_channel" binaryMessenger:[registrar messenger]]; - BetterPlayerPlugin* instance = [[BetterPlayerPlugin alloc] initWithRegistrar:registrar]; + RiverPlayerPlugin* instance = [[RiverPlayerPlugin alloc] initWithRegistrar:registrar]; [registrar addMethodCallDelegate:instance channel:channel]; //[registrar publish:instance]; [registrar registerViewFactory:instance withId:@"com.jhomlala/better_player"]; @@ -66,7 +66,7 @@ - (void)detachFromEngineForRegistrar:(NSObject*)registra return [FlutterStandardMessageCodec sharedInstance]; } -#pragma mark - BetterPlayerPlugin class +#pragma mark - RiverPlayerPlugin class - (int)newTextureId { texturesCount += 1; return texturesCount; diff --git a/ios/better_player.podspec b/ios/river_player.podspec similarity index 95% rename from ios/better_player.podspec rename to ios/river_player.podspec index 99210ca..47fb968 100644 --- a/ios/better_player.podspec +++ b/ios/river_player.podspec @@ -2,7 +2,7 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = 'better_player' + s.name = 'river_player' s.version = '0.0.1' s.summary = 'A new flutter plugin project.' s.description = <<-DESC