Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 948 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 948 Bytes

Ampli JRE SDK (Kotlin)

An example app using the Ampli JRE SDK

Usage

Setup the project

You will need to do the following before running the app.

  1. Create a .env with your API key
    1. cp .env.example .env
    2. Set your Amplitude API key
    AMPLITUDE_API_KEY=your-amplitide-api-key

Run the App

Run the application with ./gradlew run or using your favorite IDE.

Pull your Ampli SDK

If you want to use your own tracking plan to generate the Ampli SDK:

  1. npm i -g @amplitude/ampli
  2. ampli pull
  3. Update Main.kt to track your events.

Project structure

  • README.md - you are here *
  • src/main/kotlin/
    • Main.kt - Example user app using Amply SDK. A good place to start.
    • com/amplitude/ampli/
      • Ampli.kt - Generated SDK, don't modify by hand. Update with ampli pull