66 lines
2.7 KiB
Groovy
66 lines
2.7 KiB
Groovy
ext {
|
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
// Unity LevelPlay (Maven Central: com.unity3d.ads-mediation:mediation-sdk). Override from the app's variables.gradle
|
|
// with `levelPlayVersion = '9.x.y'` to pin a different SDK.
|
|
levelPlayVersion = project.hasProperty('levelPlayVersion') ? rootProject.ext.levelPlayVersion : '9.6.1'
|
|
playServicesAdsIdentifierVersion = project.hasProperty('playServicesAdsIdentifierVersion') ? rootProject.ext.playServicesAdsIdentifierVersion : '18.1.0'
|
|
playServicesAppSetVersion = project.hasProperty('playServicesAppSetVersion') ? rootProject.ext.playServicesAppSetVersion : '16.0.0'
|
|
playServicesBasementVersion = project.hasProperty('playServicesBasementVersion') ? rootProject.ext.playServicesBasementVersion : '18.1.0'
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
namespace = "com.voxgames.capacitor.levelplay"
|
|
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
defaultConfig {
|
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
versionCode 1
|
|
versionName "1.0"
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
lintOptions {
|
|
abortOnError = false
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_21
|
|
targetCompatibility JavaVersion.VERSION_21
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(':capacitor-android')
|
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
|
|
// LevelPlay SDK (ironSource Ads network built in; add mediation adapters in the app module).
|
|
implementation "com.unity3d.ads-mediation:mediation-sdk:$levelPlayVersion"
|
|
// GAID + App Set ID, as required by the LevelPlay Android integration guide.
|
|
implementation "com.google.android.gms:play-services-ads-identifier:$playServicesAdsIdentifierVersion"
|
|
implementation "com.google.android.gms:play-services-appset:$playServicesAppSetVersion"
|
|
implementation "com.google.android.gms:play-services-basement:$playServicesBasementVersion"
|
|
|
|
testImplementation "junit:junit:$junitVersion"
|
|
}
|