g3-native-plugins 0.4.2

Dioxus plugins for mobile permissions, auth, storage, purchases, media, notifications, over-the-air updates, deep links, and platform integration.
Documentation
import org.gradle.api.tasks.bundling.AbstractArchiveTask

plugins {
    id("com.android.library")
    id("org.jetbrains.kotlin.android")
}

android {
    namespace = "dev.dioxus.g3_native_plugins.in_app_purchases"
    compileSdk = 34

    defaultConfig {
        minSdk = 24
        targetSdk = 34
        consumerProguardFiles("consumer-rules.pro")
    }

    buildTypes {
        getByName("release") {
            isMinifyEnabled = false
        }
        getByName("debug") {
            isMinifyEnabled = false
        }
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = "17"
    }
}

tasks.withType<AbstractArchiveTask>().configureEach {
    archiveBaseName.set("dx-native-in-app-purchases-plugin")
}

dependencies {
    // Not compileOnly, unlike the androidx dependencies elsewhere in this
    // crate: the host app already carries androidx, but it has no reason to
    // carry the billing library. There is also no alternative to weigh here
    // the way LocationManager stands in for the fused location provider —
    // Google Play billing is only reachable through this library.
    //
    // External Content Links require Billing Library 8.2.1 or newer. Check the
    // current submission deadline before shipping, because Google moves it.
    implementation("com.android.billingclient:billing:8.2.1")
}