I’m realy have poor knowledge in java but still tasked to upgrade same exiting android application. The application i’m working on has some problems with android 7.0 and higher versions. I tracked down the problem and leaded me to couchbase lite sdk. I did upgrade sdk to lastestes version 1.4.0 but Database.beginTransaction(), and Database.endTransaction() methods no logger exist. I coud’t find a migration guide beteewen versions nor a simlar question on net. I can’t figure out how to fix fallowing code.
application.getDatabase().beginTransaction(); Map<String, Object> updatedProperties = new HashMap<String, Object>(); updatedProperties.putAll(document.getProperties()); updatedProperties.put("TaskObject", object); document.putProperties(updatedProperties); Log.e("Database", "Document updated"); application.getDatabase().endTransaction(true);
Thanking in advance for any help