From ec39c8926cbc505e70f3857198aee5c65fce05fa Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 00:11:08 +0700 Subject: [PATCH 1/8] Update RNRSA.swift Fix: ...since it overrides constantsToExport but doesn't implement requiresMainQueueSetup --- ios/RNRSA.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/RNRSA.swift b/ios/RNRSA.swift index cff291b..01a8102 100644 --- a/ios/RNRSA.swift +++ b/ios/RNRSA.swift @@ -11,6 +11,11 @@ import Foundation @objc(RNRSA) class RNRSA: NSObject { + @objc + static + func requiresMainQueueSetup() -> Bool { + return false + } @objc func constantsToExport() -> [AnyHashable : Any]! { From cec7d24714299a6b909fac33958a3c1417c867c1 Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 00:12:06 +0700 Subject: [PATCH 2/8] Update RNRSAKeychain.swift Fix: ...since it overrides constantsToExport but doesn't implement requiresMainQueueSetup --- ios/RNRSAKeychain.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/RNRSAKeychain.swift b/ios/RNRSAKeychain.swift index 31b8e88..0479c12 100644 --- a/ios/RNRSAKeychain.swift +++ b/ios/RNRSAKeychain.swift @@ -11,6 +11,11 @@ import Foundation @objc(RNRSAKeychain) class RNRSAKeychain: NSObject { + @objc + static + func requiresMainQueueSetup() -> Bool { + return false + } @objc func constantsToExport() -> [AnyHashable : Any]! { From 01540fb5b94a398ed21a2853b1ba92e0eea47c7f Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 00:29:23 +0700 Subject: [PATCH 3/8] Upgrade spongycastle --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 82f60d3..78ebc33 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -55,8 +55,8 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.madgag.spongycastle:core:1.56.0.0' - implementation 'com.madgag.spongycastle:prov:1.56.0.0' - implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.56.0.0' + implementation 'com.madgag.spongycastle:core:1.58.0.0' + implementation 'com.madgag.spongycastle:prov:1.58.0.0' + implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' } From fafd684565156500d6f7641e957b3c3c0c3703fc Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 08:55:33 +0700 Subject: [PATCH 4/8] Fix: Duplicated classes found in modules --- android/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 78ebc33..91fa3ba 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -17,7 +17,7 @@ buildscript { } dependencies { - classpath("com.android.tools.build:gradle:3.5.3") + classpath("com.android.tools.build:gradle:4.0.1") } } } @@ -55,8 +55,8 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.madgag.spongycastle:core:1.58.0.0' - implementation 'com.madgag.spongycastle:prov:1.58.0.0' - implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' + #implementation 'com.madgag.spongycastle:core:1.58.0.0' + #implementation 'com.madgag.spongycastle:prov:1.58.0.0' + #implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' } From 51742fe3b49407670d17be2135a75cbe652eaef7 Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 08:56:41 +0700 Subject: [PATCH 5/8] Update build.gradle --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 91fa3ba..b6bf019 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -55,8 +55,8 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - #implementation 'com.madgag.spongycastle:core:1.58.0.0' - #implementation 'com.madgag.spongycastle:prov:1.58.0.0' - #implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' + // implementation 'com.madgag.spongycastle:core:1.58.0.0' + // implementation 'com.madgag.spongycastle:prov:1.58.0.0' + // implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' } From b8455dd504f7990530b3b93bf02f505ee2dbc915 Mon Sep 17 00:00:00 2001 From: docvhcm Date: Wed, 23 Sep 2020 09:02:42 +0700 Subject: [PATCH 6/8] Update build.gradle --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b6bf019..47225cd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -55,8 +55,8 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - // implementation 'com.madgag.spongycastle:core:1.58.0.0' - // implementation 'com.madgag.spongycastle:prov:1.58.0.0' - // implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.58.0.0' + implementation 'com.madgag.spongycastle:core:1.56.0.0' + implementation 'com.madgag.spongycastle:prov:1.56.0.0' + implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.56.0.0' } From 4d8277d4650c78a1e20d9fa8e1eb69416d2ab75a Mon Sep 17 00:00:00 2001 From: docvhcm Date: Sat, 25 Jun 2022 00:18:10 +0700 Subject: [PATCH 7/8] Update build.gradle --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 47225cd..0d94127 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -9,7 +9,7 @@ buildscript { if (project == rootProject) { repositories { google() - jcenter() + // jcenter() maven { url "https://maven.fabric.io/public" } @@ -45,7 +45,7 @@ allprojects { repositories { mavenLocal() google() - jcenter() + // jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" From 48f0d6234f9e164061df273b1bca902f808f940b Mon Sep 17 00:00:00 2001 From: docvhcm Date: Sat, 25 Jun 2022 00:32:42 +0700 Subject: [PATCH 8/8] Update build.gradle --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0d94127..332a10e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -55,8 +55,8 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.madgag.spongycastle:core:1.56.0.0' - implementation 'com.madgag.spongycastle:prov:1.56.0.0' - implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.56.0.0' + // implementation 'com.madgag.spongycastle:core:1.56.0.0' + // implementation 'com.madgag.spongycastle:prov:1.56.0.0' + // implementation 'com.madgag.spongycastle:bcpkix-jdk15on:1.56.0.0' }