As another alternative, you can create a Javascript timestamp-based
update mechanism. In essence:
1) I set a UNIX timestamp variable of my file's "birth date" and save it
to localStorage.
2) I use XMLHttpRequest to get the "Last-Modified" response header from
the server, and convert it to a timestamp.
3) I check the timestamp of my code. If the server's timestamp is later
than my code's timestamp, I download the server's code and update my
timestamp. I use persistent storage for this.
3a) You can also use a setting sniffing mechanism (based on loglevel
DEBUG or ERROR) to route your update mechanism to either a beta or
release file.
3b) Ideally you should also watch out for local/server timezones here
and modify accordingly but I haven't bothered yet...
For a limited time you can view my current update code here:
http://pastebin.com/AVEA23Zc
Hi,
I'm quite new at andriod/java, but an experienced linux developer.
I'm using the embedding mode of XWalk - I even compiled it myself.
Q1. I'm suffering from the 20+ seconds it takes the APK to
install/uninstall/deploy for every run/stop as oppose to without it.
Is there any known solution to help me (considering I would like to
create the XWalkView object myself instead of using the
shared-mode/reflection path) ?
Q2. If not, Is there any way to simply dynamically link the runtime
18MB .so library to the application ? I'm assuming that this is what
happens with probably multiple base libraries of Andriod, I wonder if
such approch can be taken here ? For example, I could place my
runtime once on the device (using an APK or simply c&p it there) and
just point to it to the dynmaic linker (if such exists) - at least for
the period of developing.. Think of the time being saved :) 100 runs a
day for 3 month for 3 developers - 7 days of work - almost 10%.
Another cool thing will be to download the .so from a server after
installing the lightwait apk application and share this library with
you other applications.
But - If dynamic linking is possible, than I guess this can be a
breach in secuirity as well - as said - i'm not such familiar with
android.
Anyhow - great code - great documentation - great work!
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help