NeoMAD 4.6.3 release notes

November 16, 2018

NeoMAD 4.6.3 is a maintenance release proposing fixes and small enhancements.

Android multidex

As specified in the Android documentation (https://developer.android.com/studio/build/multidex), when your app and the libraries it references exceed 65,536 methods, you encounter a build error that indicates your app has reached the limit of the Android build architecture:

trouble writing output:
Too many field references: 131000; max is 65536.
You may try using --multi-dex option.

or:

Conversion to Dalvik format failed:
Unable to execute dex: method ID not in [0, 0xffff]: 65536

To fix this problem, Google developed a feature called “multidex”. By default, NeoMAD was configured to apply multidex to all the Android projects. However, since it can conflict with some MDM solutions, it is now disabled by default. It must be declared in the URS to be activated.

<specific>
   <android multiDexEnabled="true">
   </android>
</specific>

Fix

  • Android:
    • Fix BarcodeScannerScreen and BarcodeScannerView, startBarcodeScanner() and stopBarcodeScanner() methods. The camera may not start sometimes if a dialog was shown just after the startBarcodeScanner() method was called.
    • Fix ContentQuery: in some queries, if a Content-Type was set in the header of the query, it was overriden by an other one by the API.
  • iOS:
    • Fix ContentQuery: if the query method was HEAD, Screen.onContentResponse(ContentResponse response) or Screen.onContentError(ContentError error) were never called.