38 lines
1.2 KiB
Groovy
38 lines
1.2 KiB
Groovy
// StepCounter — Godot 4 Android plugin (AAR)
|
||
// Derleme (Mac, Android SDK + JDK 17):
|
||
// 1. godot-lib.<sürüm>.release.aar dosyasını libs/ içine koy
|
||
// (Godot editöründen: AndroidStudio export template, veya
|
||
// https://github.com/godotengine/godot/releases içindeki
|
||
// godot-lib aar — Godot 4.6 ile eşleşmeli)
|
||
// 2. ./gradlew assembleRelease
|
||
// 3. Çıktı: build/outputs/aar/stepcounter-release.aar
|
||
// 4. AAR'ı res://addons/stepcounter/ altına kopyala
|
||
|
||
plugins {
|
||
id 'com.android.library'
|
||
id 'org.jetbrains.kotlin.android'
|
||
}
|
||
|
||
android {
|
||
namespace 'com.stepstead.stepcounter'
|
||
compileSdk 34
|
||
|
||
defaultConfig {
|
||
minSdk 24 // Android 7.0 — TYPE_STEP_COUNTER için yeterli
|
||
targetSdk 34
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_17
|
||
targetCompatibility JavaVersion.VERSION_17
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '17'
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
// Godot kütüphanesi — sürüm Godot editörüyle birebir eşleşmeli (4.6)
|
||
compileOnly fileTree(dir: 'libs', include: ['godot-lib.*.aar'])
|
||
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.1.0'
|
||
}
|