Logo
Getting started

Setup & Requirement

Android Setup & Requirement

Project Setup

To integrate the Neurogine Embedded Payment SDK into your Android project, ensure your development environment meets the following requirements:

ItemMinimumRecommendedNotes
Project SDK (Java)1.817
Android Target SDK34+35Start from Aug, 2024, App published on Play Store is required to target API level 35. Play Store Docs
Android Min SDK26n/a
Android Gradle Plugin (AGP)8.1.1+8.6.0Target API level 34: AGP 8.1.1; Target API level 35: AGP 8.6.0, Android Docs
Android Kotlin Plugin1.9.0+1.9.25

Sample build gradle files

Below is a sample project's build.gradle.kts file to help you set up your project with the necessary configurations:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
  id("com.android.application") version "8.1.1" apply false
  kotlin("android") version "1.9.0" apply false
}
plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
}

android {
    namespace = "com.neurogine.example.myapplication"
    compileSdk = 34

    defaultConfig {
        applicationId = "com.neurogine.example.myapplication"
        minSdk = 26
        targetSdk = 34
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
    packagingOptions {
        resources {
            excludes += "/META-INF/{AL2.0,LGPL2.1}"
            excludes += "/META-INF/DEPENDENCIES"
            excludes += "/META-INF/LICENSE"
            excludes += "/META-INF/LICENSE.txt"
            excludes += "/META-INF/license.txt"
            excludes += "/META-INF/NOTICE"
            excludes += "/META-INF/NOTICE.txt"
            excludes += "/META-INF/notice.txt"
            excludes += "/META-INF/ASL2.0"
            excludes += "/META-INF/*.kotlin_module"
        }
    }
}

dependencies {
    //... other deps

    // Neurogine
    debugImplementation("com.neurogine.softpos.sdk:headless-stage:1.0.0")
    releaseImplementation("com.neurogine.softpos.sdk:headless:1.0.0")
}

On this page