Skip to content

Commit

Permalink
Add stats
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Dec 22, 2024
1 parent 65b626f commit f70e0b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MeowBili/MeowBiliApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ public func tipWithText(_ text: String, symbol: String = "", time: Double = 3.0)
#if !os(watchOS)
class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
DarockKit.Network.shared.requestString("https://fapi.darock.top:65535/analyze/add/MLStatsiOSAppStartupCount") { _, _ in }

return true
}

Expand All @@ -406,6 +408,8 @@ class AppDelegate: NSObject, WKApplicationDelegate {
SDImageCache.shared.config.shouldCacheImagesInMemory = false
SDImageCache.shared.config.shouldUseWeakMemoryCache = true
SDImageCache.shared.clearMemory()

DarockKit.Network.shared.requestString("https://fapi.darock.top:65535/analyze/add/MLStatswatchOSAppStartupCount") { _, _ in }
}
}
#endif
Expand Down

0 comments on commit f70e0b8

Please sign in to comment.