Code Monkey home page Code Monkey logo

Comments (5)

ericwlange avatar ericwlange commented on August 17, 2024

I compiled with API 19. I had attempted to build with API 16 because I wanted to test on a MIPS configuration I had in the emulator, but for some reason, although it built, it would not run. I didn't spend any more time on it and reverted back to API 19. Feel free to try and build with a lower API. You can achieve that by editing the following dictionary in scripts/build:

ANDROID_APIS = {
    'armeabi'     : '19',
    'armeabi-v7a' : '19',
    'arm64-v8a'   : '21',
    'x86'         : '19',
    'x86_64'      : '21',
    'mips'        : '19',
    'mips64'      : '21'
}

Change it to whichever API you want.

You will then need to change minSdkVersion in AndroidJSCore/build.gradle to whatever you've changed it to. Then run the build script.

Let me know how it goes. If it works for lower APIs, I will put it in the next release. At the moment, I am working on trying to get the 64-bit architectures to work, and JIT on ARM. Those are my goals for version 2.1. Will include the lower API if it works.

from androidjscore.

a112121788 avatar a112121788 commented on August 17, 2024

Here is my test on android(4.0,4.1 4.2 4.3). Only 26.83% passed.
the main reason is because of log2....
so I use another one android-jsc
on my test ,84% passed.

My partner found the project have some problem because of Memory leak。
He have resolved。but he does not know how to contact with you .
echarts

from androidjscore.

ericwlange avatar ericwlange commented on August 17, 2024

This is great. I can be contacted in any number of ways. If you want to email me, please send to eric at flicket dot tv. Otherwise you can raise a pull request. Would love to see what memory leaks have been uncovered!

from androidjscore.

ericwlange avatar ericwlange commented on August 17, 2024

The head version now works with API 16+ (min Jellybean). At the moment, I don't have any plans to go back further because older APIs use an older version of the standard template libraries, but JavaScriptCore requires a newer version. According to Google, API 16+ should cover 94% of devices in the wild. When I release 2.1, this support will be there. Should be in the next couple of days. But in the interim, you can build from source.

from androidjscore.

ericwlange avatar ericwlange commented on August 17, 2024

This issue is now fixed in 2.1. API 16+ is now supported. As noted above, I don't plan to add support pre- API 16, as it would require a much older build of webkit, and it is not worth it for the 6% of devices that still require it.

from androidjscore.

Related Issues (20)

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.