Migrating ADF Mobile apps from 1.0 to 1.1

I thought I'd share something valuable from ADF Mobile’s product manager Joe Huang. Within context of migrating ADF Mobile v1.0 11.1.2.3.0 applications to v1.1 11.1.2.4.0, there’s some important migration notes in the release notes that developers should read.

Of particular interest for myself is the change to how Javascript libraries need to be imported for the series of device integration videos I recently recorded. In ADF Mobile v1.0 you would have used the following JavaScript references:

<script type="text/javascript" src="../../../../www/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../../../www/js/adf.el.js"></script>
<script type="text/javascript" charset="utf-8" src="../../../../www/js/phonegap-1.0.0.js"></script>
<script type="text/javascript" src="../../../../www/js/adf.mf.device.integration.js"></script>

In ADF Mobile v1.1 you replace these with just the two following lines:

<script type="text/javascript">if (!window.adf) window.adf = {}; adf.wwwPath = "../../../../www/";</script>
<script type="text/javascript" src="../../../../www/js/base.js"> </script>

That's it - otherwise there are no other changes needed.

Please note, that if you need to invoke device services from a localHTML feature, you would still need to include cordova-2.2.0.js as well. In the previous version, due to some internal issues, PhoneGap1.0.0 always needed to be included even if you are only calling ADF Mobile related functions. In 11.1.2.4.0, only base.js needs to be included for ADF Mobile related functions, and cordova-2.2.0.js is needed only for device services integration like camera. And yes PhoneGap1.0.0 has been replaced with Cordova 2.2 in ADF Mobile 11.1.2.4.0.

Thanks very much to Joe for sharing this information.

Image courtesy of Vlado / FreeDigitalPhotos.net
Comments:

Post a Comment:
Comments are closed for this entry.
About

Chris Muir - Oracle ADF Product Manager - The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today