SilverDROID - Dark Side Admin with CI/CD pipeline
- Android PWA/WASM launcher with glassmorphism UI - Loads https://admin.dark.side directly on launch - Complete GitLab CI/CD pipeline configuration - Automated builds for Debug, Release, and AAB - Full WASM support with optimized WebView - Material Design 3 theme - Comprehensive documentation Features: - Auto-load target URL on app launch - Glassmorphism components (frosted glass effects) - Full PWA/WASM support - Room database for future extensions - Jetpack Compose UI - CI/CD with artifact storage Built for SilverLABS
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package uk.silverlabs.silverdroid.data
|
||||
|
||||
import android.content.Context
|
||||
import androidx.room.Database
|
||||
import androidx.room.Room
|
||||
import androidx.room.RoomDatabase
|
||||
import uk.silverlabs.silverdroid.data.model.PwaApp
|
||||
|
||||
@Database(
|
||||
entities = [PwaApp::class],
|
||||
version = 1,
|
||||
exportSchema = true
|
||||
)
|
||||
abstract class PwaDatabase : RoomDatabase() {
|
||||
abstract fun pwaAppDao(): PwaAppDao
|
||||
|
||||
companion object {
|
||||
@Volatile
|
||||
private var INSTANCE: PwaDatabase? = null
|
||||
|
||||
fun getInstance(context: Context): PwaDatabase {
|
||||
return INSTANCE ?: synchronized(this) {
|
||||
val instance = Room.databaseBuilder(
|
||||
context.applicationContext,
|
||||
PwaDatabase::class.java,
|
||||
"pwa_database"
|
||||
)
|
||||
.fallbackToDestructiveMigration()
|
||||
.build()
|
||||
INSTANCE = instance
|
||||
instance
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user