Android Native

Getting started

Welcome to the Noctua SDK for Android Native(Kotlin)! This guide will walk you through integrating our SDK into your Game project. Follow these steps to set up the SDK, configure platform-specific settings, and initialize Noctua features in your game.

Preparation

Before diving into the integration process, let's ensure you have everything you need to successfully integrate the Noctua SDK into your Game project.

Get SDK Configuration Files

To use the Noctua SDK, you must have at least the main configuration file named noctuagg.json. Depending on your publishing arrangements, additional files, such as google-services.json from Firebase, may also be required.

Configuration Parameters

  • offlineFirstEnabled (boolean) - Set to true if the game supports offline-first functionality.

Please put your configuration files under the Assets/ directory.

Important

If you haven't received your SDK configuration files yet, please contact our team at [email protected] to get started.

Installation

  1. Add the Noctua SDK dependency in your build.gradle:
dependencies {
    implementation "com.noctuagames.sdk:noctua-android-sdk:<latest-version>"
}

Replace <latest-version> with the latest published version of the SDK.

Initialization

To initialize the SDK, call Noctua.init inside your Application class or the first launched Activity:


import com.noctuagames.sdk.Noctua

class MyApp : Application() {
    override fun onCreate() {
        super.onCreate()
        Noctua.init(this, emptyList())
    }
}

override fun onResume() {
    super.onResume()
    Noctua.onResume()
}

override fun onPause() {
    super.onPause()
    Noctua.onPause()
}
Previous
Receiving in-game rewards