|
15 | 15 | */ |
16 | 16 | package com.gmail.blueboxware.libgdxplugin.utils |
17 | 17 |
|
18 | | -val TEST_ID_MAP = mapOf( |
| 18 | +fun isTestId(string: String?): String? { |
| 19 | + if (string in TEST_ID_MAP) { |
| 20 | + return TEST_ID_MAP[string] |
| 21 | + } |
| 22 | + for ((prefix, description) in TEST_ID_PREFIXES_MAP) { |
| 23 | + if (string?.startsWith(prefix) == true) { |
| 24 | + return description |
| 25 | + } |
| 26 | + } |
| 27 | + return null |
| 28 | +} |
19 | 29 |
|
20 | | - "app185a7e71e1714831a49ec7" to "AdColony app id", |
21 | | - "vz06e8c32a037749699e7050" to "AdColony zone id", |
22 | | - "appbdee68ae27024084bb334a" to "AdColony app id", |
23 | | - "vzf8fb4670a60e4a139d01b5" to "AdColony zone id", |
24 | | - "ca-app-pub-3940256099942544/1033173712" to "AdMob interstitial test ad", |
25 | | - "ca-app-pub-3940256099942544/6300978111" to "AdMob banner test ad", |
26 | | - "ca-app-pub-3940256099942544/2247696110" to "AdMob native test ad", |
27 | | - "ca-app-pub-3940256099942544/4411468910" to "AdMob interstitial test ad", |
28 | | - "ca-app-pub-3940256099942544/2934735716" to "AdMob banner test ad", |
29 | | - "ca-app-pub-3940256099942544/3986624511" to "AdMob native test ad", |
30 | | - "4f7b433509b6025804000002" to "ChartBoost app id", |
31 | | - "dd2d41b69ac01b80f443f5b6cf06096d457f82bd" to "ChartBoost app signature", |
32 | | - "4f21c409cd1cb2fb7000001b" to "ChartBoost app id", |
| 30 | + |
| 31 | +internal val TEST_ID_PREFIXES_MAP = mapOf( |
| 32 | + |
| 33 | + "ca-app-pub-3940256099942544/" to "AdMob test ad ID", |
| 34 | + "ca-app-pub-3940256099942544~" to "AdMob sample app ID" |
| 35 | +) |
| 36 | + |
| 37 | +internal val TEST_ID_MAP = mapOf( |
| 38 | + |
| 39 | + "0ac59b0996d947309c33f59d6676399f" to "MoPub banner unit ID", |
| 40 | + "11a17b188668469fb0412708c3d16813" to "MoPub native unit ID", |
| 41 | + "12345678901234567890123456789012" to "InMobi account ID", |
| 42 | + "1234567890qwerty0987654321qwerty12345" to "InMobi account ID", |
| 43 | + "123456789abcdfghjiukljnm09874" to "InMobi account ID", |
| 44 | + "12346789pqrstuvwxy987654321pqwr" to "InMobi account ID", |
| 45 | + "plid-1431977751489005" to "InMobi placement ID from example code", |
| 46 | + "15173ac6d3e54c9389b9a5ddca69b34b" to "MoPub rewarded rich media unit ID", |
| 47 | + "1a19654b05694a2385448499f03f48df" to "InMobi account ID", |
| 48 | + "23b49916add211e281c11231392559e4" to "MoPub banner unit ID", |
| 49 | + "24534e1901884e398f1253216226017e" to "MoPub interstitial unit ID", |
| 50 | + "252412d5e9364a05ab77d9396346d73d" to "MoPub mrect unit ID", |
| 51 | + "2aae44d2ab91424d9850870af33e5af7" to "MoPub mrect unit ID", |
| 52 | + "3aba0056add211e281c11231392559e4" to "MoPub interstitial unit ID", |
| 53 | + "4028cb8b2c3a0b45012c406824e800ba" to "InMobi account ID", |
| 54 | + "4f117153f5c24fa6a3a92b818a5eb630" to "MoPub interstitial unit ID", |
| 55 | + "33BE2250B43518CCDA7DE426D04EE231" to "Dummy test device ID from example code", |
| 56 | + "4f21c409cd1cb2fb7000001b" to "ChartBoost app ID", |
| 57 | + "4f7b433509b6025804000002" to "ChartBoost app ID", |
| 58 | + "58fe200484fbd5b9670000e3" to "Vungle app ID", |
| 59 | + "5916309cb46f6b5a3e00009c" to "Vungle app ID", |
| 60 | + "76a3fefaced247959582d2d2df6f4757" to "MoPub native unit ID", |
| 61 | + "8f000bd5e00246de9c789eed39ff6096" to "MoPub rewarded video unit ID", |
| 62 | + "920b6145fb1546cf8b5cf2ac34638bb7" to "MoPub rewarded video unit ID", |
33 | 63 | "92e2de2fd7070327bdeb54c15a5295309c6fcd2d" to "ChartBoost app signature", |
34 | | - "df19afdaf27f4fb4a2c2b85e2c10bc6a" to "InMobi account id", |
35 | | - "4028cb8b2c3a0b45012c406824e800ba" to "InMobi account id", |
36 | | - "123456789abcdfghjiukljnm09874" to "InMobi account id", |
37 | | - "1234567890qwerty0987654321qwerty12345" to "InMobi account id", |
38 | | - "1a19654b05694a2385448499f03f48df" to "InMobi account id", |
39 | | - "12345678901234567890123456789012" to "InMobi account id", |
40 | | - "12346789pqrstuvwxy987654321pqwr" to "InMobi account id", |
| 64 | + "98c29e015e7346bd9c380b1467b33850" to "MoPub rewarded rich media unit ID", |
| 65 | + "DEFAULT32590" to "Vungle placement ID", |
| 66 | + "DEFAULT87043" to "Vungle placement ID", |
41 | 67 | "E621E1F8-C36C-495A-93FC-0C247A3E6E5F" to "MillennialMedia advertising identifier", |
42 | | - "b195f8dd8ded45fe847ad89ed1d016da" to "MoPub banner unit id", |
43 | | - "252412d5e9364a05ab77d9396346d73d" to "MoPub mrect unit id", |
44 | | - "a8919cca19784497872ae69d48f678e1" to "MoPub leaderboard unit id", |
45 | | - "24534e1901884e398f1253216226017e" to "MoPub interstitial unit id", |
46 | | - "920b6145fb1546cf8b5cf2ac34638bb7" to "MoPub rewarded video unit id", |
47 | | - "15173ac6d3e54c9389b9a5ddca69b34b" to "MoPub rewarded rich media unit id", |
48 | | - "11a17b188668469fb0412708c3d16813" to "MoPub native unit id", |
49 | | - "0ac59b0996d947309c33f59d6676399f" to "MoPub banner unit id", |
50 | | - "23b49916add211e281c11231392559e4" to "MoPub banner unit id", |
51 | | - "2aae44d2ab91424d9850870af33e5af7" to "MoPub mrect unit id", |
52 | | - "d456ea115eec497ab33e02531a5efcbc" to "MoPub leaderboard unit id", |
53 | | - "4f117153f5c24fa6a3a92b818a5eb630" to "MoPub interstitial unit id", |
54 | | - "3aba0056add211e281c11231392559e4" to "MoPub interstitial unit id", |
55 | | - "8f000bd5e00246de9c789eed39ff6096" to "MoPub rewarded video unit id", |
56 | | - "98c29e015e7346bd9c380b1467b33850" to "MoPub rewarded rich media unit id", |
57 | | - "76a3fefaced247959582d2d2df6f4757" to "MoPub native unit id", |
58 | | - "b2b67c2a8c0944eda272ed8e4ddf7ed4" to "MoPub native video unit id", |
| 68 | + "PLMT02I05269" to "Vungle placement ID", |
| 69 | + "PLMT03R77999" to "Vungle placement ID", |
| 70 | + "TESTINT07107" to "Vungle placement ID", |
| 71 | + "TESTREW28799" to "Vungle placement ID", |
| 72 | + "a8919cca19784497872ae69d48f678e1" to "MoPub leaderboard unit ID", |
| 73 | + "app185a7e71e1714831a49ec7" to "AdColony app ID", |
| 74 | + "appbdee68ae27024084bb334a" to "AdColony app ID", |
| 75 | + "b195f8dd8ded45fe847ad89ed1d016da" to "MoPub banner unit ID", |
| 76 | + "b2b67c2a8c0944eda272ed8e4ddf7ed4" to "MoPub native video unit ID", |
| 77 | + "d456ea115eec497ab33e02531a5efcbc" to "MoPub leaderboard unit ID", |
| 78 | + "dd2d41b69ac01b80f443f5b6cf06096d457f82bd" to "ChartBoost App signature", |
| 79 | + "df19afdaf27f4fb4a2c2b85e2c10bc6a" to "InMobi account ID", |
59 | 80 | "tPdB5-ZZSAu6xC_VxPrC0QEBW5ww3pQYyCbXihbJCEYAxh2VOmrGWxaxWqqe" to "Tapjoy SDK key", |
60 | | - "5916309cb46f6b5a3e00009c" to "Vungle app id", |
61 | | - "DEFAULT32590" to "Vungle placement id", |
62 | | - "TESTREW28799" to "Vungle placement id", |
63 | | - "TESTINT07107" to "Vungle placement id", |
64 | | - "58fe200484fbd5b9670000e3" to "Vungle app id", |
65 | | - "DEFAULT87043" to "Vungle placement id", |
66 | | - "PLMT02I05269" to "Vungle placement id", |
67 | | - "PLMT03R77999" to "Vungle placement id" |
| 81 | + "vz06e8c32a037749699e7050" to "AdColony zone ID", |
| 82 | + "vzf8fb4670a60e4a139d01b5" to "AdColony zone ID", |
| 83 | + "00000000-0000-0000-0000-000000000000" to "Tapjoy app ID from example code" |
68 | 84 |
|
69 | 85 | ) |
70 | 86 |
|
0 commit comments