carlosmarti / GodotAppodeal

Ads Module for Godot engine 2.0
16 stars 12 forks source link

example #1

Closed badrazizi closed 8 years ago

badrazizi commented 8 years ago

@carlosmarti could you add usage example

carlosmarti commented 8 years ago

Sure, I'll find some time tomorrow to get that in.

Shin-NiL commented 8 years ago

+1 vote for an example here ;)

EDIT1: I'm trying to build godot with GodotAppodeal module. So far I need to update config.py to find android/sdk/applovin-6.1.4.jar file. But I'm getting the following error running ant building:

-compile:
    [javac] Compiling 4 source files to /home/shinnil/dev/godot/platform/android/java/bin/classes
    [javac] /home/shinnil/dev/godot/platform/android/java/src/com/android/godot/GodotAppodeal.java:48: initialize(android.app.Activity,java.lang.String,int) in com.appodeal.ads.Appodeal cannot be applied to (android.app.Activity,java.lang.String)
    [javac]                     Appodeal.initialize(activity, appKey);
    [javac]                             ^
    [javac] 1 error

BUILD FAILED
/home/shinnil/dev/android-sdk-linux/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/shinnil/dev/android-sdk-linux/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

Any tips there? Thanks!

EDIT2: It was missing an argument on GodotAppodeal.java, line 48:

                    Appodeal.initialize(activity, appKey);
badrazizi commented 8 years ago

true just compiled it and got the same error missing an argument

carlosmarti commented 8 years ago

I just added the example. I will look into that and will update the repository as soon as possible. That error has to be because of appodeal new library. I will check on how they changed the test.

EDIT @Shin-NiL I have updated the code to fix this issue make sure you get the new repo.

Shin-NiL commented 8 years ago

@carlosmarti Thanks!