From ba816ad86628c3bf5e9b8af0987ddf2cb741fca8 Mon Sep 17 00:00:00 2001 From: Yenaly Date: Mon, 21 Oct 2024 18:49:29 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E8=87=B3v0.15.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- app/build.gradle.kts | 2 +- .../main/java/com/yenaly/han1meviewer/HanimeApplication.kt | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 223740f1..cc3121fc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 要使用此应用,您的 Android 版本必须**不小于 7.0**。 -本项目仅用于学习和交流代码,不可闭源。 +本项目仅用于学习和交流代码。 An **unofficial** [Hanime1](https://hanime1.me/) Application for Android. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e65af023..3df88b03 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -44,7 +44,7 @@ android { applicationId = "com.yenaly.han1meviewer" minSdk = property("min.sdk")?.toString()?.toIntOrNull() targetSdk = property("target.sdk")?.toString()?.toIntOrNull() - val (code, name) = createVersion(major = 0, minor = 15, patch = 2) + val (code, name) = createVersion(major = 0, minor = 15, patch = 5) versionCode = code versionName = name diff --git a/app/src/main/java/com/yenaly/han1meviewer/HanimeApplication.kt b/app/src/main/java/com/yenaly/han1meviewer/HanimeApplication.kt index ed4526c9..e51e503d 100644 --- a/app/src/main/java/com/yenaly/han1meviewer/HanimeApplication.kt +++ b/app/src/main/java/com/yenaly/han1meviewer/HanimeApplication.kt @@ -47,6 +47,11 @@ class HanimeApplication : YenalyApplication() { DynamicColors.applyToActivitiesIfAvailable(this) HProxySelector.rebuildNetwork() + initFirebase() + initNotificationChannel() + } + + private fun initFirebase() { // 用于处理 Firebase Analytics 初始化 Firebase.analytics.setAnalyticsCollectionEnabled(Preferences.isAnalyticsEnabled) // 用于处理 Firebase Crashlytics 初始化 @@ -74,7 +79,6 @@ class HanimeApplication : YenalyApplication() { AppViewModel.getLatestVersion(delayMillis = 200) } } - initNotificationChannel() } private fun initNotificationChannel() {