Skip to content

Commit

Permalink
Merge branch 'master' of github.com:maureenorea-clores/android-inappm…
Browse files Browse the repository at this point in the history
…essaging into feat/SDKCF-6327_android-14-support

# Conflicts:
#	inappmessaging/USERGUIDE.md
  • Loading branch information
maureenorea-clores committed Feb 5, 2024
2 parents cbd9ebb + ba3946f commit 2887700
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 108 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@ fabric.properties
*.iml
modules.xml
*.ipr

# Gems
.bundle/
vendor/
# Use latest gem versions
Gemfile.lock
96 changes: 0 additions & 96 deletions Gemfile.lock

This file was deleted.

22 changes: 11 additions & 11 deletions dependency_check_suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<!-- Robolectric -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: guava-27.0.1-jre.jar
]]></notes>
Expand All @@ -12,15 +12,15 @@
</suppress>

<!-- Dokka -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: kotlin-analysis-intellij-1.7.10.jar (shaded: com.google.code.gson:gson:2.8.8)
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.google\.code\.gson/gson@.*$</packageUrl>
<cpe>cpe:/a:google:gson</cpe>
<vulnerabilityName>CVE-2022-25647</vulnerabilityName>
</suppress>
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: kotlin-analysis-intellij-1.7.10.jar (shaded: com.google.protobuf:protobuf-java:2.6.1)
]]></notes>
Expand All @@ -30,21 +30,21 @@
<vulnerabilityName>CVE-2022-3171</vulnerabilityName>
<vulnerabilityName>CVE-2022-3509</vulnerabilityName>
</suppress>
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: woodstox-core-6.2.4.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.fasterxml\.woodstox/woodstox\-core@.*$</packageUrl>
<vulnerabilityName>CVE-2022-40152</vulnerabilityName>
</suppress>
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: woodstox-core-6.2.4.jar (shaded: com.sun.xml.bind.jaxb:isorelax:20090621)
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.sun\.xml\.bind\.jaxb/isorelax@.*$</packageUrl>
<cve>CVE-2023-34411</cve>
</suppress>
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: jackson-databind-2.12.7.1.jar
]]></notes>
Expand All @@ -53,7 +53,7 @@
</suppress>

<!-- Detekt -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: snakeyaml-1.33.jar
]]></notes>
Expand All @@ -62,7 +62,7 @@
</suppress>

<!-- SDK Utils -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: play-services-basement-17.0.0.aar
]]></notes>
Expand All @@ -72,7 +72,7 @@
</suppress>

<!-- Retrofit -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: okhttp-3.14.9.jar
]]></notes>
Expand All @@ -81,7 +81,7 @@
<cpe>cpe:/a:squareup:okhttp3</cpe>
<vulnerabilityName>CVE-2021-0341</vulnerabilityName>
</suppress>
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: okio-1.17.2.jar
]]></notes>
Expand All @@ -90,7 +90,7 @@
</suppress>

<!-- WorkManager -->
<suppress until="2023-12-31Z">
<suppress until="2024-06-30Z">
<notes><![CDATA[
file name: work-runtime-2.7.1.aar: inspector.jar (shaded: com.google.protobuf:protobuf-javalite:3.10.0)
]]></notes>
Expand Down
2 changes: 1 addition & 1 deletion inappmessaging/USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ Documents targeting Product Managers:
* SDKCF-6327: Updated compile and target SDK to API 34 (Android 14).
- As part of security updates, the use of implicit intents is restricted. If you plan to redirect users to internal app activity through a campaign's button action, make sure to mark the activity as `android:exported="true"`.

### 7.5.0 (In-Progress)
### 7.5.0 (2023-12-12)
* SDKCF-6575: Added sending of device Id in all IAM requests.
* Improved the following classes to increase code coverage:
- InAppMessagingConstants (SDKCF-6497)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ internal abstract class AccountRepository {
preferences: PreferencesUtil = PreferencesUtil,
)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val TOKEN_PREFIX = "OAuth2 "
internal const val ID_TRACKING_ERR_MSG = "Both an access token and a user tracking id have been set. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ internal abstract class CampaignRepository {
*/
abstract fun clearMessages()

@SuppressWarnings("kotlin:S6515")
companion object {
private var instance: CampaignRepository = CampaignRepositoryImpl()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ internal interface HostAppInfoRepository {
*/
fun getRegisteredActivity(): Activity?

@SuppressWarnings("kotlin:S6515")
companion object {
private const val TAG = "IAM_HostAppRepository"
private var instance: HostAppInfoRepository = HostAppInfoRepositoryImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ internal class InAppMessagingTooltipView(

/** This method binds image to view. */
@Suppress("ClickableViewAccessibility", "TooGenericExceptionCaught", "LongMethod")
@SuppressWarnings("kotlin:S6516")
private fun bindImage() { // Display image.
this.hide(asGone = true)
if (this.imageUrl.isNullOrEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ internal interface ConfigScheduler {

fun startConfig(delay: Long = 0, workManager: WorkManager? = null)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val CONFIG_WORKER_NAME = "iam_config_worker"
private var instance: ConfigScheduler = ConfigSchedulerImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ internal interface EventMessageReconciliationScheduler {
*/
fun startReconciliationWorker(workManager: WorkManager? = null, delay: Long = 0)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val MESSAGES_EVENTS_WORKER_NAME = "iam_messages_events_worker"
private var instance: EventMessageReconciliationScheduler = EventMessageReconciliationSchedulerImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal interface MessageMixerPingScheduler {
*/
fun pingMessageMixerService(initialDelay: Long, workManager: WorkManager? = null)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val MESSAGE_MIXER_PING_WORKER = "iam_message_mixer_worker"
private var instance: MessageMixerPingScheduler = MessageMixerPingSchedulerImpl()
Expand Down

0 comments on commit 2887700

Please sign in to comment.