From 59dc9e532c7689788941d7f67fb8de6d103da283 Mon Sep 17 00:00:00 2001 From: gentlejo Date: Sun, 19 Aug 2018 11:01:28 +0900 Subject: [PATCH] Fix undecleared class issue on iOS --- ios/Classes/StereoPlugin.h | 4 ++-- ios/Classes/StereoPlugin.m | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ios/Classes/StereoPlugin.h b/ios/Classes/StereoPlugin.h index b248a41..e1902de 100644 --- a/ios/Classes/StereoPlugin.h +++ b/ios/Classes/StereoPlugin.h @@ -2,8 +2,8 @@ #import #import -@interface StereoPlugin : NSObject +@interface STStereoPlugin : NSObject -- (StereoPlugin * _Nonnull)initWithChannel:(FlutterMethodChannel * _Nonnull)channel; +- (STStereoPlugin * _Nonnull)initWithChannel:(FlutterMethodChannel * _Nonnull)channel; @end diff --git a/ios/Classes/StereoPlugin.m b/ios/Classes/StereoPlugin.m index 316d49b..f5a0112 100644 --- a/ios/Classes/StereoPlugin.m +++ b/ios/Classes/StereoPlugin.m @@ -5,7 +5,7 @@ #import "STMediaPickerController.h" #import "StereoPlugin.h" -@implementation StereoPlugin { +@implementation STStereoPlugin { FlutterMethodChannel *_channel; FlutterViewController *_flutterController; BOOL _isPlaying; @@ -16,13 +16,13 @@ @implementation StereoPlugin { + (void)registerWithRegistrar:(NSObject *)registrar { FlutterMethodChannel* channel = [FlutterMethodChannel methodChannelWithName:@"com.twofind.stereo" binaryMessenger:[registrar messenger]]; - StereoPlugin* instance = [[StereoPlugin alloc] initWithChannel:channel]; + STStereoPlugin* instance = [[STStereoPlugin alloc] initWithChannel:channel]; [registrar addMethodCallDelegate:instance channel:channel]; [registrar addApplicationDelegate:instance]; } -- (StereoPlugin *)initWithChannel:(FlutterMethodChannel * _Nonnull)channel { +- (STStereoPlugin *)initWithChannel:(FlutterMethodChannel * _Nonnull)channel { self = [super init]; if (self) {