LoicBNostrum | Posts: 2

realm conflict version in integration [Android]

0 votes

 Hello,

I'm a front dev from a company that wishes to integrate your ESign product in our android/Ios apps.
I wanted to try out the Android solution and test the integration with the sandbox but I encountered some problems during the android integration process.

I followed the link :
https://community.onespan.com/documentation/onespan-sign/guides/feature-guides/developer/introducing-our-android-sdk 

on client side server tab (which seems a bit outdated)

I followed the instruction but it ended with the following problem with realm extension : 

 Failed to apply plugin 'realm-android'.
   > Could not create an instance of type io.realm.gradle.RealmPluginExtension.
      > Configuration with name 'compile' not found.

 

this is because compile is now replace by implementation and realmVersion in

classpath "io.realm:realm-gradle-plugin:3.0.0"

is outdated 

So i updated the realm version but now I'm faced with an AbstractMethodError each because the sdk is looking for an old version of an interface which is not available in the new realm version.

The sdk seems to need a Realm version that's too old for the recent gradle version or maybe i'm missing something


In short : The Sdk need a realm version not above 3.0.0 but this realm version have inner call "compile" wich is deprecated in gradle.

How can we integrate the android sdk with a current gradle version of 7.0.0 and above

Thanks for your help and have a good day !


Duo_Liang | Posts: 3776

Reply to: realm conflict version in integration [Android]

1 votes

Hi LoicBNostrum,

 

Thanks for your post and welcome to OneSpan Sign!

I will look into the issue and report this to R&D team if necessary. At the same time, if you are simply looking for a solution to present the Signing Experience, as our new signer experience features responsive web design across desktop and mobile devices, you can directly load the signing URL to a WebView and fully control the signing flow by monitoring the Javascript event notifier, you can refer to my blog for more detailed information:

WebView Support in Android Devices: https://www.onespan.com/blog/onespan-sign-developers-webview-support-android-devices

 

Duo


LoicBNostrum | Posts: 2

Reply to: realm conflict version in integration [Android]

0 votes

 

I'm going to try the webview solution described in your blogpost for now.
But I think we will stick with the idea of ​​using the sdk, if we manage to integrate it, since it look easier to implement features than passing by the Api.

Thanks for your quick response !


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off