Skip to content

Instantly share code, notes, and snippets.

@wreszelewski
wreszelewski / compilation
Last active March 4, 2022 08:29
Compiling dalvikvm for Ubuntu 14.04, creating EC2 image, running hello world
#Some references:
# by Huber Flores:
# https://gist.github.com/huberflores/4687766
# https://gist.github.com/huberflores/9886339
# https://gist.github.com/huberflores/4714824
# by Hai on StackOverflow:
# http://stackoverflow.com/questions/14951374/didnt-find-class-foo-on-path-dexpathlist
# AOSP tutorial: https://source.android.com/source/index.html
{
"ecmaFeatures": {
"impliedStrict": true
},
"rules": {
"eqeqeq": 1,
"indent": [2, "tab", {"SwitchCase": 1}],
"no-unused-vars": 1,
"curly": 1,
"no-multi-spaces": 2,
importScripts('https://unpkg.com/[email protected]/build/importScripts/workbox-sw.dev.v0.0.2.js');
importScripts('https://unpkg.com/[email protected]/build/importScripts/workbox-google-analytics.prod.v1.0.0.js');
const workboxSW = new WorkboxSW({clientsClaim: true});
workbox.googleAnalytics.initialize();
workboxSW.router.registerRoute(
/\.?!(html)$/,
workboxSW.strategies.cacheFirst({
cacheName: 'assets',