initial commit
This commit is contained in:
49
IrisGlass/app/build.gradle
Normal file
49
IrisGlass/app/build.gradle
Normal file
@@ -0,0 +1,49 @@
|
||||
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.")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user