Skip to content

Commit

Permalink
修改包名等
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Nov 19, 2024
1 parent 231a46b commit 0f94b90
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@

本工程为野火IM Android App,开发过程中,充分考虑了二次开发和集成需求,可作为SDK集成到其他应用中,或者直接进行二次开发。


开发一套IM系统真的很艰辛,请路过的朋友们给点个star,支持我们坚持下去🙏🙏🙏🙏🙏

## 关于包名/applicationId
1. 开发者开发具体产品时,请勿直接使用本 demo 的包名/applicationId,我们会不定期修改包名/applicationId
2. 禁止将本产品用于非法目的,一经发现,我们将停止任何形式的技术支持

## 开发调试说明
1. JDK: 17
2. 我们采用最新稳定版Android Studio及对应的gradle进行开发,对于旧版本的IDE,我们没有测试,编译之类问题,需自行解决。
Expand Down
2 changes: 1 addition & 1 deletion chat/agconnect-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"client_id":"363427384201839680",
"client_secret":"D438F2D56536240581DC197C468900E6EA0E0FF37F563B79D7765B34A5077B7F",
"app_id":"100221325",
"package_name":"cn.wildfirechat.chat",
"package_name":"cn.wildfirechat.chat.open",
"api_key":"CV7m3BB7QS4BJqCKyrCkda06gp0tWFCMYzZP+a7I5NJHi7l4dTk0rP87aDCDh3dRU1sDrLOMiZr2bMNNKQ34zuwJ6KjT"
},
"service":{
Expand Down
2 changes: 1 addition & 1 deletion chat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
compileSdkVersion 34
ndkVersion '18.1.5063045'
defaultConfig {
applicationId "cn.wildfirechat.chat"
applicationId "cn.wildfirechat.chat.open"
minSdkVersion 21
targetSdkVersion 33
versionCode 55
Expand Down
2 changes: 1 addition & 1 deletion chat/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"client_info": {
"mobilesdk_app_id": "1:387942673236:android:74dd044e8c21c0e4d776c1",
"android_client_info": {
"package_name": "cn.wildfirechat.chat"
"package_name": "cn.wildfirechat.chat.open"
}
},
"oauth_client": [
Expand Down
4 changes: 4 additions & 0 deletions chat/src/main/java/cn/wildfire/chat/app/AppService.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@ public static void validateConfig(Context context) {
}
}
}

if (!BuildConfig.DEBUG && BuildConfig.APPLICATION_ID.startsWith("cn.wildfire")) {
Toast.makeText(context, "上线时,请勿直接使用野火的包名!!!", Toast.LENGTH_LONG).show();
}
}

@Override
Expand Down

0 comments on commit 0f94b90

Please sign in to comment.