Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

24
LINES

< > BotCompany Repo | #1007324 - New hotwire using outer JavaX for clients (LIVE)

JavaX fragment (include)

static Class<?> hotwire(String src) {
  assertFalse(_inCore());
  Class j = getJavaX();
  if (isAndroid()) {
    synchronized(j) { // hopefully this goes well...
      List<File> libraries = new ArrayList<File>();
      File srcDir = (File) call(j, "transpileMain", src, libraries);
      if (srcDir == null)
        fail("transpileMain returned null (src=" + quote(src) + ")");
    
      Object androidContext = get(j, "androidContext");
      return (Class) call(j, "loadx2android", srcDir, src);
    }
  } else {
    ifdef hotwire_here
    ret hotwire_overInternalBot(src);
    endifdef
    ifndef hotwire_here
    Class c = cast call(j, "hotwire", src);
    hotwire_copyOver(c);
    ret c;
    endifndef
  }
}

Author comment

Began life as a copy of #1000963

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007324
Snippet name: New hotwire using outer JavaX for clients (LIVE)
Eternal ID of this version: #1007324/5
Text MD5: 089f0df4257da44bdfd29db6a399b1c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-22 13:12:53
Source code size: 737 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 394 / 595
Version history: 4 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007324 & http://1007324.tinybrain.de