Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cocos free version? #4

Open
intmainreturn00 opened this issue May 5, 2017 · 4 comments
Open

Cocos free version? #4

intmainreturn00 opened this issue May 5, 2017 · 4 comments

Comments

@intmainreturn00
Copy link

Is there is already any port without bindings to cocos headers?

Seems to me that I can do cocos free version with few additional headers, but want to ask first.

Also, greate lib)
ps. and sorry for posting from wrong account first.

@intmainreturn00
Copy link
Author

  • Vec3 math we can elliminate simply be removing one methods returning it. its fine
  • we need three platform/ files {CCPlatformConfig.h, CCPlatformDefine.h, CCPlatformMacros.h } - they seems to have no additional dependencies.
  • we need base/ccUTF8.h for a cocos2d::StringUtils::newStringUTFJNI - thats a little bit more problematic, since it adds CCConsole.h, ConvertUTF.h, platform/CCCommon.h...helll. maybe I can rewrite newStringUTFJNI method.

@fnz
Copy link
Owner

fnz commented May 5, 2017

Thanks.

I was thinking about making such a version, but failed to find commonly used jni helper implementation. However it was a long time ago and I didn't spend much time on it. I bet Android is the most popular place to use jni, so the NDK documentation seems worth checking.

@intmainreturn00
Copy link
Author

Ok, maybe on weekends, if yout don't mind, I'll try to work it out =)
Not every of my proj use cocos, but almost every use jni.

@yamauta77
Copy link

yamauta77 commented Dec 30, 2021

Hi all, there is a cocos freee version of easyjni
https://github.com/cocosbox/ccpkgbridge-demo/tree/master/app/src/main/cpp.

I hope it can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants