Is there a way to declare a White list of binding classes for an .aar library?

MohammadHadipourMohammadHadipour USMember
edited October 2017 in General

I'm trying to bind this Sdk library and use it in my xamarin forms application:

storage.backtory.com/tapsell-server/sdk/tapsell-android-3.0.34.aar

I only needed to add following settings on android project:

<activity android:name="ir.tapsell.sdk.TapsellAdActivity" 
          android:configChanges="keyboardHidden|orientation|screenSize" >

to manifest file on android and:

    Tapsell.initialize(context, appKey);
    Tapsell.requestAd(context, zoneId, options, new TapsellAdRequestListener() {
        @Override
        public void onError (String error)
        {
        }

        @Override
        public void onAdAvailable (TapsellAd ad)
        {
        ad. show();
        }

        @Override
        public void onNoAdAvailable ()
        {
        }

        @Override
        public void onNoNetwork ()
        {
        }

        @Override
        public void onExpiring (TapsellAd ad)
        {
        }
    });

in the onCreate of my main activity.
As you can see I only use TapsellAdActivity,Tapsell classes directly. My question is this:
Should I remove all other classes with remove-node in metadata.xml?
The other problem is that c# wrapper does not bind all classes and methods in .dll file.
Is there a better way to use this library?

Sign In or Register to comment.