Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ClearAds altpod #30

Closed
vminc opened this issue May 5, 2024 · 3 comments
Closed

Issue with ClearAds altpod #30

vminc opened this issue May 5, 2024 · 3 comments

Comments

@vminc
Copy link

vminc commented May 5, 2024

Hello, we're trying to use the ClearAds altpods and run into this issue. It happens when an ad is about to be present (Banner or Interstitial):

Terminating app due to uncaught exception 'org.robovm.objc.ObjCClassNotFoundException', reason: 'org.robovm.objc.ObjCClassNotFoundException: Could not find Java class corresponding to Objective-C class: CleverAdsSolutions.ImpressionWrapper.

Is there an example of integrating with this altpod succesfully?

@dkimitsa
Copy link
Owner

dkimitsa commented May 5, 2024

@vminc
hello
not enough information here, please provide :

  • version of alt-pods;
  • version of CAS used;
  • source code snipped to reproduce
  • symbolicated crash log

thanks

@dkimitsa
Copy link
Owner

dkimitsa commented May 5, 2024

there is an issue in RoboVM obj-c runtime (not related to alt-pod binding).
currently you can workaround it by declaring following class somewhere:

    @NativeClass("CleverAdsSolutions.ImpressionWrapper")
    static class CleverAdsSolutions_ImpressionWrapper extends ObjCObject implements CASStatusHandler {
        /*<bind>*/static { ObjCRuntime.bind(CleverAdsSolutions_ImpressionWrapper.class); }/*</bind>*/
        @Override native public CASType getAdType();
        @Override native public String getNetwork();
        @Override native public double getCpm();
        @Override native public CASPriceAccuracy getPriceAccuracy();
        @Override native public String getVersionInfo();
        @Override native public String getCreativeIdentifier();
        @Override native public String getIdentifier();
        @Override native public long getImpressionDepth();
        @Override native public double getLifetimeRevenue();
        @Override native public String getStatus();
        @Override native public String getError();
        @Override native public boolean isAdCached();
        @Override native public void toggleIgnoreMode();
    }

make sure it is not removed by tree-sharer, just reference it somewhere:

System.out.println(CleverAdsSolutions_ImpressionWrapper.class);

@dkimitsa dkimitsa closed this as completed May 5, 2024
@dkimitsa
Copy link
Owner

dkimitsa commented May 6, 2024

fix in RoboVM
MobiVM/robovm#784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants