Skip to content

kamil-pokoj/Sample-Android-Application

 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

This project is build to serve our customer/partners and give an overview of the Android agent features.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Android Studio downloaded (i.e. from developer.android.com) and installed.

Set of env properties, below example values for macOS 10.15

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$PATH:/usr/local/opt/openjdk/bin"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
export PATH="$PATH:$ANDROID_HOME/emulator"
export PATH="$PATH:$ANDROID_HOME/tools/bin"
export PATH="$PATH:$ANDROID_HOME/tools"

To test the features of AppDynamics Android agent, you will need also to (hence have MRUM license). If you do not have one, please contact our sales

Please create an MRUM application on your AppDynamics Controller. You shall get the App Key and Collector URL from this process. If you would like to test additionally crash reports, this will require publishing pro-guard/dex file mappings. To upload those files, you will need to provide additionally your account name (sample: AppDynamics-abcdefghXXXXXXXX) and your EUM license's key (sample: abcdef12-3456-7890-abcd-17f7fcecd4f0).

For security reason, we keep above values inside secrets.xml and appdynamics.properties files. This is only to prevent those details to be visible on GitHub. Resource files are more vulnerable to decompilation of your application, hence discoverable. If you would like to keep those values hidden from your end-users refer to this SO answer for a detailed breakdown of the obfuscation options.

Please create a file appdynamics.properties inside your project's root folder (alongside settings.gradle).

EUM_ACCOUNT_NAME="AppDynamics-abcdefghXXXXXXXX"
EUM_LICENSE_KEY="abcdef12-3456-7890-abcd-17f7fcecd4f0"

Please create a file secrets.xml in app/src/main/res/values/ as explained by CodePath secrets.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="APP_KEY">YOUR_APP_KEY</string>
    <string name="COLLECTOR_URL">YOUR_COLLECTOR_URL</string>
</resources>

Installation

You can run this project directly, from Android Studio or cloning the repo and opening it with Android Studio application.

  1. Clone the project from gitbub
  2. Open project in Android studio
  3. Replace values in secrets.xml
  4. Build application on emulator or physical device

Usage

For more examples, please refer to the AppDynamics Documentation_

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GPLv3 License. See LICENSE for more information.

Contact

Feel free to reach out to AppDynamics Support Project Link: https:/Appdynamics/Sample-Android-Application

About

Sample Android application using Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%