diff --git a/README.md b/README.md index 223740f..cc3121f 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 e65af02..3df88b0 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 ed4526c..e51e503 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() {