Libraryless. Click here for Pure Java version (1832L/13K/43K).
1 | !752 |
2 | |
3 | p {
|
4 | print("Downloading libraries");
|
5 | File dxJar = loadLibrary("#1004106"); // 1 MB
|
6 | File supportJar = loadLibrary("#1004107"); // 1 MB
|
7 | File androidJar = loadLibrary("#1004108"); // Huge (26 MB)
|
8 | |
9 | S src = [[ |
10 | p { androidSayInGerman("Was geht ab Mann"); }
|
11 | ]]; |
12 | |
13 | S libs = "lib 1004106\n" + "lib 1004107\n " + "lib 1004108\n"; |
14 | print("\n" + indent(libs + src) + "\n");
|
15 | |
16 | print("Transpiling & compiling");
|
17 | File classesDir = javaxToClasses(libs + src); |
18 | |
19 | print("Making dex");
|
20 | File dexFile = prepareProgramFile("test.dex");
|
21 | |
22 | S cmd = "java -jar " + bashQuote(dxJar) |
23 | + " --dex --output=" + bashQuote(dexFile) |
24 | + " " + bashQuote(classesDir + "/") |
25 | + " 2>&1"; |
26 | print(cmd); |
27 | print(backtick(cmd)); |
28 | print(); |
29 | |
30 | if (dexFile.exists()) |
31 | print("Dex made! " + dexFile.getAbsolutePath() + " (" + dexFile.length() + " bytes)");
|
32 | else |
33 | print("Crazy! No dex made");
|
34 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004109 |
| Snippet name: | Try making a .dex locally (dev.) |
| Eternal ID of this version: | #1004109/1 |
| Text MD5: | 43e44ebaeb87a8497b132408aea29ef6 |
| Transpilation MD5: | 8bf8c9ad487402ae1413c8a6f6fd3ecf |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-08-07 17:42:02 |
| Source code size: | 944 bytes / 34 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 751 / 885 |
| Referenced in: | [show references] |