Kotlin 2.0.0-RC2 (#4343)
This commit is contained in:
1 parent
6f5b85e43b
commit
b87e880b92
3 files changed
+13
-14
No files matched your search
@@ -10,6 +10,7 @@ WallpaperPicker/.project.properties
|
|||||||
bin
|
bin
|
||||||
.idea
|
.idea
|
||||||
.gradle
|
.gradle
|
||||||
|
.kotlin
|
||||||
local.properties
|
local.properties
|
||||||
build
|
build
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
+5
-8
@@ -7,10 +7,11 @@ plugins {
|
|||||||
id 'com.android.library' version "8.3.2" apply false
|
id 'com.android.library' version "8.3.2" apply false
|
||||||
id 'com.android.test' version '8.3.2' apply false
|
id 'com.android.test' version '8.3.2' apply false
|
||||||
id 'androidx.baselineprofile' version '1.2.4'
|
id 'androidx.baselineprofile' version '1.2.4'
|
||||||
id 'org.jetbrains.kotlin.android' version "1.9.23"
|
id 'org.jetbrains.kotlin.android' version "2.0.0-RC2"
|
||||||
id 'org.jetbrains.kotlin.plugin.parcelize' version "1.9.23"
|
id 'org.jetbrains.kotlin.plugin.compose' version "2.0.0-RC2"
|
||||||
id 'org.jetbrains.kotlin.plugin.serialization' version "1.9.23"
|
id 'org.jetbrains.kotlin.plugin.parcelize' version "2.0.0-RC2"
|
||||||
id "com.google.devtools.ksp" version "1.9.23-1.0.20"
|
id 'org.jetbrains.kotlin.plugin.serialization' version "2.0.0-RC2"
|
||||||
|
id "com.google.devtools.ksp" version "2.0.0-RC1-1.0.20"
|
||||||
id 'com.google.protobuf' version "0.9.4"
|
id 'com.google.protobuf' version "0.9.4"
|
||||||
id 'app.cash.licensee' version "1.11.0"
|
id 'app.cash.licensee' version "1.11.0"
|
||||||
id 'dev.rikka.tools.refine' version "4.4.0"
|
id 'dev.rikka.tools.refine' version "4.4.0"
|
||||||
@@ -165,10 +166,6 @@ android {
|
|||||||
resValues true
|
resValues true
|
||||||
}
|
}
|
||||||
|
|
||||||
composeOptions {
|
|
||||||
kotlinCompilerExtensionVersion = "1.5.12"
|
|
||||||
}
|
|
||||||
|
|
||||||
final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||||
def releaseSigning = signingConfigs.debug
|
def releaseSigning = signingConfigs.debug
|
||||||
if (keystorePropertiesFile.exists()) {
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
|||||||
@@ -35,13 +35,14 @@ class LawnchairShortcut {
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
val CUSTOMIZE: SystemShortcut.Factory<LawnchairLauncher?> = SystemShortcut.Factory<LawnchairLauncher?> { activity, itemInfo, originalView ->
|
val CUSTOMIZE =
|
||||||
if (PreferenceManager2.getInstance(activity).lockHomeScreen.firstBlocking()) {
|
SystemShortcut.Factory { activity: LawnchairLauncher, itemInfo, originalView ->
|
||||||
null
|
if (PreferenceManager2.getInstance(activity).lockHomeScreen.firstBlocking()) {
|
||||||
} else {
|
null
|
||||||
getAppInfo(activity, itemInfo)?.let { Customize(activity, it, itemInfo, originalView) }
|
} else {
|
||||||
|
getAppInfo(activity, itemInfo)?.let { Customize(activity, it, itemInfo, originalView) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private fun getAppInfo(launcher: LawnchairLauncher, itemInfo: ItemInfo): ModelAppInfo? {
|
private fun getAppInfo(launcher: LawnchairLauncher, itemInfo: ItemInfo): ModelAppInfo? {
|
||||||
if (itemInfo is ModelAppInfo) return itemInfo
|
if (itemInfo is ModelAppInfo) return itemInfo
|
||||||
|
|||||||
Reference in new issue
Block a user