Skip to content

Commit

Permalink
feat(app): 添加腾讯企点下载链接获取功能
Browse files Browse the repository at this point in the history
- 在对话框中添加获取腾讯企点下载链接的按钮
- 更新字符串资源文件,添加相关提示文本
- 修改 MainActivity 中的逻辑,支持获取腾讯企点下载链接
- 更新 README 文件,增加腾讯企点相关商标说明
  • Loading branch information
ArcticFoxPro committed Nov 4, 2024
1 parent 056639c commit ffb7966
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ QQ 版本列表实用工具不能实现“检测到新测试版本下载直链
> QQ 版本列表实用工具始终坚守法律底线,秉持尊重与保护所有用户及第三方合法权益的原则。我们深切认识到任何可能存在的权益侵犯行为都会对权益方造成潜在影响,对此,我们表示由衷歉意,并承诺,一旦接到权益方的权益受到侵犯的通知,我们将立即依法启动核查程序,并在确认侵权事实后,迅速采取有效措施,以最大程度地消除不良影响,恢复并保障权益方的合法权益。敬请相关权益方在发现 QQ 版本列表实用工具存在任何侵权内容时,及时与我们取得联系,我们将竭诚为权益方提供必要的协助与支持。
> [!NOTE]
> “腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”等是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本项目对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”等的使用旨在注明和指向对应主体,并非表示对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”等商标的注册和拥有。
> “腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“腾讯企点”等是深圳市腾讯计算机系统有限公司和/或其关联公司的商标。本项目对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“腾讯企点”等的使用旨在注明和指向对应主体,并非表示对“腾讯”“QQ”“腾讯 QQ”“腾讯 TIM”“微信”“WeChat”“Weixin”“腾讯微信”“企业微信”“WeCom”“微信输入法”“WeType”“应用宝”“腾讯应用宝”“腾讯企点”等商标的注册和拥有。
>
> Android™ 是 Google LLC 的商标。
>
Expand Down Expand Up @@ -294,7 +294,7 @@ QQ 版本列表实用工具的诞生离不开以下开源项目,感谢以下
- [AndroidFastScroll(张海)](https://github.com/zhanghai/AndroidFastScroll),Licensed under [Apache License Version 2.0](https://github.com/zhanghai/AndroidFastScroll/blob/master/LICENSE)
- [Kotlin Coroutines on Android](https://github.com/Kotlin/kotlinx.coroutines),Licensed under [Apache License Version 2.0](https://github.com/Kotlin/kotlinx.coroutines/blob/master/LICENSE.txt)
- [Google Play services Plugins](https://github.com/google/play-services-plugins),Licensed under [Apache License Version 2.0](https://github.com/google/play-services-plugins/blob/main/LICENSE)
- [Apache Commons Compress](https://commons.apache.org/proper/commons-compress/),Licensed under [Apache License Version 2.0](https://github.com/apache/commons-compress/blob/master/LICENSE.txt)
- [Apache Commons™](https://commons.apache.org/),Licensed under [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)

## 商业服务鸣谢

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ class MainActivity : AppCompatActivity() {
"https://raw.githubusercontent.com/klxiaoniu/QQVersionList/refs/heads/master/DataListShared.md"
val intent = CustomTabsIntent.Builder().build()
intent.launchUrl(this@MainActivity, Uri.parse(url))
aboutDialog.dismiss()
}

btnAboutUpdate.setOnClickListener {
Expand Down Expand Up @@ -910,6 +909,12 @@ class MainActivity : AppCompatActivity() {
mapOf("packagename" to "com.tencent.wetype"), getWetype
)
}

getQidian.setOnClickListener {
tencentAppStoreStart(
mapOf("packagename" to "com.tencent.qidian"), getQidian
)
}
}
}

Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/layout/dialog_tencent_app_store.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
android:layout_height="wrap_content"
android:text="@string/getWeTypeLinkFromTencentAppStore" />

<com.google.android.material.button.MaterialButton
android:id="@+id/get_qidian"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/getQidianLinkFromTencentAppStore" />

<com.google.android.material.card.MaterialCardView
android:id="@+id/guess_dialog_warning"
style="?attr/materialCardViewOutlinedStyle"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/local_tim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
android:paddingEnd="6dp"
android:paddingBottom="4dp"
android:text="@string/basedOnQQVer"
android:textColor="?attr/colorSecondary"
android:textColor="?attr/colorOnSecondaryContainer"
android:textSize="10sp"
app:drawableStartCompat="@drawable/stack_line"
app:drawableTint="?attr/colorSecondary" />
app:drawableTint="?attr/colorOnSecondaryContainer" />

</com.google.android.material.card.MaterialCardView>
</LinearLayout>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-en-rUS/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">Specify the Target App for the Shiply Platform</string>
<string name="openSourceLicenseTitle">Open Source Licenses</string>
<string name="basedOnQQVer">Secondary Development Based on Android QQ %s</string>
<string name="getQidianLinkFromTencentAppStore">Get Tencent Qidian Download Link</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ru-rRU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rHK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,5 @@
<string name="shiplyTargetHelper">指定 Shiply 平台的目標應用</string>
<string name="openSourceLicenseTitle">開放原始碼許可</string>
<string name="basedOnQQVer">基於 Android QQ %s 二次開發</string>
<string name="getQidianLinkFromTencentAppStore">取得騰訊企點下載直鏈</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,5 @@
<string name="shiplyTargetHelper">指定请求 Shiply 平台的目标应用</string>
<string name="openSourceLicenseTitle">开放源代码许可</string>
<string name="basedOnQQVer">基于 Android QQ %s 二次开发</string>
<string name="getQidianLinkFromTencentAppStore">获取腾讯企点下载直链</string>
</resources>

0 comments on commit ffb7966

Please sign in to comment.