ktlint: Format source directories other than main
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -11,7 +11,5 @@ class HiltInstrumentationTestRunner: AndroidJUnitRunner() {
|
|||||||
cl: ClassLoader?,
|
cl: ClassLoader?,
|
||||||
className: String?,
|
className: String?,
|
||||||
context: Context?
|
context: Context?
|
||||||
): Application {
|
): Application = super.newApplication(cl, HiltTestApplication::class.java.name, context)
|
||||||
return super.newApplication(cl, HiltTestApplication::class.java.name, context)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class PermissionListItemTest : IsolatedTest() {
|
|||||||
get() = Permission(
|
get() = Permission(
|
||||||
PermissionType.STORAGE_MANAGER,
|
PermissionType.STORAGE_MANAGER,
|
||||||
stringResource(R.string.onboarding_permission_esm),
|
stringResource(R.string.onboarding_permission_esm),
|
||||||
stringResource(R.string.onboarding_permission_esa_desc),
|
stringResource(R.string.onboarding_permission_esa_desc)
|
||||||
)
|
)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -144,8 +144,7 @@ class InstallerStatusReceiver : BaseInstallerStatusReceiver() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun isHuaweiSilentInstallSupported(context: Context): Boolean {
|
private fun isHuaweiSilentInstallSupported(context: Context): Boolean = try {
|
||||||
return try {
|
|
||||||
val applicationInfo: ApplicationInfo = context.packageManager.getApplicationInfo(
|
val applicationInfo: ApplicationInfo = context.packageManager.getApplicationInfo(
|
||||||
PACKAGE_NAME_APP_GALLERY,
|
PACKAGE_NAME_APP_GALLERY,
|
||||||
PackageManager.GET_META_DATA
|
PackageManager.GET_META_DATA
|
||||||
@@ -159,4 +158,3 @@ class InstallerStatusReceiver : BaseInstallerStatusReceiver() {
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ object FlavouredUtil : IFlavouredUtil {
|
|||||||
|
|
||||||
override val defaultDispensers: Set<String> = emptySet()
|
override val defaultDispensers: Set<String> = emptySet()
|
||||||
|
|
||||||
override fun promptMicroGInstall(context: Context): Boolean {
|
override fun promptMicroGInstall(context: Context): Boolean = isHuawei &&
|
||||||
return isHuawei &&
|
|
||||||
PackageUtil.hasSupportedAppGallery(context) &&
|
PackageUtil.hasSupportedAppGallery(context) &&
|
||||||
!PackageUtil.isMicroGBundleInstalled(context)
|
!PackageUtil.isMicroGBundleInstalled(context)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -6,7 +6,5 @@ object FlavouredUtil : IFlavouredUtil {
|
|||||||
|
|
||||||
override val defaultDispensers = setOf(Constants.URL_DISPENSER)
|
override val defaultDispensers = setOf(Constants.URL_DISPENSER)
|
||||||
|
|
||||||
override fun promptMicroGInstall(context: Context): Boolean {
|
override fun promptMicroGInstall(context: Context): Boolean = false
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,5 @@ object FlavouredUtil : IFlavouredUtil {
|
|||||||
|
|
||||||
override val defaultDispensers = setOf(Constants.URL_DISPENSER)
|
override val defaultDispensers = setOf(Constants.URL_DISPENSER)
|
||||||
|
|
||||||
override fun promptMicroGInstall(context: Context): Boolean {
|
override fun promptMicroGInstall(context: Context): Boolean = false
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user