Giter VIP home page Giter VIP logo

goldengate's People

Contributors

emilsjolander avatar jjhesk avatar markrietveld avatar petershu avatar zacsweers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goldengate's Issues

version

how do i check on the latest version??

Javascript callback not call Android callback

Description:
When callback annotate as @JavascriptCallback is called from javascript for long time, then the android callback is not called.

Reason:
Android callback registered to BridgeInterface its stored to HashMap as <callback_id. WeakReference<callback_wrapper>>. When js work time is device under memory pressure then GC remove reference to callback_wrapper.

compile errors

Error:Execution failed for task ':OverDragLayout:androidJavadocs'.

Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/hesk/GitHub/HypebeastStore-Android-Native/hypebeaststore/OverDragLayout/build/tmp/androidJavadocs/javadoc.options'

This happens when it try to ship out the apk to the adb and eventually cause javadoc generation failed.

This is my compile list:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    /*compile('com.jeremyfeinstein.slidingmenu:library:1.3@aar') {
              exclude module: 'support-v4'
            }*/
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'com.squareup.okhttp:okhttp:2.2.0'
    compile 'org.lucasr.twowayview:twowayview:0.1.4'
    compile project(':JazzListView')
    compile('de.psdev.licensesdialog:licensesdialog:1.6.0') {
        exclude module: 'support-v4'
    }
    compile 'com.squareup.picasso:picasso:2.4.0'
    compile project(':L-dialogs')
    compile 'com.afollestad:material-dialogs:0.6.3.0'
    compile 'me.drakeet.materialdialog:library:1.2.2'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
    compile project(':libHkmCheck')
    compile 'com.nineoldandroids:library:2.4.0'
    // compile 'com.daimajia.slider:library:1.1.2@aar'
    compile 'com.android.support:appcompat-v7:21.0.3'
    //exclude module: 'support-v4'
    compile 'uk.co.chrisjenx:calligraphy:2.0.1'
    //compile 'com.github.traex.expandablelayout:library:1.2.2'
    compile 'com.melnykov:floatingactionbutton:1.2.0'
    compile 'it.neokree:MaterialTabs:0.11'
    compile 'com.lsjwzh:materialloadingprogressbar:0.2.0-RELEASE'
    compile project(':jsoup-1.8.1')
    compile 'au.com.gridstone:grex:1.1.0'
    compile 'au.com.gridstone:grex-gson-converter:1.1.0'
    compile 'org.lucasr.twowayview:twowayview:0.1.0'
    compile 'com.etsy.android.grid:library:1.0.5'
    // see changelog
    compile 'com.nvanbenschoten.motion:library:1.0.2'
    compile project(':WheelViewLib')
    compile project(':daimajiaslider')
    compile project(':OverDragLayout')
    compile 'com.facebook.rebound:rebound:0.3.7'
    //http://facebook.github.io/rebound/

    //https://github.com/facebook/rebound/blob/master/rebound-android-example/src/main/java/com/facebook/rebound/example/MainActivity.java
    compile project(':eexpandedview')
    apt 'com.flipboard.goldengate:compiler:1.2.0'
    compile 'com.flipboard.goldengate:api:1.2.0'
}

How to call method with JS callback

Hi,
is possible to call method with JS callback?
Example:

Library.prototype.fetch = function(url,cb,scope) {
        var request = new XMLHttpRequest();

    request.onreadystatechange = function() {
        if (request.readyState==4 && request.status==200) {
            cb.call(scope,request.responseText);
        }
    }
        request.open("GET",url,true);
        request.send();
}

In JS call looks like this:

instanceOfLibrary.fetch('_URL_', function(data) {document.getElementById("output").innerHTML = "<h2>Fetched:</h2><pre>"+data+"</pre>";

If yes, could I ask how to define the callback in interface?

@Method("instanceOfLibrary.fetch")
void fetch(String url, ???? , Callback<String> callback);

Thank you in advance for any hint!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.