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: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ volley = "1.2.1"
gson = "2.8.9"
work_manager = "2.8.1"
androidx_lifecycle = "2.8.7"
androidx_startup = "1.2.0"
androidx_core_ktx = "1.13.0"
androidx_annotations = "1.3.0"
constraint_layout = "2.1.4"
Expand Down Expand Up @@ -86,6 +87,7 @@ room_ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
room_compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
work_manager = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work_manager" }
androidx_lifecycle = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "androidx_lifecycle" }
androidx_startup = { group = "androidx.startup", name = "startup-runtime", version.ref = "androidx_startup" }
hms_push = { group = "com.huawei.hms", name = "push", version.ref = "hms_push" }
hms_ads_identifier = { group = "com.huawei.hms", name = "ads-identifier", version.ref = "hms_ads_identifier" }
constraint_layout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraint_layout" }
Expand Down
1 change: 1 addition & 0 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ dependencies {

// Handle app lifecycle
implementation libs.androidx.lifecycle
implementation libs.androidx.startup
implementation libs.threetenabp

// Glide
Expand Down
10 changes: 10 additions & 0 deletions sdk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@

<uses-sdk tools:overrideLibrary="io.mockk, io.mockk.proxy.android" />
<application>
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="cloud.mindbox.mobile_sdk.managers.MindboxLifecycleInitializer"
android:value="androidx.startup" />
</provider>

<activity
android:name="cloud.mindbox.mobile_sdk.inapp.presentation.actions.PushActivationActivity"
android:excludeFromRecents="true"
Expand Down
257 changes: 120 additions & 137 deletions sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -648,15 +648,15 @@ internal class WebViewInAppViewHolder(
errorDescription = "Failed to fetch HTML content for In-App",
throwable = e
)
inAppController.close()
controller.executeOnViewThread { inAppController.close() }
}
} ?: run {
inAppFailureTracker.sendFailureWithContext(
inAppId = wrapper.inAppType.inAppId,
failureReason = FailureReason.WEBVIEW_LOAD_FAILED,
errorDescription = "WebView content URL is null"
)
inAppController.close()
controller.executeOnViewThread { inAppController.close() }
Comment on lines +651 to +659
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

душнила

}
}
}
Expand Down
Loading
Loading