-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from ArcticFoxPro/master
新增 TIM 版本列表,新增“基于 QQNT 技术架构”标识
- Loading branch information
Showing
110 changed files
with
3,277 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 42 additions & 39 deletions
81
...aoniu/qqversionlist/TipTimeApplication.kt → ...m/xiaoniu/qqversionlist/QVTApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,43 @@ | ||
/* | ||
QQ Versions Tool for Android™ | ||
Copyright (C) 2023 klxiaoniu | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.xiaoniu.qqversionlist | ||
|
||
import android.app.Application | ||
import com.google.android.material.color.DynamicColors | ||
|
||
class TipTimeApplication : Application() { | ||
companion object { | ||
lateinit var instance: TipTimeApplication | ||
|
||
const val SHIPLY_DEFAULT_APPID = "537230561" | ||
const val SHIPLY_DEFAULT_SDK_VERSION = "1.3.36-RC01" | ||
|
||
const val EARLIEST_ACCESSIBILITY_VERSION = false | ||
} | ||
|
||
override fun onCreate() { | ||
// Android 12+ 动态颜色 | ||
DynamicColors.applyToActivitiesIfAvailable(this) | ||
instance = this | ||
super.onCreate() | ||
} | ||
/* | ||
QQ Versions Tool for Android™ | ||
Copyright (C) 2023 klxiaoniu | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.xiaoniu.qqversionlist | ||
|
||
import android.app.Application | ||
import com.google.android.material.color.DynamicColors | ||
|
||
class QVTApplication : Application() { | ||
companion object { | ||
lateinit var instance: com.xiaoniu.qqversionlist.QVTApplication | ||
|
||
const val SHIPLY_DEFAULT_APPID = "537230561" | ||
const val SHIPLY_DEFAULT_SDK_VERSION = "1.3.36-RC01" | ||
|
||
const val EARLIEST_ACCESSIBILITY_QQ_VERSION = false | ||
const val EARLIEST_ACCESSIBILITY_TIM_VERSION = false | ||
const val EARLIEST_QQNT_FRAMEWORK_QQ_VERSION_STABLE = "8.9.63" | ||
const val EARLIEST_QQNT_FRAMEWORK_TIM_VERSION = false | ||
} | ||
|
||
override fun onCreate() { | ||
// Android 12+ 动态颜色 | ||
DynamicColors.applyToActivitiesIfAvailable(this) | ||
instance = this | ||
super.onCreate() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/src/main/java/com/xiaoniu/qqversionlist/data/TIMVersionBean.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
QQ Versions Tool for Android™ | ||
Copyright (C) 2023 klxiaoniu | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.xiaoniu.qqversionlist.data | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* @param version TIM 版本号 | ||
* @param datetime TIM 版本发布日期 | ||
* @param fix TIM 版本特性描述 | ||
* @param new 未知,目前获取到的 `new` 全是空 | ||
* @param jsonString 该 TIM 版本 JSON 字符串详情 | ||
* @param displayType 卡片展示类型,0 为收起态,1 为展开态 | ||
* @param displayInstall 展示是否安装到本机的标签 | ||
* @param isQQNTFramework 该版本是否基于 QQNT 技术架构 | ||
*/ | ||
@Serializable | ||
data class TIMVersionBean( | ||
val version: String, | ||
val datetime: String, | ||
val fix: String, | ||
val new: String, | ||
|
||
var jsonString: String = "", | ||
var displayType: Int = 0, // 0为收起 | ||
var displayInstall: Boolean = false, // false 为不展示 | ||
var isAccessibility: Boolean = false, | ||
var isQQNTFramework: Boolean = false | ||
) |
Oops, something went wrong.