feat: initialize GaCy Android project foundation (Kotlin, Jetpack Compose, Material 3)

This commit is contained in:
CAtlas0784 committed 2026-10-31 17:36:42 +07:00
commit 3eab1e7e49
61 files changed
+5821

No files matched your search

@@ -0,0 +1,37 @@
package com.gacy.android
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.os.Build
class GaCyApplication : Application() {
companion object {
const val CHANNEL_ID = "gacy_server_channel"
const val CHANNEL_NAME = "GaCy Server Service"
lateinit var instance: GaCyApplication
private set
}
override fun onCreate() {
super.onCreate()
instance = this
createNotificationChannel()
}
private fun createNotificationChannel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel(
CHANNEL_ID,
CHANNEL_NAME,
NotificationManager.IMPORTANCE_LOW
).apply {
description = "Background service for GaCy Game Server & Proxy"
setShowBadge(false)
}
val manager = getSystemService(NotificationManager::class.java)
manager?.createNotificationChannel(channel)
}
}
}