Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redesign application ui #132

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d8dac06
feat: change ui
icai May 16, 2024
6e403ec
feat: i18n chinese
icai May 16, 2024
0378562
feat: theme color extend
icai May 17, 2024
cb4b905
feat: change ui
icai May 19, 2024
ce85035
Merge remote-tracking branch 'fork/main'
icai May 19, 2024
68868f3
fix
icai May 19, 2024
8160369
feat: SystemBar
icai May 19, 2024
2eabb32
feat: searchbar
icai May 19, 2024
65c1f62
feat: change ui
icai May 20, 2024
ab1194d
feat: change ui
icai May 20, 2024
112de66
feat: ListBox
icai May 20, 2024
b9cba7f
Merge remote-tracking branch 'fork/main'
icai May 20, 2024
9d8e37e
fix
icai May 20, 2024
aada9f4
fix
icai May 20, 2024
c27fb0d
fix: containerColor
icai May 20, 2024
05718af
feat: fun Modifier.bottomBorder
icai May 20, 2024
44ca333
fix
icai May 21, 2024
7a6f0a7
feat: Modifier fun
icai May 21, 2024
2926dc2
feat: overScroll effect
icai May 21, 2024
98d2390
feat: border style
icai May 22, 2024
b6714c6
feat: bottomBorder for list
icai May 22, 2024
e0138c2
feat: switch size
icai May 22, 2024
06f26ed
Merge branch 'forkmain'
icai Jun 16, 2024
ff95ac0
fix: review improvement
icai Jun 28, 2024
5522699
feat: add IndexedLazyColumn compose
icai Jun 28, 2024
77a187b
feat: alphabet index compose
icai Jul 3, 2024
49dfd14
fix
icai Jul 3, 2024
56b57cc
feat: dialog background
icai Jul 3, 2024
aee59e1
revert: undo iconImage column
icai Jul 19, 2024
d38206f
fix: toke near zero shaking bug
icai Jul 22, 2024
a6709c7
feat: LazyAlphabetIndexRow compose
icai Jul 22, 2024
22c483f
feat: LazyAlphabetIndexColumn bug
icai Jul 25, 2024
10d5e43
fix: LazyAlphabetIndexRow bug
icai Jul 28, 2024
8d479fa
fix: reset identityHash
icai Jul 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ android {
generateLocaleConfig = true
}

applicationVariants.all {
applicationVariants.all {
outputs.all {
this as BaseVariantOutputImpl
outputFileName = "VoiceNotify_v${defaultConfig.versionName}-${name}_$gitCommitHash.apk"
Expand All @@ -117,15 +117,16 @@ android {
dependencies {
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.activity:activity-compose:1.9.0")
implementation("androidx.compose.material3:material3:1.3.0-beta01")
implementation("androidx.compose.material:material-icons-extended-android:1.6.7")
implementation("androidx.compose.ui:ui-tooling-preview:1.6.7")
debugImplementation("androidx.compose.ui:ui-tooling:1.6.7")
implementation("androidx.compose.material3:material3:1.3.0-beta04")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build error: This breaks PreferenceDialogs.rememberTimePickerState() because TimePickerState.Saver() was removed in beta02. I suggest reverting to beta01 and I'll handle the migration.

implementation("androidx.compose.material:material-icons-extended-android:1.6.8")
implementation("androidx.compose.ui:ui-tooling-preview:1.6.8")
debugImplementation("androidx.compose.ui:ui-tooling:1.6.8")
implementation("androidx.navigation:navigation-compose:2.7.7")
implementation("androidx.glance:glance-appwidget:1.0.0")
implementation("androidx.glance:glance-appwidget:1.1.0")
implementation("androidx.preference:preference-ktx:1.2.1")
implementation("androidx.room:room-ktx:2.6.1")
ksp("androidx.room:room-compiler:2.6.1")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.24")
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.4")
implementation("com.google.accompanist:accompanist-permissions:0.34.0")
}
12 changes: 9 additions & 3 deletions app/schemas/com.pilot51.voicenotify.db.AppDatabase/2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "ae7f6f1a5c600a07f3be1875546a6874",
"identityHash": "b22a90d85b20cfe9a8ddd00924d4ac34",
"entities": [
{
"tableName": "apps",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`package` TEXT NOT NULL, `name` TEXT NOT NULL COLLATE NOCASE, `is_enabled` INTEGER, PRIMARY KEY(`package`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`package` TEXT NOT NULL, `name` TEXT NOT NULL COLLATE NOCASE, `is_enabled` INTEGER, `sortLetter` TEXT NOT NULL, PRIMARY KEY(`package`))",
"fields": [
{
"fieldPath": "packageName",
Expand All @@ -25,6 +25,12 @@
"columnName": "is_enabled",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "sortLetter",
"columnName": "sortLetter",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
Expand Down Expand Up @@ -202,7 +208,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, 'ae7f6f1a5c600a07f3be1875546a6874')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'b22a90d85b20cfe9a8ddd00924d4ac34')"
]
}
}
104 changes: 55 additions & 49 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,52 +14,58 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<application
android:name=".VNApplication"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:theme="@android:style/Theme.Material.NoActionBar">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".Service"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
android:exported="true">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<receiver
android:name=".AppWidgetReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/appwidget_info" />
</receiver>
</application>
</manifest>
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.VIBRATE" />

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<application
android:name=".VNApplication"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/Theme">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<receiver
android:name=".AppWidgetReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/appwidget_info" />
</receiver>

<service
android:name=".Service"
android:exported="true"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
</application>
</manifest>
Loading