File tree Expand file tree Collapse file tree 8 files changed +15
-18
lines changed
app-updater/src/main/java/com/king/app/updater
src/main/java/com/king/appupdater Expand file tree Collapse file tree 8 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 11## 版本日志
22
3+ #### v2.0.1:2025-8-31
4+ * 优化AppUpdater中属性的访问权限
5+
36#### v2.0.0:2025-8-30
47* 统一采用Kotlin进行了重构
58* 更新minSdk至21
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ AppUpdater 是一个轻量级开源库,专注于实现 App 版本更新功能
6161 ```gradle
6262
6363 //app-updater
64- implementation 'com.github.jenly1314.AppUpdater:app-updater:2.0.0 '
64+ implementation 'com.github.jenly1314.AppUpdater:app-updater:2.0.1 '
6565 //app-dialog
66- implementation 'com.github.jenly1314.AppUpdater:app-dialog:2.0.0 '
66+ implementation 'com.github.jenly1314.AppUpdater:app-dialog:2.0.1 '
6767
6868 ```
6969
@@ -419,12 +419,8 @@ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
419419
420420## 版本日志
421421
422- #### v2.0.0:2025-8-30
423- * 统一采用Kotlin进行了重构
424- * 更新minSdk至21
425- * 更新compileSdk至34
426- * 更新Gradle至v8.5
427- * 使用[ LogX] ( https://github.com/jenly1314/LogX ) 统一管理日志
422+ #### v2.0.1:2025-8-31
423+ * 优化AppUpdater中属性的访问权限
428424
429425#### [ 查看更多版本日志] ( CHANGELOG.md )
430426
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ class AppUpdater private constructor(builder: Builder) {
215215 /* *
216216 * 是否正在下载
217217 */
218+ @JvmStatic
218219 fun isDownloading () = internalDownloadState.value
219220
220221 }
Original file line number Diff line number Diff line change 1111 "type" : " SINGLE" ,
1212 "filters" : [],
1313 "attributes" : [],
14- "versionCode" : 25 ,
15- "versionName" : " 2.0.0 " ,
14+ "versionCode" : 26 ,
15+ "versionName" : " 2.0.1 " ,
1616 "outputFile" : " app-release.apk"
1717 }
1818 ],
Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ class MainActivity : AppCompatActivity() {
8888
8989 val permission = Manifest .permission.POST_NOTIFICATIONS
9090 // 检测是否有 android.permission.POST_NOTIFICATIONS 权限
91- if (PermissionUtils .checkPermission(this , permission)) {
92- // TODO 开始下载更新
93- AppUpdater (this , apkUrl).start()
94- } else {
91+ if (! PermissionUtils .checkPermission(this , permission)) {
9592 // 如果没有发送通知权限,则申请授权
9693 requestPermissionLauncher.launch(permission)
9794 }
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ android.useAndroidX=true
1515android.enableJetifier =true
1616android.nonTransitiveRClass = false
1717
18- VERSION_NAME =2.0.0
19- VERSION_CODE =25
18+ VERSION_NAME =2.0.1
19+ VERSION_CODE =26
2020GROUP =com.github.jenly1314.AppUpdater
2121
2222POM_DESCRIPTION =AppUpdater for Android
Original file line number Diff line number Diff line change 11// App
22def app_version = [:]
3- app_version. versionCode = 25
4- app_version. versionName = " 2.0.0 "
3+ app_version. versionCode = 26
4+ app_version. versionName = " 2.0.1 "
55ext. app_version = app_version
66
77// build version
You can’t perform that action at this time.
0 commit comments