Installation should take less than 5 minutes. You will need to make changes to build.gradle and to have admin access to your Jenkins server. Once installed the Gradle plugin will upload a build's APK file to NimbleDroid for profiling, and show results in console output.
id "com.nimbledroid.profiler" version "1.1.3"
The NimbleDroid plugin will automatically be downloaded as a dependency from plugins.gradle.org. This syntax works for Gradle 2.1 and up. For older versions, see https://plugins.gradle.org/plugin/com.nimbledroid.profiler
// config for NimbleDroid Gradle plugin
apiKey "replace with statement to access key variable"
Most company security policies forbid adding credentials directly to build.gradle. You should set an API key variable elsewhere, this could be in the gradle.properties file, an environment variable, or wherever you securely store credentials.
Replace the instruction string with a reference to that variable.
The tasks must be added after the step that produces your APK. For example:
clean assembleRelease ndUpload ndGetProfile
ndUpload will upload the APK file we find (see step 1 for how to customize which APK). ndGetProfile will poll our service until the profile is ready.
Next time a Jenkins build is triggered, you will see performance profiling information in the console output.
The APK is only used to generate profiling information which is accessible only to your account. Once profiling is completed, we delete your APK.
Yes! As long as it can integrate with Gradle for builds, the steps should be similar. We plan to add detailed instructions for other CI servers to this page.