Skip to content

Commit

Permalink
refactor: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ishenli committed Jul 22, 2024
1 parent d02aa84 commit 15071ca
Show file tree
Hide file tree
Showing 152 changed files with 1,436 additions and 1,023 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022-present Bytedance Inc and its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
## 说明

基于安卓最新的 jetpack 技术栈实现的一个仿微信的个人助理应用,开发的语言是 Java。
基于安卓最新的 jetpack 技术栈实现的个人助理应用,开发的语言是 Java。

### 相关技术
+ MVVM
+ Material Design 3
+ LiveData
+ Room
+ Retrofit2


### 相关应用

+ [chatbot 的 web 服务](https://github.com/workdance/chatbot-web)
+ [chatbot 的 ai 应用](https://github.com/workdance/chatbot-ai)

### 参考视觉稿

<img width="513" alt="image" src="https://github.com/user-attachments/assets/7be54d8b-03cc-48f9-917a-7eb1c5109e4b">
Expand All @@ -26,5 +32,12 @@ https://www.figma.com/design/cvpC33GRSIFRU1dD6QrCp4/%E5%BE%AE%E4%BF%A18.0%EF%BC%
`distributionUrl=file\:/${本地路径}/gradle-8.3-bin.zip`


### 协议
MIT
### 致谢

+ [wildfirechat提供的聊天界面功能实现](https://github.com/wildfirechat/android-chat?tab=readme-ov-file)



### License

项目基于 [MIT 协议](./LICENSE),请自由地享受和参与开源。
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ plugins {
}

android {
namespace 'com.example.wechat'
namespace 'com.workdance.chatbot'
compileSdk 34
dataBinding {
enabled = true
}
defaultConfig {
applicationId "com.example.wechat"
applicationId "com.workdance.chatbot"
minSdk 29
targetSdk 34
versionCode 1
Expand All @@ -35,8 +35,11 @@ android {
}

dependencies {
implementation libs.core

implementation libs.retrofit
implementation libs.retrofit2.converter.gson
implementation libs.gson
implementation libs.core
implementation libs.lombok
annotationProcessor libs.lombok

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.wechat;
package com.workdance.chatbot;

import android.content.Context;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.wechat;
package com.workdance.chatbot;

import static org.junit.Assert.assertEquals;

Expand All @@ -9,9 +9,9 @@
import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import com.example.wechat.repository.dao.UserDao;
import com.example.wechat.repository.database.AppDatabase;
import com.example.wechat.repository.entity.UserEntity;
import com.workdance.chatbot.repository.dao.UserDao;
import com.workdance.chatbot.repository.database.AppDatabase;
import com.workdance.chatbot.repository.entity.UserEntity;

import org.junit.After;
import org.junit.Before;
Expand Down
15 changes: 8 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,31 @@
<uses-permission android:name="android.permission.CAMERA"/>

<application
android:usesCleartextTraffic="true"
android:name=".MyApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config"
tools:targetApi="31">
<activity
android:name=".main.MainActivity"
android:name=".ui.main.MainActivity"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".chat.ChatActivity" android:exported="true" android:windowSoftInputMode="adjustPan"/>
<activity android:name=".EmotionActivity" android:exported="true"/>
<activity android:name=".user.UserInfoActivity" android:exported="true" android:label="用户信息"/>
<activity android:name=".user.ChangeMyNameActivity" android:exported="true"/>
<activity android:name=".user.UserInfoCreateActivity" android:exported="true"/>
<activity android:name=".ui.chat.ChatActivity" android:exported="true" android:windowSoftInputMode="adjustPan"/>
<activity android:name=".ui.EmotionActivity" android:exported="true"/>
<activity android:name=".ui.user.UserInfoActivity" android:exported="true" android:label="用户信息"/>
<activity android:name=".ui.user.ChangeMyNameActivity" android:exported="true"/>
<activity android:name=".ui.user.UserInfoCreateActivity" android:exported="true"/>
</application>

</manifest>
147 changes: 0 additions & 147 deletions app/src/main/java/com/example/wechat/api/ChatApi.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 15071ca

Please sign in to comment.