Mobile SDK - uncompiled version

Hi folks!

We’re doing lots of work with javascript modules lately (this project provides good background: https://www.pika.dev/about/) and the Mobile SDK is one library we would like to use in this fashion. For added context, we’re building applications with web components using lit-html, and other web technologies.

I don’t expect that a version of the SDK is available (yet) in this format. If not, is there a downloadable version of the SDK that is not compiled like XPMobileSDK.js and XPMobileSDK.library.js? I can copy the contents from here for XPMobileSDK.js, but haven’t found any others.(https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/XPMobileSDK.js.html)

If we have the source JS, we can gain the benefits of other bundlers (webpack, rollup, etc) as well rather than needing to include the entire library for each usage.

Thanks for the help! Happy to contribute back as well!

It looks like the uncompiled formats were available in older sdk version.

Perhaps these were omitted in 2019R2 and it threw me off?

Hi Colin,

You are right, non minified JS is omitted in 2019R2.

Hi Colin,

We have some plans to add different formats of the Mobile SDK in the future.

The link you provided (https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/XPMobileSDK.js.html) currently points to outdated version. We will update it ASAP.

Since 2019R2 only minified version of the SDK is provided. However we use source map files which provide all the source code.

If you really would like to use the non-minified version then you can retrieve it from the map files.

As our main file (XPMobileSDK.js) depends on all library files most of the time, I think it requires a lot of effort to set it up to use them dynamically and the benefits from other builders will be minimal.

Best Regards!

Thanks for the update! That sounds good to us. If you need any help moving to other module formats or experiment with custom elements / web components, please feel free to ping us. Happy to collaborate!

@Mladen Staykov​ Just checking in on this one. We have migrated our application into ES Modules, and would be more than happy to help out with a similar conversion of your library.

One of the tools of the project referenced above, pika-web, gives us some nice methods for doing some conversion as we need it, but it would be fun for us to find a way to help out. The availability of an un"compiled" version would make this relatively trivial.

Best regards,

Colin

Hi,

I believe the link you mentioned above (https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/XPMobileSDK.js.html) already contains the up-to-date uncompiled version of the Mobile SDK so you can work with it.

We still do not have exact action plan for migrating our code to ES modules, but we will be glad if you want to help us once we decide to do it.

Best Regards,

Mladen!

Ah, thanks for the confirmation there! Is there a way to get to the /Lib files as well? We can convert the loader to use imports, but we would need to use those. Otherwise, I will try to convert the map files as referenced above, but those methods never really seem to unpack the files properly.

Also, happy to take this offline if it is too much chatter.

Thanks!

Hi Colin,

If you do not like the “map file” approach you can find the files under this link: https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/global.html. However they are not pretty much organised.

We will think of a better (maybe the old) way of presenting those files to the users for the next version.

Best Regards!

That gets me closer! Some of the files looks to be linked from there, others are still available if I exchange the slashes for underscores in the path, but some still look to be missing.

Referencing the files and paths listed here: https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/XPMobileSDK.js.html#line28.

AudioPushConnection is one example.

https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/Lib_Connection.js.html exists but https://doc.developer.milestonesys.com/mipsdkmobile/reference/WebSDKdoc/Lib_AudioPushConnection.js.html does not.

Apologies if this is causing a headache! Would love to get this rolling and start building some milestone modules and webcomponents.

If you have a github repository, we can also follow that flow so you can maintain tight control over the code and see what we are doing. Want to make this as easy/safe for you as possible.

Hi, Colin!

Here is a direct link to the non-minified version of the 2019R2 Web MobileSDK.

Best Regards!

Thank you!! We’ll get working!