Skip to content

Instantly share code, notes, and snippets.

@asm
Last active December 30, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asm/bed819fb32253e4cb072 to your computer and use it in GitHub Desktop.
Save asm/bed819fb32253e4cb072 to your computer and use it in GitHub Desktop.
New Relic Pre-Release Instructions

New Relic for Android Pre-release Installation Instructions

Eclipse

Launch ADT or Eclipse, select "Install New Software..." from the Help menu, and drag or paste this link into the box above the "Select All" button:

https://download.newrelic.com/android_agent/eclipse-staging/

Next, click "Select All", uncheck "Contact all update sites", click "Next", and follow the instructions to complete installation and restart your IDE.

Finally, right click on your app project and select 'Update New Relic'.

Ant

Download and unzip the New Relic SDK for Ant from:

http://download.newrelic.com/android_agent/ant-staging/NewRelic_Android_Agent_3.419.0.zip

Gradle

Simply merge this into your build.gradle:

buildscript {
  repositories {
    mavenCentral()
    maven {
      url 'https://oss.sonatype.org/content/repositories/comnewrelic-1163'
    }
    maven {
      url 'https://oss.sonatype.org/content/repositories/comnewrelic-1164'
    }
  }
  dependencies { 
    classpath 'com.newrelic.agent.android:agent-gradle-plugin:3.419.0' 
  }
}
apply plugin: 'newrelic'

repositories {
  mavenCentral()
  maven {
    url 'https://oss.sonatype.org/content/repositories/comnewrelic-1163'
  }
}
 
dependencies {
  compile 'com.newrelic.agent.android:android-agent:3.419.0'
}

Maven

Simply merge this into your pom.xml:

<pluginRepositories>  
  <pluginRepository>
    <id>staged-releases</id>
    <url>https://oss.sonatype.org/content/repositories/comnewrelic-1163/</url>
  </pluginRepository>
</pluginRepositories>
<repositories>  
  <repository>
    <id>staged-releases</id>
    <url>https://oss.sonatype.org/content/repositories/comnewrelic-1163/</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.newrelic.agent.android</groupId>
    <artifactId>android-agent</artifactId>
    <version>3.419.0</version>
  </dependency>
</dependencies>

<build>
  <plugins>
    <plugin>
      <groupId>com.newrelic.agent.android</groupId>
      <artifactId>agent-maven-plugin</artifactId>
      <version>3.419.0</version>
      <executions>
        <execution>
          <goals>
            <goal>instrument</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment