amap_core_fluttify

This commit is contained in:
2024-11-17 15:40:22 +08:00
commit 9e4da7cb58
112 changed files with 6773 additions and 0 deletions

View File

@ -0,0 +1,15 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import <Flutter/Flutter.h>
typedef void (^Handler)(NSObject <FlutterPluginRegistrar> *, id, FlutterResult);
@interface AmapCoreFluttifyPlugin : NSObject<FlutterPlugin>
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar;
@property(nonatomic) NSObject<FlutterPluginRegistrar>* registrar;
@end

View File

@ -0,0 +1,59 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapCoreFluttifyPlugin.h"
#import <objc/runtime.h>
#import "SubHandler/SubHandler0.h"
#import "SubHandler/Custom/SubHandlerCustom.h"
#import "FluttifyMessageCodec.h"
#import <AMapFoundationKit/AMapFoundationKit.h>
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AmapCoreFluttifyPlugin {
NSMutableDictionary<NSString*, Handler>* _handlerMap;
}
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar {
self = [super init];
if (self) {
_registrar = registrar;
//
_handlerMap = @{}.mutableCopy;
[_handlerMap addEntriesFromDictionary: [self getSubHandler0]];
[_handlerMap addEntriesFromDictionary: [self getSubHandlerCustom]];
}
return self;
}
+ (void)registerWithRegistrar:(NSObject <FlutterPluginRegistrar> *)registrar {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:@"me.yohom/amap_core_fluttify"
binaryMessenger:[registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
[registrar addMethodCallDelegate:[[AmapCoreFluttifyPlugin alloc] initWithFlutterPluginRegistrar:registrar]
channel:channel];
// View
}
// Method Handlers
- (void)handleMethodCall:(FlutterMethodCall *)methodCall result:(FlutterResult)methodResult {
if (_handlerMap[methodCall.method] != nil) {
_handlerMap[methodCall.method](_registrar, [methodCall arguments], methodResult);
} else {
methodResult(FlutterMethodNotImplemented);
}
}
@end

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapCoreFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapCoreFluttifyPlugin (SubHandlerCustom)
- (NSDictionary<NSString*, Handler>*) getSubHandlerCustom;
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,23 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "SubHandlerCustom.h"
#import "FluttifyMessageCodec.h"
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AmapCoreFluttifyPlugin (SubHandlerCustom)
- (NSDictionary<NSString*, Handler>*) getSubHandlerCustom {
__weak __typeof(self)weakSelf = self;
return @{
};
}
@end

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapCoreFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapCoreFluttifyPlugin (SubHandler0)
- (NSDictionary<NSString*, Handler>*) getSubHandler0;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,44 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'amap_core_fluttify'
s.version = '0.0.1'
s.summary = 'An `Amap Core` Map Component, Powered By `Fluttify`, A Compiler Generating Dart Bindings For Native SDK.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'https://github.com/fluttify-project'
s.license = { :file => '../LICENSE' }
s.author = { 'yohom' => 'yohombao@qq.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = ['Classes/**/*.h', 'Vendors/*.h'] # 只接收顶层的.h文件, 防止framework下面的.h文件被包含
s.dependency 'Flutter'
s.dependency 'foundation_fluttify'
# flutter plugin dependency
# sdk dependency
s.dependency 'AMapFoundation-NO-IDFA', '~> 1.6.9'
s.static_framework = true
s.ios.deployment_target = '8.0'
# include project framework
s.vendored_frameworks = 'Vendors/*.framework'
# include project .a
s.vendored_libraries = 'Vendors/*.a'
# ios system framework
s.frameworks = [
]
# ios system library
s.libraries = [
]
# resources
s.resources = 'Vendors/**/*.bundle'
# s.resource_bundles = {
# 'amap_core_fluttify' => ['Vendors/*.framework/*.bundle']
# }
end