plugins {
    id 'com.android.library'
}

ext.libraryName = "GodotGooglePlayBilling"
ext.libraryVersionCode = 3
ext.libraryVersionName = "7.1.0"

android {
    namespace 'com.magikelle.godotgoogleplaybilling'
    compileSdk 35

    defaultConfig {
        minSdk 21
        targetSdk 35
        versionCode libraryVersionCode
        versionName libraryVersionName
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    libraryVariants.all { variant ->
        variant.outputs.all {
            outputFileName = "$libraryName-$libraryVersionName-${variant.name}.aar"
        }

    }
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.android.billingclient:billing:7.1.0'
    compileOnly 'org.godotengine:godot:3.5.2.stable'
}