17 Commits

Author SHA1 Message Date
gem
f9e81e1bf2 no message 2025-02-20 11:49:06 +08:00
gem
5640597418 no message 2025-02-20 11:48:16 +08:00
gem
6e4beb201d no message 2025-02-19 16:15:36 +08:00
gem
a895048566 no message 2025-02-19 14:58:40 +08:00
gem
88929d0eeb no message 2025-02-18 17:43:12 +08:00
gem
7d2e3fb340 no message 2025-02-18 16:49:19 +08:00
gem
5ac91c16fc no message 2025-02-18 11:26:04 +08:00
gem
dc57df025d no message 2025-02-18 10:40:14 +08:00
gem
7a572ff1f3 no message 2025-02-17 16:24:28 +08:00
gem
2bf1721fd4 no message 2025-02-17 15:56:00 +08:00
gem
0466c439dc no message 2025-02-14 16:22:11 +08:00
gem
bfb7cb514e no message 2025-02-12 15:02:10 +08:00
gem
1ba37a35a9 no message 2025-02-11 14:39:40 +08:00
gem
1a6a94a108 no message 2025-02-10 18:05:05 +08:00
gem
2edbea5309 no message 2025-02-10 15:43:14 +08:00
gem
724a1acb69 no message 2025-02-06 10:14:34 +08:00
gem
655a2fe70c no message 2025-01-22 11:35:49 +08:00
68 changed files with 10963 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'cocos_view_pod' s.name = 'cocos_view_pod'
s.version = '0.1.4' s.version = '0.1.22'
s.summary = 'A short description of cocos_view_pod.' s.summary = 'A short description of cocos_view_pod.'
# This description is used to generate tags and improve search results. # This description is used to generate tags and improve search results.
@@ -28,12 +28,27 @@ TODO: Add long description of the pod here.
s.source = { :git => 'https://gitea.sdws.shop/xim/flutter_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.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '14.5' s.ios.deployment_target = '14'
s.resource_bundles = {
'cocos_main_bundle' => ['cocos_view_pod/Assets/*']
}
s.source_files = 'cocos_view_pod/Classes/**/*' #s.static_framework = true
s.source_files = 'cocos_view_pod/Classes/**/*.{h,m,mm}'
s.vendored_libraries = "cocos_view_pod/Libs/**/*.a" 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.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.library = "z","sqlite3","iconv"
s.user_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES'}
s.module_name = 'cocos_view_pod'
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '-Wl,-ld_classic,-no_platform_version,-ObjC',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'ENABLE_BITCODE' => 'NO',
'CLANG_CXX_LIBRARY' => 'libc++',
'CODE_SIGNING_ALLOWED' => 'NO',
'CODE_SIGNING_REQUIRED' => 'NO',
}
# s.resource_bundles = { # s.resource_bundles = {
# 'cocos_view_pod' => ['cocos_view_pod/Assets/*.png'] # 'cocos_view_pod' => ['cocos_view_pod/Assets/*.png']

View File

@@ -0,0 +1 @@
{"importBase":"import","nativeBase":"native","name":"internal","deps":[],"uuids":["08HKsx3M1CjoZS8kBMyBxH","0b2bbb7a0","142hclxMJCtKsI7grraJiz","173rzDCmtLirAL3Fi4hVge","1cAq5vRJJJFbj4dJKjseTN","1dCO9ipQNM4ouaRskIc/fT","509DSLyINOL48RziM7hZ+h","51HSYzCadL3axC93gDISSz","5dRaoA4GRJOLMUQmXwwiWM","609xlc7CpF67qUiVX2DoHQ","71Hr4R9nNM2ZqDY8YLpUxb","784FhKQ0NHJ4834U5lwqLb","81Dpbk5FZEaJtZ9OjzlzLA","87HDtsc3lBnb2jeUsjmrkN","8bvbzdXNRBALbVt8liW2EH","93Yf2QulJPhKqTboeP1XbK","97CwWYvLBHFJH7LoFEDczY","97G9sjP/ZD67QiHDAWWjZj","a3zQCfCrBCDZJ4uf2rk5u8","b51hFfA3BNfKrTwZTMcc+Y","baIUdvKGZPgZxNbjWTFuRI","bc1kzGLdlD9qu+ZjGNMyAy","c0FDkGmu1EfpQ2KuhRLRtu","c2chXYaDVLaL+7verGEAwE","d1NGQ2rJZCcbhjH0/erZWw","d9MFkNu5JMyIvRI80Cf57f","ddOhRNq39B8IK4LkOgkNSW","e9qpo+WytKx6LHBz3isrJP","ef6OKj6s5Ce7Txy4qTfsd9","f0QW5oAgBLd6kmT50W5JTa","f9KAbXF2hEP6/oErzehNDw","fdoJXLgx1GAa2UhGATlj3o"],"paths":{"0":["db:/internal/default_materials/default-trail-material",1],"2":["db:/internal/default_materials/default-particle-gpu-material",1],"3":["db:/internal/effects/particles/builtin-particle-trail",0],"4":["db:/internal/effects/internal/builtin-graphics",0],"5":["db:/internal/effects/legacy/terrain",0],"6":["db:/internal/default_materials/ui-alpha-test-material",1],"7":["db:/internal/effects/pipeline/skybox",0],"8":["db:/internal/effects/pipeline/deferred-lighting",0],"9":["db:/internal/effects/for2d/builtin-sprite",0],"10":["db:/internal/effects/particles/builtin-billboard",0],"11":["db:/internal/default_materials/default-billboard-material",1],"12":["db:/internal/effects/internal/builtin-clear-stencil",0],"13":["db:/internal/effects/util/profiler",0],"14":["db:/internal/default_materials/default-clear-stencil",1],"15":["db:/internal/effects/pipeline/planar-shadow",0],"16":["db:/internal/effects/util/splash-screen",0],"17":["db:/internal/effects/particles/builtin-particle-gpu",0],"18":["db:/internal/effects/builtin-unlit",0],"19":["db:/internal/default_materials/default-spine-material",1],"20":["db:/internal/physics/default-physics-material",2],"21":["db:/internal/default_materials/missing-effect-material",1],"22":["db:/internal/default_materials/default-particle-material",1],"23":["db:/internal/effects/for2d/builtin-spine",0],"24":["db:/internal/effects/particles/builtin-particle",0],"25":["db:/internal/default_materials/missing-material",1],"26":["db:/internal/default_materials/ui-sprite-gray-alpha-sep-material",1],"27":["db:/internal/default_materials/ui-base-material",1],"28":["db:/internal/default_materials/ui-sprite-gray-material",1],"29":["db:/internal/default_materials/ui-graphics-material",1],"30":["db:/internal/default_materials/ui-sprite-alpha-sep-material",1],"31":["db:/internal/default_materials/ui-sprite-material",1]},"scenes":{},"packs":{"0b2bbb7a0":[0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"versions":{"import":[],"native":[]},"redirect":[],"debug":false,"extensionMap":{},"hasPreloadScript":true,"dependencyRelationships":{},"types":["cc.EffectAsset","cc.Material","cc.PhysicsMaterial"]}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,20 @@
System.register("chunks:///_virtual/internal",[],(function(){return{execute:function(){}}}));
(function(r) {
r('virtual:///prerequisite-imports/internal', 'chunks:///_virtual/internal');
})(function(mid, cid) {
System.register(mid, [cid], function (_export, _context) {
return {
setters: [function(_m) {
var _exportObj = {};
for (var _key in _m) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
}
_export(_exportObj);
}],
execute: function () { }
};
});
});

View File

@@ -0,0 +1 @@
{"importBase":"import","nativeBase":"native","name":"main","deps":["internal"],"uuids":["010d3a23c","04b964e93","070e260c2","07GNmWOb9KtLtjSWZm/vRn","7cPn+rex5IZbqEPPgbSLn7","baIUdvKGZPgZxNbjWTFuRI","07GNmWOb9KtLtjSWZm/vRn@6c48a","0a40fbfd0","0a9f2beb8","0asxQqaWhAc5WvAmvDsjYj@0e750","0asxQqaWhAc5WvAmvDsjYj@1332c","0asxQqaWhAc5WvAmvDsjYj@2b0a8","0asxQqaWhAc5WvAmvDsjYj@2df3a","0asxQqaWhAc5WvAmvDsjYj@426f2","0asxQqaWhAc5WvAmvDsjYj@4a7d8","0asxQqaWhAc5WvAmvDsjYj@4d16f","0asxQqaWhAc5WvAmvDsjYj@71919","0asxQqaWhAc5WvAmvDsjYj@754a2","0asxQqaWhAc5WvAmvDsjYj@ef86b","0asxQqaWhAc5WvAmvDsjYj@efe84","0d0d3c8df","1brw/JvvpFnIvdrxpFCgMZ","4fTEo0LQhKTZFpg0186Czu","5a8gG1WVFOLKgfrEqtkTLL@b47c0","5a8gG1WVFOLKgfrEqtkTLL@b47c0@40c10","5a8gG1WVFOLKgfrEqtkTLL@b47c0@74afd","5a8gG1WVFOLKgfrEqtkTLL@b47c0@7d38f","5a8gG1WVFOLKgfrEqtkTLL@b47c0@8fd34","5a8gG1WVFOLKgfrEqtkTLL@b47c0@bb97f","5a8gG1WVFOLKgfrEqtkTLL@b47c0@e9a6d","5eTUjEDjRFr6JoiUhRl+i8","6fiRp7WghI5phB3bNkrIax","6fiRp7WghI5phB3bNkrIax@6c48a","700zdYHB5CTbCr6sdBBVm/","7b+d9AS8lOJYywmlAPlJEC","8aWN3s9DdAuY7AH8h96X+1","8eBHF49hxDIqL20a2yi2ri","955bAq4zhCPL27F0htsdnr","955bAq4zhCPL27F0htsdnr@6c48a","a1Vfk7d2lMpLdfsT5SGThZ","a3zQCfCrBCDZJ4uf2rk5u8","a7YStUNeNCOKGpSntUY1g5","aa3gnuj51BPKnojGhupeFg@438fe","aa3gnuj51BPKnojGhupeFg@73b7f","aa3gnuj51BPKnojGhupeFg@ef5e1","aeGN7qxuBKPb9w7lUz+bqH","aeGN7qxuBKPb9w7lUz+bqH@6c48a","b6mOVasAtJh6i0r4PN3Fn3","c5CD51rS5OqYsz3udImVsA","c5CD51rS5OqYsz3udImVsA@6c48a","ccw6dVfT1DBKo7ykeS152f","cfxTxOeVZIK668P7Hc027v","e3VTytLxVCk4Waj0PHgPKJ@18751","e3VTytLxVCk4Waj0PHgPKJ@30732","e3VTytLxVCk4Waj0PHgPKJ@39f7b","e3VTytLxVCk4Waj0PHgPKJ@4b929","e3VTytLxVCk4Waj0PHgPKJ@73b7f","e3VTytLxVCk4Waj0PHgPKJ@75ee4","e3VTytLxVCk4Waj0PHgPKJ@a72ab","e3VTytLxVCk4Waj0PHgPKJ@da6f3","e3VTytLxVCk4Waj0PHgPKJ@f1394","fdjsU2o1RKF5x0TziDw3jI"],"paths":{"4":["db:/assets/scene/main",0],"5":["db:/internal/physics/default-physics-material",2],"61":["db:/internal/default_renderpipeline/builtin-forward",1]},"scenes":{"db://assets/scene/main.scene":4},"packs":{"010d3a23c":[34,41],"04b964e93":[9,10,11,13,14,15,16,17,18,19,4,35,36,39,50,51,52,53,54,55,57,58,59,60],"070e260c2":[30,42,44,47],"0a40fbfd0":[12,32,38,6,46,49],"0a9f2beb8":[21,33],"0d0d3c8df":[23,24,25,26,27,28,29]},"versions":{"import":[],"native":[]},"redirect":[40,"0",5,"0"],"debug":false,"extensionMap":{".ccon":[43,56]},"hasPreloadScript":true,"dependencyRelationships":{},"types":["cc.SceneAsset","cc.RenderPipeline","cc.PhysicsMaterial"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@@ -0,0 +1 @@
{"type":"cc.Texture2D","data":[["2,2,0,0,0,0",["4fTEo0LQhKTZFpg0186Czu"]],["2,2,0,0,0,0",["6fiRp7WghI5phB3bNkrIax"]],["2,2,0,0,0,0",["955bAq4zhCPL27F0htsdnr"]],["2,2,0,0,0,0",["07GNmWOb9KtLtjSWZm/vRn"]],["2,2,0,0,2,0",["aeGN7qxuBKPb9w7lUz+bqH"]],["2,2,0,0,0,0",["c5CD51rS5OqYsz3udImVsA"]]]}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset","cc.TextureCube"],0,[[[{"base":"2,2,0,0,2,1","rgbe":false,"mipmaps":[{"front":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@e9a6d","back":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@40c10","left":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@8fd34","right":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@74afd","top":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@bb97f","bottom":"5a8gG1WVFOLKgfrEqtkTLL@b47c0@7d38f"}]}],[1],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]]]

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
[1,0,0,[["RenderQueueDesc",["stages","isTransparent","sortMode"],0],["ForwardPipeline",["_flows"],3,9],["ShadowFlow",["_name","_stages"],2,9],["ShadowStage",["_name"],2],["ForwardFlow",["_name","_priority","_stages"],1,9],["ForwardStage",["_name","renderQueues"],2,9]],[[1,0,1],[2,0,1,2],[3,0,2],[4,0,1,2,3],[5,0,1,2],[0,0,2],[0,1,2,0,4]],[[0,[[1,"ShadowFlow",[[2,"ShadowStage"]]],[3,"ForwardFlow",1,[[4,"ForwardStage",[[5,["default"]],[6,true,1,["default"]]]]]]]]],0,0,[],[],[]]

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
// SystemJS support.
window.self = window;
require("src/system.bundle.js");
const importMapJson = jsb.fileUtils.getStringFromFile("src/import-map.json");
const importMap = JSON.parse(importMapJson);
System.warmup({
importMap,
importMapUrl: 'src/import-map.json',
defaultHandler: (urlNoSchema) => {
require(urlNoSchema.startsWith('/') ? urlNoSchema.substr(1) : urlNoSchema);
},
});
System.import('./src/application.js')
.then(({ Application }) => {
return new Application();
}).then((application) => {
return System.import('cc').then((cc) => {
require('jsb-adapter/engine-adapter.js');
return application.init(cc);
}).then(() => {
return application.start();
});
}).catch((err) => {
console.error(err.toString() + ', stack: ' + err.stack);
});

View File

@@ -0,0 +1,43 @@
System.register([], function (_export, _context) {
"use strict";
var Application, cc;
_export("Application", void 0);
return {
setters: [],
execute: function () {
_export("Application", Application = class Application {
constructor() {
this.settingsPath = 'src/settings.json';
this.showFPS = false;
}
init(engine) {
cc = engine;
cc.game.onPostBaseInitDelegate.add(this.onPostInitBase.bind(this));
cc.game.onPostSubsystemInitDelegate.add(this.onPostSystemInit.bind(this));
}
onPostInitBase() {
// cc.settings.overrideSettings('assets', 'server', '');
// do custom logic
}
onPostSystemInit() {
// do custom logic
}
start() {
return cc.game.init({
debugMode: false ? cc.DebugMode.INFO : cc.DebugMode.ERROR,
settingsPath: this.settingsPath,
overrideSettings: {
// assets: {
// preloadBundles: [{ bundle: 'main', version: 'xxx' }],
// }
profiling: {
showFPS: this.showFPS
}
}
}).then(() => cc.game.run());
}
});
}
};
});

View File

@@ -0,0 +1,4 @@
System.register([], function(_export, _context) { return { execute: function () {
System.register("chunks:///_virtual/rollupPluginModLoBabelHelpers.js",[],(function(e){return{execute:function(){e({applyDecoratedDescriptor:function(e,i,r,n,l){var t={};Object.keys(n).forEach((function(e){t[e]=n[e]})),t.enumerable=!!t.enumerable,t.configurable=!!t.configurable,("value"in t||t.initializer)&&(t.writable=!0);t=r.slice().reverse().reduce((function(r,n){return n(e,i,r)||r}),t),l&&void 0!==t.initializer&&(t.value=t.initializer?t.initializer.call(l):void 0,t.initializer=void 0);void 0===t.initializer&&(Object.defineProperty(e,i,t),t=null);return t},initializerDefineProperty:function(e,i,r,n){if(!r)return;Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}})}}}));
} }; });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
System.register([],(function(t){"use strict";return{execute:function(){t("default",(function(){}))}}}));

View File

@@ -0,0 +1 @@
System.register([],(function(e){"use strict";return{execute:function(){e("default","")}}}));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"imports":{"cc":"./cocos-js/cc.js"}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7,22 +7,26 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "platform/ios/AppDelegateBridge.h"
@interface dcocos_bridge : NSObject @interface dcocos_bridge : NSObject
+ (dcocos_bridge *)instance; + (dcocos_bridge *)instance;
/**
Configures Cocos2d-x search paths by using the previously set custom resource path.
If no custom path has been set, it defaults to @"/hhhh".
*/
- (void)configureCocos2dSearchPaths:(NSString *)customResourcePath;
;
- (void)initPlatform; - (void)initPlatform;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
- (void)applicationWillResignActive:(UIApplication *)application; - (void)applicationWillResignActive:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application; - (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillTerminate:(UIApplication *)application; - (void)applicationWillTerminate:(UIApplication *)application;
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator; - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
- (UIView*)getCocosView; - (UIView *)getCocosView;
- (void)setCocosView:(UIView*)view; - (void)setCocosView:(UIView *)view;
- (float)getCocosPixelRatio; - (float)getCocosPixelRatio;
+ (void)callS:(NSString *)funcName args:(NSString *)args; + (void)callS:(NSString *)funcName args:(NSString *)args;
@property(nonatomic, readonly) AppDelegateBridge *appDelegateBridge;
@end @end

Binary file not shown.