Commit e979d912 authored by Jidong Chen's avatar Jidong Chen Committed by GitHub

Merge pull request #125 from FinderTiwk/master

iOS集成问题修复
parents 1ffd244a f3383187
...@@ -86,15 +86,31 @@ static NSUInteger kInstanceCounter = 0; ...@@ -86,15 +86,31 @@ static NSUInteger kInstanceCounter = 0;
return @(_identifier).stringValue; return @(_identifier).stringValue;
} }
- (void)_setup
{
static long long sCounter = 0;
_identifier = sCounter++;
[self.class instanceCounterIncrease];
SEL sel = @selector(flutterViewDidShow:);
NSString *notiName = @"flutter_boost_container_showed";
[NSNotificationCenter.defaultCenter addObserver:self
selector:sel
name:notiName
object:nil];
}
- (instancetype)init - (instancetype)init
{ {
if(self = [super init]){ if(self = [super init]){
static long long sCounter = 0; [self _setup];
_identifier = sCounter++; }
[self.class instanceCounterIncrease]; return self;
[NSNotificationCenter.defaultCenter addObserver:self }
selector:@selector(flutterViewDidShow:) name:@"flutter_boost_container_showed"
object:nil]; - (instancetype)initWithCoder:(NSCoder *)aDecoder{
if (self = [super initWithCoder: aDecoder]) {
[self _setup];
} }
return self; return self;
} }
......
...@@ -9,7 +9,7 @@ Pod::Spec.new do |s| ...@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
A new Flutter plugin make flutter better to use! A new Flutter plugin make flutter better to use!
DESC DESC
s.homepage = 'http://example.com' s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' } s.license = { :file => '../LICENSE.md' }
s.author = { 'Alibaba Xianyu' => 'email@example.com' } s.author = { 'Alibaba Xianyu' => 'email@example.com' }
s.source = { :path => '.' } s.source = { :path => '.' }
s.source_files = 'Classes/**/*.{h,m,mm}' s.source_files = 'Classes/**/*.{h,m,mm}'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment