Skip to content

Instantly share code, notes, and snippets.

View kenyee's full-sized avatar

Ken Yee kenyee

View GitHub Profile
/**
* We are combining unit and intrumentation test reports
* if no one uses instrumentation then delete createDebugCoverageReport
* and it output outputs/code-coverage/connected/*coverage.ec
*/
/**
* Since jacoco does not support android out of the box we create a custom task per variant
* for test coverage.All the coverage reports are created in the root projects build directory.
* These are then archived in the pages folder which is then deployed on the project.
@kenyee
kenyee / migrateAndroidX.py
Created April 17, 2019 18:01
Hardened Python3 script to automatically rename classpaths for the AndroidX migration...thanks to AndiMiko for the original: https://gist.github.com/AndiMiko/58ecc04a64ac4f89eb5262176ab3fc9e
#!/usr/local/bin/python3
import sys, getopt
import glob
import csv
import os
dictCSV = "androidx-class-mapping.csv"
projectPath = os.getcwd()
@kenyee
kenyee / gist:6307258
Last active December 17, 2022 10:38
How to add Node.js npms to your Meteor.js project.
Make a subdirectory named packages/mynpms in your project.
Add a package.js that looks something like this:
Package.describe({
summary: "Custom app NPM dependencies"
});
Npm.depends({
nconf: '0.6.7',
feedparser: '0.16.1'