// SkateSpots background poller — a local Capacitor Android plugin. // Mirrors the official Capacitor plugin template; tune versions to match the // app's Capacitor major if a build complains. ext { androidxWorkVersion = project.hasProperty('androidxWorkVersion') ? rootProject.ext.androidxWorkVersion : '2.9.1' androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.13.1' } buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24" } } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { namespace "org.skatespots.background" compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35 defaultConfig { minSdk project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23 targetSdk project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35 } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } } repositories { google() mavenCentral() } dependencies { implementation project(':capacitor-android') implementation "androidx.work:work-runtime-ktx:$androidxWorkVersion" implementation "androidx.core:core-ktx:$androidxCoreVersion" }