Skip to content

Commit 69bee64

Browse files
Merge pull request #41 from OutSystems/fix/RMET-4297/remove-logger-dependencies
fix(android, iOS): remove dependencies to OSLogger
2 parents 797ff8f + 1078af6 commit 69bee64

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.2] - 2025-09-02
8+
- Fix: Update dependency to cordova-sqlcipher-adapter plugin to use version `0.1.7-OS10` (https://outsystemsrd.atlassian.net/browse/RMET-4297).
9+
- Fix: Remove dependencies to OSLogger (https://outsystemsrd.atlassian.net/browse/RMET-4297).
10+
711
## [2.2.1] - 2025-07-08
812
- Chore: Update dependency to KeyStore plugin to use version `2.6.8-OS23`.
913

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.outsystems.plugins.SecureSQLiteBundle",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Bundle of SQLite related storage plugins and initialization code for easy use with the OutSystems Platform",
55
"cordova": {
66
"id": "com.outsystems.plugins.SecureSQLiteBundle",

plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="com.outsystems.plugins.SecureSQLiteBundle"
5-
version="2.2.1">
5+
version="2.2.2">
66

77
<name>Cordova OutSystems secure SQLite bundle</name>
88
<license>MIT</license>
@@ -14,7 +14,7 @@
1414
<clobbers target="OutSystemsSecureSQLiteBundle" />
1515
</js-module>
1616

17-
<dependency id="cordova-sqlcipher-adapter" url="https://github.com/OutSystems/cordova-sqlcipher-adapter.git#0.1.7-OS9" />
17+
<dependency id="cordova-sqlcipher-adapter" url="https://github.com/OutSystems/cordova-sqlcipher-adapter.git#0.1.7-OS10" />
1818
<dependency id="cordova-plugin-secure-storage" url="https://github.com/OutSystems/cordova-plugin-secure-storage.git#2.6.8-OS23" />
1919

2020
<dependency id="outsystems-plugin-disable-backup" url="https://github.com/OutSystems/outsystems-plugin-disable-backup.git#1.0.2" />

www/outsystems-secure-sqlite-init.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
var SQLiteCipher = require('cordova-sqlcipher-adapter.SQLitePlugin');
33
var SecureStorage = require('cordova-plugin-secure-storage.SecureStorage');
44

5-
var Logger = !!OutSystemsNative ? OutSystemsNative.Logger : undefined;
6-
if (typeof(Logger) === "undefined") {
7-
throw new Error("Dependencies were not loaded correctly: OutSystemsNative.Logger is not defined.");
8-
}
95
// Validate SQLite plugin API is properly set
106
if (typeof(window.sqlitePlugin) === "undefined") {
117
throw new Error("Dependencies were not loaded correctly: window.sqlitePlugin is not defined.");
@@ -51,7 +47,7 @@ function acquireLsk(successCallback, errorCallback) {
5147
successCallback(lskCache);
5248
},
5349
function (error) {
54-
Logger.logError("Error getting local storage key from keychain: " + error, "SecureSQLiteBundle");
50+
console.log("SecureSQLiteBundle: Error getting local storage key from keychain: " + error);
5551
errorCallback(error);
5652
},
5753
LOCAL_STORAGE_KEY);
@@ -62,20 +58,20 @@ function acquireLsk(successCallback, errorCallback) {
6258
lskCache = undefined;
6359
ss.set(
6460
function (key) {
65-
Logger.logWarning("Setting new local storage key.", "SecureSQLiteBundle");
61+
console.log("SecureSQLiteBundle: Setting new local storage key.");
6662
lskCache = newKey;
6763
successCallback(lskCache);
6864
},
6965
function (error) {
70-
Logger.logError("Error generating new local storage key: " + error, "SecureSQLiteBundle");
66+
console.log("SecureSQLiteBundle: Error generating new local storage key: " + error);
7167
errorCallback(error);
7268
},
7369
LOCAL_STORAGE_KEY,
7470
newKey);
7571
}
7672
},
7773
function (error) {
78-
Logger.logError("Error while getting local storage key: " + error, "SecureSQLiteBundle");
74+
console.log("SecureSQLiteBundle: Error while getting local storage key: " + error);
7975
if (error.message === "Authentication screen skipped") {
8076
window.alert("Authentication required to use this app. Relaunch the app to try again.");
8177
navigator.app.exitApp();
@@ -91,7 +87,7 @@ function acquireLsk(successCallback, errorCallback) {
9187
if (error.message === "Authentication screen skipped" || error.code == "OS-PLUG-KSTR-0010") {
9288
navigator.app.exitApp();
9389
} else if (error.message === "Device is not secure") {
94-
Logger.logError("Device is not secure.", "SecureSQLiteBundle");
90+
console.log("SecureSQLiteBundle: Device is not secure.");
9591
if (window.confirm("In order to use this app, your device must have a secure lock screen. Press OK to setup your device.")) {
9692
ss.secureDevice(
9793
initFn,
@@ -104,7 +100,7 @@ function acquireLsk(successCallback, errorCallback) {
104100
}
105101
// When secure storage key migration fails
106102
} else if (error.message.indexOf("MIGRATION FAILED") === 0) {
107-
Logger.logError("Migration Failed.", "SecureSQLiteBundle");
103+
console.log("SecureSQLiteBundle: Migration failed.");
108104
window.alert("A feature on this app failed to be upgraded. Relaunch the app to try again.");
109105
navigator.app.exitApp();
110106
// Otherwise

0 commit comments

Comments
 (0)