Skip to content

Commit 51f70aa

Browse files
committed
# AIAPI v2.0 版本正式发布!
## 「新增」 - 支持发送图片、查看已发送图片 - 支持在聊天框中选择模型 - 适配大屏布局 - 添加欢迎页面,将在未配置模型时展示 - 如果 API 提供商支持,可显示响应速率以及 token 用量 ## 「优化」 - 重构用户界面,多项细节优化,体验更流畅 - 优化重名消息展示效果
1 parent e347261 commit 51f70aa

13 files changed

Lines changed: 1888 additions & 1135 deletions

File tree

.idea/deploymentTargetSelector.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
alias(libs.plugins.android.application)
3-
//alias(libs.plugins.kotlin.android)
43
alias(libs.plugins.kotlin.compose)
54
}
65

@@ -12,8 +11,8 @@ android {
1211
applicationId = "com.xjyzs.aiapi"
1312
minSdk = 29
1413
targetSdk = 36
15-
versionCode = 10
16-
versionName = "1.2.3"
14+
versionCode = 11
15+
versionName = "2.0.0"
1716

1817
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1918
androidResources. localeFilters+= listOf("zh")
@@ -130,6 +129,10 @@ dependencies {
130129
implementation(libs.androidx.ui)
131130
//implementation(libs.androidx.ui.graphics)
132131
implementation(libs.androidx.material3)
132+
implementation(libs.androidx.compose.adaptive)
133+
implementation(libs.androidx.compose.material3)
134+
implementation(libs.androidx.ui.graphics)
135+
implementation(libs.androidx.ui.tooling.preview)
133136
testImplementation(libs.junit)
134137
androidTestImplementation(libs.androidx.junit)
135138
androidTestImplementation(libs.androidx.espresso.core)
@@ -139,9 +142,15 @@ dependencies {
139142
debugImplementation(libs.androidx.ui.test.manifest)
140143

141144
implementation(libs.okhttp)
145+
implementation(libs.okhttp.coroutines)
142146
implementation(libs.gson)
143147
implementation(libs.androidx.lifecycle.viewmodel.compose)
144148
implementation(libs.androidx.material.icons.extended)
145149
//implementation(libs.androidx.material)
146150
implementation(libs.androidx.lifecycle.process)
151+
implementation("io.coil-kt.coil3:coil-compose:3.4.0")
152+
implementation("io.coil-kt.coil3:coil-network-okhttp:3.4.0")
153+
implementation("com.jvziyaoyao.scale:image-viewer:1.1.1-beta.3")
154+
// implementation(libs.markdown.parser)
155+
// implementation(libs.markdown.renderer)
147156
}

app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,31 @@
77

88
<application
99
android:allowBackup="true"
10-
android:usesCleartextTraffic="true"
1110
android:dataExtractionRules="@xml/data_extraction_rules"
1211
android:fullBackupContent="@xml/backup_rules"
1312
android:icon="@drawable/ic_launcher"
1413
android:label="@string/app_name"
1514
android:supportsRtl="true"
1615
android:theme="@style/Theme.AIAPI"
16+
android:usesCleartextTraffic="true"
1717
tools:targetApi="31">
18+
<activity
19+
android:name=".WelcomeActivity"
20+
android:exported="true"
21+
android:label="@string/title_activity_welcome"
22+
android:theme="@style/Theme.AIAPI" />
1823
<activity
1924
android:name=".SettingsActivity"
20-
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
25+
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|uiMode"
2126
android:exported="true"
2227
android:label="@string/title_activity_settings"
2328
android:theme="@style/Theme.AIAPI" />
2429
<activity
2530
android:name=".MainActivity"
26-
android:windowSoftInputMode="adjustResize"
27-
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
31+
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|uiMode"
2832
android:exported="true"
29-
android:theme="@style/Theme.AIAPI">
33+
android:theme="@style/Theme.AIAPI"
34+
android:windowSoftInputMode="adjustResize">
3035
<intent-filter>
3136
<action android:name="android.intent.action.MAIN" />
3237

@@ -35,4 +40,4 @@
3540
</activity>
3641
</application>
3742

38-
</manifest>
43+
</manifest>

0 commit comments

Comments
 (0)