Files
aris-old/IrisGlass/app/build.gradle

50 lines
1.4 KiB
Groovy
Raw Normal View History

2026-01-08 19:16:32 +00:00
plugins {
alias(libs.plugins.android.application)
}
android {
namespace 'sh.nym.irisglass'
compileSdk 19
defaultConfig {
applicationId "sh.nym.irisglass"
minSdk 19
targetSdk 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
// Glass Development Kit Preview (API 19) add-on provides com.google.android.glass.* classes.
// If you have it installed via the Android SDK Manager, this will pick up gdk.jar automatically.
def sdkDir = null
def lp = rootProject.file("local.properties")
if (lp.exists()) {
def p = new Properties()
lp.withInputStream { p.load(it) }
sdkDir = p.getProperty("sdk.dir")
}
if (sdkDir != null) {
def gdkJar = file("${sdkDir}/add-ons/addon-google_gdk-google-19/libs/gdk.jar")
if (gdkJar.exists()) {
compileOnly files(gdkJar)
} else {
logger.lifecycle("Glass GDK jar not found at: ${gdkJar}")
}
} else {
logger.lifecycle("No sdk.dir found; Glass GDK jar not configured.")
}
}