Skip to content

Commit

Permalink
feat: selector_core
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed May 18, 2023
1 parent dcb86b3 commit 0038d5e
Show file tree
Hide file tree
Showing 91 changed files with 1,774 additions and 1,340 deletions.
8 changes: 5 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {

@Suppress("UnstableApiUsage")
android {
namespace = "li.songe.gkd"
compileSdk = libs.versions.android.compileSdk.get().toInt()
buildToolsVersion = libs.versions.android.buildToolsVersion.get()

Expand All @@ -35,7 +36,6 @@ android {

lint {
disable.add("ModifierFactoryUnreferencedReceiver")
// baseline = file("lint-baseline.xml")
}

signingConfigs {
Expand Down Expand Up @@ -85,6 +85,7 @@ android {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
buildFeatures {
buildConfig = true
compose = true
}
composeOptions {
Expand All @@ -108,12 +109,14 @@ android {
}

dependencies {
implementation(project(mapOf("path" to ":selector")))
implementation(project(mapOf("path" to ":selector_core")))
implementation(project(mapOf("path" to ":selector_android")))
implementation(project(mapOf("path" to ":router")))

implementation(libs.androidx.appcompat)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.localbroadcastmanager)

implementation(libs.compose.ui)
implementation(libs.compose.material)
Expand Down Expand Up @@ -146,7 +149,6 @@ dependencies {
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)

implementation(libs.google.material)
implementation(libs.google.accompanist.drawablepainter)
implementation(libs.google.accompanist.placeholder.material)

Expand Down
24 changes: 15 additions & 9 deletions app/schemas/li.songe.gkd.db.AppDatabase/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "5e3c352578a63c3fccbb5e3fba31c89d",
"identityHash": "2083d8585fffd897fde3733958e356f8",
"entities": [
{
"tableName": "subs_item",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `ctime` INTEGER NOT NULL, `mtime` INTEGER NOT NULL, `enable` INTEGER NOT NULL, `comment` TEXT NOT NULL, `update_url` TEXT NOT NULL, `file_path` TEXT NOT NULL, `index` INTEGER NOT NULL)",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `ctime` INTEGER NOT NULL, `mtime` INTEGER NOT NULL, `enable` INTEGER NOT NULL, `name` TEXT NOT NULL, `update_url` TEXT NOT NULL, `version` INTEGER NOT NULL, `file_path` TEXT NOT NULL, `index` INTEGER NOT NULL)",
"fields": [
{
"fieldPath": "id",
Expand All @@ -33,8 +33,8 @@
"notNull": true
},
{
"fieldPath": "comment",
"columnName": "comment",
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
Expand All @@ -44,6 +44,12 @@
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "version",
"columnName": "version",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "filePath",
"columnName": "file_path",
Expand All @@ -58,10 +64,10 @@
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
],
"autoGenerate": true
]
},
"indices": [
{
Expand Down Expand Up @@ -136,10 +142,10 @@
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
],
"autoGenerate": true
]
},
"indices": [],
"foreignKeys": []
Expand All @@ -148,7 +154,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5e3c352578a63c3fccbb5e3fba31c89d')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2083d8585fffd897fde3733958e356f8')"
]
}
}
154 changes: 0 additions & 154 deletions app/schemas/li.songe.gkd.db.AppDatabase/2.json

This file was deleted.

Loading

0 comments on commit 0038d5e

Please sign in to comment.