Compare commits
1638 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d68d2e9f30 | ||
|
|
948c48ea23 | ||
|
|
a9ccf6ca42 | ||
|
|
fd7b829e70 | ||
|
|
87a7cc6289 | ||
|
|
2f8b5e53bb | ||
|
|
8b7fa3b646 | ||
|
|
dd2c71fe61 | ||
|
|
3b58d57e5c | ||
|
|
cecf32e52e | ||
|
|
91a2dfab36 | ||
|
|
5e5838a8c1 | ||
|
|
0fffbc06dd | ||
|
|
4d360bfb73 | ||
|
|
e3001b614e | ||
|
|
6ecdef02ab | ||
|
|
36903eb749 | ||
|
|
f530c9514f | ||
|
|
fdffa77bc5 | ||
|
|
245dd39a60 | ||
|
|
4614aacc02 | ||
|
|
64ccdab90c | ||
|
|
02286b0c4e | ||
|
|
8e952a550b | ||
|
|
a29f95194d | ||
|
|
0e5db49b93 | ||
|
|
a2c29c0937 | ||
|
|
c318f05cfd | ||
|
|
789d200c24 | ||
|
|
2dc4a9e044 | ||
|
|
82577b91d5 | ||
|
|
8fd08a1574 | ||
|
|
7a41fc8ec8 | ||
|
|
798ca929d6 | ||
|
|
7e4e58fb78 | ||
|
|
28b9975c75 | ||
|
|
5536ade389 | ||
|
|
21bc195213 | ||
|
|
b6beacf053 | ||
|
|
94b6c133f4 | ||
|
|
949d7bed89 | ||
|
|
81ce12a38c | ||
|
|
eba65b2934 | ||
|
|
c7f5b7fca1 | ||
|
|
f670d522bf | ||
|
|
a02f7f46c3 | ||
|
|
4b7f254e17 | ||
|
|
9b42be560d | ||
|
|
31b39231a2 | ||
|
|
4eb2c1f646 | ||
|
|
5f89d8588d | ||
|
|
404cbf9b4a | ||
|
|
0aabc09b82 | ||
|
|
a5ebeadd95 | ||
|
|
9e188aaf03 | ||
|
|
870f5caca9 | ||
|
|
28b4ddfc72 | ||
|
|
13a4a26e97 | ||
|
|
81c7e63994 | ||
|
|
7f234ab5bc | ||
|
|
f8d0682810 | ||
|
|
175d6b1fc5 | ||
|
|
1cd8e8a097 | ||
|
|
ed95e38257 | ||
|
|
cab585225d | ||
|
|
3688dde5e5 | ||
|
|
ae6a5b2512 | ||
|
|
6f87611d67 | ||
|
|
6a5e31c908 | ||
|
|
8bda5e16cd | ||
|
|
d70d3d95f0 | ||
|
|
554b7d2ec4 | ||
|
|
ebc4031922 | ||
|
|
c526997aba | ||
|
|
c0e3a1f3ef | ||
|
|
7dc0a7a5c3 | ||
|
|
2943b6ed04 | ||
|
|
5feb212df7 | ||
|
|
327edcd347 | ||
|
|
94cbf4cddf | ||
|
|
08cc87affb | ||
|
|
18020d64cc | ||
|
|
48b7ceac06 | ||
|
|
dbcce9663c | ||
|
|
6ee7dd56fe | ||
|
|
99418e6b88 | ||
|
|
67db5e9dfc | ||
|
|
5f1bc6c6c2 | ||
|
|
05201d7012 | ||
|
|
6b4983537e | ||
|
|
87c8293c78 | ||
|
|
54488564f3 | ||
|
|
f2ac9ed385 | ||
|
|
38f2f1e30a | ||
|
|
02004011ec | ||
|
|
60bb982450 | ||
|
|
67389c0bac | ||
|
|
faa1fee1c0 | ||
|
|
0bae421fbc | ||
|
|
b29d81bf0f | ||
|
|
4792828da1 | ||
|
|
6171e887a8 | ||
|
|
f28fa93f40 | ||
|
|
940ad84493 | ||
|
|
0b168376ed | ||
|
|
f7bd376499 | ||
|
|
9566155bdb | ||
|
|
9994ddb31b | ||
|
|
fadfdaa673 | ||
|
|
4ca546f44a | ||
|
|
8af30c9256 | ||
|
|
42adc38720 | ||
|
|
c1d9dee46c | ||
|
|
69a7104286 | ||
|
|
aba5afe32c | ||
|
|
c1ccf4fceb | ||
|
|
916a4cfc73 | ||
|
|
fd107ab5b8 | ||
|
|
5fa6fccf7b | ||
|
|
0ce226d0c9 | ||
|
|
14e0b471d3 | ||
|
|
ed0df64cf9 | ||
|
|
35bc2c9803 | ||
|
|
a771dc8787 | ||
|
|
244eb91dfb | ||
|
|
7488a6d42b | ||
|
|
696a59f1b9 | ||
|
|
ee5a3269f2 | ||
|
|
f89bf027f7 | ||
|
|
4db432b0a9 | ||
|
|
c82fd9ead5 | ||
|
|
34715b1e06 | ||
|
|
f0870b3236 | ||
|
|
9a286800d6 | ||
|
|
59832b1777 | ||
|
|
561f566506 | ||
|
|
f0cacf6bd5 | ||
|
|
ce4031af74 | ||
|
|
dd7f91b8c2 | ||
|
|
8523e5bf6b | ||
|
|
860727d27a | ||
|
|
f175bf2c82 | ||
|
|
40008f44ac | ||
|
|
3f93b5c63b | ||
|
|
d2ce051c4a | ||
|
|
d5d90bde9a | ||
|
|
fc8d9febf6 | ||
|
|
b43c542213 | ||
|
|
e7533232c0 | ||
|
|
5e1aaf11a7 | ||
|
|
d062dffc13 | ||
|
|
4810bbbbd9 | ||
|
|
967998273f | ||
|
|
24decf8abc | ||
|
|
3bc605894e | ||
|
|
b74ae302ec | ||
|
|
db3dac261a | ||
|
|
87b47b3042 | ||
|
|
720e1a038e | ||
|
|
1753c54e88 | ||
|
|
2d42de83de | ||
|
|
c4e6af455d | ||
|
|
51d619449b | ||
|
|
1160a14f56 | ||
|
|
57fce0ddbc | ||
|
|
b9eb8a750b | ||
|
|
3ce16e0ed1 | ||
|
|
554d9b4047 | ||
|
|
02d565ce58 | ||
|
|
795bc1276b | ||
|
|
499b7b2e67 | ||
|
|
b6c0fe8bf7 | ||
|
|
d5bb1b72b9 | ||
|
|
af86564adc | ||
|
|
5354e02b6f | ||
|
|
4ee17a656f | ||
|
|
32c59b66f6 | ||
|
|
20732f04ff | ||
|
|
06763b34c3 | ||
|
|
6bab6c57f2 | ||
|
|
4eab89d73e | ||
|
|
8d20c46228 | ||
|
|
f5c4586bb7 | ||
|
|
bc6bbdbbe0 | ||
|
|
b77caed0ba | ||
|
|
df976f1212 | ||
|
|
999dd5eb6f | ||
|
|
a1a6a3ab81 | ||
|
|
d067bbfa65 | ||
|
|
3bd40eeb27 | ||
|
|
b124d54055 | ||
|
|
90691de457 | ||
|
|
bee83a3a3e | ||
|
|
fd8f2438fa | ||
|
|
7937d99a73 | ||
|
|
569afb5535 | ||
|
|
fc5a45e113 | ||
|
|
950f4a9f1a | ||
|
|
6a6e80b6d8 | ||
|
|
083c9792a6 | ||
|
|
893bfce767 | ||
|
|
f61f3df732 | ||
|
|
a3be5e332e | ||
|
|
33d65a8593 | ||
|
|
ebbf01c6e5 | ||
|
|
acb8496352 | ||
|
|
ecad5772d2 | ||
|
|
6e6f5714dd | ||
|
|
50ae15aa4f | ||
|
|
4e2c3049a0 | ||
|
|
3a785c166e | ||
|
|
5248a4eb9c | ||
|
|
c9a53aed7b | ||
|
|
bafe5dc784 | ||
|
|
5325488099 | ||
|
|
737ad5c8b7 | ||
|
|
17cea4e274 | ||
|
|
af5b579a2f | ||
|
|
c87eaaa928 | ||
|
|
33418397f8 | ||
|
|
8c7258e839 | ||
|
|
98fff9b81d | ||
|
|
0c63b27eea | ||
|
|
0968981aef | ||
|
|
8db4abdf43 | ||
|
|
9aa4219bf0 | ||
|
|
6c32ab4711 | ||
|
|
a80c5a1efa | ||
|
|
4ba46bff69 | ||
|
|
6a7c97277f | ||
|
|
cc70ff9732 | ||
|
|
2d25948c57 | ||
|
|
8946af4831 | ||
|
|
5e7ca0374c | ||
|
|
21f8e89ba4 | ||
|
|
f0aca90de2 | ||
|
|
097228066a | ||
|
|
7d8782f3dc | ||
|
|
e4ea9d561e | ||
|
|
e284d9de8e | ||
|
|
df6382a1ca | ||
|
|
c1c1a3318c | ||
|
|
796df1cec5 | ||
|
|
28980293c5 | ||
|
|
d878ad2e7e | ||
|
|
1290d1e9d4 | ||
|
|
f229f1e9fe | ||
|
|
0776951018 | ||
|
|
6d47b449b9 | ||
|
|
594c975c70 | ||
|
|
bf57318307 | ||
|
|
abd87793e4 | ||
|
|
7b4e6128ce | ||
|
|
2ae65acc28 | ||
|
|
2ee87ad078 | ||
|
|
d65beea179 | ||
|
|
b19f3ff8cf | ||
|
|
75fae9454d | ||
|
|
5d309c39cf | ||
|
|
649fc5a0e6 | ||
|
|
67cfa5d42f | ||
|
|
5dcacdeea1 | ||
|
|
2f7073bbe4 | ||
|
|
e8df6ed3be | ||
|
|
d9eb4c1296 | ||
|
|
4af0fbf553 | ||
|
|
2da0862cb2 | ||
|
|
66fcf84688 | ||
|
|
5740d40d57 | ||
|
|
6ef2256bf2 | ||
|
|
65f911909b | ||
|
|
2cb6e454c8 | ||
|
|
abfaa47db2 | ||
|
|
e06970eebb | ||
|
|
dadc83800b | ||
|
|
62f2c67321 | ||
|
|
1651844b4f | ||
|
|
fb9f42ff93 | ||
|
|
9c29b982dd | ||
|
|
f52c4964b3 | ||
|
|
46a8edb781 | ||
|
|
8dbdbe6d6c | ||
|
|
778069c15d | ||
|
|
e98457c540 | ||
|
|
7a3a76065c | ||
|
|
c73c97dc7b | ||
|
|
1b0dd279ae | ||
|
|
7dd487ccc5 | ||
|
|
d046591512 | ||
|
|
e4ce115abf | ||
|
|
aedcac5820 | ||
|
|
9f4430ad92 | ||
|
|
2ad8f1c112 | ||
|
|
f0d884e114 | ||
|
|
b618f5be80 | ||
|
|
7b63eac3eb | ||
|
|
df3f2ea9c1 | ||
|
|
30c6280ed1 | ||
|
|
1960b59629 | ||
|
|
6e6edf8322 | ||
|
|
f47fb01614 | ||
|
|
ae30bdd599 | ||
|
|
2c8962cf5f | ||
|
|
eb3e507a11 | ||
|
|
be3147465d | ||
|
|
484721fece | ||
|
|
9c36026991 | ||
|
|
bf5055f944 | ||
|
|
389034bf1a | ||
|
|
3f07102f2a | ||
|
|
d4ccfa31b5 | ||
|
|
5814b2a4b8 | ||
|
|
d3f61af493 | ||
|
|
233ea7bb4a | ||
|
|
6893a30ffb | ||
|
|
ae6d2fb363 | ||
|
|
baa7cb3a10 | ||
|
|
7b90544d91 | ||
|
|
9a5495d8b2 | ||
|
|
1fa769b3e7 | ||
|
|
96766ece4e | ||
|
|
add525396f | ||
|
|
26ae4edd63 | ||
|
|
063893adee | ||
|
|
ff37e99d71 | ||
|
|
3d0b02ee23 | ||
|
|
d7cfbfe6c8 | ||
|
|
dc00e22f13 | ||
|
|
bcde481304 | ||
|
|
5b1341e488 | ||
|
|
6ad70ceee3 | ||
|
|
9c4d2f5490 | ||
|
|
6c5eff1143 | ||
|
|
a893767d0f | ||
|
|
a4f240edc8 | ||
|
|
e0a94f694b | ||
|
|
8654f25a4f | ||
|
|
e877310d85 | ||
|
|
bb59f45ba6 | ||
|
|
3d4c2a2c20 | ||
|
|
e36667cd08 | ||
|
|
cebaa6949e | ||
|
|
019e22aff2 | ||
|
|
5129e2ea73 | ||
|
|
3b63f60462 | ||
|
|
5e29115c2e | ||
|
|
0b4b30286d | ||
|
|
a01f64080d | ||
|
|
d031351bc8 | ||
|
|
1d21d36253 | ||
|
|
8d4cd72b41 | ||
|
|
46ab6d3476 | ||
|
|
3fcf3cbf93 | ||
|
|
ada912c69b | ||
|
|
e204b89eaf | ||
|
|
e903798fc2 | ||
|
|
54497c43b6 | ||
|
|
99e54cc214 | ||
|
|
56ae47cd8d | ||
|
|
0fb336cf7b | ||
|
|
469b3c0a94 | ||
|
|
d90d88c68b | ||
|
|
dcc061af3e | ||
|
|
a2960f5c50 | ||
|
|
565f8a2b4d | ||
|
|
5cb50d57ec | ||
|
|
522e19d4bf | ||
|
|
0db7a78889 | ||
|
|
1ce3b40b4e | ||
|
|
e633528a7a | ||
|
|
6570b411d1 | ||
|
|
ac9e774795 | ||
|
|
8791747453 | ||
|
|
dda3afe9fa | ||
|
|
d4435f980c | ||
|
|
f29673a6e3 | ||
|
|
9816bab151 | ||
|
|
5884c0bcb3 | ||
|
|
96dc00beac | ||
|
|
febc1e53b6 | ||
|
|
3e18fb3ca0 | ||
|
|
28b9de2e7a | ||
|
|
9a41399178 | ||
|
|
db47b9a877 | ||
|
|
7cdd7a3487 | ||
|
|
833f646903 | ||
|
|
35a85860b1 | ||
|
|
00f24dfb79 | ||
|
|
8c6ae2576d | ||
|
|
5416ad33bd | ||
|
|
1e25ba2d8e | ||
|
|
8d08d25f5b | ||
|
|
802e7b12d0 | ||
|
|
9b57550f3d | ||
|
|
28c13c8e52 | ||
|
|
d8f9059989 | ||
|
|
ac9d37d038 | ||
|
|
6323c13704 | ||
|
|
2f7f16daff | ||
|
|
9059238aee | ||
|
|
2677c0e752 | ||
|
|
ba80770564 | ||
|
|
06ad35d934 | ||
|
|
864c4f6bc3 | ||
|
|
f5f0f02abe | ||
|
|
19979dec55 | ||
|
|
926e61b7cc | ||
|
|
15378d3267 | ||
|
|
33fcfda1a0 | ||
|
|
74d7b43d0f | ||
|
|
e392c8f0e6 | ||
|
|
f60ba8587f | ||
|
|
86a7f837cd | ||
|
|
9465497481 | ||
|
|
8c3f3ac304 | ||
|
|
88ba8f6f55 | ||
|
|
c64459dbf4 | ||
|
|
8b0bbffe27 | ||
|
|
94805259d7 | ||
|
|
e796d44f92 | ||
|
|
5e8686db77 | ||
|
|
ee835f6514 | ||
|
|
5de61aaed3 | ||
|
|
6613e4ec42 | ||
|
|
206314f4f4 | ||
|
|
8f12c3f1a8 | ||
|
|
4c224d0b9c | ||
|
|
30dd089c8b | ||
|
|
8d9ec206bf | ||
|
|
8319288776 | ||
|
|
60bf36613f | ||
|
|
a75994cbbf | ||
|
|
e1f7c7b03d | ||
|
|
bb7e2c7cee | ||
|
|
69eb6469f9 | ||
|
|
d2eb3be7f8 | ||
|
|
5aa76639d1 | ||
|
|
3bf72a1af6 | ||
|
|
b745d88299 | ||
|
|
3aedc07ad0 | ||
|
|
dbb164f4be | ||
|
|
b0103d1ce3 | ||
|
|
9c532047d3 | ||
|
|
0003a58210 | ||
|
|
34f2704dc7 | ||
|
|
0ddee379ca | ||
|
|
6dcbe4fabb | ||
|
|
5dbb9fdf3f | ||
|
|
914fa3079d | ||
|
|
2e958d8d8f | ||
|
|
7a5e61fd2e | ||
|
|
6a031d8f53 | ||
|
|
dc6f01c0d3 | ||
|
|
1cc8cbe8a8 | ||
|
|
01ae8bec85 | ||
|
|
258ab87f6b | ||
|
|
8ba2db6c58 | ||
|
|
a7599e85dc | ||
|
|
28389d698e | ||
|
|
c47a220721 | ||
|
|
69f7296baa | ||
|
|
855f56bb45 | ||
|
|
a79d072aaf | ||
|
|
467047a011 | ||
|
|
0288daa39d | ||
|
|
3f075068a9 | ||
|
|
278e7027f2 | ||
|
|
9d654c1f18 | ||
|
|
279187d13b | ||
|
|
360494f971 | ||
|
|
81931eb536 | ||
|
|
a2ef11eb0f | ||
|
|
b872252771 | ||
|
|
b2c388276f | ||
|
|
178928f866 | ||
|
|
7e548f9969 | ||
|
|
a60ce3c54c | ||
|
|
0f173bcc5a | ||
|
|
64dbe8312e | ||
|
|
7f443c71ae | ||
|
|
27276c025c | ||
|
|
e9d03c179c | ||
|
|
dec01c23a9 | ||
|
|
e0eb227ce5 | ||
|
|
20021c5b31 | ||
|
|
f8d6797fc2 | ||
|
|
25051980ce | ||
|
|
fb8becca99 | ||
|
|
25bd8a7eaa | ||
|
|
bbd2424a3f | ||
|
|
83eeeed319 | ||
|
|
c92e8161a1 | ||
|
|
258555c990 | ||
|
|
0f7799422e | ||
|
|
177b565d7c | ||
|
|
a62b336b6c | ||
|
|
3ea61c8b3a | ||
|
|
4c57f9f902 | ||
|
|
6d7941fba4 | ||
|
|
020c6388c2 | ||
|
|
53d35e8c77 | ||
|
|
01f205d352 | ||
|
|
a786167b04 | ||
|
|
1699ab48e8 | ||
|
|
b15c04a532 | ||
|
|
20d3740e75 | ||
|
|
80d57f8c0c | ||
|
|
1de367e89c | ||
|
|
8850a89e30 | ||
|
|
4f72011cf7 | ||
|
|
c569232e74 | ||
|
|
14c526d0c4 | ||
|
|
5c4ac6b702 | ||
|
|
d58cc18136 | ||
|
|
36c01fde94 | ||
|
|
d4d9d59fe4 | ||
|
|
8dbd0a6130 | ||
|
|
3746344cba | ||
|
|
d07fd1bbfe | ||
|
|
02f95c0ed4 | ||
|
|
c98fcbd795 | ||
|
|
d071877963 | ||
|
|
0267cb4006 | ||
|
|
bf571e595c | ||
|
|
c0cad70212 | ||
|
|
7bd6dbb4b4 | ||
|
|
6d932e3d04 | ||
|
|
e154b5179d | ||
|
|
52110d6008 | ||
|
|
103b08fd1d | ||
|
|
cb09d10e7f | ||
|
|
a041c1e60d | ||
|
|
586b4cf4bd | ||
|
|
d0ff149cca | ||
|
|
f8ddc8325c | ||
|
|
59ec09e82c | ||
|
|
2ae5c96690 | ||
|
|
fda9e6bb9c | ||
|
|
29bcb8e07c | ||
|
|
b70de81c2d | ||
|
|
5e89b2568f | ||
|
|
ac1d8215ff | ||
|
|
fefc734bfa | ||
|
|
7f8735842c | ||
|
|
a226983470 | ||
|
|
28526d0a12 | ||
|
|
913e005bae | ||
|
|
7bd9fd5bae | ||
|
|
8986b89d67 | ||
|
|
ef936214f0 | ||
|
|
18fce6b3e3 | ||
|
|
ecda4d74ab | ||
|
|
31124037b5 | ||
|
|
aaf95e0756 | ||
|
|
804e311875 | ||
|
|
61ad9bc47d | ||
|
|
2b23b7876a | ||
|
|
547d334f43 | ||
|
|
7432dc115e | ||
|
|
905defe8ce | ||
|
|
0a8ff0cde7 | ||
|
|
bd5f44030e | ||
|
|
79abb86262 | ||
|
|
fe6f98ec5a | ||
|
|
e39a856e54 | ||
|
|
64e5f8155d | ||
|
|
8328b11f6b | ||
|
|
15778b2ca5 | ||
|
|
b7842014c1 | ||
|
|
a804053904 | ||
|
|
2aee72b47b | ||
|
|
0cb8c600b7 | ||
|
|
aa5348f37e | ||
|
|
0736574a57 | ||
|
|
d56365ce63 | ||
|
|
c82d2f856a | ||
|
|
8432677826 | ||
|
|
0c0c6e5470 | ||
|
|
57019b6e20 | ||
|
|
12ab2249b4 | ||
|
|
22d0992d38 | ||
|
|
f8def04653 | ||
|
|
6349530fc5 | ||
|
|
ad83a7dcc3 | ||
|
|
cfc2239733 | ||
|
|
91552a3a2b | ||
|
|
4e3204bc6d | ||
|
|
a94998bd02 | ||
|
|
81c78eafa6 | ||
|
|
273523480f | ||
|
|
b27fefae88 | ||
|
|
aa00a1b8d1 | ||
|
|
ba62e0eefc | ||
|
|
cb16c75e11 | ||
|
|
3efed0ace3 | ||
|
|
879fb8194f | ||
|
|
049dd89470 | ||
|
|
1f59d4354a | ||
|
|
8dea45d9d5 | ||
|
|
21ba6e257c | ||
|
|
18ebda01a4 | ||
|
|
3acb843109 | ||
|
|
1768aea66f | ||
|
|
4b61f273d5 | ||
|
|
a1dbbbdafc | ||
|
|
dcb840f290 | ||
|
|
e6c4c66199 | ||
|
|
b76cd558aa | ||
|
|
85b077b5c5 | ||
|
|
c34d6e6606 | ||
|
|
a5fd0aebe6 | ||
|
|
aaec04d04a | ||
|
|
b4272e0387 | ||
|
|
77f9d6cb1d | ||
|
|
aaa82b34e4 | ||
|
|
7a6b1129d9 | ||
|
|
1f8918c773 | ||
|
|
e9fe724e59 | ||
|
|
80001246ef | ||
|
|
50461bb7c8 | ||
|
|
c7c7cfde74 | ||
|
|
dcc29c0c48 | ||
|
|
635e299464 | ||
|
|
502c4e51ae | ||
|
|
382fdcbb40 | ||
|
|
468e092422 | ||
|
|
6904d4693f | ||
|
|
3ef7ec3be5 | ||
|
|
70257cbbfa | ||
|
|
6ef31d0ec1 | ||
|
|
d3077bec58 | ||
|
|
a1095353fc | ||
|
|
66fab1b3df | ||
|
|
569d6d4272 | ||
|
|
07c19ce085 | ||
|
|
d86dd4f80b | ||
|
|
f0f89f0894 | ||
|
|
47af2e83f7 | ||
|
|
8ec87872c8 | ||
|
|
f30ea80b42 | ||
|
|
1dd6e66167 | ||
|
|
4e681b2dd1 | ||
|
|
58be00b3ce | ||
|
|
5604ac6b6a | ||
|
|
effdaefdf3 | ||
|
|
5775fad030 | ||
|
|
eabc6d79c3 | ||
|
|
5f4ca6e383 | ||
|
|
c05020e28e | ||
|
|
5206079e23 | ||
|
|
9b01140882 | ||
|
|
4dae27da98 | ||
|
|
f0cab65a6d | ||
|
|
699a47351b | ||
|
|
af004da699 | ||
|
|
b5ad885237 | ||
|
|
07bd0fec70 | ||
|
|
318e51d736 | ||
|
|
ae90db50fe | ||
|
|
64772c195e | ||
|
|
05ead63bdc | ||
|
|
6f5c64420d | ||
|
|
d9d9a00a24 | ||
|
|
c1de67032c | ||
|
|
890d49fdd7 | ||
|
|
ba96ea5a0c | ||
|
|
b481b784bb | ||
|
|
53b6e68a85 | ||
|
|
e3d16418a0 | ||
|
|
e41f560ecd | ||
|
|
d394d9a529 | ||
|
|
a73015fa6e | ||
|
|
87846864cc | ||
|
|
f3b976bdd1 | ||
|
|
3a06e319b0 | ||
|
|
fe31c404ff | ||
|
|
cc23378758 | ||
|
|
5cac949ea8 | ||
|
|
a35e897194 | ||
|
|
8e92edeae1 | ||
|
|
f289a0a9a8 | ||
|
|
65a7e89a8c | ||
|
|
43be3259c9 | ||
|
|
54a4c95a1b | ||
|
|
ddac5cbfbc | ||
|
|
22342d01a5 | ||
|
|
7cffaeb193 | ||
|
|
2534496543 | ||
|
|
fe9b11e771 | ||
|
|
032347840f | ||
|
|
2978bc6ac5 | ||
|
|
a3b0bb323f | ||
|
|
a6246d27d9 | ||
|
|
884b649b53 | ||
|
|
92a2f770b4 | ||
|
|
e88ce078df | ||
|
|
77f0dfb9b1 | ||
|
|
78d1accf07 | ||
|
|
2ec68a7f07 | ||
|
|
bbaa2a2c92 | ||
|
|
341bb67ef4 | ||
|
|
e377cb423b | ||
|
|
81e954c258 | ||
|
|
79d41ba7ac | ||
|
|
e740e4da87 | ||
|
|
b476c47194 | ||
|
|
b2d61a93d9 | ||
|
|
a045ec9d46 | ||
|
|
1daf8d2743 | ||
|
|
295824f440 | ||
|
|
22b59e0cf6 | ||
|
|
ecabdb82e6 | ||
|
|
924b1c1a67 | ||
|
|
0454c4c25a | ||
|
|
3a3b81941b | ||
|
|
0875c29da5 | ||
|
|
0d4cf9f6c4 | ||
|
|
6a525dcf59 | ||
|
|
01f6904f82 | ||
|
|
23bd9a989b | ||
|
|
acfa02475b | ||
|
|
9dba304011 | ||
|
|
69b0020d15 | ||
|
|
ce2896cb38 | ||
|
|
68fd09c222 | ||
|
|
c832a7b93f | ||
|
|
49e19ab34d | ||
|
|
c1c82b451d | ||
|
|
ea6f88b7f6 | ||
|
|
2a6ee6d65b | ||
|
|
583342b430 | ||
|
|
7289c1080c | ||
|
|
9ed4f2b7a3 | ||
|
|
7396f91a5e | ||
|
|
ccc926d812 | ||
|
|
bd39255ead | ||
|
|
add7b1a7d9 | ||
|
|
8e471f9939 | ||
|
|
c61568ef98 | ||
|
|
3260e45e71 | ||
|
|
ea61b560b8 | ||
|
|
f8ad7d485b | ||
|
|
229e624434 | ||
|
|
7a3fb9c759 | ||
|
|
9a7ea0d28c | ||
|
|
ee5e655668 | ||
|
|
58be055f57 | ||
|
|
38e1944503 | ||
|
|
992b402e9c | ||
|
|
81bf28e4ed | ||
|
|
f10734b083 | ||
|
|
bf8f565631 | ||
|
|
9bc1ff8fa2 | ||
|
|
56239b6bbf | ||
|
|
cedd2bfe57 | ||
|
|
7e187a57d8 | ||
|
|
572a30a2c5 | ||
|
|
f3235ef7e8 | ||
|
|
7448eb32cc | ||
|
|
33e8cc4711 | ||
|
|
6cdb016c2c | ||
|
|
ababb7f5ab | ||
|
|
9f2b66e09d | ||
|
|
8de267f6a9 | ||
|
|
ecf9a3cbc9 | ||
|
|
01300b97e2 | ||
|
|
787163fb06 | ||
|
|
3701a3c3d9 | ||
|
|
68c51bb1bc | ||
|
|
df147c700c | ||
|
|
f5fc4d99dd | ||
|
|
2a4aa9e550 | ||
|
|
0a489f1117 | ||
|
|
9cc7c061a3 | ||
|
|
a1e7274ec3 | ||
|
|
51d516a39e | ||
|
|
de7c38231c | ||
|
|
c352ef9382 | ||
|
|
e36b5551e9 | ||
|
|
57856c38d6 | ||
|
|
2a8e02339b | ||
|
|
57f94ca6a2 | ||
|
|
0eaca8b80a | ||
|
|
d2dbab57dc | ||
|
|
cb448a3494 | ||
|
|
3fa6eae05b | ||
|
|
52cc7d699a | ||
|
|
ec4eac3a7d | ||
|
|
fbcfb23676 | ||
|
|
dbb2371801 | ||
|
|
4d6dc9546f | ||
|
|
06b9d328f4 | ||
|
|
48c7daa4ab | ||
|
|
3c83b88127 | ||
|
|
3a63fa5475 | ||
|
|
882790d133 | ||
|
|
bcf72b894d | ||
|
|
9f723c39ef | ||
|
|
56fc40a64d | ||
|
|
091f591ffb | ||
|
|
4d88a8206a | ||
|
|
363bf7c552 | ||
|
|
7ff4e5879d | ||
|
|
0b7decbfdd | ||
|
|
be9ea33aa4 | ||
|
|
d4b2cad94e | ||
|
|
ac039ce7cd | ||
|
|
946e60937d | ||
|
|
6f6601d270 | ||
|
|
71016f0d7c | ||
|
|
c2c2551607 | ||
|
|
d7812ec030 | ||
|
|
f184b0700f | ||
|
|
07f0be8d8d | ||
|
|
dd45b43d7f | ||
|
|
9b505106e3 | ||
|
|
d552f37daf | ||
|
|
6a7ff13859 | ||
|
|
9e3af13efc | ||
|
|
92a968217c | ||
|
|
37b9df3202 | ||
|
|
7dc33111fc | ||
|
|
ab2f260a52 | ||
|
|
1aa4b8cb88 | ||
|
|
dfed36748c | ||
|
|
d35f736548 | ||
|
|
cfecdae970 | ||
|
|
59ade6cf09 | ||
|
|
642842888a | ||
|
|
3ae51edf3a | ||
|
|
d8ccb81015 | ||
|
|
0db6020231 | ||
|
|
738c0a5c9c | ||
|
|
a2f7d3e241 | ||
|
|
9b86ded164 | ||
|
|
6cbb645b10 | ||
|
|
066a1d7591 | ||
|
|
5f82d575ee | ||
|
|
302ae0a83c | ||
|
|
82c4c791cc | ||
|
|
3c0310120d | ||
|
|
21c106e9d5 | ||
|
|
2c8cd2f8dc | ||
|
|
380d9908b4 | ||
|
|
6abef7d645 | ||
|
|
98ac25ac29 | ||
|
|
93bec04c92 | ||
|
|
136559cddd | ||
|
|
3f63a6ed70 | ||
|
|
2fcb3c4420 | ||
|
|
baaeb229cf | ||
|
|
a3bda3a941 | ||
|
|
3d536aa28d | ||
|
|
454267455b | ||
|
|
8e9adeb4b4 | ||
|
|
1f18e7beed | ||
|
|
b5e8e54107 | ||
|
|
f41e426b69 | ||
|
|
6375862a71 | ||
|
|
be2a745d78 | ||
|
|
d89feb2c75 | ||
|
|
b4a20c8fcb | ||
|
|
73087a92f4 | ||
|
|
2b58bd5bd8 | ||
|
|
bce0101278 | ||
|
|
bba418c79d | ||
|
|
cb58eb82fc | ||
|
|
3aafffabc1 | ||
|
|
66b9cdf64c | ||
|
|
d31fbf3b6f | ||
|
|
dbee30a412 | ||
|
|
f3cc881930 | ||
|
|
3d9c9e639d | ||
|
|
d6969d2c74 | ||
|
|
b7e28a73ba | ||
|
|
1e8206757d | ||
|
|
a0e94577fc | ||
|
|
a2a0c2f791 | ||
|
|
63a0fde121 | ||
|
|
c06152de07 | ||
|
|
0b3ccbda20 | ||
|
|
97b7eb0768 | ||
|
|
b712301804 | ||
|
|
76ebe3ff41 | ||
|
|
d988bb1821 | ||
|
|
64f1fbe400 | ||
|
|
c2c837329c | ||
|
|
b6531efe08 | ||
|
|
2c97a4aefe | ||
|
|
f0ffebd58c | ||
|
|
05e407f064 | ||
|
|
6dd2eec1b6 | ||
|
|
df13436688 | ||
|
|
fa0d89b6df | ||
|
|
ab0f8defa4 | ||
|
|
6b3329845b | ||
|
|
fc07c5efa6 | ||
|
|
23188df276 | ||
|
|
5e66dfcc36 | ||
|
|
bc36c57f9f | ||
|
|
5efa7d551e | ||
|
|
8c6cda0d97 | ||
|
|
4fa165bc6a | ||
|
|
da6695ceee | ||
|
|
1043a5bb0d | ||
|
|
c7625278b5 | ||
|
|
b9ef88951e | ||
|
|
14fe35bba0 | ||
|
|
4a32706c5a | ||
|
|
cc92edfa58 | ||
|
|
071d0fbbf7 | ||
|
|
6ff44fddd0 | ||
|
|
8760e99c43 | ||
|
|
423f5f16bb | ||
|
|
1c8c702afd | ||
|
|
d2a739262d | ||
|
|
76d0285e3f | ||
|
|
cb9d3414f2 | ||
|
|
12f444750c | ||
|
|
5fdf7e3a12 | ||
|
|
60deb9205b | ||
|
|
677526cb16 | ||
|
|
359a392cca | ||
|
|
4d600f973a | ||
|
|
4a626bc920 | ||
|
|
3597860074 | ||
|
|
68d2c30c38 | ||
|
|
e210d9c08e | ||
|
|
c9b77e4e23 | ||
|
|
e56d865416 | ||
|
|
efc779a8d7 | ||
|
|
7e6807509b | ||
|
|
a683866397 | ||
|
|
7a4f56d943 | ||
|
|
ec127519aa | ||
|
|
5ea3e2006d | ||
|
|
bd914bf42a | ||
|
|
e66c95fc76 | ||
|
|
9130302c93 | ||
|
|
11b979e408 | ||
|
|
44f13ef162 | ||
|
|
17253adcdf | ||
|
|
04dcc262ee | ||
|
|
e3bee43163 | ||
|
|
fb2bb5a4bc | ||
|
|
cf0a25fdfc | ||
|
|
e9436426b7 | ||
|
|
37ba95f8b3 | ||
|
|
deadcd5339 | ||
|
|
95d01f0ef5 | ||
|
|
02b8e34242 | ||
|
|
7177e0a576 | ||
|
|
b2c99fd0fd | ||
|
|
cc5910f997 | ||
|
|
cb6090c773 | ||
|
|
c0a649ffcb | ||
|
|
bebc1a22f3 | ||
|
|
b4151a256b | ||
|
|
3898602f0e | ||
|
|
0216425209 | ||
|
|
499671a637 | ||
|
|
ab82faf7ba | ||
|
|
fdf7173f14 | ||
|
|
4b11511bd1 | ||
|
|
53cbc0fb8b | ||
|
|
b209f3e50d | ||
|
|
5ec495987e | ||
|
|
66c9fd8431 | ||
|
|
576af67587 | ||
|
|
cad44cf379 | ||
|
|
ff07e99e39 | ||
|
|
18b137a1a6 | ||
|
|
2344fb910b | ||
|
|
085d309528 | ||
|
|
c8069dfee7 | ||
|
|
9c90f59c25 | ||
|
|
15cf8fe0be | ||
|
|
4258f53bc8 | ||
|
|
3640f1ba77 | ||
|
|
23bb409639 | ||
|
|
6364b9e06b | ||
|
|
5cefecced8 | ||
|
|
8b17972b11 | ||
|
|
e799187aaf | ||
|
|
c89123b18a | ||
|
|
03277c69af | ||
|
|
20b3bb8f13 | ||
|
|
a6ca84308e | ||
|
|
a71f3f55b0 | ||
|
|
24ac823f06 | ||
|
|
e407ba3ad3 | ||
|
|
7a049d64d8 | ||
|
|
8ec9d95cd2 | ||
|
|
91501d39ee | ||
|
|
5d70b4b95b | ||
|
|
c7bc6e9128 | ||
|
|
b911ef98bb | ||
|
|
f464868934 | ||
|
|
d89c33fbe8 | ||
|
|
f61f8a36f8 | ||
|
|
b9b34eea37 | ||
|
|
d948607039 | ||
|
|
5a135e108a | ||
|
|
ced11c88bc | ||
|
|
92a748a762 | ||
|
|
f4c9645d73 | ||
|
|
89ddbfc83d | ||
|
|
fa53b1be73 | ||
|
|
c7ec7db61a | ||
|
|
27cf4b0218 | ||
|
|
482858e36b | ||
|
|
50372ed9f3 | ||
|
|
d8e8765cec | ||
|
|
6ec28be541 | ||
|
|
6e5aec080a | ||
|
|
c7fb517e6c | ||
|
|
ca10ab0274 | ||
|
|
41e611d7db | ||
|
|
77a63a39ad | ||
|
|
0267ad574f | ||
|
|
8f2aae6065 | ||
|
|
a4edf827c8 | ||
|
|
f9947d2e53 | ||
|
|
0a6614d1b3 | ||
|
|
98cfb4d5ed | ||
|
|
18a780147e | ||
|
|
74878b5cb1 | ||
|
|
57d5628750 | ||
|
|
fc058476ed | ||
|
|
c24eb231ab | ||
|
|
28e44d33c4 | ||
|
|
f7dbe807e4 | ||
|
|
a76e99af86 | ||
|
|
13bb78ffa0 | ||
|
|
8c194398a9 | ||
|
|
21238e7376 | ||
|
|
ca30f49481 | ||
|
|
45da578756 | ||
|
|
1c80314cfd | ||
|
|
23d621e9c7 | ||
|
|
2884e4b847 | ||
|
|
0c7f6432d8 | ||
|
|
56bb23400a | ||
|
|
33a278ccb4 | ||
|
|
e79494b5cb | ||
|
|
3c3147d665 | ||
|
|
23f3f68767 | ||
|
|
08690b9d9e | ||
|
|
6cfd1a1ef6 | ||
|
|
d3eb9c9d99 | ||
|
|
a0ef3a0e44 | ||
|
|
354c6e17c0 | ||
|
|
c31a710aa7 | ||
|
|
0304512b8a | ||
|
|
6bdd960623 | ||
|
|
80d0a1555a | ||
|
|
ee2cba89d5 | ||
|
|
84d80525fa | ||
|
|
4d9fab6cf2 | ||
|
|
77856a3ff7 | ||
|
|
eb99132b8c | ||
|
|
e1cdf80b17 | ||
|
|
9fbeeda1c6 | ||
|
|
1a8cd2e24c | ||
|
|
6c620182ea | ||
|
|
ff542a9946 | ||
|
|
6281826b92 | ||
|
|
eb94a4ee14 | ||
|
|
09ebb7a01c | ||
|
|
11d2ada6b3 | ||
|
|
ffbb6bb40b | ||
|
|
604f315a83 | ||
|
|
ba67c01dd0 | ||
|
|
fab3704dbd | ||
|
|
1436e78305 | ||
|
|
125677f787 | ||
|
|
63d5539427 | ||
|
|
4be101e9fc | ||
|
|
d0302cdbf3 | ||
|
|
c077f6e1e8 | ||
|
|
4ca9a26bdd | ||
|
|
6b713b283a | ||
|
|
9abbd8c158 | ||
|
|
4df0641d67 | ||
|
|
4b093812bc | ||
|
|
d7120af5cb | ||
|
|
e36a666542 | ||
|
|
b609b5909b | ||
|
|
cbd83b5e39 | ||
|
|
2ddd768393 | ||
|
|
c508f30d92 | ||
|
|
9b7750c1f3 | ||
|
|
a9b5949a7b | ||
|
|
f56247df7a | ||
|
|
0ef76aa66d | ||
|
|
5c98283932 | ||
|
|
ce6bd0fd6d | ||
|
|
aca1001f9a | ||
|
|
d5a58be440 | ||
|
|
b33dd7e91c | ||
|
|
30e13259b3 | ||
|
|
be2fa1dfad | ||
|
|
87c5ad79f4 | ||
|
|
2e210e7adc | ||
|
|
c56f4783c0 | ||
|
|
a1d351aa37 | ||
|
|
bc7b584001 | ||
|
|
690571eec0 | ||
|
|
0620c635e5 | ||
|
|
8e00bdcf30 | ||
|
|
0bd0602655 | ||
|
|
2bcbc3294b | ||
|
|
9aa5460688 | ||
|
|
e451cdd519 | ||
|
|
ab9cdf5610 | ||
|
|
c443eee15d | ||
|
|
9e136bad94 | ||
|
|
ccb97e34d5 | ||
|
|
917e2e40fb | ||
|
|
c5ed0afb4e | ||
|
|
b10fa9e5b2 | ||
|
|
210967cfef | ||
|
|
2a5118326a | ||
|
|
a6225962b0 | ||
|
|
01f4a9b23b | ||
|
|
3202d62a92 | ||
|
|
270dc351a1 | ||
|
|
12c746a4e4 | ||
|
|
a116a2a553 | ||
|
|
9555b10b97 | ||
|
|
ae6b4211b9 | ||
|
|
3fe7e4e8da | ||
|
|
ba805739b0 | ||
|
|
89d8aa99ac | ||
|
|
5b65c2e27e | ||
|
|
6f9b712230 | ||
|
|
ca3bfa2239 | ||
|
|
35a3a89d2d | ||
|
|
be8632d94b | ||
|
|
1bc4b16d38 | ||
|
|
863c159fbb | ||
|
|
a647efe3fd | ||
|
|
c79c23899f | ||
|
|
a04e432aea | ||
|
|
5c120e532f | ||
|
|
cfa95eef39 | ||
|
|
a327b9cfa8 | ||
|
|
c4ae6121b4 | ||
|
|
23d07600f7 | ||
|
|
418467e467 | ||
|
|
e60b3880ce | ||
|
|
92acf009b0 | ||
|
|
a141df434c | ||
|
|
32201dda72 | ||
|
|
13b0c8880d | ||
|
|
24e7d755eb | ||
|
|
e534a6b7fc | ||
|
|
277d75016c | ||
|
|
278a10cf61 | ||
|
|
8f283b2226 | ||
|
|
857b76980b | ||
|
|
fae7bfa8c5 | ||
|
|
e9e7d2e289 | ||
|
|
e3cbe118c5 | ||
|
|
9d05cfba36 | ||
|
|
b5966afe25 | ||
|
|
1cf91c0ce3 | ||
|
|
0f09a0b152 | ||
|
|
b434c37f01 | ||
|
|
4655bd5502 | ||
|
|
fcb74d4fba | ||
|
|
2bf7d06a91 | ||
|
|
ce68c2a3e9 | ||
|
|
e58194ac3c | ||
|
|
857f36e01a | ||
|
|
83c3a80766 | ||
|
|
736552f3b1 | ||
|
|
0b28f97d8f | ||
|
|
47b627d669 | ||
|
|
b051a296fc | ||
|
|
908a569413 | ||
|
|
31f83dfb40 | ||
|
|
022b16c8e6 | ||
|
|
d462d9c89b | ||
|
|
86360049c3 | ||
|
|
f524be6738 | ||
|
|
519d2c1714 | ||
|
|
c19fcb831f | ||
|
|
ff6268e616 | ||
|
|
b0f1ad63ee | ||
|
|
a7b017f307 | ||
|
|
29c3df8ba7 | ||
|
|
570226a051 | ||
|
|
96cfb51bd8 | ||
|
|
ba0c7907ca | ||
|
|
4c6ae83d4b | ||
|
|
e4231e012d | ||
|
|
9693de8885 | ||
|
|
d096a7ceb1 | ||
|
|
fd77dfd66d | ||
|
|
3f1389818c | ||
|
|
c920fa6740 | ||
|
|
b4088dcfbc | ||
|
|
b20f026c7b | ||
|
|
f0fa126e7b | ||
|
|
2999694f48 | ||
|
|
fcc60957c1 | ||
|
|
4781351184 | ||
|
|
d97a585eba | ||
|
|
2d65c9734c | ||
|
|
3b5a9c0a10 | ||
|
|
f6184004e5 | ||
|
|
d70dd05221 | ||
|
|
5602cb8920 | ||
|
|
4a250b4e27 | ||
|
|
37afb46957 | ||
|
|
9708d3183f | ||
|
|
433cb99eab | ||
|
|
241b86d704 | ||
|
|
3b0c66429c | ||
|
|
8f137eadf0 | ||
|
|
468a6c1dca | ||
|
|
f9597569ba | ||
|
|
93353ff900 | ||
|
|
ed7e77b2db | ||
|
|
2108aab523 | ||
|
|
75f01099ee | ||
|
|
26e1ad51ff | ||
|
|
c1a5482ad2 | ||
|
|
ed232248a2 | ||
|
|
e215324292 | ||
|
|
a8bc2f10e4 | ||
|
|
b64cbc223f | ||
|
|
de40df7f7b | ||
|
|
94896451ac | ||
|
|
0e35bb4852 | ||
|
|
cd30b1d9b3 | ||
|
|
8d66d43a98 | ||
|
|
8ca861360b | ||
|
|
410db16160 | ||
|
|
1c1df81341 | ||
|
|
66a1cc7b71 | ||
|
|
0543569315 | ||
|
|
e5a94bd140 | ||
|
|
adfebdb3f6 | ||
|
|
dbe06b0a93 | ||
|
|
e8305d1245 | ||
|
|
b2ea733b45 | ||
|
|
fc320fb9ee | ||
|
|
a3268eefbf | ||
|
|
5a77eebb34 | ||
|
|
68af32bc9f | ||
|
|
100e5042de | ||
|
|
b3e188a5f4 | ||
|
|
ae3bcac3b7 | ||
|
|
afed54b217 | ||
|
|
2d768990ec | ||
|
|
10c44d0a4e | ||
|
|
57b0e3e311 | ||
|
|
19e62786c9 | ||
|
|
e45e04a6dc | ||
|
|
97cac33773 | ||
|
|
a889571b98 | ||
|
|
cf1148e7c8 | ||
|
|
e2f74fd4f0 | ||
|
|
57bcea56b5 | ||
|
|
380a955e7a | ||
|
|
cf50f47459 | ||
|
|
eb69dce585 | ||
|
|
b3adf7b331 | ||
|
|
a8900bb50e | ||
|
|
c79f0b76ff | ||
|
|
ca24e64c42 | ||
|
|
d1a3752b2d | ||
|
|
00e70cbb6a | ||
|
|
7f2c2d9d6b | ||
|
|
959f756ff5 | ||
|
|
90b9ba71de | ||
|
|
26025a3018 | ||
|
|
cce35b4a6f | ||
|
|
09bdfd7ac1 | ||
|
|
ce2b73b737 | ||
|
|
61e9611bab | ||
|
|
83d1707b56 | ||
|
|
cbdf252fe6 | ||
|
|
55cd0c2bae | ||
|
|
6cc1cecf5a | ||
|
|
7a94ebcf2a | ||
|
|
84a126253a | ||
|
|
ad3ce3f9fc | ||
|
|
c74ee2150c | ||
|
|
665f0ee03e | ||
|
|
f8a4128c88 | ||
|
|
c931bbf107 | ||
|
|
b020336f8c | ||
|
|
299c2af59b | ||
|
|
37a73eda37 | ||
|
|
3938022002 | ||
|
|
450fc456be | ||
|
|
f7e0dc4818 | ||
|
|
b496f51afc | ||
|
|
c1163a078a | ||
|
|
90c243dec8 | ||
|
|
fab22a152c | ||
|
|
3905da1a62 | ||
|
|
0b02ada315 | ||
|
|
3dd1fc2efe | ||
|
|
c1066e94f2 | ||
|
|
3a3c23d2f1 | ||
|
|
1f439b4b0c | ||
|
|
2af750cfec | ||
|
|
42b3b19a57 | ||
|
|
496498b913 | ||
|
|
b7a7e7dcc0 | ||
|
|
3fcdfbd01a | ||
|
|
72fc673020 | ||
|
|
c3967c79c9 | ||
|
|
3dd07d2f4a | ||
|
|
036f233946 | ||
|
|
16c243d270 | ||
|
|
9776884a91 | ||
|
|
131f646024 | ||
|
|
1bf728359d | ||
|
|
0ee5c1cd86 | ||
|
|
8a83e0fc1a | ||
|
|
0be49002ba | ||
|
|
2b96c820fd | ||
|
|
9641a388e2 | ||
|
|
37fcd81e87 | ||
|
|
b589d8a1df | ||
|
|
d0a44906fe | ||
|
|
5b8ee48600 | ||
|
|
e5f6b7f66c | ||
|
|
941ebd39bf | ||
|
|
52b73b5a9d | ||
|
|
f5b7e6bb60 | ||
|
|
44965a42e4 | ||
|
|
d8aea69c0c | ||
|
|
aa110ec9a6 | ||
|
|
dbfe5196e7 | ||
|
|
13e911eaa1 | ||
|
|
cbbd5ffc62 | ||
|
|
cf40aec9d7 | ||
|
|
cdda421920 | ||
|
|
0db22f2cff | ||
|
|
7a22ca2841 | ||
|
|
4fc8e321af | ||
|
|
59fe8f444f | ||
|
|
8cc3a865e2 | ||
|
|
8a13482c38 | ||
|
|
d8d8552176 | ||
|
|
96475557ae | ||
|
|
bb4c498e5a | ||
|
|
3ba57c3473 | ||
|
|
094aa5a326 | ||
|
|
4b71b30418 | ||
|
|
d960703a5c | ||
|
|
6244551d69 | ||
|
|
3ed6be1d6d | ||
|
|
91c3cb93f0 | ||
|
|
8c369d9874 | ||
|
|
b5008f4ad3 | ||
|
|
deefab8a5b | ||
|
|
ff6dc98bbe | ||
|
|
8581213126 | ||
|
|
19d058a644 | ||
|
|
aa83510fbe | ||
|
|
5aa995b5ef | ||
|
|
1a9d701d32 | ||
|
|
9f4f107b6d | ||
|
|
90716ebaad | ||
|
|
496b4e77e8 | ||
|
|
6e9d833c77 | ||
|
|
48061d3cae | ||
|
|
292ce33e0f | ||
|
|
365fc6af20 | ||
|
|
97360b33f4 | ||
|
|
5012313dc4 | ||
|
|
95f10aeb06 | ||
|
|
8a965e56cd | ||
|
|
fb14a83b9a | ||
|
|
8cef351ed9 | ||
|
|
4261e6242c | ||
|
|
68bfd3017b | ||
|
|
ccd25c7e76 | ||
|
|
7df232c65d | ||
|
|
32fb79478c | ||
|
|
d950396f68 | ||
|
|
7d5f336e36 | ||
|
|
b5cba3abfd | ||
|
|
1d8630dd7d | ||
|
|
bfcce4f7ab | ||
|
|
622f0d9355 | ||
|
|
434256b0a5 | ||
|
|
e7a4ce2e19 | ||
|
|
23dc62dbd2 | ||
|
|
739e636a2c | ||
|
|
b020bf6816 | ||
|
|
47d61c4a0e | ||
|
|
714c5fd784 | ||
|
|
7f2a0a77c7 | ||
|
|
0bebe5008b | ||
|
|
ee24eb8d1b | ||
|
|
d396149521 | ||
|
|
a4962c5225 | ||
|
|
bece87c790 | ||
|
|
e21d92cf4d | ||
|
|
e6f9ce888f | ||
|
|
871b6548ab | ||
|
|
cb569be3b3 | ||
|
|
0e50fbf3f2 | ||
|
|
3adc599278 | ||
|
|
68593acf89 | ||
|
|
6007e511ba | ||
|
|
01fc7108d8 | ||
|
|
494e415bd3 | ||
|
|
c17b34c70d | ||
|
|
02ab945ab8 | ||
|
|
97e5ac4c1e | ||
|
|
458d4378f0 | ||
|
|
b715e0d34e | ||
|
|
cce4113b2d | ||
|
|
89f06506c1 | ||
|
|
cc26e61d7a | ||
|
|
4b6b1b43cd | ||
|
|
913ee34c8d | ||
|
|
4e77f24a06 | ||
|
|
fcf62ada8f | ||
|
|
86b7966027 | ||
|
|
43c9bc51dc | ||
|
|
1ff6a7e423 | ||
|
|
439d2c88ae | ||
|
|
37aced0ad3 | ||
|
|
a3a1e6d3a9 | ||
|
|
2c769cad0b | ||
|
|
b1ad8f917d | ||
|
|
221f7be21b | ||
|
|
bed34c4cad | ||
|
|
f8b0819fb3 | ||
|
|
25778a143c | ||
|
|
5b11875a5a | ||
|
|
6967093689 | ||
|
|
0cafa152bf | ||
|
|
697e288de2 | ||
|
|
aa28c3a45b | ||
|
|
815daccff1 | ||
|
|
f61aa6068b | ||
|
|
21fe0f9246 | ||
|
|
6db1175c95 | ||
|
|
00b78402eb | ||
|
|
30ddd91a34 | ||
|
|
1789fadbf6 | ||
|
|
86d5803b63 | ||
|
|
98ec2dcf44 | ||
|
|
117e2e2cb6 | ||
|
|
4b39e5fab6 | ||
|
|
7ea4a503f7 | ||
|
|
7cf619e620 | ||
|
|
7a65604cc8 | ||
|
|
d67402e6aa | ||
|
|
2191437f39 | ||
|
|
c6efa6ca2e | ||
|
|
5172ae781f | ||
|
|
343a94bf05 | ||
|
|
7cd96e379e | ||
|
|
ddf39461fb | ||
|
|
62608bea6c | ||
|
|
05356776c5 | ||
|
|
1956fccbe9 | ||
|
|
53ca2d0755 | ||
|
|
641a4b87c6 | ||
|
|
0559b43bde | ||
|
|
397220e682 | ||
|
|
636da8f95f | ||
|
|
94f2e880cd | ||
|
|
c03aa6300e | ||
|
|
54d0cae450 | ||
|
|
efd9280f96 | ||
|
|
a1ca9d396c | ||
|
|
c686bf6149 | ||
|
|
20b95fa063 | ||
|
|
9db7b1385d | ||
|
|
ec5f74b753 | ||
|
|
528cb6bf40 | ||
|
|
0936fc6550 | ||
|
|
5ee369f26a | ||
|
|
198dff7864 | ||
|
|
af483e93f3 | ||
|
|
0813f00ea1 | ||
|
|
06dcc875bd | ||
|
|
eab226f04d | ||
|
|
dd0ad495f7 | ||
|
|
4ff3517343 | ||
|
|
537e25af9f | ||
|
|
8a80e82b5d | ||
|
|
c14fb51eb8 | ||
|
|
9302b7c15c | ||
|
|
662283908c | ||
|
|
ed276ac79e | ||
|
|
84548187f5 | ||
|
|
532eeb7ab0 | ||
|
|
e78579581f | ||
|
|
027e8dc35e | ||
|
|
d83a852681 | ||
|
|
826d5705c9 | ||
|
|
fbf8655ea4 | ||
|
|
737c63da5e | ||
|
|
f0302ca7dc | ||
|
|
795464e737 | ||
|
|
2a1110c358 | ||
|
|
c54df7cbd1 | ||
|
|
a98f42012a | ||
|
|
8526c67e4d | ||
|
|
29051d4281 | ||
|
|
1d0063ed39 | ||
|
|
18d81f6daa | ||
|
|
17bc8fd9ed | ||
|
|
707e57e72d | ||
|
|
46e6b839b9 | ||
|
|
30fc96e4da | ||
|
|
f049706539 | ||
|
|
203e4bc0a4 | ||
|
|
d6cd197435 | ||
|
|
684b57d139 | ||
|
|
3418979f4d | ||
|
|
59530909d6 | ||
|
|
e0c1bb8da1 | ||
|
|
fd352f4ab1 | ||
|
|
7f40247b89 | ||
|
|
674d259df1 | ||
|
|
b20a2f74c4 | ||
|
|
5c748fbe54 | ||
|
|
8eb2a13efd | ||
|
|
3af18094f7 | ||
|
|
9e309c9592 | ||
|
|
c73286358c | ||
|
|
967dab21bc | ||
|
|
4e9d1d348e | ||
|
|
2dd67c229c | ||
|
|
7b3d60215b | ||
|
|
d0783f352d | ||
|
|
7d2fd514be | ||
|
|
2981dd857f | ||
|
|
664b2c3ced | ||
|
|
357fc37a79 | ||
|
|
5b075ead9e | ||
|
|
e5656896e7 | ||
|
|
238c589ad6 | ||
|
|
85988a2ff9 | ||
|
|
788f46cc55 | ||
|
|
4bafa32549 | ||
|
|
23e6f89eef | ||
|
|
e330b28e49 | ||
|
|
1984921883 | ||
|
|
68f8ef54ac | ||
|
|
d5493e6149 | ||
|
|
216b3969ed | ||
|
|
940b8b72f9 | ||
|
|
ba7be0293c | ||
|
|
5323ef68ca | ||
|
|
34f4eda1cf | ||
|
|
1b36325450 | ||
|
|
0f8168324f | ||
|
|
58ed9754a4 | ||
|
|
172ac78466 | ||
|
|
2eae473429 | ||
|
|
12686460c1 | ||
|
|
713875100b | ||
|
|
ba84bb82b4 | ||
|
|
3903750ba2 | ||
|
|
ed0b796c5a | ||
|
|
4a7c722673 | ||
|
|
714fdc751a | ||
|
|
e2effa1c5d | ||
|
|
5846af9453 | ||
|
|
ac4369ce3b | ||
|
|
13619a14dc | ||
|
|
b9f565f5fc | ||
|
|
4cb500277b | ||
|
|
ad2e2032e6 | ||
|
|
52c0a8e573 | ||
|
|
4dff6d834a | ||
|
|
2037ebaaba | ||
|
|
807c4688c2 | ||
|
|
b4ec2ccb90 | ||
|
|
ae89a004a6 | ||
|
|
95db857fb5 | ||
|
|
155f3945a6 | ||
|
|
0b2a933faa | ||
|
|
01ba051c43 | ||
|
|
1cd30e9057 | ||
|
|
a023c4fbac | ||
|
|
99c12595a9 | ||
|
|
3056e9e79c | ||
|
|
b822a02d41 | ||
|
|
d0b414b61d | ||
|
|
f056edded7 | ||
|
|
539971b5a0 | ||
|
|
2a0d3b05d3 | ||
|
|
d1b51844e4 | ||
|
|
94b815b8ab | ||
|
|
1ab9961cfe | ||
|
|
e67ddf9430 | ||
|
|
9674ca5e87 | ||
|
|
5834dc9b2e | ||
|
|
9d49c7d836 | ||
|
|
3ce7284fc5 | ||
|
|
bf6e33791d | ||
|
|
6a11f0dd8d | ||
|
|
83452b1e36 | ||
|
|
d88a908e29 | ||
|
|
9c05ddbd7d | ||
|
|
89ca9ad213 | ||
|
|
c46f1ec590 | ||
|
|
3131e8c7e9 | ||
|
|
7d8b0f9941 | ||
|
|
d3313d6438 | ||
|
|
c611066791 | ||
|
|
1e456d6560 | ||
|
|
6a564f6693 | ||
|
|
45a3be7642 | ||
|
|
a25b6a9952 | ||
|
|
25063ed1f0 | ||
|
|
292dbf101b | ||
|
|
099d88ba7b | ||
|
|
992fcc73b8 | ||
|
|
9b3c9aaea2 | ||
|
|
41e4f87e06 | ||
|
|
6de48b4535 | ||
|
|
70b104c936 | ||
|
|
827f72f595 | ||
|
|
5faff6260e | ||
|
|
59e8a85c7e | ||
|
|
d3ec50825e | ||
|
|
2518564f92 | ||
|
|
81de9875d3 | ||
|
|
eae07c15a7 | ||
|
|
1fdffa8be5 |
12
.gitignore
vendored
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
/core/assets/mindustry-saves/
|
/core/assets/mindustry-saves/
|
||||||
/core/assets/mindustry-maps/
|
/core/assets/mindustry-maps/
|
||||||
|
/core/assets/bundles/output/
|
||||||
|
/core/assets/.gifimages/
|
||||||
/deploy/
|
/deploy/
|
||||||
/desktop/packr-out/
|
/desktop/packr-out/
|
||||||
/desktop/packr-export/
|
/desktop/packr-export/
|
||||||
@@ -9,14 +11,24 @@
|
|||||||
/desktop/mindustry-maps/
|
/desktop/mindustry-maps/
|
||||||
/desktop/gifexport/
|
/desktop/gifexport/
|
||||||
/core/lib/
|
/core/lib/
|
||||||
|
/core/assets-raw/sprites/generated/
|
||||||
|
/annotations/build/
|
||||||
/kryonet/build/
|
/kryonet/build/
|
||||||
|
/tools/build/
|
||||||
|
/tests/build/
|
||||||
/server/build/
|
/server/build/
|
||||||
|
/test_files/
|
||||||
|
/annotations/build/
|
||||||
/android/assets/mindustry-maps/
|
/android/assets/mindustry-maps/
|
||||||
/android/assets/mindustry-saves/
|
/android/assets/mindustry-saves/
|
||||||
/core/assets/gifexport/
|
/core/assets/gifexport/
|
||||||
/core/assets/version.properties
|
/core/assets/version.properties
|
||||||
|
/core/assets/locales
|
||||||
|
/ios/src/io/anuke/mindustry/gen/
|
||||||
*.gif
|
*.gif
|
||||||
|
|
||||||
|
version.properties
|
||||||
|
|
||||||
.attach_*
|
.attach_*
|
||||||
## Java
|
## Java
|
||||||
|
|
||||||
|
|||||||
39
.travis.yml
@@ -1,23 +1,28 @@
|
|||||||
language: android
|
language: android
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk8
|
- openjdk8
|
||||||
|
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
- android-26
|
- android-28
|
||||||
|
- extra-google-google_play_services
|
||||||
# Additional components
|
- extra-google-m2repository
|
||||||
- extra-google-google_play_services
|
- extra-android-m2repository
|
||||||
- extra-google-m2repository
|
- addon-google_apis-google-28
|
||||||
- extra-android-m2repository
|
- build-tools-28.0.3
|
||||||
- addon-google_apis-google-26
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew desktop:dist
|
- "./gradlew test"
|
||||||
|
- "./gradlew desktop:dist"
|
||||||
after_success:
|
- "./gradlew server:dist"
|
||||||
- chmod +x upload-build.sh
|
|
||||||
- chmod +x cleanup_builds.sh
|
|
||||||
- ./upload-build.sh
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
skip_cleanup: true
|
||||||
|
draft: false
|
||||||
|
api_key:
|
||||||
|
secure: Cv5wFtWt62/A24EvSEQvMow7gKPbZ3oATEFPuSghhB2TQz1dA40Zee3Qvk4LFlpLrhYo4K0ZSczCZRGpR+hCd8+Dpww52bheYEvWuh3ZQfvu/fXtEx2j5PwP1qMpmIgSxETV/gkD7l9FImdh0VzktYiAvQfmi0bEocG9/D4QwjFpNat7iwBdcMiw1MvAygpdIWRsjiw0RKlB2mWarmoHhQ7Gu7qlU3j50uaEvcrtmU0pBUPggNQwQRv32i9NPvNFxrqqlUjDLIS8JFea99zCkp8BwYqbEvBIMzd+Qip1/stLJJA3+cDUClbsDtg8rAVetzpOrdLEEBmqShFe5MDl2yEHcsgpN9CFsyTaUfvB3P3rVjizvycMm42IsUkXQiarm5xTQ/TIA8Rd8AHiSKuweNCg1Fd5SFaRtKy8JVLXuxyfUccmyje6hhz2L4lS2Wfj3mAG7sqZUCXhWP79EKdGkiPOjKv4CwXEKmuH3BMVqPlNUZJr9Eg3sV1FG0h2l+MVOOnR635qdUbb49sYojYxVruMLX0BH1c4ZCu230m8CUoWA1Em1QNI75ya7+9Y5T6AsgWDVpBvdUo9fWNbdp+VQ0GskFQsJD5wtnxbcbHeFiERAgGBm7z6qt9u9LrQpBH+dsW52ADvYsu3L4nQEa+sdMHwTTwmGY+iUvsxu0DqxGg=
|
||||||
|
file:
|
||||||
|
- "desktop/build/libs/desktop-release.jar"
|
||||||
|
- "server/build/libs/server-release.jar"
|
||||||
|
on:
|
||||||
|
repo: Anuken/Mindustry
|
||||||
|
tags: true
|
||||||
687
LICENSE
@@ -1,21 +1,674 @@
|
|||||||
MIT License
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (c) 2017 Anton Kramskoi
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Preamble
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The GNU General Public License is a free, copyleft license for
|
||||||
copies or substantial portions of the Software.
|
software and other kinds of works.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
The licenses for most software and other practical works are designed
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
to take away your freedom to share and change the works. By contrast,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
share and change all versions of a program--to make sure it remains free
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
GNU General Public License for most of our software; it applies also to
|
||||||
SOFTWARE.
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||

|

|
||||||
|
|
||||||
[](https://travis-ci.org/Anuken/Mindustry)
|
[](https://travis-ci.org/Anuken/Mindustry)
|
||||||
[](https://waffle.io/Anuken/Mindustry)
|
[](https://discord.gg/mindustry)
|
||||||
|
|
||||||
A pixelated sandbox tower defense game made using [LibGDX](https://libgdx.badlogicgames.com/). Winner of the [GDL Metal Monstrosity Jam](https://itch.io/jam/gdl---metal-monstrosity-jam).
|
A pixelated sandbox tower defense game made using [LibGDX](https://libgdx.badlogicgames.com/). Winner of the [GDL Metal Monstrosity Jam](https://itch.io/jam/gdl---metal-monstrosity-jam).
|
||||||
|
|
||||||
_[Issue tracker](https://waffle.io/Anuken/Mindustry)_
|
|
||||||
_[Trello Board](https://trello.com/b/aE2tcUwF/mindustry-40-plans)_
|
_[Trello Board](https://trello.com/b/aE2tcUwF/mindustry-40-plans)_
|
||||||
_[Wiki](http://mindustry.wikia.com/wiki/Mindustry_Wiki)_
|
_[Wiki](http://mindustry.wikia.com/wiki/Mindustry_Wiki)_
|
||||||
_[Discord](https://discord.gg/r8BkXNd)_
|
_[Discord](https://discord.gg/r8BkXNd)_
|
||||||
@@ -32,12 +31,10 @@ _Building:_ `./gradlew desktop:dist`
|
|||||||
---
|
---
|
||||||
|
|
||||||
Gradle may take up to several minutes to download files. Be patient. <br>
|
Gradle may take up to several minutes to download files. Be patient. <br>
|
||||||
After building, the output .JAR file should be in the output JAR file should be in `/desktop/build/libs/desktop-release.jar.`
|
After building, the output .JAR file should be in `/desktop/build/libs/desktop-release.jar.`
|
||||||
|
|
||||||
### Downloads
|
### Downloads
|
||||||
|
|
||||||
<a href="https://anuke.itch.io/mindustry"><img src="https://i.imgur.com/sk26hTV.png" width="auto" height="75"></a>
|
<a href="https://anuke.itch.io/mindustry"><img src="https://i.imgur.com/sk26hTV.png" width="auto" height="75"></a>
|
||||||
|
|
||||||
<a href="https://anuke.itch.io/mindustry"><img src="https://i.imgur.com/ZSPVQpn.gif" width="auto" height="75"></a>
|
|
||||||
|
|
||||||
<a href="https://play.google.com/store/apps/details?id=io.anuke.mindustry&hl=en"><img src="https://i.imgur.com/8dF6l81.png" width="auto" height="75"></a>
|
<a href="https://play.google.com/store/apps/details?id=io.anuke.mindustry&hl=en"><img src="https://i.imgur.com/8dF6l81.png" width="auto" height="75"></a>
|
||||||
|
|||||||
39
TRANSLATING.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
## Translating for Mindustry
|
||||||
|
|
||||||
|
**DISCLAIMER:** *Currently, 4.0 is far from done, which means that things such as block names, descriptions, and core text will be changing often. If you begin translating now, you might have to re-do large chunks of the bundle before final release.*
|
||||||
|
|
||||||
|
|
||||||
|
To begin, log in to your GitHub account, or if you don't have one yet, create it [here](https://github.com/).
|
||||||
|
|
||||||
|
Consult [this list](https://www.science.co.il/language/Locale-codes.php) to find the locale code for your language. Once you've found it,
|
||||||
|
head over to the translation bundle folder and check the [list of bundles](https://github.com/Anuken/Mindustry/tree/master/core/assets/bundles) that have already been created.
|
||||||
|
You're looking for a file called "`bundle_`(insert locale code here)`.properties`". If you don't find one, create one manually (more info below).
|
||||||
|
|
||||||
|
#### Editing an existing translation
|
||||||
|
|
||||||
|
If a translation bundle already exists, that means someone has already started working on a translation. To edit it or translate text, simply click the file and press the edit (pencil) button in the top right. Once you're done editing, press the green "propose file change" button at the bottom, then "create pull request" (twice).
|
||||||
|
Once this is done, all you need to do is wait for me to approve your changes.
|
||||||
|
|
||||||
|
#### Creating a new translation bundle
|
||||||
|
|
||||||
|
If a translation bundle for your language *doesn't* exist, you need to create one yourself.
|
||||||
|
In the folder with all the bundles in it, click the *'create new file'* button, and name it `bundle_(locale code here).properties`.
|
||||||
|
Then, copy-paste the entire contents of the [English translation bundle](https://raw.githubusercontent.com/Anuken/Mindustry/master/core/assets/bundles/bundle.properties) into the file, and translate all the necessary text to your language.
|
||||||
|
Once you are done, press the *propose new file* button at the bottom, then 'create pull request' twice.
|
||||||
|
|
||||||
|
#### Useful Information
|
||||||
|
|
||||||
|
- When you see text surrounded by square brackets, such as `[RED]`, `[]` or `[accent]`, this indicates a color code. Don't translate it.
|
||||||
|
- `{0}` means an argument that will be replaced when the text is displayed. For example, `Wave: {0}` will replace the `{0}` with whatever wave you are in.
|
||||||
|
- Empty lines are fine, and it doesn't matter in what order you place the text.
|
||||||
|
- `\n` means "new line". If you want to split text into multiple lines, use `\n` to do it.
|
||||||
|
|
||||||
|
#### Testing your translation bundle
|
||||||
|
|
||||||
|
There are two ways to test the translation bundle:
|
||||||
|
1) Assuming you have the PC version downloaded, download your bundle file, name it `bundle.properties`, then place it in the same folder as the Mindustry desktop executable and run it. *You should get a popup message in-game confirming that you have loaded an external translation.*
|
||||||
|
2) For advanced users: simply download your fork of mindustry and compile/run the game.
|
||||||
|
|
||||||
|
**And that's it.**
|
||||||
|
|
||||||
|
*(...of course, that's never really it. Bother me on Discord when something inevitably goes wrong.)*
|
||||||
@@ -9,22 +9,58 @@
|
|||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:resizeableActivity="false"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:allowBackup="true"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:theme="@style/GdxTheme" >
|
android:isGame="true"
|
||||||
|
android:appCategory="game"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:theme="@style/GdxTheme" android:fullBackupContent="@xml/backup_rules">
|
||||||
<activity
|
<activity
|
||||||
android:name="io.anuke.mindustry.AndroidLauncher"
|
android:name="io.anuke.mindustry.AndroidLauncher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:screenOrientation="sensorLandscape"
|
android:screenOrientation="user"
|
||||||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
<data android:mimeType="application/octet-stream"/>
|
||||||
|
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mmap" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
<category android:name="android.intent.category.BROWSABLE"/>
|
||||||
|
<data android:mimeType="application/octet-stream"/>
|
||||||
|
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.msav" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
|
||||||
|
<intent-filter android:icon="@mipmap/ic_launcher"
|
||||||
|
android:label="Mindustry Map"
|
||||||
|
android:priority="1">
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mmap" android:mimeType="*/*" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.msav" android:mimeType="*/*" />
|
||||||
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
|
||||||
<activity android:name=".DonationsActivity"
|
<activity android:name=".DonationsActivity"
|
||||||
android:theme="@style/GdxTheme" />
|
android:theme="@style/GdxTheme" />
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
apply plugin: "com.android.application"
|
||||||
|
|
||||||
|
configurations { natives }
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
jcenter()
|
||||||
@@ -8,21 +12,32 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.android.support:support-v4:22.1.1'
|
implementation project(":core")
|
||||||
|
implementation project(":kryonet")
|
||||||
|
implementation 'com.android.support:support-v4:25.3.1'
|
||||||
implementation 'org.sufficientlysecure:donations:2.5'
|
implementation 'org.sufficientlysecure:donations:2.5'
|
||||||
|
implementation 'com.google.android.gms:play-services-auth:11.8.0'
|
||||||
|
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
||||||
|
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
|
||||||
|
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
|
||||||
|
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
|
||||||
|
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
|
||||||
|
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
|
||||||
|
implementation "com.badlogicgames.gdx:gdx-controllers-android:$gdxVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
task deploy(type: Copy){
|
task deploy(type: Copy){
|
||||||
dependsOn "assembleRelease"
|
dependsOn "assembleRelease"
|
||||||
|
|
||||||
from "build/outputs/apk/google/release/android-google-release.apk"
|
from "build/outputs/apk/google/release/android-google-release.apk"
|
||||||
into "../deploy/";
|
into "../deploy/"
|
||||||
rename ("android-google-release.apk", appName + "-android-" + getVersionString() + ".apk");
|
rename ("android-google-release.apk", appName + "-android-" + getVersionString() + ".apk")
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
buildToolsVersion '26.0.2'
|
buildToolsVersion '28.0.3'
|
||||||
compileSdkVersion 26
|
compileSdkVersion 28
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
manifest.srcFile 'AndroidManifest.xml'
|
manifest.srcFile 'AndroidManifest.xml'
|
||||||
@@ -34,7 +49,7 @@ android {
|
|||||||
jniLibs.srcDirs = ['libs']
|
jniLibs.srcDirs = ['libs']
|
||||||
}
|
}
|
||||||
|
|
||||||
instrumentTest.setRoot('tests')
|
androidTest.setRoot('tests')
|
||||||
}
|
}
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
exclude 'META-INF/robovm/ios/robovm.xml'
|
exclude 'META-INF/robovm/ios/robovm.xml'
|
||||||
@@ -42,18 +57,26 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
def vfile = file('../core/assets/version.properties')
|
def vfile = file('../core/assets/version.properties')
|
||||||
def props = new Properties()
|
|
||||||
props.load(new FileInputStream(vfile))
|
|
||||||
|
|
||||||
def code = props['androidBuildCode'].toInteger() + 1
|
def code = 0
|
||||||
props['androidBuildCode'] = code.toString()
|
def versionNameResult = "unknown"
|
||||||
props.store(vfile.newWriter(), "Autogenerated file. Do not modify.")
|
|
||||||
|
if(vfile.exists()){
|
||||||
|
def props = new Properties()
|
||||||
|
props.load(new FileInputStream(vfile))
|
||||||
|
|
||||||
|
code = (props['androidBuildCode'] == null ? 0 : props['androidBuildCode']).toInteger() + 1
|
||||||
|
|
||||||
|
props['androidBuildCode'] = code.toString()
|
||||||
|
props.store(vfile.newWriter(), "Autogenerated file. Do not modify.")
|
||||||
|
versionNameResult = "$versionNumber-$versionType-${props['build'].replace(" ", "-")}"
|
||||||
|
}
|
||||||
|
|
||||||
applicationId "io.anuke.mindustry"
|
applicationId "io.anuke.mindustry"
|
||||||
minSdkVersion 9
|
minSdkVersion 14
|
||||||
targetSdkVersion 26
|
targetSdkVersion 27
|
||||||
versionCode code
|
versionCode code
|
||||||
versionName "$versionNumber-$versionType-${props['build'].replace(" ", "-")}"
|
versionName versionNameResult
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@@ -77,7 +100,7 @@ android {
|
|||||||
keyAlias RELEASE_KEY_ALIAS
|
keyAlias RELEASE_KEY_ALIAS
|
||||||
keyPassword RELEASE_KEY_PASSWORD
|
keyPassword RELEASE_KEY_PASSWORD
|
||||||
}else{
|
}else{
|
||||||
println("No keystore info property found!");
|
println("No keystore info property found!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -92,11 +115,11 @@ android {
|
|||||||
// the natives configuration, and extracts them to the proper libs/ folders
|
// the natives configuration, and extracts them to the proper libs/ folders
|
||||||
// so they get packed with the APK.
|
// so they get packed with the APK.
|
||||||
task copyAndroidNatives() {
|
task copyAndroidNatives() {
|
||||||
file("libs/armeabi/").mkdirs();
|
file("libs/armeabi/").mkdirs()
|
||||||
file("libs/armeabi-v7a/").mkdirs();
|
file("libs/armeabi-v7a/").mkdirs()
|
||||||
file("libs/arm64-v8a/").mkdirs();
|
file("libs/arm64-v8a/").mkdirs()
|
||||||
file("libs/x86_64/").mkdirs();
|
file("libs/x86_64/").mkdirs()
|
||||||
file("libs/x86/").mkdirs();
|
file("libs/x86/").mkdirs()
|
||||||
|
|
||||||
configurations.natives.files.each { jar ->
|
configurations.natives.files.each { jar ->
|
||||||
def outputDir = null
|
def outputDir = null
|
||||||
@@ -114,6 +137,7 @@ task copyAndroidNatives() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task run(type: Exec) {
|
task run(type: Exec) {
|
||||||
def path
|
def path
|
||||||
def localProperties = project.file("../local.properties")
|
def localProperties = project.file("../local.properties")
|
||||||
@@ -135,47 +159,18 @@ task run(type: Exec) {
|
|||||||
def adb = path + "/platform-tools/adb"
|
def adb = path + "/platform-tools/adb"
|
||||||
commandLine "$adb", 'shell', 'am', 'start', '-n', 'io.anuke.mindustry/io.anuke.mindustry.AndroidLauncher'
|
commandLine "$adb", 'shell', 'am', 'start', '-n', 'io.anuke.mindustry/io.anuke.mindustry.AndroidLauncher'
|
||||||
}
|
}
|
||||||
// sets up the Android Eclipse project, using the old Ant based build.
|
|
||||||
eclipse {
|
|
||||||
// need to specify Java source sets explicitly, SpringSource Gradle Eclipse plugin
|
|
||||||
// ignores any nodes added in classpath.file.withXml
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java.srcDirs "src", 'gen'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
jdt {
|
|
||||||
sourceCompatibility = 1.7
|
|
||||||
targetCompatibility = 1.7
|
|
||||||
}
|
|
||||||
|
|
||||||
classpath {
|
|
||||||
plusConfigurations += [project.configurations.compile]
|
|
||||||
containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES'
|
|
||||||
}
|
|
||||||
|
|
||||||
project {
|
|
||||||
name = appName + "-android"
|
|
||||||
natures 'com.android.ide.eclipse.adt.AndroidNature'
|
|
||||||
buildCommands.clear();
|
|
||||||
buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
|
|
||||||
buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
|
|
||||||
buildCommand "org.eclipse.jdt.core.javabuilder"
|
|
||||||
buildCommand "com.android.ide.eclipse.adt.ApkBuilder"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// sets up the Android Idea project, using the old Ant based build.
|
// sets up the Android Idea project, using the old Ant based build.
|
||||||
idea {
|
idea {
|
||||||
module {
|
module {
|
||||||
sourceDirs += file("src");
|
sourceDirs += file("src")
|
||||||
scopes = [COMPILE: [plus: [project.configurations.compile]]]
|
scopes = [COMPILE: [plus: [project.configurations.compile]]]
|
||||||
|
|
||||||
iml {
|
iml {
|
||||||
withXml {
|
withXml {
|
||||||
def node = it.asNode()
|
def node = it.asNode()
|
||||||
def builder = NodeBuilder.newInstance();
|
def builder = NodeBuilder.newInstance()
|
||||||
builder.current = node;
|
builder.current = node
|
||||||
builder.component(name: "FacetManager") {
|
builder.component(name: "FacetManager") {
|
||||||
facet(type: "android", name: "Android") {
|
facet(type: "android", name: "Android") {
|
||||||
configuration {
|
configuration {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
@@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:id="@+id/layout_root"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="10dp" >
|
|
||||||
|
|
||||||
<EditText
|
|
||||||
android:id="@+id/gdxDialogsEditTextInput"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:inputType="text"
|
|
||||||
android:maxLines="1"
|
|
||||||
android:maxLength="15"
|
|
||||||
>
|
|
||||||
|
|
||||||
<requestFocus />
|
|
||||||
|
|
||||||
</EditText>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
@@ -6,34 +6,12 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="10dp" >
|
android:padding="10dp" >
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/gdxDialogsEnterTitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
|
|
||||||
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/gdxDialogsEnterMessage"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
|
|
||||||
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/gdxDialogsEditTextInput"
|
android:id="@+id/gdxDialogsEditTextInput"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="text"
|
android:inputType="text"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:maxLength="15"
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<requestFocus />
|
<requestFocus />
|
||||||
|
|||||||
15
android/res/values-ko/strings.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<string name="app_name">Mindustry</string>
|
||||||
|
<string-array name="donation_google_catalog_values">
|
||||||
|
<item>1 달러</item>
|
||||||
|
<item>2 달러</item>
|
||||||
|
<item>5 달러</item>
|
||||||
|
<item>10 달러</item>
|
||||||
|
<item>15 달러</item>
|
||||||
|
<item>25 달러</item>
|
||||||
|
<item>50 달러</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
</resources>
|
||||||
15
android/res/values-ru/strings.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<string name="app_name">Mindustry</string>
|
||||||
|
<string-array name="donation_google_catalog_values">
|
||||||
|
<item>1 Доллар</item>
|
||||||
|
<item>2 Доллара</item>
|
||||||
|
<item>5 Доллара</item>
|
||||||
|
<item>10 Долларов</item>
|
||||||
|
<item>15 Долларов</item>
|
||||||
|
<item>25 Долларов</item>
|
||||||
|
<item>50 Долларов</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
</resources>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="GdxTheme" parent="android:Theme.Material.NoActionBar">
|
<style name="GdxTheme" parent="android:Theme.Material.NoActionBar">
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
@@ -9,11 +8,4 @@
|
|||||||
<item name="android:windowContentOverlay">@null</item>
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
<item name="android:windowFullscreen">true</item>
|
<item name="android:windowFullscreen">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="LightBackground" parent="android:Theme.Material.Light" >
|
|
||||||
<item name="android:colorBackground">@android:color/black</item>
|
|
||||||
<item name="android:textColorPrimary">@android:color/white</item>
|
|
||||||
<item name="android:textColorSecondary">@android:color/white</item>
|
|
||||||
<item name="android:textColorSecondaryInverse">@android:color/white</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
</resources>
|
||||||
4
android/res/xml/backup_rules.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<full-backup-content>
|
||||||
|
|
||||||
|
</full-backup-content>
|
||||||
@@ -3,164 +3,245 @@ package io.anuke.mindustry;
|
|||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.pm.ActivityInfo;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.provider.Settings.Secure;
|
import android.provider.Settings.Secure;
|
||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
import android.util.Log;
|
||||||
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||||
|
import com.badlogic.gdx.files.FileHandle;
|
||||||
import com.badlogic.gdx.utils.Base64Coder;
|
import com.badlogic.gdx.utils.Base64Coder;
|
||||||
|
import com.google.android.gms.common.GoogleApiAvailability;
|
||||||
|
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
|
||||||
|
import com.google.android.gms.common.GooglePlayServicesRepairableException;
|
||||||
|
import com.google.android.gms.security.ProviderInstaller;
|
||||||
import io.anuke.kryonet.DefaultThreadImpl;
|
import io.anuke.kryonet.DefaultThreadImpl;
|
||||||
import io.anuke.kryonet.KryoClient;
|
import io.anuke.kryonet.KryoClient;
|
||||||
import io.anuke.kryonet.KryoServer;
|
import io.anuke.kryonet.KryoServer;
|
||||||
|
import io.anuke.mindustry.core.Platform;
|
||||||
import io.anuke.mindustry.core.ThreadHandler.ThreadProvider;
|
import io.anuke.mindustry.core.ThreadHandler.ThreadProvider;
|
||||||
import io.anuke.mindustry.io.Platform;
|
import io.anuke.mindustry.game.Saves.SaveSlot;
|
||||||
|
import io.anuke.mindustry.io.SaveIO;
|
||||||
import io.anuke.mindustry.net.Net;
|
import io.anuke.mindustry.net.Net;
|
||||||
import io.anuke.ucore.core.Settings;
|
import io.anuke.mindustry.ui.dialogs.FileChooser;
|
||||||
|
import io.anuke.ucore.function.Consumer;
|
||||||
import io.anuke.ucore.scene.ui.TextField;
|
import io.anuke.ucore.scene.ui.TextField;
|
||||||
import io.anuke.ucore.scene.ui.layout.Unit;
|
import io.anuke.ucore.scene.ui.layout.Unit;
|
||||||
|
import io.anuke.ucore.util.Bundles;
|
||||||
|
import io.anuke.ucore.util.Strings;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
public class AndroidLauncher extends AndroidApplication{
|
import static io.anuke.mindustry.Vars.*;
|
||||||
boolean doubleScaleTablets = true;
|
|
||||||
int WRITE_REQUEST_CODE = 1;
|
|
||||||
|
|
||||||
@Override
|
public class AndroidLauncher extends PatchedAndroidApplication{
|
||||||
protected void onCreate(Bundle savedInstanceState){
|
public static final int PERMISSION_REQUEST_CODE = 1;
|
||||||
super.onCreate(savedInstanceState);
|
boolean doubleScaleTablets = true;
|
||||||
|
FileChooser chooser;
|
||||||
|
|
||||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
@Override
|
||||||
config.useImmersiveMode = true;
|
protected void onCreate(Bundle savedInstanceState){
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||||
|
config.useImmersiveMode = true;
|
||||||
|
Platform.instance = new Platform(){
|
||||||
|
DateFormat format = SimpleDateFormat.getDateTimeInstance();
|
||||||
|
|
||||||
Platform.instance = new Platform(){
|
@Override
|
||||||
DateFormat format = SimpleDateFormat.getDateTimeInstance();
|
public String format(Date date){
|
||||||
|
return format.format(date);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasDiscord() {
|
public String format(int number){
|
||||||
return isPackageInstalled("com.discord");
|
return NumberFormat.getIntegerInstance().format(number);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String format(Date date){
|
public void addDialog(TextField field, int length){
|
||||||
return format.format(date);
|
TextFieldDialogListener.add(field, 0, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String format(int number){
|
public String getLocaleName(Locale locale){
|
||||||
return NumberFormat.getIntegerInstance().format(number);
|
return locale.getDisplayName(locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addDialog(TextField field, int length){
|
public void openDonations(){
|
||||||
TextFieldDialogListener.add(field, 0, length);
|
showDonations();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLocaleName(Locale locale){
|
public ThreadProvider getThreadProvider(){
|
||||||
return locale.getDisplayName(locale);
|
return new DefaultThreadImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void openDonations() {
|
public String getUUID(){
|
||||||
showDonations();
|
try{
|
||||||
}
|
String s = Secure.getString(getContext().getContentResolver(),
|
||||||
|
Secure.ANDROID_ID);
|
||||||
@Override
|
int len = s.length();
|
||||||
public void requestWritePerms() {
|
byte[] data = new byte[len / 2];
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
for(int i = 0; i < len; i += 2){
|
||||||
if(checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED &&
|
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
|
||||||
checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
+ Character.digit(s.charAt(i + 1), 16));
|
||||||
requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
|
||||||
Manifest.permission.READ_EXTERNAL_STORAGE}, WRITE_REQUEST_CODE);
|
|
||||||
}else{
|
|
||||||
|
|
||||||
if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
|
||||||
requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, WRITE_REQUEST_CODE);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
|
||||||
requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, WRITE_REQUEST_CODE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ThreadProvider getThreadProvider() {
|
|
||||||
return new DefaultThreadImpl();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isDebug() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public byte[] getUUID() {
|
|
||||||
try {
|
|
||||||
String s = Secure.getString(getContext().getContentResolver(),
|
|
||||||
Secure.ANDROID_ID);
|
|
||||||
|
|
||||||
int len = s.length();
|
|
||||||
byte[] data = new byte[len / 2];
|
|
||||||
for (int i = 0; i < len; i += 2) {
|
|
||||||
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
|
|
||||||
+ Character.digit(s.charAt(i + 1), 16));
|
|
||||||
}
|
|
||||||
|
|
||||||
return data;
|
|
||||||
}catch (Exception e){
|
|
||||||
Settings.defaults("uuid", "");
|
|
||||||
|
|
||||||
String uuid = Settings.getString("uuid");
|
|
||||||
if(uuid.isEmpty()){
|
|
||||||
byte[] result = new byte[8];
|
|
||||||
new Random().nextBytes(result);
|
|
||||||
uuid = new String(Base64Coder.encode(result));
|
|
||||||
Settings.putString("uuid", uuid);
|
|
||||||
Settings.save();
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
return Base64Coder.decode(uuid);
|
String result = new String(Base64Coder.encode(data));
|
||||||
}
|
if(result.equals("AAAAAAAAAOA=")) throw new RuntimeException("Bad UUID.");
|
||||||
}
|
return result;
|
||||||
};
|
}catch(Exception e){
|
||||||
|
return super.getUUID();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(doubleScaleTablets && isTablet(this.getContext())){
|
@Override
|
||||||
Unit.dp.addition = 0.5f;
|
public void shareFile(FileHandle file){
|
||||||
}
|
}
|
||||||
|
|
||||||
config.hideStatusBar = true;
|
@Override
|
||||||
|
public void showFileChooser(String text, String content, Consumer<FileHandle> cons, boolean open, String filetype){
|
||||||
|
chooser = new FileChooser(text, file -> file.extension().equalsIgnoreCase(filetype), open, cons);
|
||||||
|
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M || (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED &&
|
||||||
|
checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED)){
|
||||||
|
chooser.show();
|
||||||
|
chooser = null;
|
||||||
|
}else{
|
||||||
|
ArrayList<String> perms = new ArrayList<>();
|
||||||
|
if(checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){
|
||||||
|
perms.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||||
|
}
|
||||||
|
if(checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){
|
||||||
|
perms.add(Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||||
|
}
|
||||||
|
requestPermissions(perms.toArray(new String[perms.size()]), PERMISSION_REQUEST_CODE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void beginForceLandscape(){
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void endForceLandscape(){
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canDonate(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
try{
|
||||||
|
ProviderInstaller.installIfNeeded(this);
|
||||||
|
}catch(GooglePlayServicesRepairableException e){
|
||||||
|
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
|
||||||
|
apiAvailability.getErrorDialog(this, e.getConnectionStatusCode(), 0).show();
|
||||||
|
}catch(GooglePlayServicesNotAvailableException e){
|
||||||
|
Log.e("SecurityException", "Google Play Services not available.");
|
||||||
|
}
|
||||||
|
if(doubleScaleTablets && isTablet(this.getContext())){
|
||||||
|
Unit.dp.addition = 0.5f;
|
||||||
|
}
|
||||||
|
config.hideStatusBar = true;
|
||||||
Net.setClientProvider(new KryoClient());
|
Net.setClientProvider(new KryoClient());
|
||||||
Net.setServerProvider(new KryoServer());
|
Net.setServerProvider(new KryoServer());
|
||||||
|
|
||||||
initialize(new Mindustry(), config);
|
initialize(new Mindustry(), config);
|
||||||
}
|
checkFiles(getIntent());
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isPackageInstalled(String packagename) {
|
@Override
|
||||||
try {
|
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults){
|
||||||
getPackageManager().getPackageInfo(packagename, 0);
|
if(requestCode == PERMISSION_REQUEST_CODE){
|
||||||
return true;
|
for(int i : grantResults){
|
||||||
} catch (Exception e) {
|
if(i != PackageManager.PERMISSION_GRANTED) return;
|
||||||
return false;
|
}
|
||||||
}
|
if(chooser != null){
|
||||||
}
|
chooser.show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isTablet(Context context) {
|
private void checkFiles(Intent intent){
|
||||||
TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
|
try{
|
||||||
return manager.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE;
|
Uri uri = intent.getData();
|
||||||
}
|
if(uri != null){
|
||||||
|
File myFile = null;
|
||||||
|
String scheme = uri.getScheme();
|
||||||
|
if(scheme.equals("file")){
|
||||||
|
String fileName = uri.getEncodedPath();
|
||||||
|
myFile = new File(fileName);
|
||||||
|
}else if(!scheme.equals("content")){
|
||||||
|
//error
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
boolean save = uri.getPath().endsWith(saveExtension);
|
||||||
|
boolean map = uri.getPath().endsWith(mapExtension);
|
||||||
|
InputStream inStream;
|
||||||
|
if(myFile != null) inStream = new FileInputStream(myFile);
|
||||||
|
else inStream = getContentResolver().openInputStream(uri);
|
||||||
|
Gdx.app.postRunnable(() -> {
|
||||||
|
if(save){ //open save
|
||||||
|
System.out.println("Opening save.");
|
||||||
|
FileHandle file = Gdx.files.local("temp-save." + saveExtension);
|
||||||
|
file.write(inStream, false);
|
||||||
|
if(SaveIO.isSaveValid(file)){
|
||||||
|
try{
|
||||||
|
SaveSlot slot = control.saves.importSave(file);
|
||||||
|
ui.load.runLoadSave(slot);
|
||||||
|
}catch(IOException e){
|
||||||
|
ui.showError(Bundles.format("text.save.import.fail", Strings.parseException(e, false)));
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
ui.showError("$text.save.import.invalid");
|
||||||
|
}
|
||||||
|
}else if(map){ //open map
|
||||||
|
Gdx.app.postRunnable(() -> {
|
||||||
|
System.out.println("Opening map.");
|
||||||
|
if(!ui.editor.isShown()){
|
||||||
|
ui.editor.show();
|
||||||
|
}
|
||||||
|
ui.editor.beginEditMap(inStream);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}catch(IOException e){
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void showDonations(){
|
private boolean isPackageInstalled(String packagename){
|
||||||
Intent intent = new Intent(this, DonationsActivity.class);
|
try{
|
||||||
startActivity(intent);
|
getPackageManager().getPackageInfo(packagename, 0);
|
||||||
}
|
return true;
|
||||||
|
}catch(Exception e){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean isTablet(Context context){
|
||||||
|
TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
|
return manager.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void showDonations(){
|
||||||
|
Intent intent = new Intent(this, DonationsActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,21 +11,20 @@ import android.widget.EditText;
|
|||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
|
|
||||||
public class AndroidTextFieldDialog{
|
public class AndroidTextFieldDialog{
|
||||||
private Activity activity;
|
private Activity activity;
|
||||||
private EditText userInput;
|
private EditText userInput;
|
||||||
private AlertDialog.Builder builder;
|
private AlertDialog.Builder builder;
|
||||||
private TextPromptListener listener;
|
private TextPromptListener listener;
|
||||||
private boolean isBuild;
|
private boolean isBuild;
|
||||||
|
|
||||||
public AndroidTextFieldDialog() {
|
public AndroidTextFieldDialog(){
|
||||||
this.activity = (Activity)Gdx.app;
|
this.activity = (Activity) Gdx.app;
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog show() {
|
public AndroidTextFieldDialog show(){
|
||||||
|
|
||||||
activity.runOnUiThread(() -> {
|
activity.runOnUiThread(() -> {
|
||||||
Gdx.app.error("Android Dialogs", AndroidTextFieldDialog.class.getSimpleName() + " now shown.");
|
|
||||||
AlertDialog dialog = builder.create();
|
AlertDialog dialog = builder.create();
|
||||||
|
|
||||||
dialog.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
dialog.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||||
@@ -34,12 +33,12 @@ public class AndroidTextFieldDialog{
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private AndroidTextFieldDialog load() {
|
private AndroidTextFieldDialog load(){
|
||||||
|
|
||||||
activity.runOnUiThread(() -> {
|
activity.runOnUiThread(() -> {
|
||||||
|
|
||||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity);
|
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity);
|
||||||
LayoutInflater li = LayoutInflater.from(activity);
|
LayoutInflater li = LayoutInflater.from(activity);
|
||||||
@@ -48,7 +47,7 @@ public class AndroidTextFieldDialog{
|
|||||||
|
|
||||||
alertDialogBuilder.setView(promptsView);
|
alertDialogBuilder.setView(promptsView);
|
||||||
|
|
||||||
userInput = (EditText) promptsView.findViewById(getResourceId("gdxDialogsEditTextInput", "id"));
|
userInput = promptsView.findViewById(getResourceId("gdxDialogsEditTextInput", "id"));
|
||||||
|
|
||||||
alertDialogBuilder.setCancelable(false);
|
alertDialogBuilder.setCancelable(false);
|
||||||
builder = alertDialogBuilder;
|
builder = alertDialogBuilder;
|
||||||
@@ -56,64 +55,65 @@ public class AndroidTextFieldDialog{
|
|||||||
isBuild = true;
|
isBuild = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait till TextPrompt is built.
|
// Wait till TextPrompt is built.
|
||||||
while (!isBuild) {
|
while(!isBuild){
|
||||||
try {
|
try{
|
||||||
Thread.sleep(10);
|
Thread.sleep(10);
|
||||||
} catch (InterruptedException e) { }
|
}catch(InterruptedException ignored){
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getResourceId(String pVariableName, String pVariableType) {
|
public int getResourceId(String pVariableName, String pVariableType){
|
||||||
try {
|
try{
|
||||||
return activity.getResources().getIdentifier(pVariableName, pVariableType, activity.getPackageName());
|
return activity.getResources().getIdentifier(pVariableName, pVariableType, activity.getPackageName());
|
||||||
} catch (Exception e) {
|
}catch(Exception e){
|
||||||
Gdx.app.error("Android Dialogs", "Cannot find resouce with name: " + pVariableName
|
Gdx.app.error("Android Dialogs", "Cannot find resouce with name: " + pVariableName
|
||||||
+ " Did you copy the layouts to /res/layouts and /res/layouts_v14 ?");
|
+ " Did you copy the layouts to /res/layouts and /res/layouts_v14 ?");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setText(CharSequence value) {
|
public AndroidTextFieldDialog setText(CharSequence value){
|
||||||
userInput.append(value);
|
userInput.append(value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setCancelButtonLabel(CharSequence label) {
|
public AndroidTextFieldDialog setCancelButtonLabel(CharSequence label){
|
||||||
builder.setNegativeButton(label, (dialog, id) -> dialog.cancel());
|
builder.setNegativeButton(label, (dialog, id) -> dialog.cancel());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setConfirmButtonLabel(CharSequence label) {
|
public AndroidTextFieldDialog setConfirmButtonLabel(CharSequence label){
|
||||||
builder.setPositiveButton(label, (dialog, id) -> {
|
builder.setPositiveButton(label, (dialog, id) -> {
|
||||||
if (listener != null && !userInput.getText().toString().isEmpty()) {
|
if(listener != null && !userInput.getText().toString().isEmpty()){
|
||||||
listener.confirm(userInput.getText().toString());
|
listener.confirm(userInput.getText().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setTextPromptListener(TextPromptListener listener) {
|
public AndroidTextFieldDialog setTextPromptListener(TextPromptListener listener){
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setInputType(int type) {
|
public AndroidTextFieldDialog setInputType(int type){
|
||||||
userInput.setInputType(type);
|
userInput.setInputType(type);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AndroidTextFieldDialog setMaxLength(int length) {
|
public AndroidTextFieldDialog setMaxLength(int length){
|
||||||
userInput.setFilters(new InputFilter[] { new InputFilter.LengthFilter(length) });
|
userInput.setFilters(new InputFilter[]{new InputFilter.LengthFilter(length)});
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface TextPromptListener{
|
public interface TextPromptListener{
|
||||||
void confirm(String text);
|
void confirm(String text);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,12 +8,9 @@ import android.support.v4.app.FragmentManager;
|
|||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
|
||||||
import org.sufficientlysecure.donations.DonationsFragment;
|
import org.sufficientlysecure.donations.DonationsFragment;
|
||||||
|
|
||||||
public class DonationsActivity extends FragmentActivity {
|
public class DonationsActivity extends FragmentActivity{
|
||||||
DonationsFragment donationsFragment;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Google
|
* Google
|
||||||
*/
|
*/
|
||||||
@@ -21,13 +18,14 @@ public class DonationsActivity extends FragmentActivity {
|
|||||||
private static final String[] GOOGLE_CATALOG = new String[]{
|
private static final String[] GOOGLE_CATALOG = new String[]{
|
||||||
"mindustry.donation.1", "mindustry.donation.2", "mindustry.donation.5",
|
"mindustry.donation.1", "mindustry.donation.2", "mindustry.donation.5",
|
||||||
"mindustry.donation.10", "mindustry.donation.15",
|
"mindustry.donation.10", "mindustry.donation.15",
|
||||||
"mindustry.donation.25", "mindustry.donation.50" };
|
"mindustry.donation.25", "mindustry.donation.50"};
|
||||||
|
DonationsFragment donationsFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the activity is first created.
|
* Called when the activity is first created.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState){
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setTheme(R.style.GdxTheme);
|
setTheme(R.style.GdxTheme);
|
||||||
@@ -35,7 +33,7 @@ public class DonationsActivity extends FragmentActivity {
|
|||||||
setContentView(R.layout.donations_activity);
|
setContentView(R.layout.donations_activity);
|
||||||
|
|
||||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||||
if (BuildConfig.DONATIONS_GOOGLE) {
|
if(BuildConfig.DONATIONS_GOOGLE){
|
||||||
donationsFragment = DonationsFragment.newInstance(BuildConfig.DEBUG, true, GOOGLE_PUBKEY, GOOGLE_CATALOG,
|
donationsFragment = DonationsFragment.newInstance(BuildConfig.DEBUG, true, GOOGLE_PUBKEY, GOOGLE_CATALOG,
|
||||||
getResources().getStringArray(R.array.donation_google_catalog_values), false, null, null,
|
getResources().getStringArray(R.array.donation_google_catalog_values), false, null, null,
|
||||||
null, false, null, null, false, null);
|
null, false, null, null, false, null);
|
||||||
@@ -48,30 +46,27 @@ public class DonationsActivity extends FragmentActivity {
|
|||||||
|
|
||||||
public void onStart(){
|
public void onStart(){
|
||||||
super.onStart();
|
super.onStart();
|
||||||
Button b = ((Button)findViewById(org.sufficientlysecure.donations.R.id.donations__google_android_market_donate_button));
|
Button b = findViewById(org.sufficientlysecure.donations.R.id.donations__google_android_market_donate_button);
|
||||||
b.setOnClickListener(new View.OnClickListener() {
|
b.setOnClickListener(view -> {
|
||||||
@Override public void onClick(View view) {
|
donationsFragment.donateGoogleOnClick(donationsFragment.getView());
|
||||||
donationsFragment.donateGoogleOnClick(donationsFragment.getView());
|
b.setEnabled(false);
|
||||||
b.setEnabled(false);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Needed for Google Play In-app Billing. It uses startIntentSenderForResult(). The result is not propagated to
|
* Needed for Google Play In-app Billing. It uses startIntentSenderForResult(). The result is not propagated to
|
||||||
* the Fragment like in startActivityForResult(). Thus we need to propagate manually to our Fragment.
|
* the Fragment like in startActivityForResult(). Thus we need to propagate manually to our Fragment.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
protected void onActivityResult(int requestCode, int resultCode, Intent data){
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
Button b = ((Button)findViewById(org.sufficientlysecure.donations.R.id.donations__google_android_market_donate_button));
|
Button b = findViewById(org.sufficientlysecure.donations.R.id.donations__google_android_market_donate_button);
|
||||||
b.setEnabled(true);
|
b.setEnabled(true);
|
||||||
|
|
||||||
FragmentManager fragmentManager = getSupportFragmentManager();
|
FragmentManager fragmentManager = getSupportFragmentManager();
|
||||||
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
|
Fragment fragment = fragmentManager.findFragmentByTag("donationsFragment");
|
||||||
if (fragment != null) {
|
if(fragment != null){
|
||||||
fragment.onActivityResult(requestCode, resultCode, data);
|
fragment.onActivityResult(requestCode, resultCode, data);
|
||||||
//TODO donation event, set settings?
|
//TODO donation event, set settings?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package io.anuke.mindustry;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||||
|
import java.util.concurrent.ExecutorService;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
|
public class PatchedAndroidApplication extends AndroidApplication {
|
||||||
|
private final ExecutorService exec = Executors.newSingleThreadExecutor();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause () {
|
||||||
|
if(useImmersiveMode) {
|
||||||
|
exec.submit(() -> {
|
||||||
|
try {Thread.sleep(100);} catch (InterruptedException ignored) {}
|
||||||
|
graphics.onDrawFrame(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
super.onPause();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,57 +11,57 @@ import io.anuke.ucore.scene.event.InputListener;
|
|||||||
import io.anuke.ucore.scene.ui.TextField;
|
import io.anuke.ucore.scene.ui.TextField;
|
||||||
|
|
||||||
public class TextFieldDialogListener extends ClickListener{
|
public class TextFieldDialogListener extends ClickListener{
|
||||||
private TextField field;
|
private TextField field;
|
||||||
private int type;
|
private int type;
|
||||||
private int max;
|
private int max;
|
||||||
|
|
||||||
public static void add(TextField field, int type, int max){
|
//type - 0 is text, 1 is numbers, 2 is decimals
|
||||||
field.addListener(new TextFieldDialogListener(field, type, max));
|
public TextFieldDialogListener(TextField field, int type, int max){
|
||||||
field.addListener(new InputListener(){
|
this.field = field;
|
||||||
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
|
this.type = type;
|
||||||
Gdx.input.setOnscreenKeyboardVisible(false);
|
this.max = max;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void add(TextField field){
|
public static void add(TextField field, int type, int max){
|
||||||
add(field, 0, 15);
|
field.addListener(new TextFieldDialogListener(field, type, max));
|
||||||
}
|
field.addListener(new InputListener(){
|
||||||
|
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button){
|
||||||
|
Gdx.input.setOnscreenKeyboardVisible(false);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//type - 0 is text, 1 is numbers, 2 is decimals
|
public static void add(TextField field){
|
||||||
public TextFieldDialogListener(TextField field, int type, int max){
|
add(field, 0, 16);
|
||||||
this.field = field;
|
}
|
||||||
this.type = type;
|
|
||||||
this.max = max;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void clicked(final InputEvent event, float x, float y){
|
public void clicked(final InputEvent event, float x, float y){
|
||||||
|
|
||||||
if(Gdx.app.getType() == ApplicationType.Desktop) return;
|
if(Gdx.app.getType() == ApplicationType.Desktop) return;
|
||||||
|
|
||||||
AndroidTextFieldDialog dialog = new AndroidTextFieldDialog();
|
AndroidTextFieldDialog dialog = new AndroidTextFieldDialog();
|
||||||
|
|
||||||
dialog.setTextPromptListener(text -> {
|
dialog.setTextPromptListener(text -> {
|
||||||
field.clearText();
|
field.clearText();
|
||||||
field.appendText(text);
|
field.appendText(text);
|
||||||
field.fire(new ChangeListener.ChangeEvent());
|
field.fire(new ChangeListener.ChangeEvent());
|
||||||
Gdx.graphics.requestRendering();
|
Gdx.graphics.requestRendering();
|
||||||
});
|
});
|
||||||
|
|
||||||
if(type == 0){
|
if(type == 0){
|
||||||
dialog.setInputType(InputType.TYPE_CLASS_TEXT);
|
dialog.setInputType(InputType.TYPE_CLASS_TEXT);
|
||||||
}else if(type == 1){
|
}else if(type == 1){
|
||||||
dialog.setInputType(InputType.TYPE_CLASS_NUMBER);
|
dialog.setInputType(InputType.TYPE_CLASS_NUMBER);
|
||||||
}else if(type == 2){
|
}else if(type == 2){
|
||||||
dialog.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL);
|
dialog.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog.setConfirmButtonLabel("OK").setText(field.getText());
|
dialog.setConfirmButtonLabel("OK").setText(field.getText());
|
||||||
dialog.setCancelButtonLabel("Cancel");
|
dialog.setCancelButtonLabel("Cancel");
|
||||||
dialog.setMaxLength(max);
|
dialog.setMaxLength(max);
|
||||||
dialog.show();
|
dialog.show();
|
||||||
event.cancel();
|
event.cancel();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
annotations/build.gradle
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apply plugin: "java"
|
||||||
|
|
||||||
|
sourceCompatibility = 1.8
|
||||||
|
sourceSets.main.java.srcDirs = [ "src/" ]
|
||||||
111
annotations/src/io/anuke/annotations/Annotations.java
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
public class Annotations{
|
||||||
|
|
||||||
|
/** Marks a class as serializable.*/
|
||||||
|
@Target(ElementType.TYPE)
|
||||||
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
|
public @interface Serialize{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum PacketPriority{
|
||||||
|
/** Gets put in a queue and processed if not connected. */
|
||||||
|
normal,
|
||||||
|
/** Gets handled immediately, regardless of connection status. */
|
||||||
|
high,
|
||||||
|
/** Does not get handled unless client is connected. */
|
||||||
|
low
|
||||||
|
}
|
||||||
|
|
||||||
|
/** A set of two booleans, one specifying server and one specifying client. */
|
||||||
|
public enum Loc{
|
||||||
|
/** Method can only be invoked on the client from the server. */
|
||||||
|
server(true, false),
|
||||||
|
/** Method can only be invoked on the server from the client. */
|
||||||
|
client(false, true),
|
||||||
|
/** Method can be invoked from anywhere */
|
||||||
|
both(true, true),
|
||||||
|
/** Neither server nor client. */
|
||||||
|
none(false, false);
|
||||||
|
|
||||||
|
/** If true, this method can be invoked ON clients FROM servers. */
|
||||||
|
public final boolean isServer;
|
||||||
|
/** If true, this method can be invoked ON servers FROM clients. */
|
||||||
|
public final boolean isClient;
|
||||||
|
|
||||||
|
Loc(boolean server, boolean client){
|
||||||
|
this.isServer = server;
|
||||||
|
this.isClient = client;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum Variant{
|
||||||
|
/** Method can only be invoked targeting one player. */
|
||||||
|
one(true, false),
|
||||||
|
/** Method can only be invoked targeting all players. */
|
||||||
|
all(false, true),
|
||||||
|
/** Method targets both one player and all players. */
|
||||||
|
both(true, true);
|
||||||
|
|
||||||
|
public final boolean isOne, isAll;
|
||||||
|
|
||||||
|
Variant(boolean isOne, boolean isAll){
|
||||||
|
this.isOne = isOne;
|
||||||
|
this.isAll = isAll;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Marks a method as invokable remotely across a server/client connection. */
|
||||||
|
@Target(ElementType.METHOD)
|
||||||
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
|
public @interface Remote{
|
||||||
|
/** Specifies the locations from which this method can be invoked. */
|
||||||
|
Loc targets() default Loc.server;
|
||||||
|
|
||||||
|
/** Specifies which methods are generated. Only affects server-to-client methods. */
|
||||||
|
Variant variants() default Variant.all;
|
||||||
|
|
||||||
|
/** The local locations where this method is called locally, when invoked. */
|
||||||
|
Loc called() default Loc.none;
|
||||||
|
|
||||||
|
/** Whether to forward this packet to all other clients upon recieval. Client only. */
|
||||||
|
boolean forward() default false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the packet for this method is sent with UDP instead of TCP.
|
||||||
|
* UDP is faster, but is prone to packet loss and duplication.
|
||||||
|
*/
|
||||||
|
boolean unreliable() default false;
|
||||||
|
|
||||||
|
/** Priority of this event. */
|
||||||
|
PacketPriority priority() default PacketPriority.normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies that this method will be used to write classes of the type returned by {@link #value()}.<br>
|
||||||
|
* This method must return void and have two parameters, the first being of type {@link java.nio.ByteBuffer} and the second
|
||||||
|
* being the type returned by {@link #value()}.
|
||||||
|
*/
|
||||||
|
@Target(ElementType.METHOD)
|
||||||
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
|
public @interface WriteClass{
|
||||||
|
Class<?> value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies that this method will be used to read classes of the type returned by {@link #value()}. <br>
|
||||||
|
* This method must return the type returned by {@link #value()},
|
||||||
|
* and have one parameter, being of type {@link java.nio.ByteBuffer}.
|
||||||
|
*/
|
||||||
|
@Target(ElementType.METHOD)
|
||||||
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
|
public @interface ReadClass{
|
||||||
|
Class<?> value();
|
||||||
|
}
|
||||||
|
}
|
||||||
15
annotations/src/io/anuke/annotations/ClassEntry.java
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/** Represents a class witha list method entries to include in it. */
|
||||||
|
public class ClassEntry{
|
||||||
|
/** All methods in this generated class. */
|
||||||
|
public final ArrayList<MethodEntry> methods = new ArrayList<>();
|
||||||
|
/** Simple class name. */
|
||||||
|
public final String name;
|
||||||
|
|
||||||
|
public ClassEntry(String name){
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
90
annotations/src/io/anuke/annotations/IOFinder.java
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import io.anuke.annotations.Annotations.ReadClass;
|
||||||
|
import io.anuke.annotations.Annotations.WriteClass;
|
||||||
|
|
||||||
|
import javax.annotation.processing.RoundEnvironment;
|
||||||
|
import javax.lang.model.element.Element;
|
||||||
|
import javax.lang.model.type.MirroredTypeException;
|
||||||
|
import javax.tools.Diagnostic.Kind;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class finds reader and writer methods annotated by the {@link io.anuke.annotations.Annotations.WriteClass}
|
||||||
|
* and {@link io.anuke.annotations.Annotations.ReadClass} annotations.
|
||||||
|
*/
|
||||||
|
public class IOFinder{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds all class serializers for all types and returns them. Logs errors when necessary.
|
||||||
|
* Maps fully qualified class names to their serializers.
|
||||||
|
*/
|
||||||
|
public HashMap<String, ClassSerializer> findSerializers(RoundEnvironment env){
|
||||||
|
HashMap<String, ClassSerializer> result = new HashMap<>();
|
||||||
|
|
||||||
|
//get methods with the types
|
||||||
|
Set<? extends Element> writers = env.getElementsAnnotatedWith(WriteClass.class);
|
||||||
|
Set<? extends Element> readers = env.getElementsAnnotatedWith(ReadClass.class);
|
||||||
|
|
||||||
|
//look for writers first
|
||||||
|
for(Element writer : writers){
|
||||||
|
WriteClass writean = writer.getAnnotation(WriteClass.class);
|
||||||
|
String typeName = getValue(writean);
|
||||||
|
|
||||||
|
//make sure there's only one read method
|
||||||
|
if(readers.stream().filter(elem -> getValue(elem.getAnnotation(ReadClass.class)).equals(typeName)).count() > 1){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "Multiple writer methods for type '" + typeName + "'", writer);
|
||||||
|
}
|
||||||
|
|
||||||
|
//make sure there's only one write method
|
||||||
|
long count = readers.stream().filter(elem -> getValue(elem.getAnnotation(ReadClass.class)).equals(typeName)).count();
|
||||||
|
if(count == 0){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "Writer method does not have an accompanying reader: ", writer);
|
||||||
|
}else if(count > 1){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "Writer method has multiple reader for type: ", writer);
|
||||||
|
}
|
||||||
|
|
||||||
|
Element reader = readers.stream().filter(elem -> getValue(elem.getAnnotation(ReadClass.class)).equals(typeName)).findFirst().get();
|
||||||
|
|
||||||
|
//add to result list
|
||||||
|
result.put(typeName, new ClassSerializer(Utils.getMethodName(reader), Utils.getMethodName(writer), typeName));
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getValue(WriteClass write){
|
||||||
|
try{
|
||||||
|
Class<?> type = write.value();
|
||||||
|
return type.getName();
|
||||||
|
}catch(MirroredTypeException e){
|
||||||
|
return e.getTypeMirror().toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getValue(ReadClass read){
|
||||||
|
try{
|
||||||
|
Class<?> type = read.value();
|
||||||
|
return type.getName();
|
||||||
|
}catch(MirroredTypeException e){
|
||||||
|
return e.getTypeMirror().toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Information about read/write methods for a specific class type. */
|
||||||
|
public static class ClassSerializer{
|
||||||
|
/** Fully qualified method name of the reader. */
|
||||||
|
public final String readMethod;
|
||||||
|
/** Fully qualified method name of the writer. */
|
||||||
|
public final String writeMethod;
|
||||||
|
/** Fully qualified class type name. */
|
||||||
|
public final String classType;
|
||||||
|
|
||||||
|
public ClassSerializer(String readMethod, String writeMethod, String classType){
|
||||||
|
this.readMethod = readMethod;
|
||||||
|
this.writeMethod = writeMethod;
|
||||||
|
this.classType = classType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
53
annotations/src/io/anuke/annotations/MethodEntry.java
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import io.anuke.annotations.Annotations.Loc;
|
||||||
|
import io.anuke.annotations.Annotations.PacketPriority;
|
||||||
|
import io.anuke.annotations.Annotations.Variant;
|
||||||
|
|
||||||
|
import javax.lang.model.element.ExecutableElement;
|
||||||
|
|
||||||
|
/** Class that repesents a remote method to be constructed and put into a class. */
|
||||||
|
public class MethodEntry{
|
||||||
|
/** Simple target class name. */
|
||||||
|
public final String className;
|
||||||
|
/** Fully qualified target method to call. */
|
||||||
|
public final String targetMethod;
|
||||||
|
/** Whether this method can be called on a client/server. */
|
||||||
|
public final Loc where;
|
||||||
|
/**
|
||||||
|
* Whether an additional 'one' and 'all' method variant is generated. At least one of these must be true.
|
||||||
|
* Only applicable to client (server-invoked) methods.
|
||||||
|
*/
|
||||||
|
public final Variant target;
|
||||||
|
/** Whether this method is called locally as well as remotely. */
|
||||||
|
public final Loc local;
|
||||||
|
/** Whether this method is unreliable and uses UDP. */
|
||||||
|
public final boolean unreliable;
|
||||||
|
/** Whether to forward this method call to all other clients when a client invokes it. Server only. */
|
||||||
|
public final boolean forward;
|
||||||
|
/** Unique method ID. */
|
||||||
|
public final int id;
|
||||||
|
/** The element method associated with this entry. */
|
||||||
|
public final ExecutableElement element;
|
||||||
|
/** The assigned packet priority. Only used in clients. */
|
||||||
|
public final PacketPriority priority;
|
||||||
|
|
||||||
|
public MethodEntry(String className, String targetMethod, Loc where, Variant target,
|
||||||
|
Loc local, boolean unreliable, boolean forward, int id, ExecutableElement element, PacketPriority priority){
|
||||||
|
this.className = className;
|
||||||
|
this.forward = forward;
|
||||||
|
this.targetMethod = targetMethod;
|
||||||
|
this.where = where;
|
||||||
|
this.target = target;
|
||||||
|
this.local = local;
|
||||||
|
this.id = id;
|
||||||
|
this.element = element;
|
||||||
|
this.unreliable = unreliable;
|
||||||
|
this.priority = priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode(){
|
||||||
|
return targetMethod.hashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,158 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import com.squareup.javapoet.FieldSpec;
|
||||||
|
import com.squareup.javapoet.JavaFile;
|
||||||
|
import com.squareup.javapoet.TypeSpec;
|
||||||
|
import io.anuke.annotations.Annotations.Loc;
|
||||||
|
import io.anuke.annotations.Annotations.Remote;
|
||||||
|
import io.anuke.annotations.IOFinder.ClassSerializer;
|
||||||
|
|
||||||
|
import javax.annotation.processing.*;
|
||||||
|
import javax.lang.model.SourceVersion;
|
||||||
|
import javax.lang.model.element.Element;
|
||||||
|
import javax.lang.model.element.ExecutableElement;
|
||||||
|
import javax.lang.model.element.Modifier;
|
||||||
|
import javax.lang.model.element.TypeElement;
|
||||||
|
import javax.tools.Diagnostic.Kind;
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
|
/** The annotation processor for generating remote method call code. */
|
||||||
|
@SupportedSourceVersion(SourceVersion.RELEASE_8)
|
||||||
|
@SupportedAnnotationTypes({
|
||||||
|
"io.anuke.annotations.Annotations.Remote",
|
||||||
|
"io.anuke.annotations.Annotations.WriteClass",
|
||||||
|
"io.anuke.annotations.Annotations.ReadClass",
|
||||||
|
})
|
||||||
|
public class RemoteMethodAnnotationProcessor extends AbstractProcessor{
|
||||||
|
/** Maximum size of each event packet. */
|
||||||
|
public static final int maxPacketSize = 4096;
|
||||||
|
/** Name of the base package to put all the generated classes. */
|
||||||
|
private static final String packageName = "io.anuke.mindustry.gen";
|
||||||
|
|
||||||
|
/** Name of class that handles reading and invoking packets on the server. */
|
||||||
|
private static final String readServerName = "RemoteReadServer";
|
||||||
|
/** Name of class that handles reading and invoking packets on the client. */
|
||||||
|
private static final String readClientName = "RemoteReadClient";
|
||||||
|
/**Simple class name of generated class name.*/
|
||||||
|
private static final String callLocation = "Call";
|
||||||
|
|
||||||
|
/** Processing round number. */
|
||||||
|
private int round;
|
||||||
|
|
||||||
|
//class serializers
|
||||||
|
private HashMap<String, ClassSerializer> serializers;
|
||||||
|
//all elements with the Remote annotation
|
||||||
|
private Set<? extends Element> elements;
|
||||||
|
//map of all classes to generate by name
|
||||||
|
private HashMap<String, ClassEntry> classMap;
|
||||||
|
//list of all method entries
|
||||||
|
private ArrayList<MethodEntry> methods;
|
||||||
|
//list of all method entries
|
||||||
|
private ArrayList<ClassEntry> classes;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized void init(ProcessingEnvironment processingEnv){
|
||||||
|
super.init(processingEnv);
|
||||||
|
//put all relevant utils into utils class
|
||||||
|
Utils.typeUtils = processingEnv.getTypeUtils();
|
||||||
|
Utils.elementUtils = processingEnv.getElementUtils();
|
||||||
|
Utils.filer = processingEnv.getFiler();
|
||||||
|
Utils.messager = processingEnv.getMessager();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv){
|
||||||
|
if(round > 1) return false; //only process 2 rounds
|
||||||
|
|
||||||
|
round++;
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
//round 1: find all annotations, generate *writers*
|
||||||
|
if(round == 1){
|
||||||
|
//get serializers
|
||||||
|
serializers = new IOFinder().findSerializers(roundEnv);
|
||||||
|
//last method ID used
|
||||||
|
int lastMethodID = 0;
|
||||||
|
//find all elements with the Remote annotation
|
||||||
|
elements = roundEnv.getElementsAnnotatedWith(Remote.class);
|
||||||
|
//map of all classes to generate by name
|
||||||
|
classMap = new HashMap<>();
|
||||||
|
//list of all method entries
|
||||||
|
methods = new ArrayList<>();
|
||||||
|
//list of all method entries
|
||||||
|
classes = new ArrayList<>();
|
||||||
|
|
||||||
|
List<Element> orderedElements = new ArrayList<>(elements);
|
||||||
|
orderedElements.sort(Comparator.comparing(Object::toString));
|
||||||
|
|
||||||
|
//create methods
|
||||||
|
for(Element element : orderedElements){
|
||||||
|
Remote annotation = element.getAnnotation(Remote.class);
|
||||||
|
|
||||||
|
//check for static
|
||||||
|
if(!element.getModifiers().contains(Modifier.STATIC) || !element.getModifiers().contains(Modifier.PUBLIC)){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "All @Remote methods must be public and static: ", element);
|
||||||
|
}
|
||||||
|
|
||||||
|
//can't generate none methods
|
||||||
|
if(annotation.targets() == Loc.none){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "A @Remote method's targets() cannot be equal to 'none':", element);
|
||||||
|
}
|
||||||
|
|
||||||
|
//get and create class entry if needed
|
||||||
|
if(!classMap.containsKey(callLocation)){
|
||||||
|
ClassEntry clas = new ClassEntry(callLocation);
|
||||||
|
classMap.put(callLocation, clas);
|
||||||
|
classes.add(clas);
|
||||||
|
|
||||||
|
Utils.messager.printMessage(Kind.NOTE, "Generating class '" + clas.name + "'.");
|
||||||
|
}
|
||||||
|
|
||||||
|
ClassEntry entry = classMap.get(callLocation);
|
||||||
|
|
||||||
|
//create and add entry
|
||||||
|
MethodEntry method = new MethodEntry(entry.name, Utils.getMethodName(element), annotation.targets(), annotation.variants(),
|
||||||
|
annotation.called(), annotation.unreliable(), annotation.forward(), lastMethodID++, (ExecutableElement) element, annotation.priority());
|
||||||
|
|
||||||
|
entry.methods.add(method);
|
||||||
|
methods.add(method);
|
||||||
|
}
|
||||||
|
|
||||||
|
//create read/write generators
|
||||||
|
RemoteWriteGenerator writegen = new RemoteWriteGenerator(serializers);
|
||||||
|
|
||||||
|
//generate the methods to invoke (write)
|
||||||
|
writegen.generateFor(classes, packageName);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}else if(round == 2){ //round 2: generate all *readers*
|
||||||
|
RemoteReadGenerator readgen = new RemoteReadGenerator(serializers);
|
||||||
|
|
||||||
|
//generate server readers
|
||||||
|
readgen.generateFor(methods.stream().filter(method -> method.where.isClient).collect(Collectors.toList()), readServerName, packageName, true);
|
||||||
|
//generate client readers
|
||||||
|
readgen.generateFor(methods.stream().filter(method -> method.where.isServer).collect(Collectors.toList()), readClientName, packageName, false);
|
||||||
|
|
||||||
|
//create class for storing unique method hash
|
||||||
|
TypeSpec.Builder hashBuilder = TypeSpec.classBuilder("MethodHash").addModifiers(Modifier.PUBLIC);
|
||||||
|
hashBuilder.addField(FieldSpec.builder(int.class, "HASH", Modifier.STATIC, Modifier.PUBLIC, Modifier.FINAL)
|
||||||
|
.initializer("$1L", Objects.hash(methods)).build());
|
||||||
|
|
||||||
|
//build and write resulting hash class
|
||||||
|
TypeSpec spec = hashBuilder.build();
|
||||||
|
JavaFile.builder(packageName, spec).build().writeTo(Utils.filer);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}catch(Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
146
annotations/src/io/anuke/annotations/RemoteReadGenerator.java
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import com.squareup.javapoet.*;
|
||||||
|
import io.anuke.annotations.IOFinder.ClassSerializer;
|
||||||
|
|
||||||
|
import javax.lang.model.element.Modifier;
|
||||||
|
import javax.lang.model.element.TypeElement;
|
||||||
|
import javax.lang.model.element.VariableElement;
|
||||||
|
import javax.tools.Diagnostic.Kind;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Constructor;
|
||||||
|
import java.lang.reflect.InvocationTargetException;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/** Generates code for reading remote invoke packets on the client and server. */
|
||||||
|
public class RemoteReadGenerator{
|
||||||
|
private final HashMap<String, ClassSerializer> serializers;
|
||||||
|
|
||||||
|
/** Creates a read generator that uses the supplied serializer setup. */
|
||||||
|
public RemoteReadGenerator(HashMap<String, ClassSerializer> serializers){
|
||||||
|
this.serializers = serializers;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates a class for reading remote invoke packets.
|
||||||
|
*
|
||||||
|
* @param entries List of methods to use/
|
||||||
|
* @param className Simple target class name.
|
||||||
|
* @param packageName Full target package name.
|
||||||
|
* @param needsPlayer Whether this read method requires a reference to the player sender.
|
||||||
|
*/
|
||||||
|
public void generateFor(List<MethodEntry> entries, String className, String packageName, boolean needsPlayer)
|
||||||
|
throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException, IOException{
|
||||||
|
|
||||||
|
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(className).addModifiers(Modifier.PUBLIC);
|
||||||
|
|
||||||
|
//create main method builder
|
||||||
|
MethodSpec.Builder readMethod = MethodSpec.methodBuilder("readPacket")
|
||||||
|
.addModifiers(Modifier.PUBLIC, Modifier.STATIC)
|
||||||
|
.addParameter(ByteBuffer.class, "buffer") //buffer to read form
|
||||||
|
.addParameter(int.class, "id") //ID of method type to read
|
||||||
|
.returns(void.class);
|
||||||
|
|
||||||
|
if(needsPlayer){
|
||||||
|
//since the player type isn't loaded yet, creating a type def is necessary
|
||||||
|
//this requires reflection since the TypeName constructor is private for some reason
|
||||||
|
Constructor<TypeName> cons = TypeName.class.getDeclaredConstructor(String.class);
|
||||||
|
cons.setAccessible(true);
|
||||||
|
|
||||||
|
TypeName playerType = cons.newInstance("io.anuke.mindustry.entities.Player");
|
||||||
|
//add player parameter
|
||||||
|
readMethod.addParameter(playerType, "player");
|
||||||
|
}
|
||||||
|
|
||||||
|
CodeBlock.Builder readBlock = CodeBlock.builder(); //start building block of code inside read method
|
||||||
|
boolean started = false; //whether an if() statement has been written yet
|
||||||
|
|
||||||
|
for(MethodEntry entry : entries){
|
||||||
|
//write if check for this entry ID
|
||||||
|
if(!started){
|
||||||
|
started = true;
|
||||||
|
readBlock.beginControlFlow("if(id == " + entry.id + ")");
|
||||||
|
}else{
|
||||||
|
readBlock.nextControlFlow("else if(id == " + entry.id + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
readBlock.beginControlFlow("try");
|
||||||
|
|
||||||
|
//concatenated list of variable names for method invocation
|
||||||
|
StringBuilder varResult = new StringBuilder();
|
||||||
|
|
||||||
|
//go through each parameter
|
||||||
|
for(int i = 0; i < entry.element.getParameters().size(); i++){
|
||||||
|
VariableElement var = entry.element.getParameters().get(i);
|
||||||
|
|
||||||
|
if(!needsPlayer || i != 0){ //if client, skip first parameter since it's always of type player and doesn't need to be read
|
||||||
|
//full type name of parameter
|
||||||
|
String typeName = var.asType().toString();
|
||||||
|
//name of parameter
|
||||||
|
String varName = var.getSimpleName().toString();
|
||||||
|
//captialized version of type name for reading primitives
|
||||||
|
String capName = typeName.equals("byte") ? "" : Character.toUpperCase(typeName.charAt(0)) + typeName.substring(1);
|
||||||
|
|
||||||
|
//write primitives automatically
|
||||||
|
if(Utils.isPrimitive(typeName)){
|
||||||
|
if(typeName.equals("boolean")){
|
||||||
|
readBlock.addStatement("boolean " + varName + " = buffer.get() == 1");
|
||||||
|
}else{
|
||||||
|
readBlock.addStatement(typeName + " " + varName + " = buffer.get" + capName + "()");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
//else, try and find a serializer
|
||||||
|
ClassSerializer ser = serializers.get(typeName);
|
||||||
|
|
||||||
|
if(ser == null){ //make sure a serializer exists!
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "No @ReadClass method to read class type: '" + typeName + "'", var);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//add statement for reading it
|
||||||
|
readBlock.addStatement(typeName + " " + varName + " = " + ser.readMethod + "(buffer)");
|
||||||
|
}
|
||||||
|
|
||||||
|
//append variable name to string builder
|
||||||
|
varResult.append(var.getSimpleName());
|
||||||
|
if(i != entry.element.getParameters().size() - 1) varResult.append(", ");
|
||||||
|
}else{
|
||||||
|
varResult.append("player");
|
||||||
|
if(i != entry.element.getParameters().size() - 1) varResult.append(", ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//execute the relevant method before the forward
|
||||||
|
//if it throws a ValidateException, the method won't be forwarded
|
||||||
|
readBlock.addStatement("$N." + entry.element.getSimpleName() + "(" + varResult.toString() + ")", ((TypeElement) entry.element.getEnclosingElement()).getQualifiedName().toString());
|
||||||
|
|
||||||
|
//call forwarded method, don't forward on the client reader
|
||||||
|
if(entry.forward && entry.where.isServer && needsPlayer){
|
||||||
|
//call forwarded method
|
||||||
|
readBlock.addStatement(packageName + "." + entry.className + "." + entry.element.getSimpleName() +
|
||||||
|
"__forward(player.con.id" + (varResult.length() == 0 ? "" : ", ") + varResult.toString() + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
readBlock.nextControlFlow("catch (java.lang.Exception e)");
|
||||||
|
readBlock.addStatement("throw new java.lang.RuntimeException(\"Failed to to read remote method '" + entry.element.getSimpleName() + "'!\", e)");
|
||||||
|
readBlock.endControlFlow();
|
||||||
|
}
|
||||||
|
|
||||||
|
//end control flow if necessary
|
||||||
|
if(started){
|
||||||
|
readBlock.nextControlFlow("else");
|
||||||
|
readBlock.addStatement("throw new $1N(\"Invalid read method ID: \" + id + \"\")", RuntimeException.class.getName()); //handle invalid method IDs
|
||||||
|
readBlock.endControlFlow();
|
||||||
|
}
|
||||||
|
|
||||||
|
//add block and method to class
|
||||||
|
readMethod.addCode(readBlock.build());
|
||||||
|
classBuilder.addMethod(readMethod.build());
|
||||||
|
|
||||||
|
//build and write resulting class
|
||||||
|
TypeSpec spec = classBuilder.build();
|
||||||
|
JavaFile.builder(packageName, spec).build().writeTo(Utils.filer);
|
||||||
|
}
|
||||||
|
}
|
||||||
226
annotations/src/io/anuke/annotations/RemoteWriteGenerator.java
Normal file
@@ -0,0 +1,226 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import com.squareup.javapoet.*;
|
||||||
|
import io.anuke.annotations.Annotations.Loc;
|
||||||
|
import io.anuke.annotations.IOFinder.ClassSerializer;
|
||||||
|
|
||||||
|
import javax.lang.model.element.ExecutableElement;
|
||||||
|
import javax.lang.model.element.Modifier;
|
||||||
|
import javax.lang.model.element.TypeElement;
|
||||||
|
import javax.lang.model.element.VariableElement;
|
||||||
|
import javax.tools.Diagnostic.Kind;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/** Generates code for writing remote invoke packets on the client and server. */
|
||||||
|
public class RemoteWriteGenerator{
|
||||||
|
private final HashMap<String, ClassSerializer> serializers;
|
||||||
|
|
||||||
|
/** Creates a write generator that uses the supplied serializer setup. */
|
||||||
|
public RemoteWriteGenerator(HashMap<String, ClassSerializer> serializers){
|
||||||
|
this.serializers = serializers;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Generates all classes in this list. */
|
||||||
|
public void generateFor(List<ClassEntry> entries, String packageName) throws IOException{
|
||||||
|
|
||||||
|
for(ClassEntry entry : entries){
|
||||||
|
//create builder
|
||||||
|
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(entry.name).addModifiers(Modifier.PUBLIC);
|
||||||
|
|
||||||
|
//add temporary write buffer
|
||||||
|
classBuilder.addField(FieldSpec.builder(ByteBuffer.class, "TEMP_BUFFER", Modifier.STATIC, Modifier.PRIVATE, Modifier.FINAL)
|
||||||
|
.initializer("ByteBuffer.allocate($1L)", RemoteMethodAnnotationProcessor.maxPacketSize).build());
|
||||||
|
|
||||||
|
//go through each method entry in this class
|
||||||
|
for(MethodEntry methodEntry : entry.methods){
|
||||||
|
//write the 'send event to all players' variant: always happens for clients, but only happens if 'all' is enabled on the server method
|
||||||
|
if(methodEntry.where.isClient || methodEntry.target.isAll){
|
||||||
|
writeMethodVariant(classBuilder, methodEntry, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
//write the 'send event to one player' variant, which is only applicable on the server
|
||||||
|
if(methodEntry.where.isServer && methodEntry.target.isOne){
|
||||||
|
writeMethodVariant(classBuilder, methodEntry, false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
//write the forwarded method version
|
||||||
|
if(methodEntry.where.isServer && methodEntry.forward){
|
||||||
|
writeMethodVariant(classBuilder, methodEntry, true, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//build and write resulting class
|
||||||
|
TypeSpec spec = classBuilder.build();
|
||||||
|
JavaFile.builder(packageName, spec).build().writeTo(Utils.filer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Creates a specific variant for a method entry. */
|
||||||
|
private void writeMethodVariant(TypeSpec.Builder classBuilder, MethodEntry methodEntry, boolean toAll, boolean forwarded){
|
||||||
|
ExecutableElement elem = methodEntry.element;
|
||||||
|
|
||||||
|
//create builder
|
||||||
|
MethodSpec.Builder method = MethodSpec.methodBuilder(elem.getSimpleName().toString() + (forwarded ? "__forward" : "")) //add except suffix when forwarding
|
||||||
|
.addModifiers(Modifier.STATIC, Modifier.SYNCHRONIZED)
|
||||||
|
.returns(void.class);
|
||||||
|
|
||||||
|
//forwarded methods aren't intended for use, and are not public
|
||||||
|
if(!forwarded){
|
||||||
|
method.addModifiers(Modifier.PUBLIC);
|
||||||
|
}
|
||||||
|
|
||||||
|
//validate client methods to make sure
|
||||||
|
if(methodEntry.where.isClient){
|
||||||
|
if(elem.getParameters().isEmpty()){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "Client invoke methods must have a first parameter of type Player.", elem);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!elem.getParameters().get(0).asType().toString().equals("io.anuke.mindustry.entities.Player")){
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "Client invoke methods should have a first parameter of type Player.", elem);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//if toAll is false, it's a 'send to one player' variant, so add the player as a parameter
|
||||||
|
if(!toAll){
|
||||||
|
method.addParameter(int.class, "playerClientID");
|
||||||
|
}
|
||||||
|
|
||||||
|
//add sender to ignore
|
||||||
|
if(forwarded){
|
||||||
|
method.addParameter(int.class, "exceptSenderID");
|
||||||
|
}
|
||||||
|
|
||||||
|
//call local method if applicable, shouldn't happen when forwarding method as that already happens by default
|
||||||
|
if(!forwarded && methodEntry.local != Loc.none){
|
||||||
|
//add in local checks
|
||||||
|
if(methodEntry.local != Loc.both){
|
||||||
|
method.beginControlFlow("if(" + getCheckString(methodEntry.local) + " || !io.anuke.mindustry.net.Net.active())");
|
||||||
|
}
|
||||||
|
|
||||||
|
//concatenate parameters
|
||||||
|
int index = 0;
|
||||||
|
StringBuilder results = new StringBuilder();
|
||||||
|
for(VariableElement var : elem.getParameters()){
|
||||||
|
//special case: calling local-only methods uses the local player
|
||||||
|
if(index == 0 && methodEntry.where == Loc.client){
|
||||||
|
results.append("io.anuke.mindustry.Vars.players[0]");
|
||||||
|
}else{
|
||||||
|
results.append(var.getSimpleName());
|
||||||
|
}
|
||||||
|
if(index != elem.getParameters().size() - 1) results.append(", ");
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
//add the statement to call it
|
||||||
|
method.addStatement("$N." + elem.getSimpleName() + "(" + results.toString() + ")",
|
||||||
|
((TypeElement) elem.getEnclosingElement()).getQualifiedName().toString());
|
||||||
|
|
||||||
|
if(methodEntry.local != Loc.both){
|
||||||
|
method.endControlFlow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//start control flow to check if it's actually client/server so no netcode is called
|
||||||
|
method.beginControlFlow("if(" + getCheckString(methodEntry.where) + ")");
|
||||||
|
|
||||||
|
//add statement to create packet from pool
|
||||||
|
method.addStatement("$1N packet = $2N.obtain($1N.class, $1N::new)", "io.anuke.mindustry.net.Packets.InvokePacket", "io.anuke.ucore.util.Pooling");
|
||||||
|
//assign buffer
|
||||||
|
method.addStatement("packet.writeBuffer = TEMP_BUFFER");
|
||||||
|
//assign priority
|
||||||
|
method.addStatement("packet.priority = (byte)" + methodEntry.priority.ordinal());
|
||||||
|
//assign method ID
|
||||||
|
method.addStatement("packet.type = (byte)" + methodEntry.id);
|
||||||
|
//rewind buffer
|
||||||
|
method.addStatement("TEMP_BUFFER.position(0)");
|
||||||
|
|
||||||
|
for(int i = 0; i < elem.getParameters().size(); i++){
|
||||||
|
//first argument is skipped as it is always the player caller
|
||||||
|
if((!methodEntry.where.isServer/* || methodEntry.mode == Loc.both*/) && i == 0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
VariableElement var = elem.getParameters().get(i);
|
||||||
|
|
||||||
|
//add parameter to method
|
||||||
|
method.addParameter(TypeName.get(var.asType()), var.getSimpleName().toString());
|
||||||
|
|
||||||
|
//name of parameter
|
||||||
|
String varName = var.getSimpleName().toString();
|
||||||
|
//name of parameter type
|
||||||
|
String typeName = var.asType().toString();
|
||||||
|
//captialized version of type name for writing primitives
|
||||||
|
String capName = typeName.equals("byte") ? "" : Character.toUpperCase(typeName.charAt(0)) + typeName.substring(1);
|
||||||
|
//special case: method can be called from anywhere to anywhere
|
||||||
|
//thus, only write the player when the SERVER is writing data, since the client is the only one who reads it
|
||||||
|
boolean writePlayerSkipCheck = methodEntry.where == Loc.both && i == 0;
|
||||||
|
|
||||||
|
if(writePlayerSkipCheck){ //write begin check
|
||||||
|
method.beginControlFlow("if(io.anuke.mindustry.net.Net.server())");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(Utils.isPrimitive(typeName)){ //check if it's a primitive, and if so write it
|
||||||
|
if(typeName.equals("boolean")){ //booleans are special
|
||||||
|
method.addStatement("TEMP_BUFFER.put(" + varName + " ? (byte)1 : 0)");
|
||||||
|
}else{
|
||||||
|
method.addStatement("TEMP_BUFFER.put" +
|
||||||
|
capName + "(" + varName + ")");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
//else, try and find a serializer
|
||||||
|
ClassSerializer ser = serializers.get(typeName);
|
||||||
|
|
||||||
|
if(ser == null){ //make sure a serializer exists!
|
||||||
|
Utils.messager.printMessage(Kind.ERROR, "No @WriteClass method to write class type: '" + typeName + "'", var);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//add statement for writing it
|
||||||
|
method.addStatement(ser.writeMethod + "(TEMP_BUFFER, " + varName + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(writePlayerSkipCheck){ //write end check
|
||||||
|
method.endControlFlow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//assign packet length
|
||||||
|
method.addStatement("packet.writeLength = TEMP_BUFFER.position()");
|
||||||
|
|
||||||
|
String sendString;
|
||||||
|
|
||||||
|
if(forwarded){ //forward packet
|
||||||
|
if(!methodEntry.local.isClient){ //if the client doesn't get it called locally, forward it back after validation
|
||||||
|
sendString = "send(";
|
||||||
|
}else{
|
||||||
|
sendString = "sendExcept(exceptSenderID, ";
|
||||||
|
}
|
||||||
|
}else if(toAll){ //send to all players / to server
|
||||||
|
sendString = "send(";
|
||||||
|
}else{ //send to specific client from server
|
||||||
|
sendString = "sendTo(playerClientID, ";
|
||||||
|
}
|
||||||
|
|
||||||
|
//send the actual packet
|
||||||
|
method.addStatement("io.anuke.mindustry.net.Net." + sendString + "packet, " +
|
||||||
|
(methodEntry.unreliable ? "io.anuke.mindustry.net.Net.SendMode.udp" : "io.anuke.mindustry.net.Net.SendMode.tcp") + ")");
|
||||||
|
|
||||||
|
|
||||||
|
//end check for server/client
|
||||||
|
method.endControlFlow();
|
||||||
|
|
||||||
|
//add method to class, finally
|
||||||
|
classBuilder.addMethod(method.build());
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getCheckString(Loc loc){
|
||||||
|
return loc.isClient && loc.isServer ? "io.anuke.mindustry.net.Net.server() || io.anuke.mindustry.net.Net.client()" :
|
||||||
|
loc.isClient ? "io.anuke.mindustry.net.Net.client()" :
|
||||||
|
loc.isServer ? "io.anuke.mindustry.net.Net.server()" : "false";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import com.squareup.javapoet.*;
|
||||||
|
import io.anuke.annotations.Annotations.Serialize;
|
||||||
|
|
||||||
|
import javax.annotation.processing.*;
|
||||||
|
import javax.lang.model.SourceVersion;
|
||||||
|
import javax.lang.model.element.Modifier;
|
||||||
|
import javax.lang.model.element.TypeElement;
|
||||||
|
import javax.lang.model.element.VariableElement;
|
||||||
|
import javax.lang.model.util.ElementFilter;
|
||||||
|
import java.io.DataInput;
|
||||||
|
import java.io.DataOutput;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@SupportedSourceVersion(SourceVersion.RELEASE_8)
|
||||||
|
@SupportedAnnotationTypes({
|
||||||
|
"io.anuke.annotations.Annotations.Serialize"
|
||||||
|
})
|
||||||
|
public class SerializeAnnotationProcessor extends AbstractProcessor{
|
||||||
|
/**Target class name.*/
|
||||||
|
private static final String className = "Serialization";
|
||||||
|
/** Name of the base package to put all the generated classes. */
|
||||||
|
private static final String packageName = "io.anuke.mindustry.gen";
|
||||||
|
|
||||||
|
private int round;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized void init(ProcessingEnvironment processingEnv){
|
||||||
|
super.init(processingEnv);
|
||||||
|
//put all relevant utils into utils class
|
||||||
|
Utils.typeUtils = processingEnv.getTypeUtils();
|
||||||
|
Utils.elementUtils = processingEnv.getElementUtils();
|
||||||
|
Utils.filer = processingEnv.getFiler();
|
||||||
|
Utils.messager = processingEnv.getMessager();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv){
|
||||||
|
if(round++ != 0) return false; //only process 1 round
|
||||||
|
|
||||||
|
try{
|
||||||
|
Set<TypeElement> elements = ElementFilter.typesIn(roundEnv.getElementsAnnotatedWith(Serialize.class));
|
||||||
|
|
||||||
|
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(className).addModifiers(Modifier.PUBLIC);
|
||||||
|
MethodSpec.Builder method = MethodSpec.methodBuilder("init").addModifiers(Modifier.PUBLIC, Modifier.STATIC);
|
||||||
|
|
||||||
|
for(TypeElement elem : elements){
|
||||||
|
TypeName type = TypeName.get(elem.asType());
|
||||||
|
|
||||||
|
TypeSpec.Builder serializer = TypeSpec.anonymousClassBuilder("")
|
||||||
|
.addSuperinterface(ParameterizedTypeName.get(
|
||||||
|
ClassName.get(Class.forName("io.anuke.ucore.io.TypeSerializer")), type));
|
||||||
|
|
||||||
|
MethodSpec.Builder writeMethod = MethodSpec.methodBuilder("write")
|
||||||
|
.returns(void.class)
|
||||||
|
.addParameter(DataOutput.class, "stream")
|
||||||
|
.addParameter(type, "object")
|
||||||
|
.addAnnotation(Override.class)
|
||||||
|
.addException(IOException.class)
|
||||||
|
.addModifiers(Modifier.PUBLIC);
|
||||||
|
|
||||||
|
MethodSpec.Builder readMethod = MethodSpec.methodBuilder("read")
|
||||||
|
.returns(type)
|
||||||
|
.addParameter(DataInput.class, "stream")
|
||||||
|
.addAnnotation(Override.class)
|
||||||
|
.addException(IOException.class)
|
||||||
|
.addModifiers(Modifier.PUBLIC);
|
||||||
|
|
||||||
|
readMethod.addStatement("$L object = new $L()", type, type);
|
||||||
|
|
||||||
|
List<VariableElement> fields = ElementFilter.fieldsIn(Utils.elementUtils.getAllMembers(elem));
|
||||||
|
for(VariableElement field : fields){
|
||||||
|
if(field.getModifiers().contains(Modifier.STATIC) || field.getModifiers().contains(Modifier.TRANSIENT) || field.getModifiers().contains(Modifier.PRIVATE)) continue;
|
||||||
|
|
||||||
|
String name = field.getSimpleName().toString();
|
||||||
|
String typeName = Utils.typeUtils.erasure(field.asType()).toString().replace('$', '.');
|
||||||
|
String capName = Character.toUpperCase(typeName.charAt(0)) + typeName.substring(1);
|
||||||
|
|
||||||
|
if(field.asType().getKind().isPrimitive()){
|
||||||
|
writeMethod.addStatement("stream.write" + capName + "(object." + name + ")");
|
||||||
|
readMethod.addStatement("object." + name + "= stream.read" + capName + "()");
|
||||||
|
}else{
|
||||||
|
writeMethod.addStatement("io.anuke.ucore.core.Settings.getSerializer(" + typeName+ ".class).write(stream, object." + name + ")");
|
||||||
|
readMethod.addStatement("object." + name + " = (" +typeName+")io.anuke.ucore.core.Settings.getSerializer(" + typeName+ ".class).read(stream)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
readMethod.addStatement("return object");
|
||||||
|
|
||||||
|
serializer.addMethod(writeMethod.build());
|
||||||
|
serializer.addMethod(readMethod.build());
|
||||||
|
|
||||||
|
method.addStatement("io.anuke.ucore.core.Settings.setSerializer($N, $L)", Utils.elementUtils.getBinaryName(elem).toString().replace('$', '.') + ".class", serializer.build());
|
||||||
|
}
|
||||||
|
|
||||||
|
classBuilder.addMethod(method.build());
|
||||||
|
|
||||||
|
//write result
|
||||||
|
JavaFile.builder(packageName, classBuilder.build()).build().writeTo(Utils.filer);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}catch(Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
24
annotations/src/io/anuke/annotations/Utils.java
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package io.anuke.annotations;
|
||||||
|
|
||||||
|
import javax.annotation.processing.Filer;
|
||||||
|
import javax.annotation.processing.Messager;
|
||||||
|
import javax.lang.model.element.Element;
|
||||||
|
import javax.lang.model.element.TypeElement;
|
||||||
|
import javax.lang.model.util.Elements;
|
||||||
|
import javax.lang.model.util.Types;
|
||||||
|
|
||||||
|
public class Utils{
|
||||||
|
public static Types typeUtils;
|
||||||
|
public static Elements elementUtils;
|
||||||
|
public static Filer filer;
|
||||||
|
public static Messager messager;
|
||||||
|
|
||||||
|
public static String getMethodName(Element element){
|
||||||
|
return ((TypeElement) element.getEnclosingElement()).getQualifiedName().toString() + "." + element.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isPrimitive(String type){
|
||||||
|
return type.equals("boolean") || type.equals("byte") || type.equals("short") || type.equals("int")
|
||||||
|
|| type.equals("long") || type.equals("float") || type.equals("double") || type.equals("char");
|
||||||
|
}
|
||||||
|
}
|
||||||
169
build.gradle
@@ -7,8 +7,9 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
|
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.0'
|
||||||
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
|
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
|
||||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||||
classpath "com.badlogicgames.gdx:gdx-tools:1.9.8"
|
classpath "com.badlogicgames.gdx:gdx-tools:1.9.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,16 +21,17 @@ allprojects {
|
|||||||
version = 'release'
|
version = 'release'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
versionNumber = '3.4'
|
versionNumber = '4.0'
|
||||||
versionType = 'release'
|
versionModifier = 'alpha'
|
||||||
|
versionType = 'official'
|
||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.8'
|
gdxVersion = '1.9.8'
|
||||||
aiVersion = '1.8.1'
|
roboVMVersion = '2.3.0'
|
||||||
uCoreVersion = 'cdfa32d'
|
uCoreVersion = '53f99fbdc50910a15b4f55e9739385f47cf800cf'
|
||||||
|
|
||||||
getVersionString = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
return "$versionNumber-$versionType-$buildVersion"
|
return "$versionNumber-$versionModifier-$buildVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
getBuildVersion = {
|
getBuildVersion = {
|
||||||
@@ -40,6 +42,39 @@ allprojects {
|
|||||||
getPackage = {
|
getPackage = {
|
||||||
return project.ext.mainClassName.substring(0, project.ext.mainClassName.indexOf("desktop") - 1)
|
return project.ext.mainClassName.substring(0, project.ext.mainClassName.indexOf("desktop") - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generateLocales = {
|
||||||
|
def output = 'en\n'
|
||||||
|
def bundles = new File(project(':core').projectDir, 'assets/bundles/')
|
||||||
|
bundles.listFiles().each { other ->
|
||||||
|
if(other.name == "bundle.properties") return
|
||||||
|
output += other.name.substring("bundle".length() + 1, other.name.lastIndexOf('.')) + "\n"
|
||||||
|
}
|
||||||
|
new File(project(':core').projectDir, 'assets/locales').text = output
|
||||||
|
}
|
||||||
|
|
||||||
|
writeVersion = {
|
||||||
|
def pfile = new File(project(':core').projectDir, 'assets/version.properties')
|
||||||
|
def props = new Properties()
|
||||||
|
|
||||||
|
try{
|
||||||
|
pfile.createNewFile()
|
||||||
|
}catch (Exception ignored){}
|
||||||
|
|
||||||
|
if(pfile.exists()) {
|
||||||
|
|
||||||
|
props.load(new FileInputStream(pfile))
|
||||||
|
|
||||||
|
String buildid = getBuildVersion()
|
||||||
|
|
||||||
|
props["type"] = versionType
|
||||||
|
props["number"] = versionNumber
|
||||||
|
props["modifier"] = versionModifier
|
||||||
|
props["build"] = buildid
|
||||||
|
|
||||||
|
props.store(pfile.newWriter(), "Autogenerated file. Do not modify.")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -57,10 +92,12 @@ project(":desktop") {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile project(":core")
|
compile project(":core")
|
||||||
compile project(":kryonet")
|
compile project(":kryonet")
|
||||||
|
if(new File(projectDir.parent, '../debug').exists() && System.properties["release"] == null) compile project(":debug")
|
||||||
|
|
||||||
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
compile "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-controllers-lwjgl3:$gdxVersion"
|
||||||
compile 'com.github.MinnDevelopment:java-discord-rpc:v1.3.2'
|
compile 'com.github.MinnDevelopment:java-discord-rpc:v2.0.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,72 +105,98 @@ project(":html") {
|
|||||||
apply plugin: "gwt"
|
apply plugin: "gwt"
|
||||||
apply plugin: "war"
|
apply plugin: "war"
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":core")
|
compile project(":core")
|
||||||
|
compileOnly project(":annotations")
|
||||||
|
|
||||||
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
|
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
|
||||||
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
|
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
|
||||||
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion:sources"
|
|
||||||
|
|
||||||
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion:sources"
|
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion:sources"
|
||||||
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources"
|
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources"
|
||||||
compile "com.sksamuel.gwt:gwt-websockets:1.0.4"
|
|
||||||
compile "com.sksamuel.gwt:gwt-websockets:1.0.4:sources"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project(":android") {
|
project(":ios") {
|
||||||
apply plugin: "android"
|
apply plugin: "java"
|
||||||
|
apply plugin: "robovm"
|
||||||
|
|
||||||
configurations { natives }
|
task copyGen{
|
||||||
|
copy{
|
||||||
|
from ("core/build/classes/java/main/io/anuke/mindustry/gen/"){
|
||||||
|
include "**/*.java"
|
||||||
|
}
|
||||||
|
|
||||||
|
into "ios/src/io/anuke/mindustry/gen"
|
||||||
|
}
|
||||||
|
|
||||||
|
doFirst{
|
||||||
|
delete{
|
||||||
|
delete "ios/src/io/anuke/mindustry/gen/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
build.dependsOn(copyGen)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":core")
|
compile project(":core")
|
||||||
implementation project(":kryonet")
|
implementation project(":kryonet")
|
||||||
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
|
|
||||||
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
|
compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
|
||||||
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
|
compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
|
||||||
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
|
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
|
||||||
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
|
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
|
||||||
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
|
|
||||||
implementation "com.badlogicgames.gdx:gdx-ai:$aiVersion"
|
|
||||||
implementation "com.badlogicgames.gdx:gdx-controllers-android:$gdxVersion"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project(":core") {
|
project(":core") {
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
|
task finish {
|
||||||
|
generateLocales()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
boolean comp = System.properties["release"] == null || System.properties["release"].equals("false")
|
compileOnly project(":annotations")
|
||||||
|
build.finalizedBy(finish)
|
||||||
|
|
||||||
if(!comp){
|
def comp = System.properties["release"] == null || System.properties["release"] == "false"
|
||||||
println("NOTICE: Compiling release build.")
|
if(!comp) println("Note: Compiling release build.")
|
||||||
}else{
|
|
||||||
println("Compiling DEBUG build.")
|
|
||||||
}
|
|
||||||
|
|
||||||
if(new File('../uCore').exists() && comp){
|
if(new File(projectDir.parent, '../uCore').exists() && comp){
|
||||||
compile project(":uCore")
|
compile project(":uCore")
|
||||||
}else{
|
}else{
|
||||||
compile "com.github.anuken:ucore:$uCoreVersion"
|
compile "com.github.anuken:ucore:$uCoreVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
if(new File('../GDXGifRecorder').exists() && comp) {
|
if(new File(projectDir.parent, '../GDXGifRecorder').exists() && comp) {
|
||||||
compile project(":GDXGifRecorder")
|
compile project(":GDXGifRecorder")
|
||||||
}
|
}
|
||||||
|
|
||||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
|
|
||||||
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileJava.options.compilerArgs = [
|
||||||
|
"-processor", "io.anuke.annotations.RemoteMethodAnnotationProcessor,io.anuke.annotations.SerializeAnnotationProcessor"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
project(":server") {
|
project(":server") {
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
if(findProject(":android") != null){
|
||||||
|
compile.exclude module: android
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compileOnly project(":annotations")
|
||||||
|
|
||||||
compile project(":core")
|
compile project(":core")
|
||||||
compile project(":kryonet")
|
compile project(":kryonet")
|
||||||
compile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
||||||
@@ -141,16 +204,46 @@ project(":server") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project(":tests"){
|
||||||
|
apply plugin: "java"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation project(":core")
|
||||||
|
testImplementation('org.junit.jupiter:junit-jupiter-api:5.1.0')
|
||||||
|
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.1.0')
|
||||||
|
testImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
|
||||||
|
testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
workingDir = new File("../core/assets")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project(":tools") {
|
||||||
|
apply plugin: "java"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(":core")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project(":annotations") {
|
||||||
|
apply plugin: "java"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'com.squareup:javapoet:1.11.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
project(":kryonet") {
|
project(":kryonet") {
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":core")
|
compile project(":core")
|
||||||
compile 'com.github.crykn:kryonet:2.22.1'
|
compile "org.lz4:lz4-java:1.4.1"
|
||||||
compile "org.java-websocket:Java-WebSocket:1.3.7"
|
compile 'com.github.Anuken:kryonet:53b10247b1'
|
||||||
|
compile 'com.github.Anuken:WaifUPnP:05eb46bc577fd7674596946ba288c96c0cedd893'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.eclipse.doLast {
|
|
||||||
delete ".project"
|
|
||||||
}
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 186 B |
|
Before Width: | Height: | Size: 196 B |
|
Before Width: | Height: | Size: 194 B |
|
Before Width: | Height: | Size: 207 B |
|
Before Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 206 B |
|
Before Width: | Height: | Size: 224 B |
|
Before Width: | Height: | Size: 315 B |
|
Before Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 281 B |
|
Before Width: | Height: | Size: 514 B |
|
Before Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 256 B |
|
Before Width: | Height: | Size: 253 B |
|
Before Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 300 B |
|
Before Width: | Height: | Size: 274 B |
|
Before Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 199 B |
|
Before Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 191 B |
|
Before Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 246 B |
|
Before Width: | Height: | Size: 575 B |
|
Before Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 156 B |
BIN
core/assets-raw/sprites/blocks/defense/force-projector-top.png
Normal file
|
After Width: | Height: | Size: 121 B |
BIN
core/assets-raw/sprites/blocks/defense/force-projector.png
Normal file
|
After Width: | Height: | Size: 312 B |
BIN
core/assets-raw/sprites/blocks/defense/mend-projector-top.png
Normal file
|
After Width: | Height: | Size: 111 B |
BIN
core/assets-raw/sprites/blocks/defense/mend-projector.png
Normal file
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 111 B |
BIN
core/assets-raw/sprites/blocks/defense/overdrive-projector.png
Normal file
|
After Width: | Height: | Size: 215 B |
BIN
core/assets-raw/sprites/blocks/defense/shock-mine.png
Normal file
|
After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 199 B |
|
Before Width: | Height: | Size: 197 B |
|
Before Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 83 B |
|
After Width: | Height: | Size: 93 B |
|
After Width: | Height: | Size: 95 B |
BIN
core/assets-raw/sprites/blocks/distribution/bridge-conveyor.png
Normal file
|
After Width: | Height: | Size: 119 B |
|
After Width: | Height: | Size: 98 B |
|
After Width: | Height: | Size: 98 B |
|
After Width: | Height: | Size: 98 B |
|
After Width: | Height: | Size: 97 B |
|
After Width: | Height: | Size: 116 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 119 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 113 B |
|
After Width: | Height: | Size: 108 B |
|
After Width: | Height: | Size: 104 B |
|
After Width: | Height: | Size: 106 B |