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;
return @(_identifier).stringValue;
}
- (instancetype)init
- (void)_setup
{
if(self = [super init]){
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:@selector(flutterViewDidShow:) name:@"flutter_boost_container_showed"
selector:sel
name:notiName
object:nil];
}
- (instancetype)init
{
if(self = [super init]){
[self _setup];
}
return self;
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
if (self = [super initWithCoder: aDecoder]) {
[self _setup];
}
return self;
}
......
......@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
A new Flutter plugin make flutter better to use!
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.license = { :file => '../LICENSE.md' }
s.author = { 'Alibaba Xianyu' => 'email@example.com' }
s.source = { :path => '.' }
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