summaryrefslogtreecommitdiff
path: root/platform/android/java/plugins/godotpayment/build.gradle
blob: fb3aa8bba2b295a57327a4b6aebd9d1a521f74e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apply plugin: 'com.android.library'

android {
    compileSdkVersion versions.compileSdk
    buildToolsVersion versions.buildTools

    defaultConfig {
        minSdkVersion versions.minSdk
        targetSdkVersion versions.targetSdk
    }

    libraryVariants.all { variant ->
        variant.outputs.all { output ->
            output.outputFileName = "GodotPayment.${variant.name}.aar"
        }
    }

}

dependencies {
    implementation libraries.supportCoreUtils
    implementation libraries.v4Support
    implementation 'com.android.billingclient:billing:2.2.1'

    if (rootProject.findProject(":lib")) {
        compileOnly project(":lib")
    } else if (rootProject.findProject(":godot:lib")) {
        compileOnly project(":godot:lib")
    } else {
        compileOnly fileTree(dir: 'libs', include: ['godot-lib*.aar'])
    }
}