Skip to content

Commit

Permalink
Merge pull request #148 from AppsFlyerSDK/dev/fix-mediation-network-e…
Browse files Browse the repository at this point in the history
…num-handeling

Renamed the mediation network enums
  • Loading branch information
Dani-Koza-AF authored Oct 23, 2024
2 parents de1c11a + c4f20b7 commit dee1edd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions ios/Plugin/AppsFlyerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,33 +167,33 @@ public class AppsFlyerPlugin: CAPPlugin {
// Helper function to map mediation network string to the AppsFlyer enum
private func MediationNetworkType(rawValue: String) -> MediationNetworkType? {
switch rawValue {
case "googleadmob":
case "google_admob":
return .googleAdMob
case "fyber":
return .fyber
case "ironsource":
return .ironSource
case "applovinmax":
case "applovin_max":
return .applovinMax
case "appodeal":
return .appodeal
case "Admost":
case "admost":
return .admost
case "Topon":
case "topon":
return .topon
case "Tradplus":
case "tradplus":
return .tradplus
case "Yandex":
case "yandex":
return .yandex
case "chartboost":
return .chartBoost
case "Unity":
case "unity":
return .unity
case "toponpte":
case "topon_pte":
return .toponPte
case "customMediation":
case "custom_mediation":
return .custom
case "directMonetizationNetwork":
case "direct_monetization_network":
return .directMonetization
default:
return nil
Expand Down
20 changes: 10 additions & 10 deletions src/Appsflyer_constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ export enum AFConstants {

export enum MediationNetwork {
IRONSOURCE = "ironsource",
APPLOVIN_MAX = "applovinmax",
GOOGLE_ADMOB = "googleadmob",
APPLOVIN_MAX = "applovin_max",
GOOGLE_ADMOB = "google_admob",
FYBER = "fyber",
APPODEAL = "appodeal",
ADMOST = "Admost",
TOPON = "Topon",
TRADPLUS = "Tradplus",
YANDEX = "Yandex",
ADMOST = "admost",
TOPON = "topon",
TRADPLUS = "tradplus",
YANDEX = "yandex",
CHARTBOOST = "chartboost",
UNITY = "Unity",
TOPON_PTE = "toponpte",
CUSTOM_MEDIATION = "customMediation",
DIRECT_MONETIZATION_NETWORK = "directMonetizationNetwork",
UNITY = "unity",
TOPON_PTE = "topon_pte",
CUSTOM_MEDIATION = "custom_mediation",
DIRECT_MONETIZATION_NETWORK = "direct_monetization_network",
}

0 comments on commit dee1edd

Please sign in to comment.