Commit 90d53f2
Fastace
refactor: 重命名应用名为 DataBackup Revived
## 核心变更
### 应用标识修改
- 将 applicationId 从 `com.xayah.databackup` 改为 `com.xayah.databackup.revived`
- 保持 namespace 为 `com.xayah.databackup` 以兼容现有代码结构
- 更新应用名称为 "DataBackup Revived"
- 版本号从 3.0.0 开始,使用 gradle/libs.versions.toml 管理
### ContentProvider 冲突修复
- 修改所有 flavor 模块的 AndroidManifest.xml,将 ContentProvider authority 从硬编码改为 `${applicationId}` 占位符
- 更新 CrashProvider 和 FileSharingProvider 的 authority 配置
- 修改 LogUtil.kt 中的 FileSharingProvider authority 引用,使用 `context.packageName` 动态获取
### AndroidManifest 类名修复
- 将相对类名(如 `.DataBackupApplication`)改为完整类名(`com.xayah.databackup.DataBackupApplication`)
- 修复因 namespace 与代码包名不一致导致的 ClassNotFoundException
### Firebase 配置更新
- 替换为新的 Firebase 项目配置(android-databackup-s3-9d3ea)
- 为所有 flavor 变体(alpha, foss, premium)添加新包名配置
- 移除 feature module 的 Google Services 插件依赖
### 更新检查功能调整
- 更新 GitHub 仓库链接指向新的 fork 仓库
- 修改 APK 下载链接以匹配新的包名格式
### 向后兼容性
- 新旧版本可在同一设备上共存(不同的 applicationId)
- ContentProvider authority 使用动态包名,避免冲突
Breaking Changes: 由于 applicationId 变更,这是一个全新的应用,用户无法从旧版本直接升级,需要安装新版本。
---
refactor: Rename application package to DataBackup Revived
## Core Changes
### Application Identity Modifications
- Changed applicationId from `com.xayah.databackup` to `com.xayah.databackup.revived`
- Kept namespace as `com.xayah.databackup` to maintain compatibility with existing code structure
- Updated application display name to "DataBackup Revived"
- Reset version to 3.0.0, managed via gradle/libs.versions.toml
### ContentProvider Authority Conflict Resolution
- Modified AndroidManifest.xml in all flavor modules to use `${applicationId}` placeholder instead of hardcoded authorities
- Updated CrashProvider and FileSharingProvider authorities configuration
- Modified FileSharingProvider authority reference in LogUtil.kt to use `context.packageName` for dynamic retrieval
### AndroidManifest Class Path Fixes
- Changed relative class names (e.g., `.DataBackupApplication`) to fully qualified names (`com.xayah.databackup.DataBackupApplication`)
- Fixed ClassNotFoundException caused by namespace and actual package name mismatch
- Updated Application, SplashActivity, and MainActivity class declarations in manifests
### Firebase Project Migration
- Created new Firebase project `android-databackup-s3-9d3ea`
- Registered three application variants in Firebase Console:
- `com.xayah.databackup.revived.alpha`
- `com.xayah.databackup.revived.foss`
- `com.xayah.databackup.revived.premium`
- Replaced google-services.json with new project configuration
- Removed unnecessary Firebase plugin dependencies from feature modules
### Update Check Configuration Updates
- Updated GitHub repository URL to point to the new forked repository
- Modified APK download URLs to match new package naming format
- Updated relevant constants in ConstantUtil
### Backward Compatibility
- Old and new versions can coexist on the same device (different applicationIds)
- ContentProvider authorities use dynamic package names to avoid conflicts
**Breaking Changes**: Due to the applicationId change, this is considered a completely new application. Users cannot upgrade directly from the old version and must install the new version separately.1 parent 7e7a364 commit 90d53f2
16 files changed
Lines changed: 67 additions & 118 deletions
File tree
- source
- app
- src/main
- res
- values-zh-rCN
- values
- core
- datastore/src/main/kotlin/com/xayah/core/datastore
- network/src/main/kotlin/com/xayah/core/network/retrofit
- provider/src/main
- ui/src/main/kotlin/com/xayah/core/ui/component
- util/src/main/kotlin/com/xayah/core/util
- feature
- flavor
- alpha/src/main
- foss/src/main
- main/dashboard/src/main/kotlin/com/xayah/feature/main/dashboard
- gradle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
57 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | | - | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments