Compare commits
810 Commits
v1.1.8_and
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90af1ffd08 | ||
|
|
405413a212 | ||
|
|
9488ff2513 | ||
|
|
2a42432a18 | ||
|
|
874e4f85fc | ||
|
|
62c2e9cfc3 | ||
|
|
49bafa2fac | ||
|
|
7739b7d291 | ||
|
|
f0f4c639c0 | ||
|
|
b6d20fe9cd | ||
|
|
f7a4d2aa47 | ||
|
|
f3cac19afe | ||
|
|
8538803485 | ||
|
|
be63ed686d | ||
|
|
67e9e2606f | ||
|
|
7a015b49c0 | ||
|
|
8910eb7a9a | ||
|
|
7736db2fd8 | ||
|
|
f7e06bbbb0 | ||
|
|
9c606c912c | ||
|
|
b29592f4ba | ||
|
|
93870ca319 | ||
|
|
10a8fb1bd4 | ||
|
|
f0a42fe98e | ||
|
|
3cb8082e95 | ||
|
|
000bf11a3c | ||
|
|
94bf2f7e8d | ||
|
|
ecb8126410 | ||
|
|
fb5452c195 | ||
|
|
bbba324be0 | ||
|
|
0d8ae2d971 | ||
|
|
10fdfacc3d | ||
|
|
c664cf5dad | ||
|
|
a758dcc6cb | ||
|
|
1868e0240b | ||
|
|
915b2d063d | ||
|
|
0a437537bc | ||
|
|
28e0b2c050 | ||
|
|
aa3289de03 | ||
|
|
7193f5dcbe | ||
|
|
bb32c2d7d7 | ||
|
|
4edac166cb | ||
|
|
9281fa7205 | ||
|
|
5aa8a23495 | ||
| d4be4b43e6 | |||
| fa077c8263 | |||
|
|
ed8226641d | ||
|
|
093f14b332 | ||
|
|
0a47f14639 | ||
|
|
49d3ec38f9 | ||
|
|
d9229a681c | ||
| 3a4eb9b1bb | |||
|
|
5ff0c61668 | ||
|
|
122cc3b38b | ||
|
|
9c9fe3ec54 | ||
|
|
3eb1cf0802 | ||
|
|
56ef059eb8 | ||
|
|
ee98d9f79a | ||
|
|
2f51ae1ae6 | ||
|
|
3930c8fdd7 | ||
|
|
2867004de9 | ||
|
|
b36d71eaf3 | ||
|
|
b8252ea632 | ||
|
|
7a978d23e6 | ||
|
|
ab7b5bc5fc | ||
|
|
f63a371e34 | ||
|
|
0c30b628b5 | ||
|
|
41b3ffa70d | ||
|
|
931b027788 | ||
| 1d7a2b6d8a | |||
| 9f66ce34ac | |||
|
|
6ca3d26981 | ||
|
|
e5c0e0e410 | ||
|
|
956e0fc450 | ||
|
|
6b868e2614 | ||
| 195a4fcb6c | |||
|
|
14753f4ff0 | ||
|
|
9679193809 | ||
|
|
4472be6385 | ||
|
|
83a73f90f2 | ||
|
|
f850de3096 | ||
|
|
0bffde22a1 | ||
|
|
34a91873b6 | ||
|
|
bfe54cca00 | ||
|
|
abfddf5100 | ||
|
|
e66680a204 | ||
|
|
08c82f82bc | ||
|
|
b8f3b9530e | ||
|
|
cdae36a0c5 | ||
|
|
22619de917 | ||
|
|
55f0519824 | ||
|
|
cabbc6f24a | ||
|
|
c9f70b1833 | ||
|
|
e998aa73de | ||
|
|
41eb07e262 | ||
|
|
9e29e2b527 | ||
|
|
78ebbdb287 | ||
|
|
68fe25fc5f | ||
| 0f7a10bd19 | |||
|
|
1777464ea5 | ||
|
|
d38336d49c | ||
|
|
17072fed51 | ||
|
|
6c60435457 | ||
|
|
2b3f91e516 | ||
|
|
4a06d0df69 | ||
|
|
6c37c72e4a | ||
|
|
380bb080da | ||
|
|
f7f9b292c0 | ||
|
|
ab0b38c501 | ||
|
|
928dd46290 | ||
|
|
bf52ed6083 | ||
|
|
2ae155b480 | ||
|
|
16d550aefa | ||
|
|
8304af85ef | ||
|
|
135658321b | ||
|
|
c86b965ee6 | ||
|
|
e2473b1d64 | ||
|
|
a959e8a3a3 | ||
|
|
262f74311e | ||
|
|
09c0fb8c4f | ||
|
|
d4272eb86b | ||
|
|
130d25ec22 | ||
|
|
06cecef8fc | ||
|
|
949da0fdfd | ||
|
|
98cd8bd9c9 | ||
| 5575d26087 | |||
|
|
c6fb5ee0a8 | ||
|
|
9d023efcb6 | ||
|
|
a2b50a8315 | ||
|
|
2c40d73a0e | ||
|
|
2f9f35b98d | ||
|
|
f76dd842fc | ||
|
|
0abc5d6ab5 | ||
|
|
a38f6816e3 | ||
|
|
18d2e5c1fe | ||
|
|
68ca7492e6 | ||
| cc805c09f7 | |||
|
|
77fd785a44 | ||
|
|
962103db4c | ||
|
|
b9393f591d | ||
|
|
1b3c0bc18b | ||
|
|
fcbb2a6c65 | ||
|
|
b71c87b4b8 | ||
|
|
ebb7db4e18 | ||
|
|
d9a9716798 | ||
|
|
3a986f6b7a | ||
|
|
8722d4b433 | ||
|
|
e1a49e73d9 | ||
|
|
738f80d84b | ||
|
|
f4c431f50c | ||
|
|
45ce3c75c4 | ||
|
|
3ff2e9085e | ||
|
|
06d05d2fe8 | ||
|
|
401c2bd48f | ||
|
|
de5805d1dc | ||
|
|
e5a7bad0a9 | ||
|
|
992b6f5f6f | ||
|
|
f0f95f01d7 | ||
|
|
9d5afff839 | ||
|
|
d127666db5 | ||
|
|
00e53beccd | ||
|
|
07c3c5334a | ||
|
|
97cc288db3 | ||
|
|
c83be5ae7f | ||
|
|
4f9e75da7a | ||
|
|
4821b24301 | ||
|
|
ba57353ad0 | ||
|
|
41cfc6c2b9 | ||
|
|
bb625cb8e8 | ||
|
|
59cf73eed0 | ||
|
|
e8447938f9 | ||
|
|
c429cb382b | ||
| b72212aa71 | |||
| f48cd9d74a | |||
|
|
ea95ca7f2c | ||
|
|
91e6c226a5 | ||
|
|
43d34f274e | ||
| cfd7a48e82 | |||
|
|
e65320206a | ||
|
|
f93c89c162 | ||
|
|
16b6f9b4bc | ||
|
|
8a961ae07b | ||
|
|
eeede315a6 | ||
|
|
00e6d5389f | ||
|
|
07fb378809 | ||
| 7e4834769d | |||
|
|
81a5a71a20 | ||
|
|
24dbb7aa0b | ||
|
|
ba70479f0c | ||
|
|
2460664dc9 | ||
|
|
71b7f13375 | ||
|
|
6f3e35243a | ||
|
|
8cf8056ef4 | ||
|
|
da59410f2b | ||
|
|
a071da067a | ||
|
|
22a2bb1a5e | ||
|
|
d72c8beab6 | ||
|
|
930ea28eff | ||
|
|
122043a733 | ||
| 779c698170 | |||
|
|
01d6a4b439 | ||
|
|
55c5ad0741 | ||
|
|
c710842d63 | ||
|
|
4756312d3c | ||
|
|
70c822b986 | ||
|
|
798fb612d3 | ||
|
|
24a0670365 | ||
|
|
f40b937012 | ||
|
|
0d8a07e5fa | ||
|
|
5f5d13a898 | ||
|
|
60cb67ca4d | ||
|
|
a68d772eb3 | ||
|
|
0aa578ce70 | ||
|
|
1d74ee3b77 | ||
|
|
78c5077f5b | ||
|
|
6cfbfbbe50 | ||
|
|
02f32f15df | ||
|
|
d47ae896cd | ||
|
|
267d580dad | ||
|
|
1815903a06 | ||
|
|
33e280187a | ||
|
|
c686640095 | ||
|
|
16da88351d | ||
|
|
d32e88ac01 | ||
|
|
0b59c2d77d | ||
| fb7e273422 | |||
|
|
83016a2aef | ||
|
|
9ca3f79c89 | ||
|
|
641cccf3c0 | ||
|
|
7057163384 | ||
|
|
1ba9f51ff8 | ||
|
|
8ec42e8a10 | ||
| 5ddfb7eb01 | |||
|
|
e003e236ec | ||
|
|
92508925bb | ||
|
|
0942c88d19 | ||
|
|
505a7cb8fb | ||
|
|
edfc1d0b46 | ||
|
|
37979729e0 | ||
|
|
5c3b431d25 | ||
|
|
9a44044fa6 | ||
|
|
1e766a87c7 | ||
|
|
71058ccfee | ||
|
|
6f5f4d94e9 | ||
|
|
299b03213f | ||
|
|
6266224727 | ||
|
|
e4b953c193 | ||
| d1306fbb31 | |||
|
|
1ef890c2b4 | ||
|
|
03956d8ecb | ||
|
|
0c0be394ac | ||
|
|
beb7ae495c | ||
|
|
1b9826fced | ||
|
|
8b235c7e3a | ||
|
|
f07e452b82 | ||
|
|
f4a61a5cbd | ||
|
|
c58757a314 | ||
|
|
9f0867dea5 | ||
|
|
fcf516ac7f | ||
|
|
7d6398835a | ||
|
|
41434625e2 | ||
|
|
f6e906a646 | ||
|
|
6050a42478 | ||
|
|
a2ff24f5a6 | ||
|
|
c30e9d729c | ||
|
|
a5e8643589 | ||
|
|
9a29a4b382 | ||
|
|
37ec3978b5 | ||
|
|
29526815ba | ||
|
|
88632884bc | ||
|
|
56fbcd4a6e | ||
|
|
3d37d44aa7 | ||
|
|
292198793e | ||
|
|
3ea4515098 | ||
|
|
b92f858295 | ||
| 5e7537ebb0 | |||
|
|
442320c2be | ||
|
|
188a85d723 | ||
|
|
9b95508c42 | ||
|
|
bddd14fdd4 | ||
|
|
448aa0659e | ||
|
|
c54a6c48b9 | ||
|
|
b6345dce5a | ||
|
|
b0ca1e6132 | ||
|
|
916c9d9a69 | ||
|
|
94f5ea647f | ||
|
|
b044273afc | ||
|
|
79c4fd7907 | ||
|
|
74681e64c7 | ||
|
|
8a7e4ec47c | ||
|
|
33e84e5cc1 | ||
|
|
c0aeccf71a | ||
|
|
f12896f346 | ||
|
|
b3f490c9ac | ||
|
|
94a532d553 | ||
|
|
6792ac4fd7 | ||
|
|
ae1aeba1c5 | ||
|
|
c8ac729532 | ||
|
|
1cf27e1a54 | ||
|
|
f78213bce1 | ||
|
|
91dc07f589 | ||
|
|
7eed36b812 | ||
|
|
ca342100a2 | ||
|
|
1ecdf0cd14 | ||
|
|
bdcf3f995b | ||
|
|
2a8107ddce | ||
|
|
d924919e22 | ||
|
|
83a5666725 | ||
|
|
a022065ef5 | ||
|
|
78b27b7607 | ||
|
|
53caadd7e5 | ||
|
|
bcb9e60c73 | ||
|
|
0d50692a4f | ||
|
|
35d8383450 | ||
|
|
e528334190 | ||
|
|
e2abf80e5d | ||
|
|
769cfbe34d | ||
|
|
753fba3b0d | ||
|
|
ee5e11f045 | ||
|
|
ab0c8d0559 | ||
|
|
6f784eb8e3 | ||
|
|
cccce0625e | ||
|
|
94fcea9026 | ||
|
|
b42736678e | ||
|
|
d6eb5dfbe9 | ||
|
|
0ba16ffa0c | ||
|
|
1c44759790 | ||
|
|
833a583f97 | ||
|
|
37da32c547 | ||
|
|
bbb5804a24 | ||
|
|
50e9a27318 | ||
|
|
ebf9ec6209 | ||
|
|
565322e62a | ||
|
|
abbde65fff | ||
|
|
1275c6494f | ||
|
|
a86dbc2116 | ||
|
|
575a7a90f7 | ||
|
|
2b78eb4cc0 | ||
|
|
845c800565 | ||
|
|
4117053230 | ||
|
|
d9110872bf | ||
|
|
0679e04395 | ||
|
|
9345d10d6c | ||
|
|
c88edc50e5 | ||
|
|
96f2d2fae8 | ||
|
|
c3a6f1e5b8 | ||
|
|
e0009f528e | ||
|
|
9b1f58562b | ||
|
|
22b2cadb96 | ||
|
|
7f05bf4024 | ||
|
|
f409368faa | ||
|
|
760e3878f4 | ||
|
|
178c761583 | ||
|
|
d84ffd490d | ||
|
|
75abb7d2bb | ||
|
|
ad6e8b1402 | ||
|
|
0a231c3f94 | ||
|
|
00c9bd3bfe | ||
|
|
47d4ccd4a6 | ||
|
|
96a0a976e6 | ||
|
|
771b713f6d | ||
|
|
4ef44130e9 | ||
|
|
00e06273ad | ||
|
|
bcf3982203 | ||
|
|
eaed3e859e | ||
|
|
17a349c66d | ||
|
|
2a8cfe31e9 | ||
|
|
ce6127b71d | ||
|
|
9f0fd56ab4 | ||
|
|
da10987311 | ||
|
|
a6d3bb1803 | ||
|
|
97ce41a1e3 | ||
|
|
862e9200e7 | ||
| 63c531b066 | |||
|
|
6bfab0547f | ||
|
|
f49e729db2 | ||
|
|
27308ff7fd | ||
|
|
1e970493b3 | ||
|
|
6ea9e710b0 | ||
|
|
e0e91933e8 | ||
|
|
f0e3749794 | ||
|
|
dc1b6c9838 | ||
|
|
37bd501110 | ||
|
|
4094f79f7b | ||
|
|
06f81a091a | ||
|
|
bd58628e2d | ||
|
|
34953bab97 | ||
|
|
9ff6dbeee0 | ||
|
|
8638d3f2e2 | ||
|
|
0dcdf0fe9d | ||
|
|
57131fb59b | ||
|
|
8dadc9e37d | ||
|
|
1e1e4835d3 | ||
|
|
b5f498ad7c | ||
|
|
6eeff31530 | ||
|
|
c715f838f8 | ||
|
|
35193331ef | ||
|
|
b8d0930d6c | ||
|
|
b4f2b23cb2 | ||
|
|
29ffd0dc36 | ||
|
|
5b27f2c252 | ||
|
|
1d12b1c1e8 | ||
|
|
0c3788b90d | ||
|
|
026350ff6a | ||
|
|
6bd690e738 | ||
|
|
81d593d09a | ||
|
|
91c0c3b104 | ||
|
|
4da792de57 | ||
|
|
c36cb3f9e5 | ||
|
|
57b1dded5f | ||
|
|
ebbd97f8af | ||
|
|
059c6ca56b | ||
|
|
11283750f3 | ||
|
|
2c07878a4d | ||
|
|
65bbbaa0cc | ||
|
|
a586912584 | ||
|
|
5fe814b753 | ||
|
|
dbb30676a2 | ||
|
|
2dd0c48961 | ||
|
|
d83509fc3f | ||
|
|
d19f63d08a | ||
|
|
c028971870 | ||
|
|
de30482954 | ||
|
|
581c9a8f6e | ||
|
|
980d92839d | ||
|
|
67dfdf94c6 | ||
|
|
5e469d538f | ||
|
|
d3b124c536 | ||
|
|
fd2c59552e | ||
|
|
5587b000e9 | ||
|
|
976a5d0e7c | ||
|
|
82dbf388e5 | ||
|
|
7089eb2821 | ||
|
|
e936d45746 | ||
|
|
eead0cc118 | ||
|
|
1ac93875aa | ||
|
|
58c151899f | ||
|
|
e8b7ee6f1e | ||
|
|
32fd1db301 | ||
|
|
81d9203fed | ||
|
|
20802d3bea | ||
|
|
aa3f69a043 | ||
|
|
3d439234a4 | ||
|
|
ac9253f074 | ||
|
|
27be90073a | ||
|
|
4bc0e14cdf | ||
|
|
ea75430a03 | ||
|
|
4dc5debc7c | ||
|
|
0e962c43ff | ||
|
|
6f0a9720b2 | ||
|
|
0d901aff71 | ||
|
|
68614b6ba8 | ||
|
|
cbf95861d6 | ||
|
|
d1d8b37743 | ||
|
|
45ab702c1c | ||
|
|
1cd3210514 | ||
|
|
df9fb7cabb | ||
|
|
284fbe9bc3 | ||
|
|
5666c71d2b | ||
|
|
29f0e84ee0 | ||
|
|
8089bc6e16 | ||
|
|
8c9945cc63 | ||
|
|
24b7793c44 | ||
|
|
072f845722 | ||
|
|
48c9e677c0 | ||
|
|
ca627fc958 | ||
|
|
2bd4d0aece | ||
|
|
8ec159b939 | ||
|
|
c15bf48f06 | ||
|
|
e4aa6e2edd | ||
|
|
f7fe141786 | ||
|
|
f0889cb678 | ||
|
|
2877a0418f | ||
|
|
b67cd42d94 | ||
|
|
c04ae2e751 | ||
|
|
9d1d98ddd5 | ||
|
|
9d6334e76e | ||
|
|
b9ee339355 | ||
|
|
332789283b | ||
|
|
afc6b61916 | ||
|
|
81d7dc4bd0 | ||
|
|
cc21b09f91 | ||
|
|
0b8306ff1b | ||
|
|
82b8c6a181 | ||
|
|
7d0f23df51 | ||
|
|
1c4236a20f | ||
|
|
667e9dbe11 | ||
|
|
71fe08b57c | ||
|
|
cb1331708c | ||
|
|
d6046b2e7d | ||
|
|
b188be5dd4 | ||
|
|
f08af571e2 | ||
|
|
b3b9e59f4a | ||
|
|
cd1cea12fa | ||
|
|
27d17254a7 | ||
|
|
3a690240f9 | ||
|
|
1dbe2391dc | ||
|
|
79f1369068 | ||
|
|
1daeabac42 | ||
|
|
eb1a197cc0 | ||
|
|
4e0cd6c8d8 | ||
|
|
67a46e7d06 | ||
|
|
f2b6ce6233 | ||
|
|
44d66bb6c2 | ||
|
|
df29ad47ea | ||
|
|
3c50b60ccd | ||
|
|
2ac1249b99 | ||
|
|
a8a49eeb86 | ||
|
|
a6665b8fc3 | ||
|
|
7722e968e3 | ||
|
|
66bf185bd7 | ||
|
|
6533c64892 | ||
|
|
b5c144a98e | ||
|
|
ec67afe68b | ||
|
|
c1af1c8dcf | ||
|
|
eeae9e8382 | ||
|
|
7f99b9d771 | ||
|
|
dccabf26e2 | ||
|
|
ed5e2f1dc7 | ||
|
|
f470bacdbb | ||
|
|
5d690de886 | ||
|
|
8bcf0d01e2 | ||
|
|
c7b4a4a064 | ||
|
|
efd26331b4 | ||
| 7a34de2a39 | |||
| 456deab80a | |||
|
|
b460d9d8c5 | ||
|
|
c180b32e81 | ||
|
|
5bffd844c1 | ||
|
|
0ec05b592c | ||
|
|
ca7f897efe | ||
|
|
2b11c3a6b0 | ||
|
|
be98aa91d8 | ||
|
|
6097fc7c7f | ||
|
|
8cef52f549 | ||
|
|
7b7ee7aa0c | ||
|
|
b3091fbf49 | ||
|
|
d716440747 | ||
|
|
5051d418c8 | ||
|
|
1f6c432163 | ||
|
|
ca460b1b01 | ||
|
|
644a3f5cc3 | ||
|
|
57234a1738 | ||
|
|
5444cab3db | ||
|
|
7837455596 | ||
|
|
bd50d89651 | ||
|
|
5d5606c887 | ||
| 524c4367c2 | |||
|
|
519480c7dd | ||
| 8f2527bb76 | |||
|
|
e4df3deb60 | ||
|
|
ad82aba16d | ||
|
|
20aa364195 | ||
|
|
9b4ab7f785 | ||
|
|
f3b4bbb154 | ||
|
|
713c7b8f87 | ||
|
|
b36941172c | ||
|
|
7134e96cc8 | ||
|
|
0f64030d8e | ||
|
|
72775fbd50 | ||
|
|
deae480ef3 | ||
|
|
6441196517 | ||
|
|
033c2e8d63 | ||
|
|
46e7fbc5de | ||
|
|
02481f50b4 | ||
|
|
17798bf02e | ||
|
|
1c829259d9 | ||
|
|
06f20dfc8e | ||
|
|
06797a20de | ||
|
|
cd3a75c78f | ||
|
|
3ace779c74 | ||
|
|
eb6a23021e | ||
|
|
50a2298e84 | ||
|
|
f8c3dc9bb0 | ||
|
|
01427a9f4c | ||
|
|
4316bca531 | ||
|
|
0a5e37baa3 | ||
|
|
e4446afdec | ||
|
|
81f6b85711 | ||
|
|
60a2c2ee3a | ||
|
|
b2e11a015e | ||
|
|
a6cda907f0 | ||
|
|
3bcb923eda | ||
|
|
30564f7a52 | ||
|
|
a192c8660a | ||
|
|
6170cf21e1 | ||
|
|
c97d9104b4 | ||
|
|
09e5656e83 | ||
|
|
44becf62dd | ||
|
|
6a1403596e | ||
|
|
969e7ec6e2 | ||
|
|
f845d5c1fd | ||
|
|
abf3d6f3aa | ||
|
|
b8f7a7a783 | ||
|
|
f1d34124b7 | ||
| 2ee3df25e9 | |||
| feb63e9933 | |||
|
|
16d8c0e858 | ||
|
|
1e7440d170 | ||
| 16143ea795 | |||
| bb7ceff1e9 | |||
|
|
3f7d7dfb21 | ||
|
|
a645eb5c63 | ||
| fac1160a61 | |||
|
|
6434cc2f8b | ||
|
|
3527846c69 | ||
|
|
c597e71285 | ||
|
|
4b49a99d8f | ||
|
|
b8437cd261 | ||
| bb7af8c9f8 | |||
| 60dc7fdff5 | |||
| 972202a6d1 | |||
|
|
fe2f61985c | ||
|
|
6d480fc8b7 | ||
| e6227ea86f | |||
|
|
db2c20f2f1 | ||
|
|
2ac0456b2f | ||
|
|
a6641a707b | ||
|
|
1769d7a941 | ||
|
|
e51d67d317 | ||
|
|
3b4a03cde8 | ||
| ac46a76f69 | |||
| 037d45092f | |||
|
|
be4c77474e | ||
|
|
acf5e29ae1 | ||
|
|
32a5d23a0c | ||
|
|
4d1635dc3b | ||
|
|
335ab77238 | ||
|
|
c438b6fbd3 | ||
|
|
ceb3cbfdbc | ||
|
|
b7caf1dbf8 | ||
|
|
35e781df19 | ||
|
|
c4d52097e8 | ||
|
|
5e22aa1c23 | ||
|
|
ac475adb24 | ||
|
|
2194495db0 | ||
|
|
b71d37f58b | ||
|
|
ea1d84b065 | ||
| edad5d3459 | |||
| 7255a8648d | |||
| 4fad3e682e | |||
| fa3a1aa9f6 | |||
| ecefac269c | |||
| 1973964d4f | |||
|
|
ea746f2851 | ||
|
|
212c93632b | ||
|
|
afdf13a0a2 | ||
|
|
0912071578 | ||
|
|
9cdeac081d | ||
|
|
1729539f40 | ||
|
|
200ebe808b | ||
|
|
3254fd04d6 | ||
|
|
1290a24e06 | ||
| 3af536d18d | |||
| 40bb269cd4 | |||
|
|
e7a1fd2b0c | ||
|
|
8ddf543092 | ||
| e70c150a77 | |||
|
|
e98a5855f2 | ||
|
|
f8ad085f8b | ||
| c49c53bd29 | |||
| 72d11545e3 | |||
| 186684915b | |||
|
|
b1ecbc74fa | ||
| 961e69e534 | |||
| 3567e19797 | |||
|
|
94520452eb | ||
|
|
82bfdfc9e5 | ||
|
|
72ae396c7c | ||
|
|
5f9930086e | ||
|
|
26bfed993b | ||
|
|
349c36021f | ||
|
|
b37d58fc29 | ||
|
|
957e5ac9ad | ||
|
|
cfac263d3a | ||
|
|
c78cea4045 | ||
|
|
5ab8615d87 | ||
|
|
f788462596 | ||
|
|
7347201f23 | ||
|
|
3feebb0d9d | ||
|
|
662fd60a54 | ||
|
|
566ac2d369 | ||
|
|
835e3a16bd | ||
|
|
ac48fb604e | ||
|
|
67ce4b8a54 | ||
|
|
6613968878 | ||
|
|
9641889e5d | ||
|
|
f8677b9da5 | ||
|
|
3a853e7771 | ||
|
|
6e9b10e7a3 | ||
| 0a26dee331 | |||
| 5427520356 | |||
|
|
3f24e53428 | ||
|
|
cc6508dc20 | ||
|
|
cbce761a98 | ||
|
|
93787e2194 | ||
|
|
e8186b9d29 | ||
|
|
65a23a6f5e | ||
|
|
0531830c75 | ||
|
|
4f66328eee | ||
|
|
505a3bcb79 | ||
|
|
9f476e99e4 | ||
|
|
11327cb481 | ||
|
|
a4c6fb8e38 | ||
|
|
1dacc15828 | ||
|
|
ff9e413fc6 | ||
|
|
f0cae4c6ab | ||
|
|
7dd9c5e88a | ||
|
|
0aba4ec004 | ||
|
|
b6bf5df071 | ||
|
|
399374dc6c | ||
|
|
ad9bb05f62 | ||
|
|
f55b2a3aa7 | ||
| a63efe7ae5 | |||
| 68f8fb28f4 | |||
| c4c6a1eba9 | |||
|
|
5f53448c75 | ||
|
|
353b6186a3 | ||
|
|
80fd0f2e80 | ||
| 77d1060ba4 | |||
| b6ada80d8a | |||
| 28d7ce9184 | |||
|
|
14e182367c | ||
|
|
e0fa39ac70 | ||
| d8c10917b6 | |||
|
|
a814fa6f72 | ||
|
|
4cebf61be2 | ||
| 85ad80c339 | |||
| ca654b45b9 | |||
|
|
d8c5fb61a3 | ||
| 43526eeccb | |||
| a99fce750e | |||
|
|
78fac50fc5 | ||
| 65e820fa50 | |||
|
|
30bf431636 | ||
|
|
302452e76d | ||
| 22baebeab0 | |||
| 44228b01fe | |||
|
|
187eda1f35 | ||
|
|
62907b1a83 | ||
|
|
d88a18d48b | ||
| 287361e39a | |||
| 834d12bda4 | |||
|
|
0fda6326b4 | ||
| e9bd6c070d | |||
| 04d54fe957 | |||
|
|
9ab3370abd | ||
|
|
51b8d22f79 | ||
|
|
51891b4d27 | ||
|
|
bdcfb12f52 | ||
|
|
5f858b5d5b | ||
|
|
d93593b5fb | ||
| 7e235b92ae | |||
| 4c52c1a18d | |||
|
|
c9efe2357e | ||
|
|
f49eaaae84 | ||
|
|
425bfe2fd7 | ||
| 80392308a9 | |||
|
|
8031fd83f8 | ||
|
|
326f35d983 | ||
|
|
b08ab375cc | ||
|
|
196e5d881f | ||
| f381de67ae | |||
|
|
1aef3a423a | ||
|
|
7c3699c11d | ||
|
|
4409c91b2b | ||
|
|
4270fd5dde | ||
|
|
77788ca22e | ||
|
|
223e735275 | ||
|
|
53e9da7a4f | ||
| 7f4bed0604 | |||
| ccc6048c4b | |||
|
|
089558c932 | ||
|
|
5c1fa9be63 | ||
|
|
977b3c8c91 | ||
|
|
b0cf3b9798 | ||
|
|
e38ce4e68e | ||
|
|
704fc389cb | ||
|
|
b6acc8beee | ||
|
|
6c75146c10 | ||
|
|
fcb9d940b5 | ||
|
|
9c9cde6a89 | ||
|
|
5706a029be | ||
|
|
519bda505a | ||
|
|
6f1d287ee4 | ||
|
|
a1a34631f1 | ||
|
|
43c31f6e12 | ||
| 1a8a58c25c | |||
| f55e845856 | |||
|
|
446a83490d | ||
| 94acba74c4 | |||
|
|
4d8561a55f | ||
|
|
42570059b1 | ||
|
|
ce7ad3cb8c | ||
|
|
d145279d29 | ||
|
|
5caf199eb1 | ||
|
|
433ec88ba1 | ||
|
|
3b61c03934 | ||
|
|
ee6e367889 | ||
|
|
387492bd3b | ||
|
|
3b182e56c5 | ||
|
|
cd5f588a66 | ||
|
|
32e93ec980 | ||
|
|
1bbe630e25 | ||
|
|
a199c25d16 | ||
|
|
1135253224 | ||
|
|
0812b11677 | ||
|
|
42d2c1e689 | ||
|
|
d5b26101ff | ||
|
|
7359fed73e |
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05925ee3a430995468976e5bed989ec1
|
||||
guid: 0c41a7273e266a0468c52d3a52652dbd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@ -0,0 +1,195 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BFEditor.Build
|
||||
{
|
||||
public class CompareAssetBundleWindow : EditorWindow
|
||||
{
|
||||
private string newestABPath = "";
|
||||
private string lastABPath = "";
|
||||
public bool IsAndroid = true;
|
||||
private List<string> ABList = new List<string>();
|
||||
Vector2 resultScrollPos;
|
||||
public CompareAssetBundleWindow()
|
||||
{
|
||||
titleContent = new GUIContent("AssetBundle对比");
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
GetNewestABPath();
|
||||
}
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
GUILayout.Space(18);
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label("当前版本AB路径");
|
||||
GUILayout.TextField(newestABPath, GUILayout.Width(600));
|
||||
if (GUILayout.Button("选择", GUILayout.Width(80)))
|
||||
{
|
||||
string openPath = EditorUtility.OpenFolderPanel("select ab path", newestABPath, "");
|
||||
if (openPath.CompareTo("") != 0){
|
||||
newestABPath = openPath;
|
||||
}
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.Space(10);
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label("上个版本AB路径");
|
||||
GUILayout.TextField(lastABPath, GUILayout.Width(600));
|
||||
if (GUILayout.Button("选择", GUILayout.Width(80)))
|
||||
{
|
||||
string openPath = EditorUtility.OpenFolderPanel("select ab path", lastABPath, "");
|
||||
if (openPath.CompareTo("") != 0){
|
||||
lastABPath = openPath;
|
||||
}
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.Space(10);
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Space(150);
|
||||
if (GUILayout.Button("对比", GUILayout.Width(200), GUILayout.Height(40)))
|
||||
{
|
||||
CheckMD5AndAssetHash();
|
||||
}
|
||||
|
||||
GUILayout.Space(100);
|
||||
if (GUILayout.Button("使用上个版本的AB修复", GUILayout.Width(200), GUILayout.Height(40)))
|
||||
{
|
||||
UseLastABFix();
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.Space(30);
|
||||
|
||||
DrawResult();
|
||||
}
|
||||
|
||||
private void DrawResult()
|
||||
{
|
||||
resultScrollPos = GUILayout.BeginScrollView(resultScrollPos, GUILayout.Width(800), GUILayout.Height(620));
|
||||
for (int i = ABList.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var path = ABList[i];
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Space(20);
|
||||
EditorGUILayout.TextField(path);
|
||||
|
||||
GUILayout.Space(10);
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
GUILayout.EndScrollView();
|
||||
}
|
||||
|
||||
private void CheckMD5AndAssetHash()
|
||||
{
|
||||
if (string.IsNullOrEmpty(newestABPath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(lastABPath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ABList.Clear();
|
||||
var manifestPath = System.IO.Path.Combine(newestABPath, "asset_bundle_manifest.ab");
|
||||
var manifestAB = AssetBundle.LoadFromFile(manifestPath);
|
||||
var Manifest = manifestAB.LoadAsset<AssetBundleManifest>("AssetBundleManifest");
|
||||
manifestAB.Unload(false);
|
||||
|
||||
var lastManifestPath = System.IO.Path.Combine(lastABPath, "asset_bundle_manifest.ab");
|
||||
var lastManifestAB = AssetBundle.LoadFromFile(lastManifestPath);
|
||||
var lastManifest = lastManifestAB.LoadAsset<AssetBundleManifest>("AssetBundleManifest");
|
||||
lastManifestAB.Unload(false);
|
||||
|
||||
var allAB = Manifest.GetAllAssetBundles();
|
||||
foreach(var path in allAB)
|
||||
{
|
||||
if (path.Contains("ab_config.bytes") || path.Contains("asset_bundle_manifest.ab"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var fullPathA = Path.Combine(newestABPath, path);
|
||||
var fullPathB = Path.Combine(lastABPath, path);
|
||||
if (File.Exists(fullPathB) && BF.GameLaunchUtils.GetFileMD5(fullPathA).CompareTo(BF.GameLaunchUtils.GetFileMD5(fullPathB)) != 0)
|
||||
{
|
||||
if (Manifest.GetAssetBundleHash(path) == lastManifest.GetAssetBundleHash(path))
|
||||
{
|
||||
// md5 不一致但是AssetHash一致的情况
|
||||
ABList.Add(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void UseLastABFix()
|
||||
{
|
||||
if (string.IsNullOrEmpty(newestABPath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(lastABPath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (ABList.Count == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach(var path in ABList)
|
||||
{
|
||||
var fullPathA = Path.Combine(newestABPath, path);
|
||||
var fullPathB = Path.Combine(lastABPath, path);
|
||||
File.Copy(fullPathB, fullPathA, true);
|
||||
}
|
||||
var version = newestABPath.Substring(newestABPath.Replace("\\", "/").LastIndexOf("/") + 1);
|
||||
AssetBundleUtils.RegenerateABConfigMd5(newestABPath, version);
|
||||
|
||||
ABList.Clear();
|
||||
}
|
||||
|
||||
public static void ShowWindow()
|
||||
{
|
||||
var window = GetWindow<CompareAssetBundleWindow>();
|
||||
window.Show();
|
||||
}
|
||||
|
||||
private void GetNewestABPath()
|
||||
{
|
||||
var bundleCachePath = IsAndroid ? Application.dataPath + "/../HistoryAssetBundles" : Application.dataPath + "/../HistoryAssetBundles/IOS";
|
||||
var dirInfo = new DirectoryInfo(bundleCachePath);
|
||||
var dirs = dirInfo.GetDirectories();
|
||||
if (dirs.Length == 0)
|
||||
{
|
||||
newestABPath = "";
|
||||
lastABPath = "";
|
||||
}
|
||||
if (dirs.Length == 1)
|
||||
{
|
||||
newestABPath = dirs[0].FullName;
|
||||
lastABPath = "";
|
||||
}
|
||||
var hightestIndex = 0;
|
||||
var secondIndex = 0;
|
||||
for (var i = 1; i < dirs.Length; i++)
|
||||
{
|
||||
if (dirs[i].FullName.CompareTo(dirs[hightestIndex].FullName) > 0)
|
||||
{
|
||||
secondIndex = hightestIndex;
|
||||
hightestIndex = i;
|
||||
}
|
||||
}
|
||||
newestABPath = dirs[hightestIndex].FullName;
|
||||
if (hightestIndex > 0)
|
||||
{
|
||||
lastABPath = dirs[secondIndex].FullName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea05efeb3467b0947b735c8fe281cb8c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -192,10 +192,34 @@ namespace BFEditor.Build
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem("打包工具/AssetBundles/对比上一个版本AB Android", priority = 207)]
|
||||
static void CompareLastVersionABAndroid()
|
||||
{
|
||||
var window = (CompareAssetBundleWindow)EditorWindow.GetWindowWithRect(typeof(CompareAssetBundleWindow),
|
||||
new Rect(Screen.width / 2, Screen.height / 2, 800, 800), true);
|
||||
window.IsAndroid = true;
|
||||
window.Show();
|
||||
}
|
||||
|
||||
[MenuItem("打包工具/AssetBundles/对比上一个版本AB IOS", priority = 208)]
|
||||
static void CompareLastVersionABIOS()
|
||||
{
|
||||
var window = (CompareAssetBundleWindow)EditorWindow.GetWindowWithRect(typeof(CompareAssetBundleWindow),
|
||||
new Rect(Screen.width / 2, Screen.height / 2, 800, 800), true);
|
||||
window.IsAndroid = false;
|
||||
window.Show();
|
||||
}
|
||||
|
||||
[MenuItem("打包工具/打包窗口", priority = 301)]
|
||||
static void ShowBuildWindow()
|
||||
{
|
||||
BuildProjectWindow.ShowWindow();
|
||||
}
|
||||
|
||||
[MenuItem("打包工具/Android转换为AAB工程", priority = 401)]
|
||||
static void ConvertAndroidStudioToAAB()
|
||||
{
|
||||
BuildAndroidUtils.ConvertToAAB();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,8 @@ namespace BFEditor.Build
|
||||
|
||||
public class BuildProjectWindow : EditorWindow
|
||||
{
|
||||
private static int versionCode = 18;
|
||||
private static string versionName = "1.6.5";
|
||||
BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
|
||||
const string ANDROID_DEV_PACKAGE_NAME = "com.juzu.b6.dev.android";
|
||||
const string ANDROID_RELEASE_PACKAGE_NAME = "com.juzu.b6.release.android";
|
||||
@ -34,7 +36,7 @@ namespace BFEditor.Build
|
||||
platform = (BFPlatformOptions)EditorGUILayout.EnumPopup("", platform);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.LabelField("版本: 0.1.0");
|
||||
EditorGUILayout.LabelField("版本: " + versionName);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
string packageName;
|
||||
@ -70,7 +72,8 @@ namespace BFEditor.Build
|
||||
if (GUILayout.Button("一键打包"))
|
||||
{
|
||||
var buildInfo = new BuildInfo();
|
||||
buildInfo.version = "0.1.0";
|
||||
buildInfo.version = versionName;
|
||||
buildInfo.version_code = versionCode;
|
||||
buildInfo.mode = mode;
|
||||
buildInfo.bundleName = packageName;
|
||||
buildInfo.skipVersion = skipVersion;
|
||||
|
||||
@ -3,6 +3,7 @@ using UnityEditor;
|
||||
using System.IO;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
@ -29,8 +30,14 @@ namespace BFEditor.Build
|
||||
static string GoogleCommonProjectPath = Application.dataPath + "/../BFVersions/android/google_common";
|
||||
static string GPAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-gp"; // gp删档测试渠道
|
||||
static string GPOfficialAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-google"; // gp正式渠道
|
||||
static string PublishAsProjectPath = Application.dataPath + "/../BFVersions/android/publish_release";
|
||||
static string SignShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||
static string GpAlginShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||
static HashSet<string> AABInPackageFileHashSet = new HashSet<string>()
|
||||
{
|
||||
"bin",
|
||||
"UnityServicesProjectConfiguration.json"
|
||||
};
|
||||
|
||||
static BuildAndroidUtils()
|
||||
{
|
||||
@ -282,6 +289,7 @@ namespace BFEditor.Build
|
||||
else if(buildInfo.IsGPChannel())
|
||||
{
|
||||
MergeProject(buildInfo, GoogleAsProjectPath);
|
||||
FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@ -391,13 +399,19 @@ namespace BFEditor.Build
|
||||
static void FixGradleVersion(int versionCode, string versionName)
|
||||
{
|
||||
Debug.Log("[bfinfo]修正build.gradle: VersionCode " + versionCode + " VersionName " + versionName);
|
||||
var gradleFilePath = Path.Combine(GradleExcuteProjectPath, "build.gradle");
|
||||
var gradleFilePath = Path.Combine(PublishAsProjectPath, "launcher", "build.gradle");
|
||||
var text = File.ReadAllText(gradleFilePath);
|
||||
var regex = new Regex("versionCode 1");
|
||||
text = regex.Replace(text, string.Format("versionCode {0}", versionCode));
|
||||
regex = new Regex("versionName '0.1'");
|
||||
text = regex.Replace(text, string.Format("versionName '{0}'", versionName));
|
||||
var regex2 = new Regex("versionName '0.1.0'");
|
||||
text = regex2.Replace(text, string.Format("versionName '{0}'", versionName));
|
||||
File.WriteAllText(gradleFilePath, text);
|
||||
|
||||
var gradleFilePath2 = Path.Combine(PublishAsProjectPath, "unityLibrary", "build.gradle");
|
||||
var text2 = File.ReadAllText(gradleFilePath2);
|
||||
text2 = regex.Replace(text2, string.Format("versionCode {0}", versionCode));
|
||||
text2 = regex2.Replace(text2, string.Format("versionName '{0}'", versionName));
|
||||
File.WriteAllText(gradleFilePath2, text2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -543,5 +557,77 @@ namespace BFEditor.Build
|
||||
tmp.Abort();
|
||||
}
|
||||
}
|
||||
|
||||
public static void ConvertToAAB()
|
||||
{
|
||||
var installTimePackDirPath = Path.Combine(PublishAsProjectPath, "../", "dz_google_abb", "install_time_pack");
|
||||
var targetDirPath = Path.Combine(PublishAsProjectPath, "install_time_pack");
|
||||
if (Directory.Exists(targetDirPath))
|
||||
{
|
||||
Directory.Delete(targetDirPath, true);
|
||||
Directory.CreateDirectory(targetDirPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
Directory.CreateDirectory(targetDirPath);
|
||||
}
|
||||
|
||||
BFEditorUtils.CopyDir(installTimePackDirPath, targetDirPath);
|
||||
|
||||
var abDirPath = Path.Combine(PublishAsProjectPath, "unityLibrary/src/main/assets");
|
||||
var destFolderName = Path.Combine(PublishAsProjectPath, "install_time_pack/src/main/assets");
|
||||
var dirInfo = new DirectoryInfo(abDirPath);
|
||||
var floders = dirInfo.GetDirectories();
|
||||
for (var i = 0; i < floders.Length; i++)
|
||||
{
|
||||
if (AABInPackageFileHashSet.Contains(floders[i].Name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var newDir = Path.Combine(destFolderName, floders[i].Name);
|
||||
if (!Directory.Exists(newDir))
|
||||
{
|
||||
Directory.CreateDirectory(newDir);
|
||||
}
|
||||
BFEditorUtils.CopyDir(floders[i].FullName, newDir);
|
||||
Directory.Delete(floders[i].FullName, true);
|
||||
}
|
||||
|
||||
var files = dirInfo.GetFiles();
|
||||
for (var i = 0; i < files.Length; i++)
|
||||
{
|
||||
var file = files[i];
|
||||
if (AABInPackageFileHashSet.Contains(file.Name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var destFile = Path.Combine(destFolderName, file.Name);
|
||||
if (File.Exists(destFile))
|
||||
{
|
||||
File.Delete(destFile);
|
||||
}
|
||||
File.Move(file.FullName, destFile);
|
||||
}
|
||||
|
||||
var settingsGradleFilePath = Path.Combine(PublishAsProjectPath, "settings.gradle");
|
||||
var text = File.ReadAllText(settingsGradleFilePath);
|
||||
var appendText = "include ':install_time_pack'";
|
||||
if (!text.EndsWith(appendText))
|
||||
{
|
||||
text = text + "\n" + appendText;
|
||||
}
|
||||
File.WriteAllText(settingsGradleFilePath, text);
|
||||
|
||||
var buildGradlePath = Path.Combine(PublishAsProjectPath, "launcher/build.gradle");
|
||||
var buildGradleText = File.ReadAllText(buildGradlePath);
|
||||
var regex2 = new Regex("assetPacks = [\":install_time_pack\"]");
|
||||
if (!regex2.IsMatch(buildGradleText))
|
||||
{
|
||||
var regex22 = new Regex("android {");
|
||||
buildGradleText = regex22.Replace(buildGradleText, "android {\n assetPacks = [\":install_time_pack\"]");
|
||||
}
|
||||
File.WriteAllText(buildGradlePath, buildGradleText);
|
||||
Debug.Log("Android转换为AAB工程完成");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using UnityEngine;
|
||||
|
||||
#if UNITY_IOS
|
||||
using UnityEditor.iOS.Xcode;
|
||||
#endif
|
||||
|
||||
public class IOSLocalizationTool
|
||||
{
|
||||
public static readonly Dictionary<SystemLanguage, string> validLanguageMap = new Dictionary<SystemLanguage, string>()
|
||||
{
|
||||
[SystemLanguage.English] = "en",
|
||||
[SystemLanguage.ChineseSimplified] = "zh-Hans",
|
||||
[SystemLanguage.ChineseTraditional] = "zh-Hant",
|
||||
[SystemLanguage.Japanese] = "ja",
|
||||
[SystemLanguage.Korean] = "ko",
|
||||
[SystemLanguage.Spanish] = "es",
|
||||
[SystemLanguage.Vietnamese] = "vi",
|
||||
[SystemLanguage.Thai] = "th",
|
||||
[SystemLanguage.Indonesian] = "id",
|
||||
[SystemLanguage.Portuguese] = "pt",
|
||||
};
|
||||
|
||||
public static void SetLocalization(string pathToBuiltProject)
|
||||
{
|
||||
#if UNITY_IOS
|
||||
string buildPath = pathToBuiltProject;
|
||||
const string infoPlistName = "Info.plist";
|
||||
|
||||
var plistPath = Path.Combine(buildPath, infoPlistName);
|
||||
PlistDocument plist = new PlistDocument();
|
||||
plist.ReadFromFile(plistPath);
|
||||
|
||||
// url schemes
|
||||
const string bundleLocalizationKey = "CFBundleLocalizations";
|
||||
|
||||
if (!plist.root.values.TryGetValue(bundleLocalizationKey, out var localizations))
|
||||
{
|
||||
localizations = plist.root.CreateArray(bundleLocalizationKey);
|
||||
}
|
||||
|
||||
foreach (string value in validLanguageMap.Values)
|
||||
{
|
||||
localizations.AsArray().AddString(value);
|
||||
}
|
||||
|
||||
plist.WriteToFile(plistPath);
|
||||
|
||||
var projectPath = PBXProject.GetPBXProjectPath(buildPath);
|
||||
var project = new PBXProject();
|
||||
project.ReadFromFile(projectPath);
|
||||
var target = project.GetUnityMainTargetGuid();
|
||||
var resourceTarget = project.GetResourcesBuildPhaseByTarget(target);
|
||||
|
||||
foreach (string value in validLanguageMap.Values)
|
||||
{
|
||||
var path = Path.Combine(Path.Combine(Application.dataPath, "../", "BFVersions/ios/ios_common"), $"{value}.lproj");
|
||||
var inProjectPath = Path.GetFileName(path);
|
||||
project.AddFolderReference(path, inProjectPath);
|
||||
var resGUID = project.FindFileGuidByProjectPath(inProjectPath);
|
||||
project.AddFileToBuildSection(
|
||||
target,
|
||||
resourceTarget,
|
||||
resGUID);
|
||||
}
|
||||
|
||||
project.WriteToFile(projectPath);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4be556fddd0e984428c0410a562496d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -20,18 +20,25 @@ namespace BFEditor
|
||||
// }
|
||||
const string BOARD_EXCEL_KEY = "bf_board_excel_key";
|
||||
const string BOARD_GRID_TYPE_KEY = "bf_board_grid_type_key";
|
||||
const string BOARD_GRID_EDGE_KEY = "bf_board_grid_edge_key";
|
||||
int gridCount = 49;
|
||||
string battleImgDirectory = "Assets/arts/textures/ui/battle/";
|
||||
string boardFilepath;
|
||||
string boardGridTypePath;
|
||||
string boardGridEdgePath;
|
||||
string boardFiledName = "board";
|
||||
string boardEdgeFiledName = "grid_edge";
|
||||
string randomTypeStr = "";
|
||||
string boardEdgeStr = "";
|
||||
int curIndex = 1;
|
||||
int maxRow = 7;
|
||||
Dictionary<int, Dictionary<string, string>> boardGridTypeDict = new Dictionary<int, Dictionary<string, string>>();
|
||||
Dictionary<int, JArray> boardDict = new Dictionary<int, JArray>();
|
||||
Dictionary<int, JArray> outPutBoardDict = new Dictionary<int, JArray>();
|
||||
Dictionary<string, Texture> imgDict = new Dictionary<string, Texture>();
|
||||
Dictionary<int, Dictionary<string, string>> boardGridEdgeDict = new Dictionary<int, Dictionary<string, string>>();
|
||||
Dictionary<int, JArray> edgeDict = new Dictionary<int, JArray>();
|
||||
Dictionary<int, JArray> outPutBoardEdgeDict = new Dictionary<int, JArray>();
|
||||
bool loadExcelOver = false;
|
||||
Dictionary<int, string> elementTypeImgDict = new Dictionary<int, string>(){
|
||||
[1] = "red_1",
|
||||
@ -55,6 +62,12 @@ namespace BFEditor
|
||||
{
|
||||
boardGridTypePath = "选择grid_type配置表路径";
|
||||
}
|
||||
|
||||
boardGridEdgePath = GetBoardGridEdgePath();
|
||||
if (boardGridEdgePath.Equals(""))
|
||||
{
|
||||
boardGridEdgePath = "选择grid_edge_type配置表路径";
|
||||
}
|
||||
string[] paths = Directory.GetFiles(battleImgDirectory);
|
||||
foreach(var path in paths)
|
||||
{
|
||||
@ -86,6 +99,16 @@ namespace BFEditor
|
||||
PlayerPrefs.SetString(BOARD_GRID_TYPE_KEY, path);
|
||||
}
|
||||
|
||||
string GetBoardGridEdgePath()
|
||||
{
|
||||
return PlayerPrefs.GetString(BOARD_GRID_EDGE_KEY, "");
|
||||
}
|
||||
|
||||
void SetBoardGridEdgePath(string path)
|
||||
{
|
||||
PlayerPrefs.SetString(BOARD_GRID_EDGE_KEY, path);
|
||||
}
|
||||
|
||||
BoardEditorWindow()
|
||||
{
|
||||
this.titleContent = new GUIContent("棋盘编辑器");
|
||||
@ -114,6 +137,20 @@ namespace BFEditor
|
||||
}
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label("grid_edge 路径", GUILayout.Width(100));
|
||||
GUILayout.Space(10);
|
||||
GUILayout.TextField(boardGridEdgePath, GUILayout.Width(300));
|
||||
if (GUILayout.Button("选择", GUILayout.Width(80)))
|
||||
{
|
||||
string openPath = EditorUtility.OpenFilePanel("选择配置表", GetBoardGridEdgePath(), "");
|
||||
if (openPath.CompareTo("") != 0)
|
||||
{
|
||||
boardGridEdgePath = openPath;
|
||||
SetBoardGridEdgePath(openPath);
|
||||
}
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.Space(10);
|
||||
GUILayout.BeginHorizontal();
|
||||
@ -305,6 +342,74 @@ namespace BFEditor
|
||||
boardDict[curIndex] = ja;
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.EndArea();
|
||||
GUILayout.BeginArea(new Rect(730, 650, 500, 500));
|
||||
GUILayout.BeginVertical();
|
||||
GUILayout.Label("棋盘边缘元素");
|
||||
boardEdgeStr = GUILayout.TextField(boardEdgeStr, GUILayout.Width(400), GUILayout.Height(100));
|
||||
if(GUILayout.Button("加载边缘元素配置", GUILayout.Width(110)))
|
||||
{
|
||||
JArray edgeJo = edgeDict[curIndex];
|
||||
string str = "[";
|
||||
for (int i = 0; i < edgeJo.Count; i++)
|
||||
{
|
||||
JArray gridInfo = (JArray)edgeJo[i];
|
||||
if (gridInfo.Count < 3)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string s = "{";
|
||||
for (int j = 0; j < 3; j++)
|
||||
{
|
||||
s = s + gridInfo[j].ToString();
|
||||
if(j != 2)
|
||||
{
|
||||
s = s + ", ";
|
||||
}
|
||||
}
|
||||
s = s + "}";
|
||||
str = str + s;
|
||||
if (i != edgeJo.Count)
|
||||
{
|
||||
str = str + ", ";
|
||||
}
|
||||
}
|
||||
boardEdgeStr = str;
|
||||
}
|
||||
if(GUILayout.Button("重新刷新边缘元素", GUILayout.Width(110)))
|
||||
{
|
||||
string[] units = boardEdgeStr.Split('{');
|
||||
List<string> edgeList = new List<string>();
|
||||
for (int i = 0; i < units.Length; i++)
|
||||
{
|
||||
string formatStr = units[i].Replace("[", "").Replace("]", "").Replace(" ", "").Replace("}", "");
|
||||
string[] unitList = formatStr.Split(',');
|
||||
if (unitList.Length >= 3)
|
||||
{
|
||||
string str = "[";
|
||||
for(int j = 0; j < 3; j++)
|
||||
{
|
||||
str = str + unitList[j];
|
||||
if (j != 2)
|
||||
{
|
||||
str = str + ",";
|
||||
}
|
||||
}
|
||||
str = str + "]";
|
||||
edgeList.Add(str);
|
||||
}
|
||||
}
|
||||
|
||||
JArray ja = new JArray();
|
||||
for (int i = 0; i < edgeList.Count; i++)
|
||||
{
|
||||
JArray unit = (JArray)JsonConvert.DeserializeObject(edgeList[i]);
|
||||
ja.Add(unit);
|
||||
}
|
||||
edgeDict[curIndex] = ja;
|
||||
}
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.EndArea();
|
||||
if(GUI.Button(new Rect(1050, 10, 100, 30), "导出到Excel"))
|
||||
{
|
||||
@ -357,6 +462,21 @@ namespace BFEditor
|
||||
boardGridTypeDict[key] = dict;
|
||||
}
|
||||
|
||||
// 读取grid_edge_type配置表
|
||||
BFEditorUtils.RunCommond("python", "load_board.py " + tempPath + " " + boardGridEdgePath, pythonToolPath);
|
||||
string boardGridEdgeJson = File.ReadAllText(tempPath);
|
||||
jsonObj = (JObject)JsonConvert.DeserializeObject(boardGridEdgeJson);
|
||||
foreach (var item in jsonObj)
|
||||
{
|
||||
int key = int.Parse(item.Key);
|
||||
Dictionary<string, string> dict = new Dictionary<string, string>();
|
||||
foreach (var item2 in (JObject)item.Value)
|
||||
{
|
||||
dict[item2.Key] = item2.Value.ToString();
|
||||
}
|
||||
boardGridEdgeDict[key] = dict;
|
||||
}
|
||||
|
||||
// 读取boardFile配置表
|
||||
BFEditorUtils.RunCommond("python", "load_board.py " + tempPath + " " + boardFilepath, pythonToolPath);
|
||||
string boardFileJson = File.ReadAllText(tempPath);
|
||||
@ -369,6 +489,12 @@ namespace BFEditor
|
||||
boardDict[key] = copyBoard((JArray)item.Value[boardFiledName]);
|
||||
outPutBoardDict[key] = copyBoard((JArray)item.Value[boardFiledName]);
|
||||
}
|
||||
if (item.Value[boardEdgeFiledName] != null)
|
||||
{
|
||||
int key = int.Parse(item.Key);
|
||||
edgeDict[key] = copyBoard((JArray)item.Value[boardEdgeFiledName]);
|
||||
outPutBoardEdgeDict[key] = copyBoard((JArray)item.Value[boardEdgeFiledName]);
|
||||
}
|
||||
}
|
||||
|
||||
loadExcelOver = true;
|
||||
@ -394,7 +520,7 @@ namespace BFEditor
|
||||
void DragBoard()
|
||||
{
|
||||
Texture img;
|
||||
GUI.DrawTexture(new Rect(0, 150, 702, 702), boardImg);
|
||||
GUI.DrawTexture(new Rect(0, 200, 702, 702), boardImg);
|
||||
if(!loadExcelOver)
|
||||
{
|
||||
return;
|
||||
@ -406,7 +532,7 @@ namespace BFEditor
|
||||
return;
|
||||
}
|
||||
|
||||
GUILayout.BeginArea(new Rect(0, 150, 702, 702));
|
||||
GUILayout.BeginArea(new Rect(0, 200, 702, 702));
|
||||
GUILayout.BeginVertical();
|
||||
JArray jo = boardDict[curIndex];
|
||||
int posIndex = 0;
|
||||
@ -452,9 +578,52 @@ namespace BFEditor
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
GUILayout.EndVertical();
|
||||
if (edgeDict.ContainsKey(curIndex))
|
||||
{
|
||||
JArray edgeJo = edgeDict[curIndex];
|
||||
for (int i = 0; i < edgeJo.Count; i++)
|
||||
{
|
||||
JArray gridInfo = (JArray)edgeJo[i];
|
||||
if(gridInfo.Count < 3)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int posId = (int)gridInfo[0];
|
||||
int edgeType = (int)gridInfo[1];
|
||||
int dir = (int)gridInfo[2];
|
||||
// 绘制类型
|
||||
if(boardGridEdgeDict[edgeType].ContainsKey("icon"))
|
||||
{
|
||||
string icon = boardGridEdgeDict[edgeType]["icon"];
|
||||
if (imgDict.ContainsKey(icon))
|
||||
{
|
||||
int row = posId / 10;
|
||||
int col = posId % 10;
|
||||
img = imgDict[icon];
|
||||
if (dir == 1)
|
||||
{
|
||||
GUI.DrawTexture(new Rect(startOffset + (col - 1) * textureWidth, startOffset + (row - 1) * textureWidth - 16, 92, 32), img);
|
||||
}
|
||||
else if (dir == 2)
|
||||
{
|
||||
GUI.DrawTexture(new Rect(startOffset + (col - 1) * textureWidth, startOffset + (row - 1) * textureWidth - 16 + textureWidth, 92, 32), img);
|
||||
}
|
||||
else if (dir == 3)
|
||||
{
|
||||
GUI.DrawTexture(new Rect(startOffset + (col - 1) * textureWidth - 16, startOffset + (row - 1) * textureWidth - 16, 32, 92), img);
|
||||
}
|
||||
else if (dir == 4)
|
||||
{
|
||||
GUI.DrawTexture(new Rect(startOffset + (col - 1) * textureWidth - 16 + textureWidth, startOffset + (row - 1) * textureWidth - 16, 32, 92), img);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GUILayout.EndArea();
|
||||
|
||||
GUILayout.BeginArea(new Rect(730, 150, 510 * 7, 550 / 7 * maxRow));
|
||||
GUILayout.BeginArea(new Rect(730, 200, 510 * 7, 550 / 7 * maxRow));
|
||||
GUILayout.BeginVertical();
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label("棋盘配置信息", GUILayout.Width(100), GUILayout.Height(30));
|
||||
|
||||
@ -136,71 +136,17 @@ namespace BFEditor
|
||||
var configFileInfos = configDirInfo.GetFiles(suffix, SearchOption.TopDirectoryOnly);
|
||||
|
||||
// 检查棋盘文件格式
|
||||
checkBoard("chapter_board", env, sb);
|
||||
checkBoard("chapter_board_bossrush", env, sb);
|
||||
checkBoard("chapter_board_daily_challenge", env, sb);
|
||||
checkBoard("chapter_board_dungeon_armor", env, sb);
|
||||
checkBoard("chapter_board_dungeon_equip", env, sb);
|
||||
checkBoard("chapter_board_dungeon_gold", env, sb);
|
||||
checkBoard("chapter_board_dungeon_shards", env, sb);
|
||||
checkBoard("chapter_board_rune", env, sb);
|
||||
checkBoard("activity_pvp_board", env, sb);
|
||||
checkBoard("arena_board", env, sb);
|
||||
|
||||
var luaScriptString = @"local cfg = require('app/config/chapter_board')
|
||||
if not cfg or not cfg.data then
|
||||
return ''
|
||||
end
|
||||
cfg = cfg.data
|
||||
local tempMap = {}
|
||||
local addErrorInfo = function(errorInfo, cfgId, errorStr)
|
||||
if not tempMap[cfgId] then
|
||||
tempMap[cfgId] = true
|
||||
table.insert(errorInfo, 'cfgId = ' .. cfgId)
|
||||
end
|
||||
|
||||
table.insert(errorInfo, ' ' .. errorStr)
|
||||
end
|
||||
|
||||
local errorInfo = {}
|
||||
for k, info in pairs(cfg) do
|
||||
local board = info.board
|
||||
if not board then
|
||||
addErrorInfo(errorInfo, k, '没有board字段,请检查')
|
||||
end
|
||||
|
||||
if #board < 49 then
|
||||
addErrorInfo(errorInfo, k, '没有board长度不足,请检查,当前长度为' .. #board)
|
||||
end
|
||||
|
||||
for index, v in ipairs(board) do
|
||||
if not v[1] then
|
||||
addErrorInfo(errorInfo, k, 'board字段中' .. index .. '索引没有格子类型')
|
||||
end
|
||||
if not v[2] then
|
||||
addErrorInfo(errorInfo, k, 'board字段中' .. index .. '索引没有元素类型')
|
||||
end
|
||||
end
|
||||
|
||||
local mystery_box_board = info.mystery_box_board
|
||||
if mystery_box_board then
|
||||
for index, v in ipairs(mystery_box_board) do
|
||||
if not v[1] then
|
||||
addErrorInfo(errorInfo, k, 'mystery_box_board字段中' .. index .. '索引没有格子类型')
|
||||
end
|
||||
if not v[2] then
|
||||
addErrorInfo(errorInfo, k, 'mystery_box_board字段中' .. index .. '索引没有元素类型')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if #errorInfo > 0 then
|
||||
return table.concat(errorInfo, '\n');
|
||||
end
|
||||
|
||||
return ''";
|
||||
var resultStr = env.DoString(luaScriptString);
|
||||
if (resultStr.Length > 0)
|
||||
{
|
||||
foreach(var strObj in resultStr)
|
||||
{
|
||||
var str = Convert.ToString(strObj);
|
||||
if(!String.IsNullOrEmpty(str))
|
||||
{
|
||||
sb.Append(str + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 检查monster
|
||||
string monsterConfigListLua = "{";
|
||||
@ -213,7 +159,7 @@ namespace BFEditor
|
||||
}
|
||||
}
|
||||
monsterConfigListLua += "}";
|
||||
luaScriptString = "local ids = {}\n local MONSTER_LIST = " + monsterConfigListLua + "\n";
|
||||
var luaScriptString = "local ids = {}\n local MONSTER_LIST = " + monsterConfigListLua + "\n";
|
||||
luaScriptString += @"local str = {}
|
||||
for i, name in ipairs(MONSTER_LIST) do
|
||||
if name ~= 'monster_base' and name ~= 'monster_position' and name ~= 'monster_position_base' then
|
||||
@ -230,7 +176,7 @@ namespace BFEditor
|
||||
return table.concat(str, '\n');
|
||||
end
|
||||
return ''";
|
||||
resultStr = env.DoString(luaScriptString);
|
||||
var resultStr = env.DoString(luaScriptString);
|
||||
if (resultStr.Length > 0)
|
||||
{
|
||||
foreach(var strObj in resultStr)
|
||||
@ -299,6 +245,76 @@ namespace BFEditor
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static void checkBoard(string configName, LuaEnv env, in StringBuilder sb)
|
||||
{
|
||||
var luaScriptString = @"
|
||||
if not cfg or not cfg.data then
|
||||
return ''
|
||||
end
|
||||
cfg = cfg.data
|
||||
local tempMap = {}
|
||||
local addErrorInfo = function(errorInfo, cfgId, errorStr)
|
||||
if not tempMap[cfgId] then
|
||||
tempMap[cfgId] = true
|
||||
table.insert(errorInfo, 'cfgId = ' .. cfgId)
|
||||
end
|
||||
|
||||
table.insert(errorInfo, ' ' .. errorStr)
|
||||
end
|
||||
|
||||
local errorInfo = {}
|
||||
for k, info in pairs(cfg) do
|
||||
local board = info.board or info.board_daily_challenge
|
||||
if not board then
|
||||
addErrorInfo(errorInfo, k, configName .. ' 没有board字段,请检查')
|
||||
else
|
||||
if #board < 49 then
|
||||
addErrorInfo(errorInfo, k, configName .. ' 没有board长度不足,请检查,当前长度为' .. #board)
|
||||
end
|
||||
|
||||
for index, v in ipairs(board) do
|
||||
if not v[1] then
|
||||
addErrorInfo(errorInfo, k, configName .. ' board字段中' .. index .. '索引没有格子类型')
|
||||
end
|
||||
if not v[2] then
|
||||
addErrorInfo(errorInfo, k, configName .. ' board字段中' .. index .. '索引没有元素类型')
|
||||
elseif v[2] > 5 or v[2] < 0 then
|
||||
addErrorInfo(errorInfo, k, configName .. ' board字段中' .. index .. '元素类型不合法,当前为' .. v[2])
|
||||
end
|
||||
end
|
||||
|
||||
local mystery_box_board = info.mystery_box_board
|
||||
if mystery_box_board then
|
||||
for index, v in ipairs(mystery_box_board) do
|
||||
if not v[1] then
|
||||
addErrorInfo(errorInfo, k, configName .. ' mystery_box_board字段中' .. index .. '索引没有格子类型')
|
||||
end
|
||||
if not v[2] then
|
||||
addErrorInfo(errorInfo, k, configName .. ' mystery_box_board字段中' .. index .. '索引没有元素类型')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if #errorInfo > 0 then
|
||||
return table.concat(errorInfo, '\n');
|
||||
end
|
||||
|
||||
return ''";
|
||||
var resultStr = env.DoString(" local cfg = require('app/config/" + configName + "')\n" + "local configName = '" + configName + "'\n" + luaScriptString);
|
||||
if (resultStr.Length > 0)
|
||||
{
|
||||
foreach(var strObj in resultStr)
|
||||
{
|
||||
var str = Convert.ToString(strObj);
|
||||
if(!String.IsNullOrEmpty(str))
|
||||
{
|
||||
sb.Append(str + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static bool FastExportExcelToLua(bool isDeveloper, string designExcelPath)
|
||||
{
|
||||
failFlag = false;
|
||||
|
||||
@ -104,7 +104,7 @@ namespace BFEditor
|
||||
[MenuItem("其他工具/棋盘编辑器", false, 9)]
|
||||
public static void CreateBoardEditorWindow()
|
||||
{
|
||||
var window = (BoardEditorWindow)EditorWindow.GetWindowWithRect(typeof(BoardEditorWindow), new Rect(Screen.width / 2, Screen.height / 2, 1200, 850), true);
|
||||
var window = (BoardEditorWindow)EditorWindow.GetWindowWithRect(typeof(BoardEditorWindow), new Rect(Screen.width / 2, Screen.height / 2, 1200, 1000), true);
|
||||
window.Show();
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,8 +11,8 @@ public class JenkinsAdapter {
|
||||
/// 构建版本号
|
||||
/// </summary>
|
||||
private static string BuildVersion = (int.Parse(DateTime.Now.ToString("yyMMddHH"))).ToString();
|
||||
private static int versionCode = 8;
|
||||
private static string versionName = "1.2.8";
|
||||
private static int versionCode = 10;
|
||||
private static string versionName = "1.4.0";
|
||||
|
||||
[MenuItem("Jenkins/JenkinsBuildIos")]
|
||||
public static void CommandLineBuildIos() {
|
||||
@ -27,7 +27,7 @@ public class JenkinsAdapter {
|
||||
|
||||
// 设置版本号
|
||||
PlayerSettings.bundleVersion = buildInfo.version;
|
||||
//Jenkins要求自动构建最低ios8.0
|
||||
//SDK要求
|
||||
PlayerSettings.iOS.targetOSVersionString = "12.0";
|
||||
//设置Build,每次需要增加
|
||||
PlayerSettings.iOS.buildNumber = versionCode.ToString();
|
||||
|
||||
@ -68,7 +68,8 @@ namespace BFEditor
|
||||
"TMPro.SortingLayerHelper",
|
||||
"UnityEngine.CloudStreaming",
|
||||
"BFEditor.EditorBattleRoleAttackOperate",
|
||||
"IronSourceBannerEvents", "IronSourceEvents", "IronSourceInterstitialEvents", "IronSourceRewardedVideoEvents"
|
||||
"IronSourceBannerEvents", "IronSourceEvents", "IronSourceInterstitialEvents", "IronSourceRewardedVideoEvents",
|
||||
"IronSourceAdQualityManifestTools"
|
||||
};
|
||||
|
||||
static bool isExcluded(Type type)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -8,19 +8,28 @@
|
||||
url "https://maven.google.com"
|
||||
}
|
||||
maven {
|
||||
url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8
|
||||
url "https://android-sdk.is.com/" // Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/ThirdParty/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/ThirdParty/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/ThirdParty/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:48, Assets/ThirdParty/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISVungleAdapterDependencies.xml:16
|
||||
}
|
||||
maven {
|
||||
url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
|
||||
url "https://maven.google.com/" // Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:40, Assets/ThirdParty/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
|
||||
}
|
||||
maven {
|
||||
url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
|
||||
url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/ThirdParty/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
|
||||
}
|
||||
maven {
|
||||
url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
|
||||
url "https://repo.maven.apache.org/maven2/" // Assets/ThirdParty/IronSource/Editor/ISFyberAdapterDependencies.xml:8
|
||||
}
|
||||
maven {
|
||||
url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
|
||||
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:8, Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:16, Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:24, Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
|
||||
}
|
||||
maven {
|
||||
url "https://artifact.bytedance.com/repository/pangle/" // Assets/ThirdParty/IronSource/Editor/ISPangleAdapterDependencies.xml:15
|
||||
}
|
||||
maven {
|
||||
url "https://sdk.tapjoy.com/" // Assets/ThirdParty/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
|
||||
}
|
||||
maven {
|
||||
url "https://jitpack.io/" // Assets/ThirdParty/IronSource/Editor/ISVungleAdapterDependencies.xml:8
|
||||
}
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
@ -34,42 +43,50 @@ apply plugin: 'com.android.library'
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
// Android Resolver Dependencies Start
|
||||
implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:40
|
||||
implementation 'com.adcolony:sdk:4.8.0' // Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8
|
||||
implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10
|
||||
implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
|
||||
implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
|
||||
implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
|
||||
implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency
|
||||
implementation 'com.applovin:applovin-sdk:11.7.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15
|
||||
implementation 'com.applovin:applovin-sdk:11.10.1' // Assets/ThirdParty/MaxSdk/AppLovin/Editor/Dependencies.xml:4
|
||||
implementation 'com.appsflyer:adrevenue:6.5.4' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml:4
|
||||
implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6
|
||||
implementation 'com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml:5
|
||||
implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8
|
||||
implementation 'com.chartboost:chartboost-sdk:9.2.0' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
|
||||
implementation 'com.facebook.android:audience-network-sdk:6.12.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8
|
||||
implementation 'com.chartboost:chartboost-sdk:9.3.1' // Assets/ThirdParty/IronSource/Editor/ISChartboostAdapterDependencies.xml:15
|
||||
implementation 'com.facebook.android:audience-network-sdk:6.16.0' // Assets/ThirdParty/IronSource/Editor/ISFacebookAdapterDependencies.xml:8
|
||||
implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6
|
||||
implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5
|
||||
implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9
|
||||
implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7
|
||||
implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8
|
||||
implementation 'com.fyber:marketplace-sdk:8.2.2' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8
|
||||
implementation 'com.google.android.gms:play-services-ads:21.5.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8
|
||||
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17
|
||||
implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25
|
||||
implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:admobadapter:4.3.35' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:applovinadapter:4.3.37' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:chartboostadapter:4.3.11' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:facebookadapter:4.3.39' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:fyberadapter:4.3.24' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:liftoffadapter:4.3.5' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:pangleadapter:4.3.17' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:tapjoyadapter:4.1.24' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:unityadsadapter:4.3.27' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.sdk:mediationsdk:7.3.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9
|
||||
implementation 'com.pangle.global:ads-sdk:5.0.0.8' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15
|
||||
implementation 'com.fyber:marketplace-sdk:8.2.4' // Assets/ThirdParty/IronSource/Editor/ISFyberAdapterDependencies.xml:8
|
||||
implementation 'com.google.android.gms:play-services-ads:22.2.0' // Assets/ThirdParty/IronSource/Editor/ISAdMobAdapterDependencies.xml:8
|
||||
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:17
|
||||
implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:25
|
||||
implementation 'com.ironsource.adapters:adcolonyadapter:4.3.15' // Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:admobadapter:4.3.39' // Assets/ThirdParty/IronSource/Editor/ISAdMobAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:applovinadapter:4.3.39' // Assets/ThirdParty/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:chartboostadapter:4.3.12' // Assets/ThirdParty/IronSource/Editor/ISChartboostAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:facebookadapter:4.3.45' // Assets/ThirdParty/IronSource/Editor/ISFacebookAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:fyberadapter:4.3.28' // Assets/ThirdParty/IronSource/Editor/ISFyberAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.adapters:mintegraladapter:4.3.19' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:48
|
||||
implementation 'com.ironsource.adapters:pangleadapter:4.3.22' // Assets/ThirdParty/IronSource/Editor/ISPangleAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:tapjoyadapter:4.1.25' // Assets/ThirdParty/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:unityadsadapter:4.3.33' // Assets/ThirdParty/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8
|
||||
implementation 'com.ironsource.adapters:vungleadapter:4.3.22' // Assets/ThirdParty/IronSource/Editor/ISVungleAdapterDependencies.xml:16
|
||||
implementation 'com.ironsource.sdk:mediationsdk:7.5.1' // Assets/ThirdParty/IronSource/Editor/IronSourceSDKDependencies.xml:9
|
||||
implementation 'com.mbridge.msdk.oversea:mbbanner:16.5.21' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:24
|
||||
implementation 'com.mbridge.msdk.oversea:mbbid:16.5.21' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:32
|
||||
implementation 'com.mbridge.msdk.oversea:newinterstitial:16.5.21' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:8
|
||||
implementation 'com.mbridge.msdk.oversea:reward:16.5.21' // Assets/ThirdParty/IronSource/Editor/ISMintegralAdapterDependencies.xml:16
|
||||
implementation 'com.pangle.global:ads-sdk:5.5.0.5' // Assets/ThirdParty/IronSource/Editor/ISPangleAdapterDependencies.xml:15
|
||||
implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4
|
||||
implementation 'com.tapjoy:tapjoy-android-sdk:12.11.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
|
||||
implementation 'com.unity3d.ads:unity-ads:4.6.1' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
|
||||
implementation 'io.liftoff:liftoffads:1.9.1' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8
|
||||
implementation 'com.tapjoy:tapjoy-android-sdk:13.0.1' // Assets/ThirdParty/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15
|
||||
implementation 'com.unity3d.ads:unity-ads:4.9.1' // Assets/ThirdParty/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15
|
||||
implementation 'com.vungle:vungle-ads:7.0.0' // Assets/ThirdParty/IronSource/Editor/ISVungleAdapterDependencies.xml:8
|
||||
// Android Resolver Dependencies End
|
||||
**DEPS**}
|
||||
|
||||
|
||||
@ -111,8 +111,8 @@ public partial class AdManager
|
||||
string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad
|
||||
string adFormat = adInfo.AdFormat;
|
||||
|
||||
var dict = new Dictionary<string, string>();
|
||||
dict.Add("revenue", revenue.ToString());
|
||||
var dict = new Dictionary<string, System.Object>();
|
||||
dict.Add("revenue", revenue);
|
||||
dict.Add("country_code", countryCode);
|
||||
dict.Add("network_name", networkName);
|
||||
dict.Add("ad_unit_Id", adUnitId);
|
||||
|
||||
@ -31,10 +31,22 @@ namespace BF
|
||||
|
||||
// SDK init
|
||||
BFLog.Log("unity-script: IronSource.Agent.init");
|
||||
// IronSource.Agent.setMetaData("is_test_suite", "enable");
|
||||
IronSource.Agent.init(appKey);
|
||||
IronSource.Agent.setManualLoadRewardedVideo(true);
|
||||
|
||||
// 初始化之前先设置一下用户id
|
||||
// ISAdQualityConfig adQualityConfig = new ISAdQualityConfig();
|
||||
// adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier;
|
||||
// // adQualityConfig.TestMode = true;
|
||||
// // adQualityConfig.LogLevel = ISAdQualityLogLevel.INFO;
|
||||
// IronSourceAdQuality.Initialize(appKey, adQualityConfig);
|
||||
#elif UNITY_IPHONE
|
||||
// string appKey = "8545d445";
|
||||
// 初始化之前先设置一下用户id
|
||||
// ISAdQualityConfig adQualityConfig = new ISAdQualityConfig();
|
||||
// adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier;
|
||||
// IronSourceAdQuality.Initialize(appKey, adQualityConfig);
|
||||
#else
|
||||
// string appKey = "unexpected_platform";
|
||||
#endif
|
||||
@ -144,6 +156,8 @@ namespace BF
|
||||
void SdkInitializationCompletedEvent()
|
||||
{
|
||||
BFLog.Log("unity-script: I got SdkInitializationCompletedEvent");
|
||||
//Launch test suite
|
||||
// IronSource.Agent.launchTestSuite();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@ -272,8 +286,8 @@ namespace BF
|
||||
{
|
||||
return;
|
||||
}
|
||||
var dict = new Dictionary<string, string>();
|
||||
dict.Add("revenue", revenue.ToString());
|
||||
var dict = new Dictionary<string, System.Object>();
|
||||
dict.Add("revenue", revenue);
|
||||
dict.Add("auction_id", impressionData.auctionId);
|
||||
dict.Add("country_code", impressionData.country);
|
||||
dict.Add("network_name", impressionData.adNetwork);
|
||||
@ -287,7 +301,7 @@ namespace BF
|
||||
}
|
||||
if (!ReferenceEquals(impressionData.lifetimeRevenue, null))
|
||||
{
|
||||
dict.Add("lifetime_revenue", impressionData.lifetimeRevenue.ToString());
|
||||
dict.Add("lifetime_revenue", impressionData.lifetimeRevenue);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(impressionData.encryptedCPM))
|
||||
{
|
||||
|
||||
116
Assets/Scripts/Common/SDK/DZSDKManager.cs
Normal file
116
Assets/Scripts/Common/SDK/DZSDKManager.cs
Normal file
@ -0,0 +1,116 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
// using BF.NativeCore.Platform;
|
||||
|
||||
namespace BF
|
||||
{
|
||||
//copy from sdk
|
||||
public enum NotchType
|
||||
{
|
||||
NONE,
|
||||
ANDROID,
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class NotchScreenInfo
|
||||
{
|
||||
public NotchType notchType = NotchType.NONE;
|
||||
public bool enabled = false;
|
||||
public int width = 0;
|
||||
public int height = 0;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("notchType:{0} showNotch:{1} width:{2} height:{3}", notchType, enabled, width, height);
|
||||
}
|
||||
}
|
||||
public class DZSDKManager : MonoBehaviour
|
||||
{
|
||||
|
||||
#if UNITY_ANDROID
|
||||
/// <summary>
|
||||
/// android原生代码对象
|
||||
/// </summary>
|
||||
AndroidJavaObject ajc;
|
||||
#endif
|
||||
//解析的数据
|
||||
private NotchScreenInfo notchScreenInfo = new NotchScreenInfo();
|
||||
private bool initNotchScreen = false;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
//通过该API来实例化导入的arr中对应的类
|
||||
ajc = new AndroidJavaObject("com.droidhang.aod.AODHelper");
|
||||
#endif
|
||||
}
|
||||
|
||||
public void CSGetNotchScreenInfo()
|
||||
{
|
||||
if (initNotchScreen) return;
|
||||
BFLog.Log("尝试获取适配信息 CSGetNotchScreenInfo");
|
||||
#if UNITY_ANDROID
|
||||
//通过API来调用原生代码的方法
|
||||
bool success = ajc.Call<bool>("getNotchScreen");
|
||||
if (success)
|
||||
{
|
||||
initNotchScreen = true;
|
||||
//请求成功
|
||||
BFLog.Log("获取安卓刘海屏成功");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 原生层通过该方法传回信息
|
||||
/// </summary>
|
||||
/// <param name="content"></param>
|
||||
public void GetNotchScreen(string content)
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
BFLog.Log("获取NotchInfo:" + content);
|
||||
|
||||
if (!string.IsNullOrEmpty(content))
|
||||
{
|
||||
//解析刘海屏数据
|
||||
notchScreenInfo = JsonUtility.FromJson<NotchScreenInfo>(content);
|
||||
|
||||
BFLog.Log("解析 NotchScreen:" + notchScreenInfo.ToString());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对外接口 获取刘海屏信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public NotchScreenInfo GetNotchScreenInfo()
|
||||
{
|
||||
return notchScreenInfo;
|
||||
}
|
||||
|
||||
// 刘海屏信息 ***************************************************************************************************
|
||||
|
||||
public NotchType GetNotchScreenType()
|
||||
{
|
||||
return notchScreenInfo.notchType;
|
||||
}
|
||||
|
||||
public bool GetNotchScreenEnable()
|
||||
{
|
||||
return notchScreenInfo.enabled;
|
||||
}
|
||||
|
||||
public int GetNotchScreenWidth()
|
||||
{
|
||||
return notchScreenInfo.width;
|
||||
}
|
||||
|
||||
public int GetNotchScreenHeight()
|
||||
{
|
||||
return notchScreenInfo.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Common/SDK/DZSDKManager.cs.meta
Normal file
11
Assets/Scripts/Common/SDK/DZSDKManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ced1766fcb78b314db1ae240a0e27a9f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,5 +1,5 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.19.0</unityversion>
|
||||
<unityversion>4.3.20.1</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.adcolony:sdk:4.8.0">
|
||||
<repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:adcolonyadapter:4.3.14">
|
||||
<androidPackage spec="com.ironsource.adapters:adcolonyadapter:4.3.15">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAdColonyAdapter" version="4.3.16.0">
|
||||
<iosPod name="IronSourceAdColonyAdapter" version="4.3.17.1">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.47.0</unityversion>
|
||||
<unityversion>4.3.54.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.google.android.gms:play-services-ads:21.5.0">
|
||||
<androidPackage spec="com.google.android.gms:play-services-ads:22.2.0">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:admobadapter:4.3.35">
|
||||
<androidPackage spec="com.ironsource.adapters:admobadapter:4.3.39">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAdMobAdapter" version="4.3.41.0">
|
||||
<iosPod name="IronSourceAdMobAdapter" version="4.3.47.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.42.0</unityversion>
|
||||
<unityversion>4.3.44.3</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:applovinadapter:4.3.37">
|
||||
<androidPackage spec="com.ironsource.adapters:applovinadapter:4.3.39">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.applovin:applovin-sdk:11.7.1">
|
||||
<androidPackage spec="com.applovin:applovin-sdk:11.10.1">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAppLovinAdapter" version="4.3.38.0">
|
||||
<iosPod name="IronSourceAppLovinAdapter" version="4.3.40.3">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.17.0</unityversion>
|
||||
<unityversion>4.3.19.2</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:chartboostadapter:4.3.11">
|
||||
<androidPackage spec="com.ironsource.adapters:chartboostadapter:4.3.12">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.chartboost:chartboost-sdk:9.2.0">
|
||||
<androidPackage spec="com.chartboost:chartboost-sdk:9.3.1">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
<repository>https://cboost.jfrog.io/artifactory/chartboost-ads/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceChartboostAdapter" version="4.3.13.0">
|
||||
<iosPod name="IronSourceChartboostAdapter" version="4.3.15.2">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.52.0</unityversion>
|
||||
<unityversion>4.3.61.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.facebook.android:audience-network-sdk:6.12.0">
|
||||
<androidPackage spec="com.facebook.android:audience-network-sdk:6.16.0">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:facebookadapter:4.3.39">
|
||||
<androidPackage spec="com.ironsource.adapters:facebookadapter:4.3.45">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceFacebookAdapter" version="4.3.39.0">
|
||||
<iosPod name="IronSourceFacebookAdapter" version="4.3.43.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.34.0</unityversion>
|
||||
<unityversion>4.3.38.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.fyber:marketplace-sdk:8.2.2">
|
||||
<androidPackage spec="com.fyber:marketplace-sdk:8.2.4">
|
||||
<repositories>
|
||||
<repository>https://repo.maven.apache.org/maven2/</repository>
|
||||
</repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:fyberadapter:4.3.24">
|
||||
<androidPackage spec="com.ironsource.adapters:fyberadapter:4.3.28">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceFyberAdapter" version="4.3.28.0">
|
||||
<iosPod name="IronSourceFyberAdapter" version="4.3.31.1">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.16.0</unityversion>
|
||||
<unityversion>4.3.19.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:newinterstitial:16.4.41">
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:newinterstitial:16.5.21">
|
||||
<repositories>
|
||||
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
|
||||
</repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:reward:16.4.41">
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:reward:16.5.21">
|
||||
<repositories>
|
||||
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:mbbanner:16.4.41">
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:mbbanner:16.5.21">
|
||||
<repositories>
|
||||
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
|
||||
</repositories>
|
||||
@ -25,7 +25,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:mbbid:16.4.41">
|
||||
<androidPackage spec="com.mbridge.msdk.oversea:mbbid:16.5.21">
|
||||
<repositories>
|
||||
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/</repository>
|
||||
</repositories>
|
||||
@ -41,7 +41,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:mintegraladapter:4.3.16">
|
||||
<androidPackage spec="com.ironsource.adapters:mintegraladapter:4.3.19">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -49,7 +49,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceMintegralAdapter" version="4.3.15.0">
|
||||
<iosPod name="IronSourceMintegralAdapter" version="4.3.18.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.22.0</unityversion>
|
||||
<unityversion>4.3.27.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:pangleadapter:4.3.17">
|
||||
<androidPackage spec="com.ironsource.adapters:pangleadapter:4.3.22">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.pangle.global:ads-sdk:5.0.0.8">
|
||||
<androidPackage spec="com.pangle.global:ads-sdk:5.5.0.5">
|
||||
<repositories>
|
||||
<repository>https://artifact.bytedance.com/repository/pangle/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourcePangleAdapter" version="4.3.19.0">
|
||||
<iosPod name="IronSourcePangleAdapter" version="4.3.24.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,21 +1,21 @@
|
||||
<dependencies>
|
||||
<unityversion>4.1.29.0</unityversion>
|
||||
<unityversion>4.1.30.3</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:tapjoyadapter:4.1.24">
|
||||
<androidPackage spec="com.ironsource.adapters:tapjoyadapter:4.1.25">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.tapjoy:tapjoy-android-sdk:12.11.1">
|
||||
<androidPackage spec="com.tapjoy:tapjoy-android-sdk:13.0.1">
|
||||
<repositories>
|
||||
<repository>https://sdk.tapjoy.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceTapjoyAdapter" version="4.1.24.0">
|
||||
<iosPod name="IronSourceTapjoyAdapter" version="4.1.25.3">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.32.0</unityversion>
|
||||
<unityversion>4.3.38.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.27">
|
||||
<androidPackage spec="com.ironsource.adapters:unityadsadapter:4.3.33">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.unity3d.ads:unity-ads:4.6.1">
|
||||
<androidPackage spec="com.unity3d.ads:unity-ads:4.9.1">
|
||||
<repositories>
|
||||
<repository>https://maven.google.com/</repository>
|
||||
</repositories>
|
||||
@ -16,7 +16,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.28.0">
|
||||
<iosPod name="IronSourceUnityAdsAdapter" version="4.3.33.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<dependencies>
|
||||
<unityversion>4.3.33.0</unityversion>
|
||||
<unityversion>4.3.37.0</unityversion>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.vungle:publisher-sdk-android:6.12.1">
|
||||
<androidPackage spec="com.vungle:vungle-ads:7.0.0">
|
||||
<repositories>
|
||||
<repository>https://jitpack.io/</repository>
|
||||
</repositories>
|
||||
@ -9,7 +9,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.adapters:vungleadapter:4.3.20">
|
||||
<androidPackage spec="com.ironsource.adapters:vungleadapter:4.3.22">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -17,7 +17,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceVungleAdapter" version="4.3.26.0">
|
||||
<iosPod name="IronSourceVungleAdapter" version="4.3.29.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
@ -220,7 +220,7 @@ public class IronSourceDependenciesManager : EditorWindow
|
||||
ProviderInfo info = new ProviderInfo();
|
||||
|
||||
object providerXML;
|
||||
var lowerCaseItem = item.Key.ToLower();
|
||||
var lowerCaseItem = item.Key.ToLower(new System.Globalization.CultureInfo("en"));
|
||||
|
||||
linksDictionary.TryGetValue(lowerCaseItem, out providerXML);
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ public class IronSourceManifestProcessor : IPreprocessBuild
|
||||
private const string AD_ID_PERMISSION_ATTR = "com.google.android.gms.permission.AD_ID";
|
||||
private const string MANIFEST_PERMISSION = "uses-permission";
|
||||
private const string MANIFEST_META_DATA = "meta-data";
|
||||
private const string IRONSOURCE_MANIFEST_PATH = "IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml";
|
||||
private const string IRONSOURCE_MANIFEST_PATH = "IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml";
|
||||
private string manifestPath = "";
|
||||
private XNamespace ns = "http://schemas.android.com/apk/res/android";
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<dependencies>
|
||||
<unityversion>7.3.0.1</unityversion>
|
||||
<unityversion>7.5.1</unityversion>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.sdk:mediationsdk:7.3.0.1">
|
||||
<androidPackage spec="com.ironsource.sdk:mediationsdk:7.5.1">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
@ -26,7 +26,7 @@
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceSDK" version="7.3.0.0">
|
||||
<iosPod name="IronSourceSDK" version="7.5.0.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
|
||||
Binary file not shown.
8
Assets/ThirdParty/IronSource/Plugins/Android.meta
vendored
Normal file
8
Assets/ThirdParty/IronSource/Plugins/Android.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 78bb03eee4d26fb4da4755f7e6529784
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib.meta
vendored
Normal file
28
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib.meta
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 718f851be2f4c4ee9b4c748b225a7ea2
|
||||
folderAsset: yes
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
12
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml
vendored
Normal file
12
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ironsource.unity">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<application>
|
||||
<!-- AdMob -->
|
||||
<!--As Requiered By Admob please add your App ID-->
|
||||
<!--<meta-data-->
|
||||
<!--android:name="com.google.android.gms.ads.APPLICATION_ID"-->
|
||||
<!--android:value="YOUR_ADMOB_APP_ID"/>-->
|
||||
</application>
|
||||
</manifest>
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43f2c8ee7c4303948bbd5f896c515318
|
||||
guid: e46e3d39a8bec48d9ae81d0008842ad4
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
8
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs.meta
vendored
Normal file
8
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5936d92d17be4fde864e068dd13d202
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar
vendored
Normal file
BIN
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar
vendored
Normal file
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbe75846a2b4da1459371181319ce8e3
|
||||
guid: f10a601320ff74e1e96ecfd77be278c5
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
2
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties
vendored
Normal file
2
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
target=android-9
|
||||
android.library=true
|
||||
7
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties.meta
vendored
Normal file
7
Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties.meta
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6d91e910c9af49d7a1d0254340e9dca
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
22
Assets/ThirdParty/IronSource/Scripts/AdFormat.cs
vendored
Normal file
22
Assets/ThirdParty/IronSource/Scripts/AdFormat.cs
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the available formats for displaying advertisements.
|
||||
/// </summary>
|
||||
public enum AdFormat
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a rewarded video ad format.
|
||||
/// </summary>
|
||||
RewardedVideo,
|
||||
|
||||
/// <summary>
|
||||
/// Represents an interstitial ad format.
|
||||
/// </summary>
|
||||
Interstitial,
|
||||
|
||||
/// <summary>
|
||||
/// Represents a banner ad format.
|
||||
/// </summary>
|
||||
Banner
|
||||
}
|
||||
11
Assets/ThirdParty/IronSource/Scripts/AdFormat.cs.meta
vendored
Normal file
11
Assets/ThirdParty/IronSource/Scripts/AdFormat.cs.meta
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8124546645b9349f7858c4510ea7de78
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -2,15 +2,20 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System;
|
||||
|
||||
public class AndroidAgent : IronSourceIAgent
|
||||
{
|
||||
private static AndroidJavaObject _androidBridge;
|
||||
private readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge";
|
||||
private const string REWARD_AMOUNT = "reward_amount";
|
||||
private const string REWARD_NAME = "reward_name";
|
||||
private const string PLACEMENT_NAME = "placement_name";
|
||||
static AndroidJavaObject _androidBridge;
|
||||
readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge";
|
||||
const string REWARD_AMOUNT = "reward_amount";
|
||||
const string REWARD_NAME = "reward_name";
|
||||
const string PLACEMENT_NAME = "placement_name";
|
||||
|
||||
const string WATERFALL_CONFIG_FLOOR = "floor";
|
||||
const string WATERFALL_CONFIG_CEILING = "ceiling";
|
||||
const string WATERFALL_CONFIG_API = "setWaterfallConfiguration";
|
||||
|
||||
public AndroidAgent ()
|
||||
{
|
||||
@ -34,6 +39,48 @@ public class AndroidAgent : IronSourceIAgent
|
||||
|
||||
//******************* Base API *******************//
|
||||
|
||||
/// <summary>
|
||||
/// Allows publishers to set configurations for a waterfall of a given ad type.
|
||||
/// </summary>
|
||||
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
|
||||
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
|
||||
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
|
||||
{
|
||||
var ceiling = waterfallConfiguration.Ceiling;
|
||||
var floor = waterfallConfiguration.Floor;
|
||||
var dict = new Dictionary<string, string>();
|
||||
|
||||
if (ceiling.HasValue)
|
||||
{
|
||||
dict.Add(WATERFALL_CONFIG_CEILING, ceiling.Value.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
if (floor.HasValue)
|
||||
{
|
||||
dict.Add(WATERFALL_CONFIG_FLOOR, floor.Value.ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
var json = IronSourceJSON.Json.Serialize(dict);
|
||||
string stringAdFormat;
|
||||
|
||||
switch (adFormat)
|
||||
{
|
||||
case AdFormat.RewardedVideo:
|
||||
stringAdFormat = "REWARDED_VIDEO";
|
||||
break;
|
||||
case AdFormat.Interstitial:
|
||||
stringAdFormat = "INTERSTITIAL";
|
||||
break;
|
||||
case AdFormat.Banner:
|
||||
stringAdFormat = "BANNER";
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
getBridge().Call(WATERFALL_CONFIG_API, json, stringAdFormat);
|
||||
}
|
||||
|
||||
public void onApplicationPause (bool pause)
|
||||
{
|
||||
if (pause)
|
||||
|
||||
@ -7,7 +7,7 @@ public class IronSource : IronSourceIAgent
|
||||
{
|
||||
private IronSourceIAgent _platformAgent;
|
||||
private static IronSource _instance;
|
||||
public static string UNITY_PLUGIN_VERSION = "7.3.0.1-r";
|
||||
public static string UNITY_PLUGIN_VERSION = "7.5.1-r";
|
||||
private static bool isUnsupportedPlatform;
|
||||
|
||||
private IronSource()
|
||||
@ -67,6 +67,16 @@ public class IronSource : IronSourceIAgent
|
||||
|
||||
//******************* Base API *******************//
|
||||
|
||||
/// <summary>
|
||||
/// Allows publishers to set configurations for a waterfall of a given ad type.
|
||||
/// </summary>
|
||||
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
|
||||
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
|
||||
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
|
||||
{
|
||||
_platformAgent.SetWaterfallConfiguration(waterfallConfiguration, adFormat);
|
||||
}
|
||||
|
||||
public void onApplicationPause(bool pause)
|
||||
{
|
||||
_platformAgent.onApplicationPause(pause);
|
||||
@ -256,22 +266,26 @@ public class IronSource : IronSourceIAgent
|
||||
|
||||
//******************* Offerwall API *******************//
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public void showOfferwall()
|
||||
{
|
||||
_platformAgent.showOfferwall();
|
||||
}
|
||||
|
||||
public void showOfferwall(string placementName)
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public void showOfferwall(string placementName)
|
||||
{
|
||||
_platformAgent.showOfferwall(placementName);
|
||||
}
|
||||
|
||||
public void getOfferwallCredits()
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public void getOfferwallCredits()
|
||||
{
|
||||
_platformAgent.getOfferwallCredits();
|
||||
}
|
||||
|
||||
public bool isOfferwallAvailable()
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public bool isOfferwallAvailable()
|
||||
{
|
||||
return _platformAgent.isOfferwallAvailable();
|
||||
}
|
||||
|
||||
@ -83,11 +83,17 @@ public class IronSourceEvents : MonoBehaviour
|
||||
[Obsolete("This API has been deprecated as of SDK 7.3.0.1", false)]
|
||||
public static event Action<string, IronSourceError> onInterstitialAdShowFailedDemandOnlyEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<bool> onOfferwallAvailableEvent;
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action onOfferwallOpenedEvent;
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent;
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent;
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action onOfferwallClosedEvent;
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<IronSourceError> onOfferwallShowFailedEvent;
|
||||
|
||||
[Obsolete("This API has been deprecated as of SDK 7.3.0. Please use the alternate API in IronSourceBannerEvents listener instead.", false)]
|
||||
@ -1643,6 +1649,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action _onOfferwallOpenedEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action onOfferwallOpenedEvent
|
||||
{
|
||||
add
|
||||
@ -1672,6 +1679,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action<IronSourceError> _onOfferwallShowFailedEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<IronSourceError> onOfferwallShowFailedEvent
|
||||
{
|
||||
add
|
||||
@ -1702,6 +1710,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action _onOfferwallClosedEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action onOfferwallClosedEvent
|
||||
{
|
||||
add
|
||||
@ -1731,6 +1740,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action<IronSourceError> _onGetOfferwallCreditsFailedEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<IronSourceError> onGetOfferwallCreditsFailedEvent
|
||||
{
|
||||
add
|
||||
@ -1762,6 +1772,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action<Dictionary<string, object>> _onOfferwallAdCreditedEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<Dictionary<string, object>> onOfferwallAdCreditedEvent
|
||||
{
|
||||
add
|
||||
@ -1789,6 +1800,7 @@ public class IronSourceEvents : MonoBehaviour
|
||||
|
||||
private static event Action<bool> _onOfferwallAvailableEvent;
|
||||
|
||||
[Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)]
|
||||
public static event Action<bool> onOfferwallAvailableEvent
|
||||
{
|
||||
add
|
||||
|
||||
@ -4,6 +4,13 @@ public interface IronSourceIAgent
|
||||
{
|
||||
//******************* Base API *******************//
|
||||
|
||||
/// <summary>
|
||||
/// Allows publishers to set configurations for a waterfall of a given ad type.
|
||||
/// </summary>
|
||||
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
|
||||
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
|
||||
void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat);
|
||||
|
||||
void onApplicationPause(bool pause);
|
||||
|
||||
string getAdvertiserId();
|
||||
|
||||
@ -11,6 +11,15 @@ public class UnsupportedPlatformAgent : IronSourceIAgent
|
||||
|
||||
#region IronSourceAgent implementation
|
||||
|
||||
/// <summary>
|
||||
/// This function is not supported on the current platform and does nothing.
|
||||
/// </summary>
|
||||
/// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
|
||||
/// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
|
||||
public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
|
||||
{
|
||||
}
|
||||
|
||||
public void start()
|
||||
{
|
||||
}
|
||||
|
||||
92
Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs
vendored
Normal file
92
Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Configuration class which allows users to customize or filter a Waterfall.
|
||||
/// </summary>
|
||||
public class WaterfallConfiguration
|
||||
{
|
||||
readonly double? ceiling;
|
||||
readonly double? floor;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ceiling value.
|
||||
/// </summary>
|
||||
public double? Ceiling { get { return ceiling; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the floor value.
|
||||
/// </summary>
|
||||
public double? Floor { get { return floor; } }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the WaterfallConfiguration class.
|
||||
/// </summary>
|
||||
/// <param name="ceiling">The ceiling value.</param>
|
||||
/// <param name="floor">The floor value.</param>
|
||||
private WaterfallConfiguration(double? ceiling, double? floor)
|
||||
{
|
||||
this.ceiling = ceiling;
|
||||
this.floor = floor;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a builder for creating instances of WaterfallConfiguration.
|
||||
/// </summary>
|
||||
/// <returns>The WaterfallConfigurationBuilder.</returns>
|
||||
public static WaterfallConfigurationBuilder Builder()
|
||||
{
|
||||
return new WaterfallConfigurationBuilder();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an empty instance of WaterfallConfiguration.
|
||||
/// </summary>
|
||||
/// <returns>The empty WaterfallConfiguration.</returns>
|
||||
public static WaterfallConfiguration Empty()
|
||||
{
|
||||
return new WaterfallConfiguration(double.NaN, double.NaN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builder class which to create a WaterfallConfiguration.
|
||||
/// </summary>
|
||||
public class WaterfallConfigurationBuilder
|
||||
{
|
||||
double? ceiling;
|
||||
double? floor;
|
||||
|
||||
internal WaterfallConfigurationBuilder() {}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the ceiling value.
|
||||
/// </summary>
|
||||
/// <param name="ceiling">The ceiling value.</param>
|
||||
/// <returns>The WaterfallConfigurationBuilder.</returns>
|
||||
public WaterfallConfigurationBuilder SetCeiling(double ceiling)
|
||||
{
|
||||
this.ceiling = ceiling;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the floor value.
|
||||
/// </summary>
|
||||
/// <param name="floor">The floor value.</param>
|
||||
/// <returns>The WaterfallConfigurationBuilder.</returns>
|
||||
public WaterfallConfigurationBuilder SetFloor(double floor)
|
||||
{
|
||||
this.floor = floor;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builds an instance of WaterfallConfiguration based on the configured values.
|
||||
/// </summary>
|
||||
/// <returns>The created WaterfallConfiguration.</returns>
|
||||
public WaterfallConfiguration Build()
|
||||
{
|
||||
return new WaterfallConfiguration(ceiling, floor);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs.meta
vendored
Normal file
11
Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs.meta
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 354652886a99945cba942b569effe7bb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
871
Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs
vendored
871
Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs
vendored
@ -1,508 +1,533 @@
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
// public class iOSAgent : IronSourceIAgent
|
||||
// {
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetAdvertiserId();
|
||||
// struct IOSWaterfallConfiguration
|
||||
// {
|
||||
// public double Floor;
|
||||
// public double Ceiling;
|
||||
// }
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFValidateIntegration();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void LPPSetWaterfallConfiguration(IOSWaterfallConfiguration configurationParams, AdFormat adFormat);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShouldTrackNetworkState(bool track);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFSetDynamicUserId(string dynamicUserId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetAdvertiserId();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdaptersDebug(bool enabled);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFValidateIntegration();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaData(string key, string value);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShouldTrackNetworkState(bool track);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaDataWithValues(string key, params string[] values);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFSetDynamicUserId(string dynamicUserId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetConversionValue();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdaptersDebug(bool enabled);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetManualLoadRewardedVideo(bool isOn);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaData(string key, string value);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetNetworkData(string networkKey, string networkData);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetMetaDataWithValues(string key, params string[] values);
|
||||
|
||||
// delegate void ISUnityPauseGame(bool pause);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void RegisterPauseGameFunction(bool pasue);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetConversionValue();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetManualLoadRewardedVideo(bool isOn);
|
||||
|
||||
// //******************* SDK Init *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetNetworkData(string networkKey, string networkData);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetUserId(string userId);
|
||||
// delegate void ISUnityPauseGame(bool pause);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void RegisterPauseGameFunction(bool pasue);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInit(string appKey);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits);
|
||||
// //******************* SDK Init *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetUserId(string userId);
|
||||
|
||||
// //******************* RewardedVideo API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInit(string appKey);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadRewardedVideo();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideo();
|
||||
// //******************* RewardedVideo API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideoWithPlacementName(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadRewardedVideo();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoAvailable();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideo();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetPlacementInfo(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowRewardedVideoWithPlacementName(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetRewardedVideoServerParameters(string jsonString);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoAvailable();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFClearRewardedVideoServerParameters();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsRewardedVideoPlacementCapped(string placementName);
|
||||
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern string CFGetPlacementInfo(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetRewardedVideoServerParameters(string jsonString);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFClearRewardedVideoServerParameters();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId);
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
// //******************* Interstitial API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadInterstitial();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitial();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitialWithPlacementName(string placementName);
|
||||
// //******************* Interstitial API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialReady();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadInterstitial();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitial();
|
||||
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowInterstitialWithPlacementName(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyInterstitial(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialReady();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyInterstitial(string instanceId);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsInterstitialPlacementCapped(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId);
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadISDemandOnlyInterstitial(string instanceId);
|
||||
|
||||
// //******************* Offerwall API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowISDemandOnlyInterstitial(string instanceId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwall();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwallWithPlacementName(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFGetOfferwallCredits();
|
||||
// //******************* Offerwall API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsOfferwallAvailable();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwall();
|
||||
|
||||
// //******************* Banner API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowOfferwallWithPlacementName(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFGetOfferwallCredits();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDestroyBanner();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsOfferwallAvailable();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDisplayBanner();
|
||||
// //******************* Banner API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFHideBanner();
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsBannerPlacementCapped(string placementName);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDestroyBanner();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetSegment(string json);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFDisplayBanner();
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetConsent(bool consent);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFHideBanner();
|
||||
|
||||
// //******************* ConsentView API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern bool CFIsBannerPlacementCapped(string placementName);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadConsentViewWithType(string consentViewType);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetSegment(string json);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowConsentViewWithType(string consentViewType);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetConsent(bool consent);
|
||||
|
||||
// //******************* ILRD API *******************//
|
||||
// //******************* ConsentView API *******************//
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdRevenueData(string dataSource, string impressionData);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLoadConsentViewWithType(string consentViewType);
|
||||
|
||||
// //******************* TestSuite API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFShowConsentViewWithType(string consentViewType);
|
||||
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLaunchTestSuite();
|
||||
// //******************* ILRD API *******************//
|
||||
|
||||
// public iOSAgent()
|
||||
// {
|
||||
// }
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFSetAdRevenueData(string dataSource, string impressionData);
|
||||
|
||||
// #region IronSourceIAgent implementation
|
||||
// //******************* TestSuite API *******************//
|
||||
|
||||
// //******************* Base API *******************//
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void CFLaunchTestSuite();
|
||||
|
||||
// public void onApplicationPause(bool pause)
|
||||
// {
|
||||
// public iOSAgent()
|
||||
// {
|
||||
// }
|
||||
|
||||
// }
|
||||
// #region IronSourceIAgent implementation
|
||||
|
||||
// public string getAdvertiserId()
|
||||
// {
|
||||
// return CFGetAdvertiserId();
|
||||
// }
|
||||
// //******************* Base API *******************//
|
||||
|
||||
// public void validateIntegration()
|
||||
// {
|
||||
// CFValidateIntegration();
|
||||
// }
|
||||
// /// <summary>
|
||||
// /// Allows publishers to set configurations for a waterfall of a given ad type.
|
||||
// /// </summary>
|
||||
// /// <param name="adFormat">The AdFormat for which to configure the waterfall.</param>
|
||||
// /// <param name="waterfallConfiguration">The configuration for the given ad types waterfall. </param>
|
||||
// public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat)
|
||||
// {
|
||||
// var config = new IOSWaterfallConfiguration
|
||||
// {
|
||||
// Floor = waterfallConfiguration.Floor ?? 0.0,
|
||||
// Ceiling = waterfallConfiguration.Ceiling ?? 0.0
|
||||
// };
|
||||
|
||||
// public void shouldTrackNetworkState(bool track)
|
||||
// {
|
||||
// CFShouldTrackNetworkState(track);
|
||||
// }
|
||||
// LPPSetWaterfallConfiguration(config, adFormat);
|
||||
// }
|
||||
|
||||
// public bool setDynamicUserId(string dynamicUserId)
|
||||
// {
|
||||
// return CFSetDynamicUserId(dynamicUserId);
|
||||
// }
|
||||
// public void onApplicationPause(bool pause)
|
||||
// {
|
||||
|
||||
// public void setAdaptersDebug(bool enabled)
|
||||
// {
|
||||
// CFSetAdaptersDebug(enabled);
|
||||
// }
|
||||
// }
|
||||
|
||||
// public void setMetaData(string key, params string[] values)
|
||||
// {
|
||||
// CFSetMetaDataWithValues(key, values);
|
||||
// }
|
||||
// public string getAdvertiserId()
|
||||
// {
|
||||
// return CFGetAdvertiserId();
|
||||
// }
|
||||
|
||||
// public void setMetaData(string key, string value)
|
||||
// {
|
||||
// CFSetMetaData(key, value);
|
||||
// }
|
||||
|
||||
// public int? getConversionValue()
|
||||
// {
|
||||
// CultureInfo invCulture = CultureInfo.InvariantCulture;
|
||||
// int parsedInt;
|
||||
// if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt))
|
||||
// {
|
||||
// return parsedInt;
|
||||
// }
|
||||
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// public void setManualLoadRewardedVideo(bool isOn)
|
||||
// {
|
||||
// CFSetManualLoadRewardedVideo(isOn);
|
||||
// }
|
||||
|
||||
// public void setNetworkData(string networkKey, string networkData)
|
||||
// {
|
||||
// CFSetNetworkData(networkKey, networkData);
|
||||
// }
|
||||
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))]
|
||||
// public void SetPauseGame(bool pause)
|
||||
// {
|
||||
// RegisterPauseGameFunction(pause);
|
||||
// if (pause)
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "true");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "false");
|
||||
// }
|
||||
// }
|
||||
|
||||
// //******************* SDK Init *******************//
|
||||
|
||||
// public void setUserId(string userId)
|
||||
// {
|
||||
// CFSetUserId(userId);
|
||||
// }
|
||||
|
||||
// public void init(string appKey)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInit(appKey);
|
||||
// }
|
||||
|
||||
// public void init(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitWithAdUnits(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// public void initISDemandOnly(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitISDemandOnly(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo API *******************//
|
||||
|
||||
// public void loadRewardedVideo()
|
||||
// {
|
||||
// CFLoadRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo()
|
||||
// {
|
||||
// CFShowRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo(string placementName)
|
||||
// {
|
||||
// CFShowRewardedVideoWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoAvailable()
|
||||
// {
|
||||
// return CFIsRewardedVideoAvailable();
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsRewardedVideoPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public IronSourcePlacement getPlacementInfo(string placementName)
|
||||
// {
|
||||
// IronSourcePlacement sp = null;
|
||||
|
||||
// string spString = CFGetPlacementInfo(placementName);
|
||||
// if (spString != null)
|
||||
// {
|
||||
// Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>;
|
||||
// string pName = spDic["placement_name"].ToString();
|
||||
// string rewardName = spDic["reward_name"].ToString();
|
||||
// int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString());
|
||||
// sp = new IronSourcePlacement(pName, rewardName, rewardAmount);
|
||||
// }
|
||||
|
||||
// return sp;
|
||||
// }
|
||||
|
||||
// public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(parameters);
|
||||
// CFSetRewardedVideoServerParameters(json);
|
||||
// }
|
||||
|
||||
// public void clearRewardedVideoServerParams()
|
||||
// {
|
||||
// CFClearRewardedVideoServerParameters();
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
// public void showISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public void loadISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyRewardedVideoAvailable(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyRewardedVideoAvailable(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial API *******************//
|
||||
|
||||
// public void loadInterstitial()
|
||||
// {
|
||||
// CFLoadInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial()
|
||||
// {
|
||||
// CFShowInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial(string placementName)
|
||||
// {
|
||||
// CFShowInterstitialWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isInterstitialReady()
|
||||
// {
|
||||
// return CFIsInterstitialReady();
|
||||
// }
|
||||
|
||||
// public bool isInterstitialPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsInterstitialPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
// public void loadISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public void showISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyInterstitialReady(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyInterstitialReady(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Offerwall API *******************//
|
||||
|
||||
// public void showOfferwall()
|
||||
// {
|
||||
// CFShowOfferwall();
|
||||
// }
|
||||
|
||||
// public void showOfferwall(string placementName)
|
||||
// {
|
||||
// CFShowOfferwallWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public void getOfferwallCredits()
|
||||
// {
|
||||
// CFGetOfferwallCredits();
|
||||
// }
|
||||
|
||||
// public bool isOfferwallAvailable()
|
||||
// {
|
||||
// return CFIsOfferwallAvailable();
|
||||
// }
|
||||
|
||||
// //******************* Banner API *******************//
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position)
|
||||
// {
|
||||
// loadBanner(size, position, "");
|
||||
// }
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
|
||||
// {
|
||||
// CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled());
|
||||
// }
|
||||
|
||||
// public void destroyBanner()
|
||||
// {
|
||||
// CFDestroyBanner();
|
||||
// }
|
||||
|
||||
// public void displayBanner()
|
||||
// {
|
||||
// CFDisplayBanner();
|
||||
// }
|
||||
|
||||
// public void hideBanner()
|
||||
// {
|
||||
// CFHideBanner();
|
||||
// }
|
||||
|
||||
// public bool isBannerPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsBannerPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public void setSegment(IronSourceSegment segment)
|
||||
// {
|
||||
// Dictionary<string, string> dict = segment.getSegmentAsDict();
|
||||
// string json = IronSourceJSON.Json.Serialize(dict);
|
||||
// CFSetSegment(json);
|
||||
// }
|
||||
|
||||
// public void setConsent(bool consent)
|
||||
// {
|
||||
// CFSetConsent(consent);
|
||||
// }
|
||||
|
||||
// public void loadConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFLoadConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// public void showConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFShowConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// //******************* ILRD API *******************//
|
||||
|
||||
// public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(impressionData);
|
||||
// CFSetAdRevenueData(dataSource, json);
|
||||
// }
|
||||
|
||||
// //******************* TestSuite API *******************//
|
||||
|
||||
// public void launchTestSuite()
|
||||
// {
|
||||
// Debug.Log("iOSAgent: launching TestSuite");
|
||||
// CFLaunchTestSuite();
|
||||
// }
|
||||
|
||||
// #endregion
|
||||
// public void validateIntegration()
|
||||
// {
|
||||
// CFValidateIntegration();
|
||||
// }
|
||||
|
||||
// public void shouldTrackNetworkState(bool track)
|
||||
// {
|
||||
// CFShouldTrackNetworkState(track);
|
||||
// }
|
||||
|
||||
// public bool setDynamicUserId(string dynamicUserId)
|
||||
// {
|
||||
// return CFSetDynamicUserId(dynamicUserId);
|
||||
// }
|
||||
|
||||
// public void setAdaptersDebug(bool enabled)
|
||||
// {
|
||||
// CFSetAdaptersDebug(enabled);
|
||||
// }
|
||||
|
||||
// public void setMetaData(string key, params string[] values)
|
||||
// {
|
||||
// CFSetMetaDataWithValues(key, values);
|
||||
// }
|
||||
|
||||
// public void setMetaData(string key, string value)
|
||||
// {
|
||||
// CFSetMetaData(key, value);
|
||||
// }
|
||||
|
||||
// public int? getConversionValue()
|
||||
// {
|
||||
// CultureInfo invCulture = CultureInfo.InvariantCulture;
|
||||
// int parsedInt;
|
||||
// if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt))
|
||||
// {
|
||||
// return parsedInt;
|
||||
// }
|
||||
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// public void setManualLoadRewardedVideo(bool isOn)
|
||||
// {
|
||||
// CFSetManualLoadRewardedVideo(isOn);
|
||||
// }
|
||||
|
||||
// public void setNetworkData(string networkKey, string networkData)
|
||||
// {
|
||||
// CFSetNetworkData(networkKey, networkData);
|
||||
// }
|
||||
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))]
|
||||
// public void SetPauseGame(bool pause)
|
||||
// {
|
||||
// RegisterPauseGameFunction(pause);
|
||||
// if (pause)
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "true");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// setMetaData("IS_PAUSE_GAME_FLAG", "false");
|
||||
// }
|
||||
// }
|
||||
|
||||
// //******************* SDK Init *******************//
|
||||
|
||||
// public void setUserId(string userId)
|
||||
// {
|
||||
// CFSetUserId(userId);
|
||||
// }
|
||||
|
||||
// public void init(string appKey)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInit(appKey);
|
||||
// }
|
||||
|
||||
// public void init(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitWithAdUnits(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// public void initISDemandOnly(string appKey, params string[] adUnits)
|
||||
// {
|
||||
// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion());
|
||||
// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion());
|
||||
// CFInitISDemandOnly(appKey, adUnits);
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo API *******************//
|
||||
|
||||
// public void loadRewardedVideo()
|
||||
// {
|
||||
// CFLoadRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo()
|
||||
// {
|
||||
// CFShowRewardedVideo();
|
||||
// }
|
||||
|
||||
// public void showRewardedVideo(string placementName)
|
||||
// {
|
||||
// CFShowRewardedVideoWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoAvailable()
|
||||
// {
|
||||
// return CFIsRewardedVideoAvailable();
|
||||
// }
|
||||
|
||||
// public bool isRewardedVideoPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsRewardedVideoPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public IronSourcePlacement getPlacementInfo(string placementName)
|
||||
// {
|
||||
// IronSourcePlacement sp = null;
|
||||
|
||||
// string spString = CFGetPlacementInfo(placementName);
|
||||
// if (spString != null)
|
||||
// {
|
||||
// Dictionary<string, object> spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary<string, object>;
|
||||
// string pName = spDic["placement_name"].ToString();
|
||||
// string rewardName = spDic["reward_name"].ToString();
|
||||
// int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString());
|
||||
// sp = new IronSourcePlacement(pName, rewardName, rewardAmount);
|
||||
// }
|
||||
|
||||
// return sp;
|
||||
// }
|
||||
|
||||
// public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(parameters);
|
||||
// CFSetRewardedVideoServerParameters(json);
|
||||
// }
|
||||
|
||||
// public void clearRewardedVideoServerParams()
|
||||
// {
|
||||
// CFClearRewardedVideoServerParameters();
|
||||
// }
|
||||
|
||||
// //******************* RewardedVideo DemandOnly API *******************//
|
||||
|
||||
// public void showISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public void loadISDemandOnlyRewardedVideo(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyRewardedVideo(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyRewardedVideoAvailable(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyRewardedVideoAvailable(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial API *******************//
|
||||
|
||||
// public void loadInterstitial()
|
||||
// {
|
||||
// CFLoadInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial()
|
||||
// {
|
||||
// CFShowInterstitial();
|
||||
// }
|
||||
|
||||
// public void showInterstitial(string placementName)
|
||||
// {
|
||||
// CFShowInterstitialWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public bool isInterstitialReady()
|
||||
// {
|
||||
// return CFIsInterstitialReady();
|
||||
// }
|
||||
|
||||
// public bool isInterstitialPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsInterstitialPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// //******************* Interstitial DemandOnly API *******************//
|
||||
|
||||
// public void loadISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFLoadISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public void showISDemandOnlyInterstitial(string instanceId)
|
||||
// {
|
||||
// CFShowISDemandOnlyInterstitial(instanceId);
|
||||
// }
|
||||
|
||||
// public bool isISDemandOnlyInterstitialReady(string instanceId)
|
||||
// {
|
||||
// return CFIsDemandOnlyInterstitialReady(instanceId);
|
||||
// }
|
||||
|
||||
// //******************* Offerwall API *******************//
|
||||
|
||||
// public void showOfferwall()
|
||||
// {
|
||||
// CFShowOfferwall();
|
||||
// }
|
||||
|
||||
// public void showOfferwall(string placementName)
|
||||
// {
|
||||
// CFShowOfferwallWithPlacementName(placementName);
|
||||
// }
|
||||
|
||||
// public void getOfferwallCredits()
|
||||
// {
|
||||
// CFGetOfferwallCredits();
|
||||
// }
|
||||
|
||||
// public bool isOfferwallAvailable()
|
||||
// {
|
||||
// return CFIsOfferwallAvailable();
|
||||
// }
|
||||
|
||||
// //******************* Banner API *******************//
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position)
|
||||
// {
|
||||
// loadBanner(size, position, "");
|
||||
// }
|
||||
|
||||
// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
|
||||
// {
|
||||
// CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled());
|
||||
// }
|
||||
|
||||
// public void destroyBanner()
|
||||
// {
|
||||
// CFDestroyBanner();
|
||||
// }
|
||||
|
||||
// public void displayBanner()
|
||||
// {
|
||||
// CFDisplayBanner();
|
||||
// }
|
||||
|
||||
// public void hideBanner()
|
||||
// {
|
||||
// CFHideBanner();
|
||||
// }
|
||||
|
||||
// public bool isBannerPlacementCapped(string placementName)
|
||||
// {
|
||||
// return CFIsBannerPlacementCapped(placementName);
|
||||
// }
|
||||
|
||||
// public void setSegment(IronSourceSegment segment)
|
||||
// {
|
||||
// Dictionary<string, string> dict = segment.getSegmentAsDict();
|
||||
// string json = IronSourceJSON.Json.Serialize(dict);
|
||||
// CFSetSegment(json);
|
||||
// }
|
||||
|
||||
// public void setConsent(bool consent)
|
||||
// {
|
||||
// CFSetConsent(consent);
|
||||
// }
|
||||
|
||||
// public void loadConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFLoadConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// public void showConsentViewWithType(string consentViewType)
|
||||
// {
|
||||
// CFShowConsentViewWithType(consentViewType);
|
||||
// }
|
||||
|
||||
// //******************* ILRD API *******************//
|
||||
|
||||
// public void setAdRevenueData(string dataSource, Dictionary<string, string> impressionData)
|
||||
// {
|
||||
// string json = IronSourceJSON.Json.Serialize(impressionData);
|
||||
// CFSetAdRevenueData(dataSource, json);
|
||||
// }
|
||||
|
||||
// //******************* TestSuite API *******************//
|
||||
|
||||
// public void launchTestSuite()
|
||||
// {
|
||||
// Debug.Log("iOSAgent: launching TestSuite");
|
||||
// CFLaunchTestSuite();
|
||||
// }
|
||||
|
||||
// #endregion
|
||||
// }
|
||||
#endif
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.applovin:applovin-sdk:11.4.4" />
|
||||
<androidPackage spec="com.applovin:applovin-sdk:11.10.1" />
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinSDK" version="11.4.3" />
|
||||
<iosPod name="AppLovinSDK" version="11.10.1" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -16,6 +16,7 @@ typedef void (*ALUnityBackgroundCallback)(const char* args);
|
||||
|
||||
- (void)createBannerWithAdUnitIdentifier:(NSString *)adUnitIdentifier atPosition:(NSString *)bannerPosition;
|
||||
- (void)createBannerWithAdUnitIdentifier:(NSString *)adUnitIdentifier x:(CGFloat)xOffset y:(CGFloat)yOffset;
|
||||
- (void)loadBannerWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)setBannerBackgroundColorForAdUnitIdentifier:(NSString *)adUnitIdentifier hexColorCode:(NSString *)hexColorCode;
|
||||
- (void)setBannerPlacement:(nullable NSString *)placement forAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)startBannerAutoRefreshForAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
@ -34,6 +35,7 @@ typedef void (*ALUnityBackgroundCallback)(const char* args);
|
||||
|
||||
- (void)createMRecWithAdUnitIdentifier:(NSString *)adUnitIdentifier atPosition:(NSString *)mrecPosition;
|
||||
- (void)createMRecWithAdUnitIdentifier:(NSString *)adUnitIdentifier x:(CGFloat)xOffset y:(CGFloat)yOffset;
|
||||
- (void)loadMRecWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)setMRecPlacement:(nullable NSString *)placement forAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)startMRecAutoRefreshForAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)stopMRecAutoRefreshForAdUnitIdentifier:(NSString *)adUnitIdentifer;
|
||||
@ -61,6 +63,12 @@ typedef void (*ALUnityBackgroundCallback)(const char* args);
|
||||
- (void)setInterstitialExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable NSString *)value;
|
||||
- (void)setInterstitialLocalExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable id)value;
|
||||
|
||||
- (void)loadAppOpenAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (BOOL)isAppOpenAdReadyWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)showAppOpenAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier placement:(nullable NSString *)placement customData:(nullable NSString *)customData;
|
||||
- (void)setAppOpenAdExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable NSString *)value;
|
||||
- (void)setAppOpenAdLocalExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable id)value;
|
||||
|
||||
- (void)loadRewardedAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (BOOL)isRewardedAdReadyWithAdUnitIdentifier:(NSString *)adUnitIdentifier;
|
||||
- (void)showRewardedAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier placement:(nullable NSString *)placement customData:(nullable NSString *)customData;
|
||||
@ -85,8 +93,11 @@ typedef void (*ALUnityBackgroundCallback)(const char* args);
|
||||
// User Service
|
||||
- (void)didDismissUserConsentDialog;
|
||||
|
||||
// Consent Flow
|
||||
- (void)startConsentFlow;
|
||||
|
||||
// Utils
|
||||
+ (NSString *)serializeParameters:(NSDictionary<NSString *, NSString *> *)dict;
|
||||
+ (NSString *)serializeParameters:(NSDictionary<NSString *, id> *)dict;
|
||||
|
||||
/**
|
||||
* Creates an instance of @c MAUnityAdManager if needed and returns the singleton instance.
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 4209563f82b8a4f7dabf03705ab761c6
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/AppLovin/Plugins/iOS/MAUnityAdManager.h
|
||||
- al_max_export_path-MaxSdk\AppLovin\Plugins\iOS\MAUnityAdManager.h
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@ -16,7 +15,7 @@ PluginImporter:
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
#import "MAUnityAdManager.h"
|
||||
|
||||
#define VERSION @"5.4.5"
|
||||
#define VERSION @"5.10.1"
|
||||
|
||||
#define KEY_WINDOW [UIApplication sharedApplication].keyWindow
|
||||
#define DEVICE_SPECIFIC_ADVIEW_AD_FORMAT ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) ? MAAdFormat.leader : MAAdFormat.banner
|
||||
@ -42,13 +42,14 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
@interface MAUnityAdManager()<MAAdDelegate, MAAdViewAdDelegate, MARewardedAdDelegate, MAAdRevenueDelegate, ALVariableServiceDelegate>
|
||||
@interface MAUnityAdManager()<MAAdDelegate, MAAdViewAdDelegate, MARewardedAdDelegate, MAAdRevenueDelegate, MAAdReviewDelegate, ALVariableServiceDelegate>
|
||||
|
||||
// Parent Fields
|
||||
@property (nonatomic, weak) ALSdk *sdk;
|
||||
|
||||
// Fullscreen Ad Fields
|
||||
@property (nonatomic, strong) NSMutableDictionary<NSString *, MAInterstitialAd *> *interstitials;
|
||||
@property (nonatomic, strong) NSMutableDictionary<NSString *, MAAppOpenAd *> *appOpenAds;
|
||||
@property (nonatomic, strong) NSMutableDictionary<NSString *, MARewardedAd *> *rewardedAds;
|
||||
@property (nonatomic, strong) NSMutableDictionary<NSString *, MARewardedInterstitialAd *> *rewardedInterstitialAds;
|
||||
|
||||
@ -67,6 +68,7 @@ extern "C" {
|
||||
@property (nonatomic, strong) NSMutableDictionary<NSString *, NSString *> *adViewCustomDataToSetAfterCreate;
|
||||
@property (nonatomic, strong) NSMutableArray<NSString *> *adUnitIdentifiersToShowAfterCreate;
|
||||
@property (nonatomic, strong) NSMutableSet<NSString *> *disabledAdaptiveBannerAdUnitIdentifiers;
|
||||
@property (nonatomic, strong) NSMutableSet<NSString *> *disabledAutoRefreshAdViewAdUnitIdentifiers;
|
||||
@property (nonatomic, strong) UIView *safeAreaBackground;
|
||||
@property (nonatomic, strong, nullable) UIColor *publisherBannerBackgroundColor;
|
||||
|
||||
@ -107,6 +109,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
if ( self )
|
||||
{
|
||||
self.interstitials = [NSMutableDictionary dictionaryWithCapacity: 2];
|
||||
self.appOpenAds = [NSMutableDictionary dictionaryWithCapacity: 2];
|
||||
self.rewardedAds = [NSMutableDictionary dictionaryWithCapacity: 2];
|
||||
self.rewardedInterstitialAds = [NSMutableDictionary dictionaryWithCapacity: 2];
|
||||
self.adViews = [NSMutableDictionary dictionaryWithCapacity: 2];
|
||||
@ -123,6 +126,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
self.adViewCustomDataToSetAfterCreate = [NSMutableDictionary dictionaryWithCapacity: 1];
|
||||
self.adUnitIdentifiersToShowAfterCreate = [NSMutableArray arrayWithCapacity: 2];
|
||||
self.disabledAdaptiveBannerAdUnitIdentifiers = [NSMutableSet setWithCapacity: 2];
|
||||
self.disabledAutoRefreshAdViewAdUnitIdentifiers = [NSMutableSet setWithCapacity: 2];
|
||||
self.adInfoDict = [NSMutableDictionary dictionary];
|
||||
self.adInfoDictLock = [[NSObject alloc] init];
|
||||
|
||||
@ -172,7 +176,15 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
backgroundCallback = unityBackgroundCallback;
|
||||
NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
|
||||
NSString *sdkKey = infoDict[@"AppLovinSdkKey"];
|
||||
self.sdk = [ALSdk sharedWithKey: sdkKey settings: [self generateSDKSettingsForAdUnitIdentifiers: serializedAdUnitIdentifiers metaData: serializedMetaData]];
|
||||
if ( [sdkKey al_isValidString] )
|
||||
{
|
||||
self.sdk = [ALSdk sharedWithKey: sdkKey settings: [self generateSDKSettingsForAdUnitIdentifiers: serializedAdUnitIdentifiers metaData: serializedMetaData]];
|
||||
}
|
||||
else
|
||||
{
|
||||
self.sdk = [ALSdk sharedWithSettings:[self generateSDKSettingsForAdUnitIdentifiers:serializedAdUnitIdentifiers metaData:serializedMetaData]];
|
||||
}
|
||||
|
||||
self.sdk.variableService.delegate = self;
|
||||
[self.sdk setPluginVersion: [@"Max-Unity-" stringByAppendingString: VERSION]];
|
||||
self.sdk.mediationProvider = @"max";
|
||||
@ -187,7 +199,8 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
@"consentDialogState" : consentDialogStateStr,
|
||||
@"countryCode" : configuration.countryCode,
|
||||
@"appTrackingStatus" : appTrackingStatus,
|
||||
@"isSuccessfullyInitialized" : ([self.sdk isInitialized] ? @"true" : @"false")}];
|
||||
@"isSuccessfullyInitialized" : @([self.sdk isInitialized]),
|
||||
@"isTestModeEnabled" : @([configuration isTestModeEnabled])}];
|
||||
}];
|
||||
|
||||
return self.sdk;
|
||||
@ -205,6 +218,11 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[self createAdViewWithAdUnitIdentifier: adUnitIdentifier adFormat: [self adViewAdFormatForAdUnitIdentifier: adUnitIdentifier] atPosition: DEFAULT_AD_VIEW_POSITION withOffset: CGPointMake(xOffset, yOffset)];
|
||||
}
|
||||
|
||||
- (void)loadBannerWithAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
[self loadAdViewWithAdUnitIdentifier: adUnitIdentifier adFormat: [self adViewAdFormatForAdUnitIdentifier: adUnitIdentifier]];
|
||||
}
|
||||
|
||||
- (void)setBannerBackgroundColorForAdUnitIdentifier:(NSString *)adUnitIdentifier hexColorCode:(NSString *)hexColorCode
|
||||
{
|
||||
[self setAdViewBackgroundColorForAdUnitIdentifier: adUnitIdentifier adFormat: [self adViewAdFormatForAdUnitIdentifier: adUnitIdentifier] hexColorCode: hexColorCode];
|
||||
@ -292,6 +310,11 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[self createAdViewWithAdUnitIdentifier: adUnitIdentifier adFormat: MAAdFormat.mrec atPosition: DEFAULT_AD_VIEW_POSITION withOffset: CGPointMake(xOffset, yOffset)];
|
||||
}
|
||||
|
||||
- (void)loadMRecWithAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
[self loadAdViewWithAdUnitIdentifier: adUnitIdentifier adFormat: MAAdFormat.mrec];
|
||||
}
|
||||
|
||||
- (void)setMRecPlacement:(nullable NSString *)placement forAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
[self setAdViewPlacement: placement forAdUnitIdentifier: adUnitIdentifier adFormat: MAAdFormat.mrec];
|
||||
@ -302,9 +325,9 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[self startAdViewAutoRefreshForAdUnitIdentifier: adUnitIdentifier adFormat: MAAdFormat.mrec];
|
||||
}
|
||||
|
||||
- (void)stopMRecAutoRefreshForAdUnitIdentifier:(NSString *)adUnitIdentifer
|
||||
- (void)stopMRecAutoRefreshForAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
[self stopAdViewAutoRefreshForAdUnitIdentifier: adUnitIdentifer adFormat: MAAdFormat.mrec];
|
||||
[self stopAdViewAutoRefreshForAdUnitIdentifier: adUnitIdentifier adFormat: MAAdFormat.mrec];
|
||||
}
|
||||
|
||||
- (void)updateMRecPosition:(NSString *)mrecPosition forAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
@ -427,6 +450,38 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[interstitial setLocalExtraParameterForKey: key value: value];
|
||||
}
|
||||
|
||||
#pragma mark - App Open Ads
|
||||
|
||||
- (void)loadAppOpenAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
MAAppOpenAd *appOpenAd = [self retrieveAppOpenAdForAdUnitIdentifier: adUnitIdentifier];
|
||||
[appOpenAd loadAd];
|
||||
}
|
||||
|
||||
- (BOOL)isAppOpenAdReadyWithAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
MAAppOpenAd *appOpenAd = [self retrieveAppOpenAdForAdUnitIdentifier: adUnitIdentifier];
|
||||
return [appOpenAd isReady];
|
||||
}
|
||||
|
||||
- (void)showAppOpenAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier placement:(nullable NSString *)placement customData:(nullable NSString *)customData
|
||||
{
|
||||
MAAppOpenAd *appOpenAd = [self retrieveAppOpenAdForAdUnitIdentifier: adUnitIdentifier];
|
||||
[appOpenAd showAdForPlacement: placement customData: customData];
|
||||
}
|
||||
|
||||
- (void)setAppOpenAdExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable NSString *)value
|
||||
{
|
||||
MAAppOpenAd *appOpenAd = [self retrieveAppOpenAdForAdUnitIdentifier: adUnitIdentifier];
|
||||
[appOpenAd setExtraParameterForKey: key value: value];
|
||||
}
|
||||
|
||||
- (void)setAppOpenAdLocalExtraParameterForAdUnitIdentifier:(NSString *)adUnitIdentifier key:(NSString *)key value:(nullable id)value
|
||||
{
|
||||
MAAppOpenAd *appOpenAd = [self retrieveAppOpenAdForAdUnitIdentifier: adUnitIdentifier];
|
||||
[appOpenAd setLocalExtraParameterForKey: key value: value];
|
||||
}
|
||||
|
||||
#pragma mark - Rewarded
|
||||
|
||||
- (void)loadRewardedAdWithAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
@ -568,6 +623,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
}
|
||||
|
||||
networkResponseDict[@"credentials"] = response.credentials;
|
||||
networkResponseDict[@"isBidding"] = @([response isBidding]);
|
||||
|
||||
MAError *error = response.error;
|
||||
if ( error )
|
||||
@ -636,6 +692,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialLoadedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdLoadedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdLoadedEvent";
|
||||
@ -688,6 +748,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialLoadFailedEvent";
|
||||
}
|
||||
else if ( self.appOpenAds[adUnitIdentifier] )
|
||||
{
|
||||
name = @"OnAppOpenAdLoadFailedEvent";
|
||||
}
|
||||
else if ( self.rewardedAds[adUnitIdentifier] )
|
||||
{
|
||||
name = @"OnRewardedAdLoadFailedEvent";
|
||||
@ -735,6 +799,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialClickedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdClickedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdClickedEvent";
|
||||
@ -768,6 +836,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialDisplayedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdDisplayedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdDisplayedEvent";
|
||||
@ -792,6 +864,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialAdFailedToDisplayEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdFailedToDisplayEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdFailedToDisplayEvent";
|
||||
@ -825,6 +901,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialHiddenEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdHiddenEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdHiddenEvent";
|
||||
@ -952,6 +1032,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
{
|
||||
name = @"OnInterstitialAdRevenuePaidEvent";
|
||||
}
|
||||
else if ( MAAdFormat.appOpen == adFormat )
|
||||
{
|
||||
name = @"OnAppOpenAdRevenuePaidEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdRevenuePaidEvent";
|
||||
@ -970,6 +1054,41 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[MAUnityAdManager forwardUnityEventWithArgs: args forwardInBackground: [adFormat isFullscreenAd]];
|
||||
}
|
||||
|
||||
- (void)didGenerateCreativeIdentifier:(NSString *)creativeIdentifier forAd:(MAAd *)ad
|
||||
{
|
||||
NSString *name;
|
||||
MAAdFormat *adFormat = ad.format;
|
||||
if ( MAAdFormat.banner == adFormat || MAAdFormat.leader == adFormat )
|
||||
{
|
||||
name = @"OnBannerAdReviewCreativeIdGeneratedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.mrec == adFormat )
|
||||
{
|
||||
name = @"OnMRecAdReviewCreativeIdGeneratedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.interstitial == adFormat )
|
||||
{
|
||||
name = @"OnInterstitialAdReviewCreativeIdGeneratedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewarded == adFormat )
|
||||
{
|
||||
name = @"OnRewardedAdReviewCreativeIdGeneratedEvent";
|
||||
}
|
||||
else if ( MAAdFormat.rewardedInterstitial == adFormat )
|
||||
{
|
||||
name = @"OnRewardedInterstitialAdReviewCreativeIdGeneratedEvent";
|
||||
}
|
||||
else
|
||||
{
|
||||
[self logInvalidAdFormat: adFormat];
|
||||
return;
|
||||
}
|
||||
|
||||
NSMutableDictionary<NSString *, id> *args = [self defaultAdEventParametersForName: name withAd: ad];
|
||||
args[@"adReviewCreativeId"] = creativeIdentifier;
|
||||
[MAUnityAdManager forwardUnityEventWithArgs: args];
|
||||
}
|
||||
|
||||
- (NSMutableDictionary<NSString *, id> *)defaultAdEventParametersForName:(NSString *)name withAd:(MAAd *)ad
|
||||
{
|
||||
NSMutableDictionary<NSString *, id> *args = [[self adInfoForAd: ad] mutableCopy];
|
||||
@ -985,6 +1104,11 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
max_unity_dispatch_on_main_thread(^{
|
||||
[self log: @"Creating %@ with ad unit identifier \"%@\" and position: \"%@\"", adFormat, adUnitIdentifier, adViewPosition];
|
||||
|
||||
if ( self.adViews[adUnitIdentifier] )
|
||||
{
|
||||
[self log: @"Trying to create a %@ that was already created. This will cause the current ad to be hidden.", adFormat.label];
|
||||
}
|
||||
|
||||
// Retrieve ad view from the map
|
||||
MAAdView *adView = [self retrieveAdViewForAdUnitIdentifier: adUnitIdentifier adFormat: adFormat atPosition: adViewPosition withOffset: offset];
|
||||
adView.hidden = YES;
|
||||
@ -1040,6 +1164,12 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
|
||||
[adView loadAd];
|
||||
|
||||
// Disable auto-refresh if publisher sets it before creating the ad view.
|
||||
if ( [self.disabledAutoRefreshAdViewAdUnitIdentifiers containsObject: adUnitIdentifier] )
|
||||
{
|
||||
[adView stopAutoRefresh];
|
||||
}
|
||||
|
||||
// The publisher may have requested to show the banner before it was created. Now that the banner is created, show it.
|
||||
if ( [self.adUnitIdentifiersToShowAfterCreate containsObject: adUnitIdentifier] )
|
||||
{
|
||||
@ -1049,6 +1179,32 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
});
|
||||
}
|
||||
|
||||
- (void)loadAdViewWithAdUnitIdentifier:(NSString *)adUnitIdentifier adFormat:(MAAdFormat *)adFormat
|
||||
{
|
||||
max_unity_dispatch_on_main_thread(^{
|
||||
MAAdView *adView = [self retrieveAdViewForAdUnitIdentifier: adUnitIdentifier adFormat: adFormat];
|
||||
if ( !adView )
|
||||
{
|
||||
[self log: @"%@ does not exist for ad unit identifier %@.", adFormat.label, adUnitIdentifier];
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ![self.disabledAutoRefreshAdViewAdUnitIdentifiers containsObject: adUnitIdentifier] )
|
||||
{
|
||||
if ( [adView isHidden] )
|
||||
{
|
||||
[self log: @"Auto-refresh will resume when the %@ ad is shown. You should only call LoadBanner() or LoadMRec() if you explicitly pause auto-refresh and want to manually load an ad.", adFormat.label];
|
||||
return;
|
||||
}
|
||||
|
||||
[self log: @"You must stop auto-refresh if you want to manually load %@ ads.", adFormat.label];
|
||||
return;
|
||||
}
|
||||
|
||||
[adView loadAd];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)setAdViewBackgroundColorForAdUnitIdentifier:(NSString *)adUnitIdentifier adFormat:(MAAdFormat *)adFormat hexColorCode:(NSString *)hexColorCode
|
||||
{
|
||||
max_unity_dispatch_on_main_thread(^{
|
||||
@ -1082,6 +1238,8 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
max_unity_dispatch_on_main_thread(^{
|
||||
[self log: @"Starting %@ auto refresh for ad unit identifier \"%@\"", adFormat.label, adUnitIdentifier];
|
||||
|
||||
[self.disabledAutoRefreshAdViewAdUnitIdentifiers removeObject: adUnitIdentifier];
|
||||
|
||||
MAAdView *adView = [self retrieveAdViewForAdUnitIdentifier: adUnitIdentifier adFormat: adFormat];
|
||||
if ( !adView )
|
||||
{
|
||||
@ -1098,6 +1256,8 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
max_unity_dispatch_on_main_thread(^{
|
||||
[self log: @"Stopping %@ auto refresh for ad unit identifier \"%@\"", adFormat.label, adUnitIdentifier];
|
||||
|
||||
[self.disabledAutoRefreshAdViewAdUnitIdentifiers addObject: adUnitIdentifier];
|
||||
|
||||
MAAdView *adView = [self retrieveAdViewForAdUnitIdentifier: adUnitIdentifier adFormat: adFormat];
|
||||
if ( !adView )
|
||||
{
|
||||
@ -1272,7 +1432,10 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
self.safeAreaBackground.hidden = NO;
|
||||
view.hidden = NO;
|
||||
|
||||
[view startAutoRefresh];
|
||||
if ( ![self.disabledAutoRefreshAdViewAdUnitIdentifiers containsObject: adUnitIdentifier] )
|
||||
{
|
||||
[view startAutoRefresh];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -1317,6 +1480,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
MAAdView *view = [self retrieveAdViewForAdUnitIdentifier: adUnitIdentifier adFormat: adFormat];
|
||||
view.delegate = nil;
|
||||
view.revenueDelegate = nil;
|
||||
view.adReviewDelegate = nil;
|
||||
|
||||
[view removeFromSuperview];
|
||||
|
||||
@ -1355,6 +1519,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
result = [[MAInterstitialAd alloc] initWithAdUnitIdentifier: adUnitIdentifier sdk: self.sdk];
|
||||
result.delegate = self;
|
||||
result.revenueDelegate = self;
|
||||
result.adReviewDelegate = self;
|
||||
|
||||
self.interstitials[adUnitIdentifier] = result;
|
||||
}
|
||||
@ -1362,6 +1527,21 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
return result;
|
||||
}
|
||||
|
||||
- (MAAppOpenAd *)retrieveAppOpenAdForAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
MAAppOpenAd *result = self.appOpenAds[adUnitIdentifier];
|
||||
if ( !result )
|
||||
{
|
||||
result = [[MAAppOpenAd alloc] initWithAdUnitIdentifier: adUnitIdentifier sdk: self.sdk];
|
||||
result.delegate = self;
|
||||
result.revenueDelegate = self;
|
||||
|
||||
self.appOpenAds[adUnitIdentifier] = result;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
- (MARewardedAd *)retrieveRewardedAdForAdUnitIdentifier:(NSString *)adUnitIdentifier
|
||||
{
|
||||
MARewardedAd *result = self.rewardedAds[adUnitIdentifier];
|
||||
@ -1370,6 +1550,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
result = [MARewardedAd sharedWithAdUnitIdentifier: adUnitIdentifier sdk: self.sdk];
|
||||
result.delegate = self;
|
||||
result.revenueDelegate = self;
|
||||
result.adReviewDelegate = self;
|
||||
|
||||
self.rewardedAds[adUnitIdentifier] = result;
|
||||
}
|
||||
@ -1385,6 +1566,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
result = [[MARewardedInterstitialAd alloc] initWithAdUnitIdentifier: adUnitIdentifier sdk: self.sdk];
|
||||
result.delegate = self;
|
||||
result.revenueDelegate = self;
|
||||
result.adReviewDelegate = self;
|
||||
|
||||
self.rewardedInterstitialAds[adUnitIdentifier] = result;
|
||||
}
|
||||
@ -1408,6 +1590,7 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
result.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
result.delegate = self;
|
||||
result.revenueDelegate = self;
|
||||
result.adReviewDelegate = self;
|
||||
|
||||
self.adViews[adUnitIdentifier] = result;
|
||||
self.adViewPositions[adUnitIdentifier] = adViewPosition;
|
||||
@ -1415,6 +1598,9 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
|
||||
UIViewController *rootViewController = [self unityViewController];
|
||||
[rootViewController.view addSubview: result];
|
||||
|
||||
// Allow pubs to pause auto-refresh immediately, by default.
|
||||
[result setExtraParameterForKey: @"allow_pause_auto_refresh_immediately" value: @"true"];
|
||||
}
|
||||
|
||||
return result;
|
||||
@ -1829,6 +2015,25 @@ static ALUnityBackgroundCallback backgroundCallback;
|
||||
[MAUnityAdManager forwardUnityEventWithArgs: @{@"name" : @"OnSdkConsentDialogDismissedEvent"}];
|
||||
}
|
||||
|
||||
#pragma mark - Consent Flow
|
||||
|
||||
- (void)startConsentFlow
|
||||
{
|
||||
[self.sdk.cfService scfWithCompletionHander:^(ALCFError * _Nullable error) {
|
||||
|
||||
NSMutableDictionary<NSString *, id> *args = [NSMutableDictionary dictionaryWithCapacity: 3];
|
||||
args[@"name"] = @"OnSdkConsentFlowCompletedEvent";
|
||||
|
||||
if ( error )
|
||||
{
|
||||
args[@"code"] = @(error.code);
|
||||
args[@"message"] = error.message;
|
||||
}
|
||||
|
||||
[MAUnityAdManager forwardUnityEventWithArgs: args];
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - Variable Service (Deprecated)
|
||||
|
||||
- (void)loadVariables
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 2973e70bd2fa74984b35aea07ae9db52
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/AppLovin/Plugins/iOS/MAUnityAdManager.m
|
||||
- al_max_export_path-MaxSdk\AppLovin\Plugins\iOS\MAUnityAdManager.m
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@ -16,7 +15,7 @@ PluginImporter:
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
|
||||
@ -37,11 +37,20 @@ extern "C"
|
||||
static NSNumber *_creativeDebuggerEnabledToSet;
|
||||
static NSNumber *_exceptionHandlerEnabledToSet;
|
||||
static NSNumber *_locationCollectionEnabledToSet;
|
||||
static NSNumber *_targetingYearOfBirth;
|
||||
static NSString *_targetingGender;
|
||||
static NSNumber *_targetingMaximumAdContentRating;
|
||||
static NSString *_targetingEmail;
|
||||
static NSString *_targetingPhoneNumber;
|
||||
static NSArray<NSString *> *_targetingKeywords;
|
||||
static NSArray<NSString *> *_targetingInterests;
|
||||
static NSMutableDictionary<NSString *, NSString *> *_extraParametersToSet = [NSMutableDictionary dictionary];
|
||||
static NSObject *_extraParametersToSetLock = [[NSObject alloc] init];
|
||||
|
||||
// Helper method to create C string copy
|
||||
static const char * cStringCopy(NSString *string);
|
||||
// Helper method to log errors
|
||||
void logUninitializedAccessError(char *callingMethod);
|
||||
|
||||
bool isPluginInitialized()
|
||||
{
|
||||
@ -67,6 +76,42 @@ extern "C"
|
||||
return array;
|
||||
}
|
||||
|
||||
ALGender getAppLovinGender(NSString *genderString)
|
||||
{
|
||||
if ( [@"F" al_isEqualToStringIgnoringCase: genderString] )
|
||||
{
|
||||
return ALGenderFemale;
|
||||
}
|
||||
else if ( [@"M" al_isEqualToStringIgnoringCase: genderString] )
|
||||
{
|
||||
return ALGenderMale;
|
||||
}
|
||||
else if ( [@"O" al_isEqualToStringIgnoringCase: genderString] )
|
||||
{
|
||||
return ALGenderOther;
|
||||
}
|
||||
|
||||
return ALGenderUnknown;
|
||||
}
|
||||
|
||||
ALAdContentRating getAppLovinAdContentRating(int maximumAdContentRating)
|
||||
{
|
||||
if ( maximumAdContentRating == 1 )
|
||||
{
|
||||
return ALAdContentRatingAllAudiences;
|
||||
}
|
||||
else if ( maximumAdContentRating == 2 )
|
||||
{
|
||||
return ALAdContentRatingEveryoneOverTwelve;
|
||||
}
|
||||
else if ( maximumAdContentRating == 3 )
|
||||
{
|
||||
return ALAdContentRatingMatureAudiences;
|
||||
}
|
||||
|
||||
return ALAdContentRatingNone;
|
||||
}
|
||||
|
||||
void setPendingExtraParametersIfNeeded(ALSdkSettings *settings)
|
||||
{
|
||||
NSDictionary *extraParameters;
|
||||
@ -129,7 +174,7 @@ extern "C"
|
||||
|
||||
if ( _verboseLoggingToSet )
|
||||
{
|
||||
_sdk.settings.isVerboseLogging = _verboseLoggingToSet.boolValue;
|
||||
_sdk.settings.verboseLoggingEnabled = _verboseLoggingToSet.boolValue;
|
||||
_verboseLoggingToSet = nil;
|
||||
}
|
||||
|
||||
@ -151,6 +196,48 @@ extern "C"
|
||||
_locationCollectionEnabledToSet = nil;
|
||||
}
|
||||
|
||||
if ( _targetingYearOfBirth )
|
||||
{
|
||||
_sdk.targetingData.yearOfBirth = _targetingYearOfBirth.intValue <= 0 ? nil : _targetingYearOfBirth;
|
||||
_targetingYearOfBirth = nil;
|
||||
}
|
||||
|
||||
if ( _targetingGender )
|
||||
{
|
||||
_sdk.targetingData.gender = getAppLovinGender(_targetingGender);
|
||||
_targetingGender = nil;
|
||||
}
|
||||
|
||||
if ( _targetingMaximumAdContentRating )
|
||||
{
|
||||
_sdk.targetingData.maximumAdContentRating = getAppLovinAdContentRating(_targetingMaximumAdContentRating.intValue);
|
||||
_targetingMaximumAdContentRating = nil;
|
||||
}
|
||||
|
||||
if ( _targetingEmail )
|
||||
{
|
||||
_sdk.targetingData.email = _targetingEmail;
|
||||
_targetingEmail = nil;
|
||||
}
|
||||
|
||||
if ( _targetingPhoneNumber )
|
||||
{
|
||||
_sdk.targetingData.phoneNumber = _targetingPhoneNumber;
|
||||
_targetingPhoneNumber = nil;
|
||||
}
|
||||
|
||||
if ( _targetingKeywords )
|
||||
{
|
||||
_sdk.targetingData.keywords = _targetingKeywords;
|
||||
_targetingKeywords = nil;
|
||||
}
|
||||
|
||||
if ( _targetingInterests )
|
||||
{
|
||||
_sdk.targetingData.interests = _targetingInterests;
|
||||
_targetingInterests = nil;
|
||||
}
|
||||
|
||||
setPendingExtraParametersIfNeeded( _sdk.settings );
|
||||
}
|
||||
|
||||
@ -195,6 +282,17 @@ extern "C"
|
||||
[_sdk showMediationDebugger];
|
||||
}
|
||||
|
||||
void _MaxShowCreativeDebugger()
|
||||
{
|
||||
if ( !_sdk )
|
||||
{
|
||||
NSLog(@"[%@] Failed to show creative debugger - please ensure the AppLovin MAX Unity Plugin has been initialized by calling 'MaxSdk.InitializeSdk();'!", TAG);
|
||||
return;
|
||||
}
|
||||
|
||||
[_sdk showCreativeDebugger];
|
||||
}
|
||||
|
||||
void _MaxShowConsentDialog()
|
||||
{
|
||||
NSLog(@"[%@] Failed to show consent dialog - Unavailable on iOS, please use the consent flow: https://dash.applovin.com/documentation/mediation/unity/getting-started/consent-flow", TAG);
|
||||
@ -236,82 +334,98 @@ extern "C"
|
||||
|
||||
void _MaxSetTargetingDataYearOfBirth(const int yearOfBirth)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingYearOfBirth = @(yearOfBirth);
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.yearOfBirth = yearOfBirth <= 0 ? nil : @(yearOfBirth);
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataGender(const char *gender)
|
||||
void _MaxSetTargetingDataGender(char *gender)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingGender = NSSTRING(gender);
|
||||
return;
|
||||
}
|
||||
|
||||
NSString *genderString = NSSTRING(gender);
|
||||
ALGender alGender = ALGenderUnknown;
|
||||
|
||||
if ( [genderString isEqualToString: @"F"] )
|
||||
{
|
||||
alGender = ALGenderFemale;
|
||||
}
|
||||
else if ( [genderString isEqualToString: @"M"] )
|
||||
{
|
||||
alGender = ALGenderMale;
|
||||
}
|
||||
else if ( [genderString isEqualToString: @"O"] )
|
||||
{
|
||||
alGender = ALGenderOther;
|
||||
}
|
||||
|
||||
_sdk.targetingData.gender = alGender;
|
||||
_sdk.targetingData.gender = getAppLovinGender(genderString);
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataMaximumAdContentRating(const int maximumAdContentRating)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
|
||||
ALAdContentRating rating = ALAdContentRatingNone;
|
||||
|
||||
if ( maximumAdContentRating == 1 )
|
||||
if ( !_sdk )
|
||||
{
|
||||
rating = ALAdContentRatingAllAudiences;
|
||||
}
|
||||
else if ( maximumAdContentRating == 2 )
|
||||
{
|
||||
rating = ALAdContentRatingEveryoneOverTwelve;
|
||||
}
|
||||
else if ( maximumAdContentRating == 3 )
|
||||
{
|
||||
rating = ALAdContentRatingMatureAudiences;
|
||||
_targetingMaximumAdContentRating = @(maximumAdContentRating);
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.maximumAdContentRating = rating;
|
||||
_sdk.targetingData.maximumAdContentRating = getAppLovinAdContentRating(maximumAdContentRating);
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataEmail(const char *email)
|
||||
void _MaxSetTargetingDataEmail(char *email)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingEmail = NSSTRING(email);
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.email = NSSTRING(email);
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataPhoneNumber(const char *phoneNumber)
|
||||
void _MaxSetTargetingDataPhoneNumber(char *phoneNumber)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingPhoneNumber = NSSTRING(phoneNumber);
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.phoneNumber = NSSTRING(phoneNumber);
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataKeywords(char **keywords, int size)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
_sdk.targetingData.keywords = toStringArray(keywords, size);
|
||||
NSArray<NSString *> *keywordsArray = keywords ? toStringArray(keywords, size) : nil;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingKeywords = keywordsArray;
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.keywords = keywordsArray;
|
||||
}
|
||||
|
||||
void _MaxSetTargetingDataInterests(char **interests, int size)
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
_sdk.targetingData.interests = toStringArray(interests, size);
|
||||
NSArray<NSString *> *interestsArray = interests ? toStringArray(interests, size) : nil;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingInterests = interestsArray;
|
||||
return;
|
||||
}
|
||||
|
||||
_sdk.targetingData.interests = interestsArray;
|
||||
}
|
||||
|
||||
void _MaxClearAllTargetingData()
|
||||
{
|
||||
if ( !isPluginInitialized() ) return;
|
||||
if ( !_sdk )
|
||||
{
|
||||
_targetingYearOfBirth = nil;
|
||||
_targetingGender = nil;
|
||||
_targetingMaximumAdContentRating = nil;
|
||||
_targetingEmail = nil;
|
||||
_targetingPhoneNumber = nil;
|
||||
_targetingKeywords = nil;
|
||||
_targetingInterests = nil;
|
||||
return;
|
||||
}
|
||||
|
||||
[_sdk.targetingData clearAll];
|
||||
}
|
||||
|
||||
@ -319,7 +433,7 @@ extern "C"
|
||||
{
|
||||
if ( !_sdk )
|
||||
{
|
||||
NSLog(@"[%@] Failed to get SDK configuration - please ensure the AppLovin MAX Unity Plugin has been initialized by calling 'MaxSdk.InitializeSdk();'!", TAG);
|
||||
logUninitializedAccessError("_MaxGetSdkConfiguration");
|
||||
return cStringCopy(@"");
|
||||
}
|
||||
|
||||
@ -329,7 +443,8 @@ extern "C"
|
||||
return cStringCopy([MAUnityAdManager serializeParameters: @{@"consentDialogState" : consentDialogStateStr,
|
||||
@"countryCode" : _sdk.configuration.countryCode,
|
||||
@"appTrackingStatus" : appTrackingStatus,
|
||||
@"isSuccessfullyInitialized" : ([_sdk isInitialized] ? @"true" : @"false")}]);
|
||||
@"isSuccessfullyInitialized" : @([_sdk isInitialized]),
|
||||
@"isTestModeEnabled" : @([_sdk.configuration isTestModeEnabled])}]);
|
||||
}
|
||||
|
||||
void _MaxSetHasUserConsent(bool hasUserConsent)
|
||||
@ -391,6 +506,13 @@ extern "C"
|
||||
[_adManager createBannerWithAdUnitIdentifier: NSSTRING(adUnitIdentifier) x: x y: y];
|
||||
}
|
||||
|
||||
void _MaxLoadBanner(const char *adUnitIdentifier)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
|
||||
[_adManager loadBannerWithAdUnitIdentifier: NSSTRING(adUnitIdentifier)];
|
||||
}
|
||||
|
||||
void _MaxSetBannerBackgroundColor(const char *adUnitIdentifier, const char *hexColorCode)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
@ -493,6 +615,13 @@ extern "C"
|
||||
[_adManager createMRecWithAdUnitIdentifier: NSSTRING(adUnitIdentifier) x: x y: y];
|
||||
}
|
||||
|
||||
void _MaxLoadMRec(const char *adUnitIdentifier)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
|
||||
[_adManager loadMRecWithAdUnitIdentifier: NSSTRING(adUnitIdentifier)];
|
||||
}
|
||||
|
||||
void _MaxSetMRecPlacement(const char *adUnitIdentifier, const char *placement)
|
||||
{
|
||||
[_adManager setMRecPlacement: NSSTRING(placement) forAdUnitIdentifier: NSSTRING(adUnitIdentifier)];
|
||||
@ -649,6 +778,41 @@ extern "C"
|
||||
[_adManager showInterstitialWithAdUnitIdentifier: NSSTRING(adUnitIdentifier) placement: NSSTRING(placement) customData: NSSTRING(customData)];
|
||||
}
|
||||
|
||||
void _MaxLoadAppOpenAd(const char *adUnitIdentifier)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
|
||||
[_adManager loadAppOpenAdWithAdUnitIdentifier: NSSTRING(adUnitIdentifier)];
|
||||
}
|
||||
|
||||
void _MaxSetAppOpenAdExtraParameter(const char *adUnitIdentifier, const char *key, const char *value)
|
||||
{
|
||||
[_adManager setAppOpenAdExtraParameterForAdUnitIdentifier: NSSTRING(adUnitIdentifier)
|
||||
key: NSSTRING(key)
|
||||
value: NSSTRING(value)];
|
||||
}
|
||||
|
||||
void _MaxSetAppOpenAdLocalExtraParameter(const char *adUnitIdentifier, const char *key, MAUnityRef value)
|
||||
{
|
||||
[_adManager setAppOpenAdLocalExtraParameterForAdUnitIdentifier: NSSTRING(adUnitIdentifier)
|
||||
key: NSSTRING(key)
|
||||
value: (__bridge id)value];
|
||||
}
|
||||
|
||||
bool _MaxIsAppOpenAdReady(const char *adUnitIdentifier)
|
||||
{
|
||||
if (!isPluginInitialized()) return false;
|
||||
|
||||
return [_adManager isAppOpenAdReadyWithAdUnitIdentifier: NSSTRING(adUnitIdentifier)];
|
||||
}
|
||||
|
||||
void _MaxShowAppOpenAd(const char *adUnitIdentifier, const char *placement, const char *customData)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
|
||||
[_adManager showAppOpenAdWithAdUnitIdentifier: NSSTRING(adUnitIdentifier) placement: NSSTRING(placement) customData: NSSTRING(customData)];
|
||||
}
|
||||
|
||||
void _MaxLoadRewardedAd(const char *adUnitIdentifier)
|
||||
{
|
||||
if (!isPluginInitialized()) return;
|
||||
@ -789,7 +953,7 @@ extern "C"
|
||||
{
|
||||
if ( _sdk )
|
||||
{
|
||||
_sdk.settings.isVerboseLogging = enabled;
|
||||
_sdk.settings.verboseLoggingEnabled = enabled;
|
||||
_verboseLoggingToSet = nil;
|
||||
}
|
||||
else
|
||||
@ -802,7 +966,7 @@ extern "C"
|
||||
{
|
||||
if ( _sdk )
|
||||
{
|
||||
return _sdk.settings.isVerboseLogging;
|
||||
return [_sdk.settings isVerboseLoggingEnabled];
|
||||
}
|
||||
else if ( _verboseLoggingToSet )
|
||||
{
|
||||
@ -890,11 +1054,38 @@ extern "C"
|
||||
}
|
||||
}
|
||||
|
||||
const char * _MaxGetCFType()
|
||||
{
|
||||
if ( !_sdk )
|
||||
{
|
||||
NSLog(@"[%@] Failed to get available mediated networks - please ensure the AppLovin MAX Unity Plugin has been initialized by calling 'MaxSdk.InitializeSdk();'!", TAG);
|
||||
return cStringCopy(@(ALCFTypeUnknown).stringValue);
|
||||
}
|
||||
|
||||
return cStringCopy(@(_sdk.cfService.cfType).stringValue);
|
||||
}
|
||||
|
||||
void _MaxStartConsentFlow()
|
||||
{
|
||||
if (!isPluginInitialized())
|
||||
{
|
||||
logUninitializedAccessError("_MaxStartConsentFlow");
|
||||
return;
|
||||
}
|
||||
|
||||
[_adManager startConsentFlow];
|
||||
}
|
||||
|
||||
float _MaxGetAdaptiveBannerHeight(const float width)
|
||||
{
|
||||
return [MAUnityAdManager adaptiveBannerHeightForWidth: width];
|
||||
}
|
||||
|
||||
void logUninitializedAccessError(char *callingMethod)
|
||||
{
|
||||
NSLog(@"[%@] Failed to execute: %s - please ensure the AppLovin MAX Unity Plugin has been initialized by calling 'MaxSdk.InitializeSdk();'!", TAG, callingMethod);
|
||||
}
|
||||
|
||||
[[deprecated("This API has been deprecated. Please use our SDK's initialization callback to retrieve variables instead.")]]
|
||||
void _MaxLoadVariables()
|
||||
{
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 7e373ed7168b243e6b706e991ab5a643
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/AppLovin/Plugins/iOS/MAUnityPlugin.mm
|
||||
- al_max_export_path-MaxSdk\AppLovin\Plugins\iOS\MAUnityPlugin.mm
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@ -16,7 +15,7 @@ PluginImporter:
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
|
||||
1
Assets/ThirdParty/MaxSdk/Mediation.meta
vendored
1
Assets/ThirdParty/MaxSdk/Mediation.meta
vendored
@ -3,7 +3,6 @@ guid: dcf2020c4018447c9b91170c0f62d799
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation
|
||||
- al_max_export_path-MaxSdk\Mediation
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:adcolony-adapter:4.8.0.2"/>
|
||||
<androidPackage spec="com.applovin.mediation:adcolony-adapter:4.8.0.4"/>
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationAdColonyAdapter" version="4.9.0.0.2"/>
|
||||
<iosPod name="AppLovinMediationAdColonyAdapter" version="4.9.0.0.4"/>
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: a351b114cfc11494ba8c131833b1bf74
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/AdColony/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\AdColony\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: ef8467ffb0e4447b79a8804884a7520a
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/ByteDance/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\ByteDance\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:bytedance-adapter:4.5.0.6.0">
|
||||
<androidPackage spec="com.applovin.mediation:bytedance-adapter:5.4.1.0.0">
|
||||
<repositories>
|
||||
<repository>https://artifact.bytedance.com/repository/pangle</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationByteDanceAdapter" version="4.6.1.3.0" />
|
||||
<iosPod name="AppLovinMediationByteDanceAdapter" version="5.4.1.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 0828555cb1ce94702a4af6f3dce3d735
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/ByteDance/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\ByteDance\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: a90f13141c35746f5a2996c8ad068fe9
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Chartboost/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Chartboost\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:chartboost-adapter:8.4.3.1" />
|
||||
<androidPackage spec="com.applovin.mediation:chartboost-adapter:9.4.1.0">
|
||||
<repositories>
|
||||
<repository>https://cboost.jfrog.io/artifactory/chartboost-ads/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
<androidPackage spec="com.google.android.gms:play-services-base:16.1.0" />
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationChartboostAdapter" version="9.0.0.0" />
|
||||
<iosPod name="AppLovinMediationChartboostAdapter" version="9.4.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 93b0a4618bd884871af0981a7867bb2f
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Chartboost/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Chartboost\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 28880992a399a48b7abe95b66649d711
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Facebook/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Facebook\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
Since FAN SDK depends on older versions of a few support and play service versions
|
||||
`com.applovin.mediation:facebook-adapter:x.y.z.a` resolves to `com.applovin.mediation:facebook-adapter:+` which pulls down the beta versions of FAN SDK.
|
||||
Note that forcing the adapter is enough to stop Jar Resolver from pulling the latest FAN SDK. -->
|
||||
<!-- <androidPackage spec="com.applovin.mediation:facebook-adapter:[6.11.0.5]" /> -->
|
||||
<!-- <androidPackage spec="com.applovin.mediation:facebook-adapter:[6.15.0.0]" /> -->
|
||||
<!-- </androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationFacebookAdapter" version="6.11.2.1" />
|
||||
<iosPod name="AppLovinMediationFacebookAdapter" version="6.14.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: aea9bdf974328420db5ae118ef0d2b87
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Facebook/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Facebook\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: e076e4ef7e2874ba69b108cc7a346c2a
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Fyber/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Fyber\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:fyber-adapter:8.2.0.0"/>
|
||||
<androidPackage spec="com.applovin.mediation:fyber-adapter:8.2.3.3"/>
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationFyberAdapter" version="8.1.6.0"/>
|
||||
<iosPod name="AppLovinMediationFyberAdapter" version="8.2.4.0"/>
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 5e123cdc08e804dffb2c40c4fbc83caf
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Fyber/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Fyber\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: e8015bd045cea462c8f39c8a05867d08
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Google/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Google\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
<dependencies>
|
||||
<!-- <androidPackages> -->
|
||||
<!-- Ensure that Resolver doesn't inadvertently pull the latest Play Services Ads' SDK that we haven't certified against. -->
|
||||
<!-- <androidPackage spec="com.applovin.mediation:google-adapter:[21.1.0.0]" />
|
||||
<!-- <androidPackage spec="com.applovin.mediation:google-adapter:[22.3.0.0]" />
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationGoogleAdapter" version="9.8.0.0" />
|
||||
<iosPod name="AppLovinMediationGoogleAdapter" version="10.10.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 053b810d3594744e38b6fd0fa378fb57
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Google/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Google\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
//
|
||||
// MaxGoogleInitialize.cs
|
||||
// AppLovin MAX Unity Plugin
|
||||
//
|
||||
// Created by Santosh Bagadi on 10/5/20.
|
||||
// Copyright © 2020 AppLovin. All rights reserved.
|
||||
//
|
||||
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AppLovinMax.Mediation.Google.Editor
|
||||
{
|
||||
[InitializeOnLoad]
|
||||
public class MaxGoogleInitialize
|
||||
{
|
||||
private static readonly string LegacyMaxMediationGoogleDir = Path.Combine("Assets", "Plugins/Android/MaxMediationGoogle");
|
||||
|
||||
static MaxGoogleInitialize()
|
||||
{
|
||||
// 安卓不处理
|
||||
if (true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if the MaxMediationGoogle directory exists and append .androidlib to it.
|
||||
if (Directory.Exists(LegacyMaxMediationGoogleDir))
|
||||
{
|
||||
Debug.Log("[AppLovin MAX] Updating Google Android library directory name to make it compatible with Unity 2020+ versions.");
|
||||
|
||||
FileUtil.MoveFileOrDirectory(LegacyMaxMediationGoogleDir, LegacyMaxMediationGoogleDir + ".androidlib");
|
||||
FileUtil.MoveFileOrDirectory(LegacyMaxMediationGoogleDir + ".meta", LegacyMaxMediationGoogleDir + ".androidlib" + ".meta");
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2376824a26af1414bbc62440698ccc89
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Google/Editor/MaxGoogleInitialize.cs
|
||||
- al_max_export_path-MaxSdk\Mediation\Google\Editor\MaxGoogleInitialize.cs
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,59 +0,0 @@
|
||||
//
|
||||
// MaxMediationGoogleUtils.cs
|
||||
// AppLovin MAX Unity Plugin
|
||||
//
|
||||
// Created by Santosh Bagadi on 11/7/19.
|
||||
// Copyright © 2019 AppLovin. All rights reserved.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AppLovinMax.Mediation.Google.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// An Utils class containing shared convenience methods.
|
||||
/// </summary>
|
||||
public static class MaxMediationGoogleUtils
|
||||
{
|
||||
private const string AppLovinSettingsExportPath = "MaxSdk/Resources/AppLovinSettings.asset";
|
||||
|
||||
/// <summary>
|
||||
/// Loads the AppLovin Settings asset if it is available and returns the value for the given property name.
|
||||
/// </summary>
|
||||
/// <param name="property">The name of the property for which to get the value of from <c>AppLovinSettings.asset</c> file.</param>
|
||||
/// <returns>The string value of the property if found.</returns>
|
||||
public static string GetAppIdFromAppLovinSettings(string property)
|
||||
{
|
||||
var settingsFileName = GetAppLovinSettingsAssetPath();
|
||||
if (!File.Exists(settingsFileName))
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] The current plugin version is incompatible with the AdMob adapter. Please update the AppLovin MAX plugin to version 2.4.0 or higher.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var instance = AssetDatabase.LoadAssetAtPath(settingsFileName, Type.GetType("AppLovinSettings, MaxSdk.Scripts.IntegrationManager.Editor"));
|
||||
if (instance == null)
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] The current plugin version is incompatible with the AdMob adapter. Please update the AppLovin MAX plugin to version 2.4.15 or higher");
|
||||
return null;
|
||||
}
|
||||
|
||||
var adMobAppIdProperty = instance.GetType().GetProperty(property);
|
||||
return adMobAppIdProperty == null ? null : adMobAppIdProperty.GetValue(instance, null).ToString();
|
||||
}
|
||||
|
||||
private static string GetAppLovinSettingsAssetPath()
|
||||
{
|
||||
// Since the settings asset is generated during compile time, the asset label will contain platform specific path separator. So, use platform specific export path.
|
||||
var assetLabel = "l:al_max_export_path-" + AppLovinSettingsExportPath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
|
||||
var guids = AssetDatabase.FindAssets(assetLabel);
|
||||
|
||||
var defaultPath = Path.Combine("Assets", AppLovinSettingsExportPath);
|
||||
|
||||
return guids.Length > 0 ? AssetDatabase.GUIDToAssetPath(guids[0]) : defaultPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6de4e4d420b14431a7d169724e23361e
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Google/Editor/MaxMediationGoogleUtils.cs
|
||||
- al_max_export_path-MaxSdk\Mediation\Google\Editor\MaxMediationGoogleUtils.cs
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,48 +0,0 @@
|
||||
//
|
||||
// PostProcessor.cs
|
||||
// AppLovin MAX Unity Plugin
|
||||
//
|
||||
// Created by Santosh Bagadi on 6/4/19.
|
||||
// Copyright © 2019 AppLovin. All rights reserved.
|
||||
//
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using UnityEditor.iOS.Xcode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AppLovinMax.Mediation.Google.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// A post processor that will add the AdMob App ID to the <c>info.plist</c> file.
|
||||
/// </summary>
|
||||
public class PostProcessor
|
||||
{
|
||||
[PostProcessBuild]
|
||||
public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath)
|
||||
{
|
||||
var appId = MaxMediationGoogleUtils.GetAppIdFromAppLovinSettings("AdMobIosAppId");
|
||||
|
||||
// Log error if the App ID is not set.
|
||||
if (string.IsNullOrEmpty(appId) || !appId.StartsWith("ca-app-pub-"))
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] AdMob App ID is not set. Please enter a valid app ID within the AppLovin Integration Manager window.");
|
||||
return;
|
||||
}
|
||||
|
||||
var plistPath = Path.Combine(buildPath, "Info.plist");
|
||||
var plist = new PlistDocument();
|
||||
plist.ReadFromFile(plistPath);
|
||||
|
||||
// Actually set (then write) AdMob app id to Info.plist if valid
|
||||
plist.root.SetString("GADApplicationIdentifier", appId);
|
||||
|
||||
File.WriteAllText(plistPath, plist.WriteToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -1,115 +0,0 @@
|
||||
//
|
||||
// PreProcessor.cs
|
||||
// AppLovin MAX Unity Plugin
|
||||
//
|
||||
// Created by Santosh Bagadi on 11/7/19.
|
||||
// Copyright © 2019 AppLovin. All rights reserved.
|
||||
//
|
||||
|
||||
#if UNITY_ANDROID
|
||||
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build;
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
using UnityEditor.Build.Reporting;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
|
||||
namespace AppLovinMax.Mediation.Google.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// A pre processor that will add the AdMob App ID to the <c>AndroidManifest.xml</c> file.
|
||||
/// </summary>
|
||||
public class PreProcessor :
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
IPreprocessBuildWithReport
|
||||
#else
|
||||
IPreprocessBuild
|
||||
#endif
|
||||
{
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
public void OnPreprocessBuild(BuildReport report)
|
||||
#else
|
||||
public void OnPreprocessBuild(BuildTarget target, string path)
|
||||
#endif
|
||||
{
|
||||
// 安卓先不处理
|
||||
if (true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var appId = MaxMediationGoogleUtils.GetAppIdFromAppLovinSettings("AdMobAndroidAppId");
|
||||
if (string.IsNullOrEmpty(appId))
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] AdMob App ID is not set. Please enter a valid app ID within the ");
|
||||
return;
|
||||
}
|
||||
|
||||
var manifestPath = Path.Combine(Application.dataPath, "Plugins/Android/MaxMediationGoogle.androidlib/AndroidManifest.xml");
|
||||
|
||||
XDocument manifest;
|
||||
try
|
||||
{
|
||||
manifest = XDocument.Load(manifestPath);
|
||||
}
|
||||
#pragma warning disable 0168
|
||||
catch (IOException exception)
|
||||
#pragma warning restore 0168
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] Google mediation AndroidManifest.xml is missing. Ensure that MAX Google mediation plugin is imported correctly.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the `manifest` element.
|
||||
var elementManifest = manifest.Element("manifest");
|
||||
if (elementManifest == null)
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] Google mediation AndroidManifest.xml is invalid. Ensure that MAX Google mediation plugin is imported correctly.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the `application` element under `manifest`.
|
||||
var elementApplication = elementManifest.Element("application");
|
||||
if (elementApplication == null)
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] Google mediation AndroidManifest.xml is invalid. Ensure that MAX Google mediation plugin is imported correctly.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Get all the `meta-data` elements under `application`.
|
||||
var adMobMetaData = elementApplication.Descendants().First(element => element.Name.LocalName.Equals("meta-data"));
|
||||
XNamespace androidNamespace = "http://schemas.android.com/apk/res/android";
|
||||
|
||||
if (!adMobMetaData.FirstAttribute.Name.Namespace.Equals(androidNamespace) ||
|
||||
!adMobMetaData.FirstAttribute.Name.LocalName.Equals("name") ||
|
||||
!adMobMetaData.FirstAttribute.Value.Equals("com.google.android.gms.ads.APPLICATION_ID"))
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] Google mediation AndroidManifest.xml is invalid. Ensure that MAX Google mediation plugin is imported correctly.");
|
||||
return;
|
||||
}
|
||||
|
||||
var lastAttribute = adMobMetaData.LastAttribute;
|
||||
// Log error if the AdMob App ID is not set.
|
||||
if (!lastAttribute.Name.LocalName.Equals("value"))
|
||||
{
|
||||
Debug.LogError("[AppLovin MAX] Google mediation AndroidManifest.xml is invalid. Ensure that MAX Google mediation plugin is imported correctly.");
|
||||
}
|
||||
|
||||
// Set the App ID value.
|
||||
lastAttribute.Value = appId;
|
||||
|
||||
// Save the updated manifest file.
|
||||
manifest.Save(manifestPath);
|
||||
}
|
||||
|
||||
public int callbackOrder
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@ -3,7 +3,6 @@ guid: a141703acd55a48c2a3e6e6599f90c64
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/InMobi/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\InMobi\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:inmobi-adapter:10.0.8.1" />
|
||||
<androidPackage spec="com.applovin.mediation:inmobi-adapter:10.1.4.3" />
|
||||
<androidPackage spec="com.squareup.picasso:picasso:2.71828" />
|
||||
<androidPackage spec="com.android.support:recyclerview-v7:28.+" />
|
||||
<androidPackage spec="com.android.support:customtabs:28.+" />
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationInMobiAdapter" version="10.0.8.1" />
|
||||
<iosPod name="AppLovinMediationInMobiAdapter" version="10.5.6.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: bc66a0ef4503843ee9b1bf1b1e867367
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/InMobi/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\InMobi\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 531d860cac61f47d19e32f526470ae43
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/IronSource/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\IronSource\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:ironsource-adapter:7.2.3.1.0">
|
||||
<androidPackage spec="com.applovin.mediation:ironsource-adapter:7.5.0.0.1">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationIronSourceAdapter" version="7.2.3.1.0" />
|
||||
<iosPod name="AppLovinMediationIronSourceAdapter" version="7.5.0.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 19262406303f04f05b14b31b3c734d35
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/IronSource/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\IronSource\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: db1de4066dc4e4290b3879b34fa87de2
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Mintegral/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Mintegral\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:mintegral-adapter:16.2.11.0">
|
||||
<androidPackage spec="com.applovin.mediation:mintegral-adapter:16.5.11.0">
|
||||
<repositories>
|
||||
<repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea</repository>
|
||||
</repositories>
|
||||
@ -9,6 +9,6 @@
|
||||
<androidPackage spec="androidx.recyclerview:recyclerview:1.2.1" />
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationMintegralAdapter" version="7.1.9.0.0" />
|
||||
<iosPod name="AppLovinMediationMintegralAdapter" version="7.4.3.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 221b2a20a58a04f2cb4afb0779587206
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Mintegral/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Mintegral\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 6b21a711d751f4e1d9c77b5fb984e112
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Tapjoy/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\Tapjoy\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:tapjoy-adapter:12.10.0.2">
|
||||
<androidPackage spec="com.applovin.mediation:tapjoy-adapter:13.1.2.0">
|
||||
<repositories>
|
||||
<repository>https://sdk.tapjoy.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationTapjoyAdapter" version="12.10.0.1" />
|
||||
<iosPod name="AppLovinMediationTapjoyAdapter" version="13.1.2.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: c5268a136291a461aad1c0175bccb266
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/Tapjoy/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\Tapjoy\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 30751f2dc322a40e588edfb7c978c9c0
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/UnityAds/Editor
|
||||
- al_max_export_path-MaxSdk\Mediation\UnityAds\Editor
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<dependencies>
|
||||
<!-- <androidPackages>
|
||||
<androidPackage spec="com.applovin.mediation:unityads-adapter:4.3.0.0" />
|
||||
<androidPackage spec="com.applovin.mediation:unityads-adapter:4.8.0.0" />
|
||||
</androidPackages> -->
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationUnityAdsAdapter" version="4.3.0.0" />
|
||||
<iosPod name="AppLovinMediationUnityAdsAdapter" version="4.8.0.1" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@ -3,7 +3,6 @@ guid: 9950f1cb0da1e43efbeca604db142076
|
||||
labels:
|
||||
- al_max
|
||||
- al_max_export_path-MaxSdk/Mediation/UnityAds/Editor/Dependencies.xml
|
||||
- al_max_export_path-MaxSdk\Mediation\UnityAds\Editor\Dependencies.xml
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user