feat(android): 初始化Android项目基础框架及推送功能

- 新增amazy和titanplayz两个项目的build.gradle配置文件
- 配置应用的包名、版本号及资源颜色和字符串
- 集成Firebase服务,添加google-services.json文件和相关依赖
- 添加签名配置及打包输出重命名规则
- 新增基础Activity(IndexActivity)实现FCM推送订阅功能
- 新增自定义Firebase消息服务(MyFirebaseMessageingService)处理通知显示
- 添加应用基础主题及样式配置文件
- 设置网络安全配置,支持明文流量
- 添加资源文件(启动背景big_bg.xml及应用logo)
- 配置应用权限及推送相关权限
- 创建Application子类WebApplication初始化日志和上下文
- 完成文件路径配置,支持文件访问权限适配Android 7.0及以上系统
This commit is contained in:
2026-07-31 17:22:52 +08:00
parent e3fdac7bb0
commit 759a262658
32 changed files with 1146 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<root-path name="app_root_path" path="/"/>
<external-path name="app_external_path" path="/"/>
<external-cache-path name="app_external_cache_path" path="/"/>
<external-files-path name="app_external_files_path" path="/"/>
<files-path name="app_files_path" path="/"/>
<cache-path name="app_cache_path" path="/"/>
</paths>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding= "utf-8"?>
<resources>
<paths >
<external-path name="external_files" path="."/>
<root-path name="root" path="." />
<files-path name="files" path="." />
<cache-path name="cache" path="." />
<external-files-path name="external_files_f" path="." />
<external-cache-path name="external_cache" path="." />
</paths >
</resources>
<!-- 适配7.0及其以上配合com.eva.android.OpenFileUtil用于解决调用系统Intent查看大文件内
容、拍照保存图片的功能时出现"android.os.FileUriExposedException"异常的问题 -->