- Remove pixel10.keystore from repository - Move signing passwords to local.properties (gitignored) - Add *.keystore and *.jks to .gitignore - build.gradle.kts now reads credentials from local.properties After pulling, create local.properties with: KEYSTORE_FILE=pixel10.keystore KEYSTORE_PASSWORD=<your-password> KEY_ALIAS=pixel10 KEY_PASSWORD=<your-password>
96 lines
2.9 KiB
Plaintext
96 lines
2.9 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.pixel10.ai"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "com.pixel10.ai"
|
|
minSdk = 31
|
|
targetSdk = 35
|
|
versionCode = 8
|
|
versionName = "1.8.0"
|
|
}
|
|
|
|
val localProps = rootProject.file("local.properties")
|
|
val props = java.util.Properties().apply {
|
|
if (localProps.exists()) load(localProps.inputStream())
|
|
}
|
|
val keystoreFile = rootProject.file(props.getProperty("KEYSTORE_FILE", "pixel10.keystore"))
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
if (keystoreFile.exists() && props.containsKey("KEYSTORE_PASSWORD")) {
|
|
storeFile = keystoreFile
|
|
storePassword = props.getProperty("KEYSTORE_PASSWORD")
|
|
keyAlias = props.getProperty("KEY_ALIAS", "pixel10")
|
|
keyPassword = props.getProperty("KEY_PASSWORD")
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
val releaseSigning = signingConfigs.getByName("release")
|
|
if (releaseSigning.storeFile != null) {
|
|
signingConfig = releaseSigning
|
|
}
|
|
}
|
|
debug {
|
|
val releaseSigning = signingConfigs.getByName("release")
|
|
if (releaseSigning.storeFile != null) {
|
|
signingConfig = releaseSigning
|
|
}
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// AndroidX
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
|
implementation("androidx.activity:activity-ktx:1.9.3")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
implementation("com.google.android.material:material:1.12.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.2.0")
|
|
|
|
// ML Kit GenAI — Gemini Nano via AICore (recommended for Pixel 10)
|
|
implementation("com.google.mlkit:genai-prompt:1.0.0-beta1")
|
|
|
|
// MediaPipe LLM Inference — legacy fallback for .task/.bin models
|
|
implementation("com.google.mediapipe:tasks-genai:0.10.24")
|
|
|
|
// LiteRT-LM — primary backend for Gemma 3n .litertlm models
|
|
implementation("com.google.ai.edge.litertlm:litertlm-android:0.9.0-alpha05")
|
|
|
|
// Embedded HTTP server
|
|
implementation("org.nanohttpd:nanohttpd:2.3.1")
|
|
|
|
// JSON
|
|
implementation("com.google.code.gson:gson:2.11.0")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
}
|