Git Product home page Git Product logo

senspark / ee-x Goto Github PK

View Code? Open in Web Editor NEW
16.0 7.0 8.0 392.52 MB

Cross-platform library for Cocos2d-x and Unity

Home Page: https://senspark.github.io/ee-x/

License: MIT License

C++ 38.65% Java 17.88% Makefile 0.14% Objective-C 2.43% Objective-C++ 0.26% Ruby 0.66% CMake 0.11% Shell 0.13% GLSL 0.04% Swift 8.47% Kotlin 12.38% C# 13.39% C 0.01% TypeScript 5.44%
cocos2d-x cpp cross-platform utility cocos2d unity

ee-x's Introduction

EE-X library

Build StatusCodacy Badge

Cross-platform library for cocos2d-x

Visit https://senspark.github.io/ee-x for installation methods and configuration options

Requirements

  • Android NDK r21+
  • Android Studio 4.0+
  • Xcode 11+

Plugins

  • AdMob
  • AppLovin
  • Facebook Ads
  • ironSource
  • Unity Ads
  • Vungle
  • Firebase Analytics
  • Firebase Crashlytics

ee-x's People

Contributors

enrevol avatar hailhsenspark avatar hoangtuduc avatar huynhngockhoi avatar lahmho avatar ndpduc avatar pxhan87 avatar quynhnv113 avatar taidasenspark avatar vinhnh2508 avatar xuonght avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ee-x's Issues

IronSource Error

I got this error in implementing IronSource Video AD.

API: showRV with placement name DefaultRewardedVideo
Assertion failed: (successful), function show, file /Users/macintoshi/Documents/Work/Sudoku/Sudoku/proj.ios_mac/Pods/ee-x/src/ee/ironsource/internal/IronSourceRewardedVideo.cpp, line 52.

Please help me.

include error in Android.

I am trying to add the EE-X library to my Android game.
//-----------------------------------------------------------------
Getting started
Android
Clone the repository.

Let CLONE_PATH be where you cloned the repository to.

Modify Android.mk:
$(call import-add-path, CLONE_PATH)
$(call import-module, ee-x/jni)

Modify main.cpp:
#include <jni.h>
#include <ee/Core.hpp>

void cocos_android_app_init(JNIEnv* env) {
...
JavaVm* vm;
env->GetJavaVm(&vm);
ee::JniUtils::setVm(vm);
}
//----------------------------------------------------------------

But I have got the error in main.cpp
#include <ee/Core.hpp>
I can't include Core.hpp

main

Please let me know how to resolve this issue.

getIronSource() Error in Android

I am trying to add the IronSource in Android app.
Building app is success.
But the android app crashes when I call testIronSourceRewardedVideo().

void testIronSourceRewardedVideo() {
auto rewardedVideo =
ee::runOnUiThreadAndWaitResult<std::shared_ptree::IRewardedVideo>([] {
sudoku::FunctionLogger logger("Create ironSource rewarded video");
return getIronSource()->createRewardedVideo(getIronSourceRewardedVideoId());
});

float delay = 0.0f;
sudoku::scheduleOnce(delay += 1.0f, [rewardedVideo] {
    ee::runOnUiThread([rewardedVideo] {
        sudoku::FunctionLogger logger("Show ironSource rewarded video");
        rewardedVideo->show();
    });
});


rewardedVideo->setResultCallback([](bool success){
});

}

The following error has occurred:

//-------------------------------------------------

08-06 21:09:22.116 23033-23123/com.handpatton.sudoku E/com.ee.core.MessageBridge: call: Utils_isMainThread doesn't exist!

--------- beginning of crash

08-06 21:09:22.117 23033-23123/com.handpatton.sudoku A/libc: /Users/macintoshi/Documents/Work/Sudoku/Sudoku-Android-2/Sudoku/proj.android/ee-x/jni/../src/ee/core/Utils.cpp:70: bool ee::core::toBool(const std::string &): assertion "value == "true" || value == "false"" failed
08-06 21:09:41.519 23033-23123/com.handpatton.sudoku A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 23123 (GLThread 249)

//-------------------------------------------------

Please let me know how to fix this error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.