Splunk AppDynamics

Does the adeum plugin supports library extension?

CommunityUser
Splunk Employee
Splunk Employee

I was trying to build a flutter plugin that would need to import the Instrumentation class to send metrics back to the SAAS platform.  However, when I apply the adeum plugin in my build.gradle, an error occurs.

My build.gradle:

group 'com.example.flutter_appdynamics'
version '1.0-SNAPSHOT'

buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.appdynamics:appdynamics-gradle-plugin:4.5.+'    
    }


rootProject.allprojects {
    repositories {
        google()
        jcenter()
    }
}

apply plugin: 'com.android.library'
apply plugin: 'adeum' // this line added for AppDynamics

android {
    compileSdkVersion 28

    defaultConfig {
        minSdkVersion 16
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    lintOptions {
        disable 'InvalidPackage'
    }
}

The error:

* What went wrong:
A problem occurred configuring project ':flutter_appdynamics'.
> Failed to notify project evaluation listener.
   > Transforms with scopes '[EXTERNAL_LIBRARIES, SUB_PROJECTS_LOCAL_DEPS, PROJECT_LOCAL_DEPS, SUB_PROJECTS]' cannot be applied to library projects.
   > Cannot cast object 'com.android.build.gradle.LibraryExtension_Decorated@3131dac9' with class 'com.android.build.gradle.LibraryExtension_Decorated' to class 'com.android.build.gradle.AppExtension'

A similar case is found on github (https://github.com/piotrmadry/FirebaseTestLab-Android/issues/12), and the cause of it is that the plugin does not support LibrayExtension.  So I would like to know does the adeum plugin only support AppExtension but not LibraryExtension?

Labels (1)
Tags (1)
0 Karma

Georg_von_Sperl
Explorer

Hi @Anonymous , 

While looking for interest in our community on leveraging AppDynamics in Dart/Flutter projects, I just stumbled across your post. Sorry that your question did not get any replies until now.

We also worked on building a plugin extension for Flutter based on the AppDynamics Mobile SDK, maintained at https://github.com/appdynamics/flutter-plugin/ 

We are happy to invite you to join https://pub.dev/packages/appdynamics_mobilesdk that is now available for use. Note that while the core AppDynamics Mobile SDK is fully supported via AppDynamics Support, the wrapper published on Pub.Dev is community supported. 

If this is still relevant for you in your project, please let us know. Thank you for your interest. 

Best, 
GvS

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...