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

View File

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