Skip to content

Instantly share code, notes, and snippets.

View kuwabataK's full-sized avatar

KuwabataK kuwabataK

View GitHub Profile
@SolveSoul
SolveSoul / class-import-resolver.js
Created November 20, 2018 08:48
This gist is based upon the answer @ https://stackoverflow.com/a/44440258/4614197 but also checks packages recursively
#!/usr/bin/env node
/*
* A hook to add resources class (R.java) import to Android classes which uses it.
* See: https://stackoverflow.com/a/44440258/4614197
*/
function getRegexGroupMatches(string, regex, index) {
index || (index = 1);