Saturday, November 5, 2022
HomeGame DevelopmentReplace to Billing Library 4(sdkbox) - Third-Get together

Replace to Billing Library 4(sdkbox) – Third-Get together


Hello @chuoihottieu, are you certain you haven’t modified the rest in your replace? Out of your logs it’s exhausting to say what’s going on.

@bluewind00 Thanks for sharing, it’s a superb “base” for the longer term enhancements. Please make it public once more :slight_smile:


@PCCSOARES
@kds

Thanks.
I make it public the repository once more.
Once more, it is a pattern and isn’t assured to work.



2 Likes

hello @kds @bluewind00
i exchange sdkbox::IAP with mingos::IAP observe the directions, it’s work perfert on system assist native arm64-v8a, however crash on armeabi-v7a with out cause.
for instance Samsung Galaxy A13 5G: ABI assist: armeabi-v7a, armeabi.
In any case thanks you guys atleast i upgraded to billing v4 earlier than 1.11.2022!

chuoihottieu
Simply exchange
PROP_APP_ABI=arm64-v8a
with
PROP_APP_ABI=armeabi-v7a:arm64-v8a
in ‘proj.androidgradle.properties’

bluewind00, thanks very a lot so much (you might be our hero); I’ve up to date your code a bit, to get amount of bought merchandise; it really works even on Android 4.4.2. (debug and launch)

…Now I’ll attempt to insert it into my venture (appears not really easy).

These are information that may be copied immediately into your venture.

C++:

Lessons/frequent/JsonParser.cpp
Lessons/frequent/JsonParser.h
Lessons/dropbox/json11/json11.cpp
Lessons/dropbox/json11/json11.hpp
Lessons/iap/MingosIAP.h
Lessons/platform/android/Java_iap_PurchaseEventListener.cpp
Lessons/platform/android/MingosIAP.cpp

Java:

proj.android/app/src/iap/Product.java
proj.android/app/src/iap/PurchaseEventListener.java
proj.android/app/src/iap/PurchaseManager.java

Subsequent is a set of information that will battle together with your venture’s code.
Please incorporate the required elements of your venture.

proj.android/app/src/org/cocos2dx/cpp/AppActivity.java
proj.android/construct.gradle
proj.android/app/construct.gradle
proj.android/app/proguard-rules.professional



2 Likes

After two days of crashes and black screens, eventually appears I used you code. It was exhausting (for me), as a result of:

  1. I used separate object (in my c++ code):

sdkbox::IAP::setListener(m_IAP_obj); // m_IAP_obj class extends : sdkbox::IAPListener

And you utilize the principle class for the listener (object) :

class SampleScene : public cocos2d::Scene, public mingos::IAPEventListener { // your code
class HelloWorld : public cocos2d::Layer // my previous code

  1. Additionally there are tiny distinction in:

proj.androidappsrcorgcocos2dxcppAppActivity.java
:
public class AppActivity extends Cocos2dxActivity { // your code
public class AppActivity extends com.sdkbox.plugin.SDKBoxActivity { // my code

mPurchaseManager = new PurchaseManager(this); // is it doable to alter this file to make use of as listener not AppActivity class (object), however one thing else?

Thanks to your nice job! :slight_smile: Due to you, perhaps our Cocos video games can be alive for some extra time.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments