This commit is contained in:
gem
2025-01-21 16:43:11 +08:00
parent 6edba8c6e7
commit 0f69ac4bd6
39 changed files with 55 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
{
"name": "cocos_view_pod",
"version": "0.1.0",
"summary": "A short description of cocos_view_pod.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/gem/cocos_view_pod",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"gem": "cc@gmail2.com"
},
"source": {
"git": "https://github.com/gem/cocos_view_pod.git",
"tag": "0.1.0"
},
"platforms": {
"ios": "10.0"
},
"source_files": "cocos_view_pod/Classes/**/*"
}

View File

@@ -25,12 +25,15 @@ TODO: Add long description of the pod here.
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'gem' => 'cc@gmail2.com' }
s.source = { :git => 'https://github.com/gem/cocos_view_pod.git', :tag => s.version.to_s }
s.source = { :git => 'https://gitea.sdws.shop/xim/flutter_cocos_view_pod.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '10.0'
s.ios.deployment_target = '14.0'
s.source_files = 'cocos_view_pod/Classes/**/*'
s.vendored_libraries = "cocos_view_pod/Libs/**/*.a"
s.frameworks = 'AudioToolbox', 'AVFoundation', 'AVKit', 'CoreVideo', 'CoreMotion', 'CFNetwork', 'CoreMedia', 'CoreText', 'CoreGraphics', 'GameController', 'JavaScriptCore', 'Metal', 'MetalKit', 'MetalPerformanceShaders', 'OpenAL', 'OpenGLES', 'QuartzCore', 'SystemConfiguration', 'Security', 'UIKit', 'WebKit'
s.library = 'sqlite3', "iconv", "z"
# s.resource_bundles = {
# 'cocos_view_pod' => ['cocos_view_pod/Assets/*.png']

View File

@@ -0,0 +1,28 @@
//
// dcocos_bridge.h
// dcocos_bridge
//
// Created by gem on 29/8/2024.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "platform/ios/AppDelegateBridge.h"
@interface dcocos_bridge : NSObject
+ (dcocos_bridge *)instance;
- (void)initPlatform;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
- (void)applicationWillResignActive:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillTerminate:(UIApplication *)application;
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
- (UIView*)getCocosView;
- (void)setCocosView:(UIView*)view;
- (float)getCocosPixelRatio;
+ (void)callS:(NSString *)funcName args:(NSString *)args;
@property(nonatomic, readonly) AppDelegateBridge *appDelegateBridge;
@end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
cocos_view_pod/Libs/libwebp.a Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.