Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
import jenkins.model.* | |
import jenkins.model.Jenkins | |
import hudson.model.User | |
import hudson.security.Permission | |
import hudson.EnvVars | |
BUILD_JOB_NAME = "APK_TEST" | |
def jobWorkspace (String jobName) { |
/** | |
* Android code analysis and reporting tools | |
*/ | |
buildscript { | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
} |
public final class VolleyIdlingResource implements IdlingResource { | |
private static final String TAG = "VolleyIdlingResource"; | |
private final String resourceName; | |
// written from main thread, read from any thread. | |
private volatile ResourceCallback resourceCallback; | |
private Field mCurrentRequests; | |
private RequestQueue mVolleyRequestQueue; |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette | |
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet | |
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml | |
Harshad Kale | |
https://github.com/kalehv | |
[email protected] |
#TODO
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
/** | |
* Snackbars | |
* | |
* @author The Finest Artist | |
*/ | |
public class Snackbars { | |
private Snackbars() { | |
} |
import android.content.Context; | |
import android.graphics.Matrix; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
public class TopImageCrop extends ImageView { |