[TIMOB-23588] Android: Recompile appcelerator.encrypteddatabase module against latest SDK
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-07-14T04:49:51.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.0.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Christopher Williams |
| Assignee | Christopher Williams |
| Created | 2016-07-01T14:52:03.000+0000 |
| Updated | 2016-09-02T22:50:30.000+0000 |
Description
appcelerator.encrypteddatabase: https://github.com/appcelerator-modules/appcelerator.encrypteddatabase
Generally this requires some minor changes to each module:
- bump the module's version up to the next major (i.e. 2.3.1 -> 3.0.0)
- bump the module's apiversion to 3 (for Android)
- bump the minsdk to 6.0.0 (for Android)
At a higher level, we'll need to update our CI build scripts for modules to use the master branch SDK to build against, and Android NDK r11c.
https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/13
CR and FT passed! use this for test!
var dbobj = require("appcelerator.encrypteddatabase"); var instance = null; var dataTofetch = null; function init() { dbobj.setPassword('secret'); Ti.API.info("Opening DB..."); instance = dbobj.open('test.db'); } function setup() { instance.execute("CREATE TABLE IF NOT EXISTS testtable(id integer PRIMARY KEY);"); instance.execute("INSERT OR IGNORE INTO testtable(id) VALUES (1);"); } function insert(){ var dataToInsertHandle = instance.execute("SELECT id FROM testtable ORDER BY id DESC LIMIT 1;"); var dataToInsert = null; if(dataToInsertHandle.isValidRow()) { dataToInsert = (dataToInsertHandle.fieldByName('id') + 1); dataTofetch = dataToInsert; } instance.execute("INSERT OR IGNORE INTO testtable(id) VALUES (" + dataToInsert + ");"); } function fetch() { var rowValue = null; var rowHandle = instance.execute("SELECT * FROM testtable WHERE id=" + dataTofetch + ";"); if (rowHandle.isValidRow()) { rowValue = rowHandle.fieldByName('id'); } alert("Fetched Data: " + rowValue); } init(); setup(); insert(); fetch();Verified the update. No issues found. Closing. Environment: Appc Studio : 4.8.0.201608221113 Ti SDK : 6.0.0.v20160902133138 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.8-6 Appc CLI : 6.0.0-38 Node: 4.4.4 Nexus 6 - Android 6.0.1