Skip to content

Commit 491481d

Browse files
chore(android): remove unused dependencies to oscore and oscordova libs (#43)
* chore: optimize imports References: https://outsystemsrd.atlassian.net/browse/RMET-4900 * chore: remove unused `oscore` and `oscordova` libraries References: https://outsystemsrd.atlassian.net/browse/RMET-4900 * chore(release): raise to version 2.6.8-OS27 References: https://outsystemsrd.atlassian.net/browse/RMET-4900 * chore: update pull request template
1 parent eb2af5c commit 491481d

File tree

8 files changed

+24
-36
lines changed

8 files changed

+24
-36
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
2.6.8-OS27 - 2026-01-13
5+
------------------
6+
- Chore: [Android] Remove unused dependencies to `oscore` and `oscordova` libs (https://outsystemsrd.atlassian.net/browse/RMET-4900)
7+
48
2.6.8-OS26 - 2026-01-05
59
------------------
610
- Chore: [iOS] Remove unnecessary dependency to OSCommonPluginLib on iOS (https://outsystemsrd.atlassian.net/browse/RMET-4899)

PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
## Checklist
3434
<!--- Go over all the following items and put an `x` in all the boxes that apply -->
35-
- [ ] Pull request title follows the format `RNMT-XXXX <title>`
36-
- [ ] Tests have been created
3735
- [ ] Code follows code style of this project
3836
- [ ] CHANGELOG.md file is correctly updated
3937
- [ ] Changes require an update to the documentation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-secure-storage",
3-
"version": "2.6.8-OS25",
3+
"version": "2.6.8-OS27",
44
"description": "Secure storage plugin for iOS & Android",
55
"author": "Yiorgis Gozadinos <ggozad@crypho.com>",
66
"contributors": [

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="cordova-plugin-secure-storage"
5-
version="2.6.8-OS25">
5+
version="2.6.8-OS27">
66

77
<name>SecureStorage</name>
88
<author>Crypho AS</author>

src/android/AES.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
package com.crypho.plugins;
22

3-
import android.util.Log;
43
import android.util.Base64;
54

6-
import org.json.JSONException;
75
import org.json.JSONObject;
86

97
import java.security.Key;
108
import java.security.SecureRandom;
119

1210
import javax.crypto.Cipher;
11+
import javax.crypto.KeyGenerator;
1312
import javax.crypto.SecretKey;
14-
import javax.crypto.spec.SecretKeySpec;
1513
import javax.crypto.spec.IvParameterSpec;
16-
import javax.crypto.KeyGenerator;
14+
import javax.crypto.spec.SecretKeySpec;
1715

1816
public class AES {
1917
private static final String CIPHER_MODE = "CCM";

src/android/DecryptionExecutor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.crypho.plugins;
22

3-
43
import android.util.Log;
54
import java.util.concurrent.Callable;
65

src/android/SecureStorage.java

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
11
package com.crypho.plugins;
22

3-
import java.io.File;
4-
import java.lang.reflect.Method;
5-
import java.security.SecureRandom;
6-
import java.util.Enumeration;
7-
import java.util.Hashtable;
8-
import java.util.Map;
9-
import java.util.Set;
10-
import java.util.concurrent.Callable;
11-
import java.util.concurrent.ExecutionException;
12-
import java.util.concurrent.ExecutorService;
13-
import java.util.concurrent.Executors;
14-
import java.util.concurrent.Future;
15-
16-
import android.annotation.TargetApi;
173
import android.app.Activity;
4+
import android.app.KeyguardManager;
185
import android.app.admin.DevicePolicyManager;
6+
import android.content.Context;
7+
import android.content.Intent;
198
import android.content.SharedPreferences;
20-
import android.content.res.Resources;
21-
import android.preference.PreferenceManager;
9+
import android.os.Build;
2210
import android.security.keystore.UserNotAuthenticatedException;
23-
import android.telecom.Call;
24-
import android.util.Log;
2511
import android.util.Base64;
26-
import android.os.Build;
27-
import android.app.KeyguardManager;
28-
import android.content.Context;
29-
import android.content.Intent;
30-
import android.util.Pair;
12+
import android.util.Log;
3113

3214
import com.outsystems.plugins.keystore.controller.KeystoreController;
3315
import com.outsystems.plugins.keystore.controller.KeystoreError;
@@ -36,11 +18,20 @@
3618
import org.apache.cordova.CallbackContext;
3719
import org.apache.cordova.CordovaArgs;
3820
import org.apache.cordova.CordovaPlugin;
21+
import org.json.JSONArray;
3922
import org.json.JSONException;
4023
import org.json.JSONObject;
41-
import org.json.JSONArray;
4224

43-
import javax.crypto.IllegalBlockSizeException;
25+
import java.io.File;
26+
import java.lang.reflect.Method;
27+
import java.security.SecureRandom;
28+
import java.util.Enumeration;
29+
import java.util.Hashtable;
30+
import java.util.Set;
31+
import java.util.concurrent.ExecutionException;
32+
import java.util.concurrent.ExecutorService;
33+
import java.util.concurrent.Executors;
34+
import java.util.concurrent.Future;
4435

4536
public class SecureStorage extends CordovaPlugin {
4637
private final ExecutorService threadPool = Executors.newCachedThreadPool();

src/android/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ repositories {
1818
}
1919

2020
dependencies {
21-
implementation("com.github.outsystems:oscore-android:1.1.0@aar")
22-
implementation("com.github.outsystems:oscordova-android:1.1.0@aar")
2321
implementation("androidx.security:security-crypto:1.1.0-alpha03")
2422
implementation("androidx.biometric:biometric:1.1.0")
2523
implementation("com.github.outsystems:oskeystore-android:1.1.1@aar")

0 commit comments

Comments
 (0)