Libraryless. Click here for Pure Java version (3045L/18K).
1 | // custom mainClass only works with hotwire_here |
2 | static Class<?> hotwire(S src, IF1<ClassLoader, S> calculateMainClass default lambda1 mainClassNameForClassLoader) { |
3 | assertFalse(_inCore()); |
4 | Class j = getJavaX(); |
5 | if (isAndroid()) { |
6 | synchronized(j) { // hopefully this goes well... |
7 | List<File> libraries = new ArrayList<File>(); |
8 | File srcDir = (File) call(j, "transpileMain", src, libraries); |
9 | if (srcDir == null) |
10 | fail("transpileMain returned null (src=" + quote(src) + ")"); |
11 | |
12 | Object androidContext = get(j, "androidContext"); |
13 | return (Class) call(j, "loadx2android", srcDir, src); |
14 | } |
15 | } else { |
16 | ifdef hotwire_here |
17 | ret hotwire_overInternalBot(src, calculateMainClass); |
18 | endifdef |
19 | ifndef hotwire_here |
20 | Class c = cast call(j, "hotwire", src); |
21 | hotwire_copyOver(c); |
22 | ret c; |
23 | endifndef |
24 | } |
25 | } |
Began life as a copy of #1000963
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007324 |
Snippet name: | New hotwire using outer JavaX for clients (LIVE) |
Eternal ID of this version: | #1007324/8 |
Text MD5: | d05c219259365093b2253484029a0671 |
Transpilation MD5: | 2736f0b100547b337d48aa1fd7489a80 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-05 01:24:05 |
Source code size: | 886 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 789 / 1144 |
Version history: | 7 change(s) |
Referenced in: | [show references] |