File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
src/main/java/com/web3auth/core/keystore Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ dependencies {
6868 implementation ' org.web3j:core:4.8.8-android'
6969
7070 // session-manager-sdk
71- implementation ' com.github.Web3Auth:session-manager-android:0.0.6 '
71+ implementation ' com.github.Web3Auth:session-manager-android:0.0.8 '
7272
7373 // Test
7474 testImplementation ' junit:junit:4.+'
Original file line number Diff line number Diff line change 1313# OkHttp platform used only on JVM and when Conscrypt dependency is available.
1414-dontwarn okhttp3.internal.platform.ConscryptPlatform
1515-keep class okhttp3.Headers { *; }
16+ -keep class org.bouncycastle.jcajce.provider.** { *; }
17+ -keep class org.bouncycastle.jce.provider.** { *; }
18+ -keep class com.web3auth.session_manager_android.**
1619
1720#### GSON
1821# Prevent proguard from stripping interface information from TypeAdapterFactory,
Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ object KeyStoreManagerUtils {
5959 * Method to encrypt data with key
6060 */
6161 fun encryptData (key : String , data : String ) {
62- sharedPreferences.edit().putString(key, data)?.apply ()
63- encryptedPairData = getEncryptedDataPair(data)
64- encryptedPairData.second.toString(UTF_8 )
62+ if (this ::sharedPreferences.isInitialized) {
63+ sharedPreferences.edit().putString(key, data)?.apply ()
64+ encryptedPairData = getEncryptedDataPair(data)
65+ encryptedPairData.second.toString(UTF_8 )
66+ }
6567 }
6668
6769 /* *
You can’t perform that action at this time.
0 commit comments