From 20545f71be2da7ab191d17918b2c4450521b0773 Mon Sep 17 00:00:00 2001 From: Honey Date: Thu, 28 May 2026 00:34:40 +0200 Subject: [PATCH] chore: add Android project files to version control Adds build config, Gradle wrapper, resources, and gitignore. Kotlin sources, manifests and app build.gradle were already tracked. Excludes build output, .gradle cache, .idea, local.properties, and release APK. Co-Authored-By: Claude Sonnet 4.6 --- android/.gitignore | 12 ++++++++++++ .../app/src/main/res/drawable/ic_launcher.xml | 13 +++++++++++++ .../src/main/res/drawable/ic_notification.xml | 11 +++++++++++ .../app/src/main/res/layout/activity_main.xml | 12 ++++++++++++ android/app/src/main/res/values/strings.xml | 4 ++++ android/app/src/main/res/values/themes.xml | 8 ++++++++ .../app/src/main/res/xml/automotive_app_desc.xml | 4 ++++ .../src/main/res/xml/network_security_config.xml | 9 +++++++++ android/build.gradle.kts | 4 ++++ android/gradle.properties | 4 ++++ android/gradle/wrapper/gradle-wrapper.properties | 7 +++++++ android/local.properties.example | 8 ++++++++ android/settings.gradle.kts | 16 ++++++++++++++++ 13 files changed, 112 insertions(+) create mode 100644 android/.gitignore create mode 100644 android/app/src/main/res/drawable/ic_launcher.xml create mode 100644 android/app/src/main/res/drawable/ic_notification.xml create mode 100644 android/app/src/main/res/layout/activity_main.xml create mode 100644 android/app/src/main/res/values/strings.xml create mode 100644 android/app/src/main/res/values/themes.xml create mode 100644 android/app/src/main/res/xml/automotive_app_desc.xml create mode 100644 android/app/src/main/res/xml/network_security_config.xml create mode 100644 android/build.gradle.kts create mode 100644 android/gradle.properties create mode 100644 android/gradle/wrapper/gradle-wrapper.properties create mode 100644 android/local.properties.example create mode 100644 android/settings.gradle.kts diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..7d6e89f --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,12 @@ +# Build output +.gradle/ +build/ +app/build/ +app/release/ + +# Local config (contains SDK path and server URL — never commit) +local.properties + +# IDE +.idea/ +*.iml diff --git a/android/app/src/main/res/drawable/ic_launcher.xml b/android/app/src/main/res/drawable/ic_launcher.xml new file mode 100644 index 0000000..055a0db --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launcher.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/app/src/main/res/drawable/ic_notification.xml b/android/app/src/main/res/drawable/ic_notification.xml new file mode 100644 index 0000000..69356ea --- /dev/null +++ b/android/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,11 @@ + + + + diff --git a/android/app/src/main/res/layout/activity_main.xml b/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..75d037a --- /dev/null +++ b/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..5c2bdbd --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + + NovaSonic + diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..b7bc817 --- /dev/null +++ b/android/app/src/main/res/values/themes.xml @@ -0,0 +1,8 @@ + + + + diff --git a/android/app/src/main/res/xml/automotive_app_desc.xml b/android/app/src/main/res/xml/automotive_app_desc.xml new file mode 100644 index 0000000..e64f442 --- /dev/null +++ b/android/app/src/main/res/xml/automotive_app_desc.xml @@ -0,0 +1,4 @@ + + + + diff --git a/android/app/src/main/res/xml/network_security_config.xml b/android/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..85c17bb --- /dev/null +++ b/android/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 0000000..7629126 --- /dev/null +++ b/android/build.gradle.kts @@ -0,0 +1,4 @@ +plugins { + alias(libs.plugins.android.application) apply false + alias(libs.plugins.kotlin.android) apply false +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..f0a2e55 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +android.useAndroidX=true +kotlin.code.style=official +android.nonTransitiveRClass=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..37f853b --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/android/local.properties.example b/android/local.properties.example new file mode 100644 index 0000000..779a9bd --- /dev/null +++ b/android/local.properties.example @@ -0,0 +1,8 @@ +# Copy this file to local.properties and set your server URL. +# local.properties is gitignored — never commit your URL or credentials. + +# Your NovaSonic / Navidrome server URL (no trailing slash) +NOVASONIC_URL=http://192.168.1.100:4533 + +# Android SDK path (set automatically by Android Studio) +# sdk.dir=/home/user/Android/Sdk diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts new file mode 100644 index 0000000..ee2803c --- /dev/null +++ b/android/settings.gradle.kts @@ -0,0 +1,16 @@ +pluginManagement { + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} +rootProject.name = "NovaSonic" +include(":app")