TP-24338 | Finarkein proguard rules added (#5975)
* TP-24338 | Finarkein proguard rules added * TP-24338 | allowing on and before Android 12 * TP-24338 | allowing on all devices * TP-24338 | finarkein dependency and proguard rules updated * TP-24338 | merged with development * TP-24338 | review changes
This commit is contained in:
committed by
GitHub Enterprise
parent
f6e59e6db9
commit
d591201c16
@@ -383,7 +383,7 @@ dependencies {
|
||||
|
||||
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
||||
|
||||
implementation 'io.finarkein.anubhav:sdk-core:0.3.3'
|
||||
implementation "io.finarkein.anubhav:sdk-core:$finarkein_version"
|
||||
|
||||
}
|
||||
|
||||
|
||||
10
app/proguard-rules.pro
vendored
10
app/proguard-rules.pro
vendored
@@ -261,4 +261,12 @@
|
||||
-keep class org.json.* { *; }
|
||||
|
||||
-keepattributes Exceptions, Signature, InnerClasses, LineNumberTable, SourceFile, EnclosingMethod
|
||||
-keep class androidx.core.app.** { *; }
|
||||
-keep class androidx.core.app.** { *; }
|
||||
|
||||
#For Finarkein
|
||||
-keepclassmembers class io.finarkein.internal.webview.WebAppInterface {
|
||||
public *;
|
||||
}
|
||||
-keep public class io.finarkein.anubhav.** {
|
||||
*;
|
||||
}
|
||||
@@ -79,6 +79,9 @@ class AccountAggregatorActivity : BaseActivity() {
|
||||
is AnubhavExit -> {
|
||||
handleAnubhavExit(it)
|
||||
}
|
||||
else -> {
|
||||
handleAnubhavExit(it, FINARKEIN_UNEXPECTED_CALLBACK.plus(SPACE).plus(it.toString()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -400,7 +403,7 @@ class AccountAggregatorActivity : BaseActivity() {
|
||||
.build()
|
||||
}
|
||||
|
||||
private fun handleAnubhavExit(it: AnubhavResult?) {
|
||||
private fun handleAnubhavExit(it: AnubhavResult?, reason: String? = null) {
|
||||
val anubhavExit = it as? AnubhavExit
|
||||
val error = anubhavExit?.error
|
||||
val metadata = anubhavExit?.metadata.toString()
|
||||
@@ -411,7 +414,7 @@ class AccountAggregatorActivity : BaseActivity() {
|
||||
methodName = ::handleAnubhavExit.name,
|
||||
vendorName = VENDOR_FINARKEIN,
|
||||
statusCode = error?.errorCode.toString(),
|
||||
reason = error?.errorMessage.toString(),
|
||||
reason = reason ?: error?.errorMessage.toString(),
|
||||
extras = mutableMapOf(
|
||||
Pair(
|
||||
PROP_REQUEST_ID,
|
||||
|
||||
@@ -63,3 +63,5 @@ const val VENDOR_FINARKEIN = "FINARKEIN"
|
||||
const val ACCOUNT_AGGREGATOR_EMPTY = "account aggregator empty"
|
||||
|
||||
const val STATUS_CODE_NOT_PRESENT = -1
|
||||
|
||||
const val FINARKEIN_UNEXPECTED_CALLBACK = "FINARKEIN_UNEXPECTED_CALLBACK"
|
||||
|
||||
@@ -15,6 +15,7 @@ ext {
|
||||
nav_version = '2.5.3'
|
||||
camera_version = '1.1.0'
|
||||
accompanist_version = '0.24.10-beta'
|
||||
finarkein_version = '0.3.11'
|
||||
|
||||
androidX = [
|
||||
workKtx : "android.arch.work:work-runtime-ktx:1.0.1",
|
||||
|
||||
Reference in New Issue
Block a user