Files
Ensemble/android/app/build.gradle
T
Your NameandClaude e34a89e990 Fix seekbar tap, remove auth checkbox, add app signing & icon generation
UI Improvements:
- Fixed seekbar tap not moving slider by adding onChangeStart handler
- Added 200ms delay after seek to let server update position
- Removed "Requires authentication" checkbox from login screen

App Signing & Icon:
- Configured automatic keystore generation in GitHub workflow
- Updated build.gradle to use key.properties for release signing
- This eliminates the security warning when installing APK
- Workflow now generates launcher icons from assets/images/icon.png
- Icons will use Amass branding with #1a1a1a background

Technical Changes:
- Keystore created during CI/CD with 10000 day validity
- Signing config falls back to debug if key.properties doesn't exist
- key.properties and *.jks already in gitignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 19:29:46 +00:00

80 lines
2.0 KiB
Groovy

plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace "com.musicassistant.music_assistant"
compileSdk 35
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
signingConfigs {
release {
if (keystorePropertiesFile.exists()) {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
defaultConfig {
applicationId "com.musicassistant.music_assistant"
minSdk 21
targetSdk 35
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
signingConfig keystorePropertiesFile.exists() ? signingConfigs.release : signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {}