Skip to content

Commit

Permalink
docs: add documentation for android dyanmic feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ndesai-newrelic committed Feb 6, 2024
1 parent f9b97d8 commit 18e2ed5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: Configure Android Dynamic Feature
tags:
- Mobile monitoring
- New Relic Mobile Android
- Install configure
metaDescription: 'How to configure the New Relic Android Gradle Plugin For Android Dynamic Feature '
freshnessValidatedDate: never
---

What is Android Dynamic Feature?

Android dynamic features refer to a functionality introduced by the Android platform that allows developers to modularize their applications and deliver specific features on-demand.

The New Relic Gradle plugin introduces the ability to customize plugin task behavior for Android dynamic feature modules during the build process. To implement this feature, create a plugin extension in the Gradle build files that applies the New Relic plugin to the dynamic feature module. You can then make use of various configuration options available for customization.

## Configure Android Dynamic Feature [#android-dynamic-feature]

<Callout variant="important">
This feature is available for agent versions 7.3.0 and higher.
</Callout>

To enable the Android Gradle Plugin and Agent for Android Dynamic Feature Module: Add the following to your Feature Module's `build.gradle`:

```gradle
apply plugin: 'com.android.dynamic-feature'
apply plugin: 'newrelic'
android {
compileSdkVersion versions.compileSdk
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
}
}
dependencies {
implementation project(':app')
compileOnly 'com.newrelic.agent.android:android-agent:7.3.0'
}
```
4 changes: 3 additions & 1 deletion src/nav/mobile-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ pages:
path: /docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-app-launch-time-android-apps
- title: Distributed tracing
path: /docs/mobile-monitoring/new-relic-mobile-android/get-started/new-relic-android-and-dt
- title: Android Dynamic Feature
path: /docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-android-dynamic-feature-android-gradle-plugin
- title: Troubleshooting
pages:
- title: No data appears
Expand All @@ -49,7 +51,7 @@ pages:
pages:
- title: Get started
path: /docs/mobile-monitoring/new-relic-mobile-ios/get-started/introduction-new-relic-mobile-ios
- title: Manual installation
- title: Manual installation
pages:
- title: Cocoapods
path: /docs/mobile-monitoring/new-relic-mobile-ios/installation/cocoapods-installation/
Expand Down

0 comments on commit 18e2ed5

Please sign in to comment.