js-evaluator-for-android icon indicating copy to clipboard operation
js-evaluator-for-android copied to clipboard

Do you have anything equalent to iOS or Swift or Objective-c?

Open JayakarVangeti opened this issue 6 years ago • 3 comments

I am looking for a iOS equivalent of your code. can you suggest any of your work or other third parties. @evgenyneu @codebymikey @sittingbool

JayakarVangeti avatar Mar 01 '18 15:03 JayakarVangeti

Hi @JayakarVangeti, you can look at the builtin JavaScriptCore library on iOS: https://stackoverflow.com/a/37435316/297131

evgenyneu avatar Mar 01 '18 19:03 evgenyneu

@evgenyneu Hey, Thanks for responding.

//This code is taken from YoutubeExtractor project which uses your code to decipher signatures.
let jsSource = "var testFunct = function(message) { return \"Test Message: \" + message;}"
new JsEvaluator(context).evaluate(jsSource , new JsCallback() {
          @Override
           public void onResult(String result) {
          try {
               decipheredSignature = result;
           } finally {
         }
  }

Here the above code deciphers the function code, I've Tried the iOS code of the link you have given it just simply reading the strings out. I need the deciphered strings, can you help me out here. Please.

JayakarVangeti avatar Mar 02 '18 08:03 JayakarVangeti

@JayakarVangeti, sorry I'm a bit busy at the moment. I would suggest asking on stackoverflow.com, you will get help very fast there (if you ask specific question). :)

evgenyneu avatar Mar 02 '18 08:03 evgenyneu