ktlint: Reformat root classes

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2026-01-01 11:31:56 +08:00
parent c6ff0ffd9b
commit be13f86a37
3 changed files with 10 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import com.aurora.gplayapi.helpers.contracts.TopChartsContract
typealias MR = com.google.android.material.R.attr typealias MR = com.google.android.material.R.attr
typealias TopChartStash = MutableMap<TopChartsContract.Type, MutableMap<TopChartsContract.Chart, StreamCluster>> typealias TopChartStash =
MutableMap<TopChartsContract.Type, MutableMap<TopChartsContract.Chart, StreamCluster>>
typealias HomeStash = MutableMap<StreamContract.Category, StreamBundle> typealias HomeStash = MutableMap<StreamContract.Category, StreamBundle>
typealias CategoryStash = MutableMap<Category.Type, List<Category>> typealias CategoryStash = MutableMap<Category.Type, List<Category>>
typealias AppStreamStash = MutableMap<String, StreamBundle>

View File

@@ -44,10 +44,10 @@ import com.aurora.store.util.PackageUtil
import com.aurora.store.util.Preferences import com.aurora.store.util.Preferences
import com.google.android.material.color.DynamicColors import com.google.android.material.color.DynamicColors
import dagger.hilt.android.HiltAndroidApp import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject
import kotlinx.coroutines.MainScope import kotlinx.coroutines.MainScope
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import org.lsposed.hiddenapibypass.HiddenApiBypass import org.lsposed.hiddenapibypass.HiddenApiBypass
import javax.inject.Inject
@HiltAndroidApp @HiltAndroidApp
class AuroraApp : Application(), Configuration.Provider, SingletonImageLoader.Factory { class AuroraApp : Application(), Configuration.Provider, SingletonImageLoader.Factory {
@@ -91,14 +91,14 @@ class AuroraApp : Application(), Configuration.Provider, SingletonImageLoader.Fa
// Required for Shizuku installer // Required for Shizuku installer
if (isPAndAbove) HiddenApiBypass.addHiddenApiExemptions("I", "L") if (isPAndAbove) HiddenApiBypass.addHiddenApiExemptions("I", "L")
//Create Notification Channels // Create Notification Channels
NotificationUtil.createNotificationChannel(this) NotificationUtil.createNotificationChannel(this)
// Initialize Download and Update helpers to observe and trigger downloads // Initialize Download and Update helpers to observe and trigger downloads
downloadHelper.init() downloadHelper.init()
updateHelper.init() updateHelper.init()
//Register broadcast receiver for package install/uninstall // Register broadcast receiver for package install/uninstall
ContextCompat.registerReceiver( ContextCompat.registerReceiver(
this, this,
object : PackageManagerReceiver() {}, object : PackageManagerReceiver() {},
@@ -109,10 +109,8 @@ class AuroraApp : Application(), Configuration.Provider, SingletonImageLoader.Fa
CommonUtil.cleanupInstallationSessions(applicationContext) CommonUtil.cleanupInstallationSessions(applicationContext)
} }
override fun newImageLoader(context: Context): ImageLoader { override fun newImageLoader(context: Context): ImageLoader = ImageLoader(this).newBuilder()
return ImageLoader(this).newBuilder() .crossfade(true)
.crossfade(true) .components { add(OkHttpNetworkFetcherFactory(callFactory = okHttpClient)) }
.components { add(OkHttpNetworkFetcherFactory(callFactory = okHttpClient)) } .build()
.build()
}
} }

View File

@@ -96,7 +96,6 @@ class MainActivity : AppCompatActivity() {
.commitAllowingStateLoss() .commitAllowingStateLoss()
} }
} }
} }
NetworkStatus.UNAVAILABLE -> { NetworkStatus.UNAVAILABLE -> {
@@ -154,7 +153,5 @@ class MainActivity : AppCompatActivity() {
} }
} }
private fun isIntroDone(): Boolean { private fun isIntroDone(): Boolean = Preferences.getBoolean(this, Preferences.PREFERENCE_INTRO)
return Preferences.getBoolean(this@MainActivity, Preferences.PREFERENCE_INTRO)
}
} }