CharcoalStyles / GooglePlayServices-OpenFL

Google Play Services extension for OpenFL
MIT License
10 stars 0 forks source link

GameActivity compilation problems. #3

Open Angeloss opened 10 years ago

Angeloss commented 10 years ago

My exported GameActivity doesn't get code with "::if::" conditionals like:

    ::if (ANDROID_PERMISSIONS != null)::::foreach ANDROID_PERMISSIONS::::if (__current__ ==     "com.android.vending.BILLING")::
    import com.example.android.trivialdrivesample.util.*;
    ::end::::end::::end::

or

    ::if (ANDROID_PERMISSIONS != null)::::foreach ANDROID_PERMISSIONS::::if (__current__ == "com.android.vending.BILLING")::
    public IabHelper mHelper;
    public boolean iapHelperSetup = false;
    private static HaxeObject iapCallback;
    ::end::::end::::end::

from the template, why?

CharcoalStyles commented 10 years ago

In the Export directory (where the Java source is put to build with the Android SDK), these files will have already gone through the preprocessor that reads these directives.

If you have added the <set name="androidBilling" /> line in your projexct.xml (before the <haxelib name="GPS" /> line), then the lines inside of the directives should be there.

Angeloss commented 10 years ago

I'm not using "androidBilling". Should i use it to get the directives ::if::? It's weird because the rest of the code is there, just the code with ::if::'s disappear.

Angeloss commented 10 years ago

I added "androidBilling" but now I get a runtime Exception: "Client Snapshot is not available in GooglePlayServices-OpenFL" and I don't know how to resolve it. Thank you.