Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ dependencies {
implementation 'com.dropbox.core:dropbox-android-sdk:7.0.0'

/** Crowdin **/
implementation ('com.github.crowdin.mobile-sdk-android:sdk:1.9.2') {
implementation ('com.github.crowdin.mobile-sdk-android:sdk:1.13.1') {
exclude group: 'com.google.code.gson', module: 'gson'
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.flowfoundation.wallet

import android.app.Application
import com.flowfoundation.wallet.crowdin.crowdinInitialize
import com.flowfoundation.wallet.manager.LaunchManager
import com.flowfoundation.wallet.utils.Env

Expand All @@ -9,6 +10,7 @@ class FlowWalletApplication : Application() {
override fun onCreate() {
super.onCreate()
Env.init(this)
crowdinInitialize(this)
LaunchManager.init(this)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.crowdin.platform.CrowdinConfig
import com.crowdin.platform.data.remote.NetworkType
import com.flowfoundation.wallet.BuildConfig


fun crowdinInitialize(application: Application) {
Crowdin.init(application,
CrowdinConfig.Builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import android.widget.FrameLayout
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.ColorInt
import com.crowdin.platform.Crowdin
import com.flowfoundation.wallet.BuildConfig
import com.flowfoundation.wallet.R
import com.flowfoundation.wallet.manager.blocklist.BlockManager
Expand Down Expand Up @@ -55,16 +56,16 @@ class LilicoWebView : WebView {

private var blockedUrl: String? = null

constructor(context: Context) : super(context) {
constructor(context: Context) : super(Crowdin.wrapContext(context)) {
initWebView()
}

constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {
constructor(context: Context, attrs: AttributeSet?) : super(Crowdin.wrapContext(context), attrs) {
initWebView()
}

constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
Crowdin.wrapContext(context),
attrs,
defStyleAttr
) {
Comment on lines 67 to 71
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The third constructor is missing initWebView() call that is present in the other two constructors. This inconsistency could lead to incomplete initialization of the WebView when using this constructor.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ class DeepLinkingActivity : BaseActivity() {
}
}

override fun onPause() {
super.onPause()
// Don't finish here, let the coroutine handle it
}

private fun isWalletConnectUri(uri: Uri): Boolean {
return try {
val uriString = uri.toString()
Comment on lines 81 to 82
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The isWalletConnectUri() method has a try block but the corresponding catch block is not shown in the diff. Ensure proper exception handling is implemented to avoid potential crashes when parsing invalid URIs.

Expand Down