2023-08-30 15:05:53 +08:00
|
|
|
import com.android.build.gradle.api.AndroidBasePlugin
|
2023-02-03 23:07:11 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
2022-09-05 09:23:10 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
|
|
plugins {
|
2023-08-22 15:56:55 +08:00
|
|
|
id 'com.android.application' version "8.1.1"
|
|
|
|
|
id 'com.android.library' version "8.1.1" apply false
|
2023-08-30 00:10:38 +00:00
|
|
|
id 'org.jetbrains.kotlin.android' version "1.9.10"
|
|
|
|
|
id 'org.jetbrains.kotlin.plugin.parcelize' version "1.9.10"
|
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version "1.9.10"
|
|
|
|
|
id "com.google.devtools.ksp" version "1.9.10-1.0.13"
|
2023-07-15 11:57:16 +08:00
|
|
|
id 'com.google.protobuf' version "0.9.4"
|
2023-09-27 10:14:55 +08:00
|
|
|
id 'app.cash.licensee' version "1.8.0"
|
2023-03-12 04:24:01 +00:00
|
|
|
id 'dev.rikka.tools.refine' version "4.3.0"
|
2023-09-12 15:50:06 +08:00
|
|
|
id 'org.gradle.android.cache-fix' version '2.8.0'
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
|
2021-02-28 02:55:46 +05:30
|
|
|
allprojects {
|
2023-08-30 15:05:53 +08:00
|
|
|
plugins.withType(AndroidBasePlugin).configureEach {
|
|
|
|
|
apply plugin: 'org.gradle.android.cache-fix'
|
|
|
|
|
|
2022-09-18 02:48:38 +08:00
|
|
|
project.android {
|
2023-08-10 09:42:33 +08:00
|
|
|
compileSdk 34
|
2022-09-18 02:48:38 +08:00
|
|
|
defaultConfig {
|
|
|
|
|
minSdk 26
|
|
|
|
|
targetSdk 32
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
}
|
|
|
|
|
lint {
|
|
|
|
|
abortOnError true
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
project.dependencies {
|
2023-09-07 09:10:59 +08:00
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
2023-02-09 09:31:56 +08:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2022-09-05 09:23:10 +08:00
|
|
|
}
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
|
|
|
|
|
2023-09-10 19:29:29 +08:00
|
|
|
plugins.withType(JavaBasePlugin).configureEach {
|
|
|
|
|
java {
|
|
|
|
|
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
|
}
|
2023-02-03 23:07:11 +08:00
|
|
|
}
|
|
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
ext.addFrameworkJar = { String name ->
|
|
|
|
|
def frameworkJar = new File(FRAMEWORK_PREBUILTS_DIR, name)
|
2021-02-28 02:55:46 +05:30
|
|
|
if (!frameworkJar.exists()) {
|
2023-01-19 13:34:09 +08:00
|
|
|
throw new IllegalArgumentException("Framework jar path ${frameworkJar.path} doesn't exist")
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
|
|
|
|
gradle.projectsEvaluated {
|
2023-01-19 13:34:09 +08:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2023-09-10 19:29:29 +08:00
|
|
|
classpath = files(frameworkJar, classpath)
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
2023-01-19 13:34:09 +08:00
|
|
|
tasks.withType(KotlinCompile).configureEach {
|
2023-09-10 19:29:29 +08:00
|
|
|
libraries.from(files(frameworkJar))
|
2022-01-12 22:12:55 +07:00
|
|
|
}
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-03-15 13:39:00 -07:00
|
|
|
|
2022-09-05 09:23:10 +08:00
|
|
|
// todo remove ext block after migrating to version catalog
|
|
|
|
|
ext {
|
2023-01-19 13:34:09 +08:00
|
|
|
FRAMEWORK_PREBUILTS_DIR = "$rootDir/prebuilts/libs"
|
2023-08-21 21:08:50 +08:00
|
|
|
accompanist_version = '0.32.0'
|
2023-09-04 15:23:35 +08:00
|
|
|
libsu_version = '5.2.1'
|
2023-09-08 09:40:19 +08:00
|
|
|
protocVersion = '3.24.3'
|
2023-06-22 01:44:23 +00:00
|
|
|
room_version = '2.5.2'
|
2022-11-10 20:28:09 +08:00
|
|
|
optoVersion = "1.0.18"
|
2022-09-05 09:23:10 +08:00
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
|
2022-11-27 20:20:46 +08:00
|
|
|
final def buildCommit = providers.exec {
|
|
|
|
|
commandLine('git', 'rev-parse', '--short=7', 'HEAD')
|
|
|
|
|
}.standardOutput.asText.get().trim()
|
2021-03-17 09:30:20 +01:00
|
|
|
|
2022-11-28 00:52:22 +08:00
|
|
|
final def ciBuild = System.getenv("CI") == "true"
|
|
|
|
|
final def ciRef = System.getenv("GITHUB_REF") ?: ""
|
|
|
|
|
final def ciRunNumber = System.getenv("GITHUB_RUN_NUMBER") ?: ""
|
|
|
|
|
final def isReleaseBuild = ciBuild && ciRef.contains("alpha")
|
|
|
|
|
final def devReleaseName = ciBuild ? "Dev (#${ciRunNumber})" : "Dev (${buildCommit})"
|
2021-10-20 19:59:31 +07:00
|
|
|
|
2022-11-28 00:52:22 +08:00
|
|
|
final def version = "12.1.0"
|
|
|
|
|
final def releaseName = "Alpha 4"
|
|
|
|
|
final def versionDisplayName = "${version} ${isReleaseBuild ? releaseName : devReleaseName}"
|
|
|
|
|
final def majorVersion = versionDisplayName.split("\\.")[0]
|
2021-10-20 19:59:31 +07:00
|
|
|
|
2022-11-28 00:52:22 +08:00
|
|
|
final def quickstepMinSdk = "32"
|
|
|
|
|
final def quickstepMaxSdk = "32"
|
2022-05-08 23:20:37 +07:00
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
android {
|
2023-01-12 21:15:13 +08:00
|
|
|
namespace "com.android.launcher3"
|
2015-08-29 23:16:27 -07:00
|
|
|
defaultConfig {
|
2022-08-08 13:50:31 +04:30
|
|
|
versionCode 12_01_00_05
|
2021-10-20 19:59:31 +07:00
|
|
|
versionName "${versionDisplayName}"
|
2021-08-26 23:00:13 +07:00
|
|
|
buildConfigField "String", "VERSION_DISPLAY_NAME", "\"${versionDisplayName}\""
|
|
|
|
|
buildConfigField "String", "MAJOR_VERSION", "\"${majorVersion}\""
|
2021-10-26 15:34:48 +07:00
|
|
|
buildConfigField "String", "COMMIT_HASH", "\"${buildCommit}\""
|
2021-10-28 15:45:33 +07:00
|
|
|
buildConfigField "boolean", "ENABLE_AUTO_INSTALLS_LAYOUT", "false"
|
2015-10-16 17:18:54 -07:00
|
|
|
|
2022-05-08 23:20:37 +07:00
|
|
|
manifestPlaceholders.quickstepMinSdk = quickstepMinSdk
|
|
|
|
|
manifestPlaceholders.quickstepMaxSdk = quickstepMaxSdk
|
|
|
|
|
buildConfigField "int", "QUICKSTEP_MIN_SDK", quickstepMinSdk
|
|
|
|
|
buildConfigField "int", "QUICKSTEP_MAX_SDK", quickstepMaxSdk
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2021-03-03 14:25:21 +01:00
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
applicationVariants.configureEach { variant ->
|
2023-05-31 19:54:17 +08:00
|
|
|
def copyArtifactList = tasks.register("copy${variant.name.capitalize()}ArtifactList", Copy) {
|
2023-09-27 10:14:55 +08:00
|
|
|
dependsOn tasks.named("licenseeAndroid${variant.name.capitalize()}")
|
2023-08-02 11:45:15 +08:00
|
|
|
from reporting.file("licensee/${variant.name}/artifacts.json")
|
2023-05-31 19:54:17 +08:00
|
|
|
into layout.buildDirectory.dir("generated/dependencyAssets/")
|
|
|
|
|
}
|
|
|
|
|
tasks.named("merge${variant.name.capitalize()}Assets").configure {
|
|
|
|
|
dependsOn copyArtifactList
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
variant.outputs.configureEach {
|
2021-03-17 10:29:38 +01:00
|
|
|
outputFileName = "Lawnchair ${variant.versionName}.apk"
|
|
|
|
|
}
|
2022-08-10 17:37:14 +08:00
|
|
|
}
|
|
|
|
|
|
2021-03-03 14:25:21 +01:00
|
|
|
buildFeatures {
|
2023-01-12 18:53:55 +08:00
|
|
|
aidl true
|
|
|
|
|
buildConfig true
|
2021-03-03 14:25:21 +01:00
|
|
|
compose true
|
2023-01-12 18:53:55 +08:00
|
|
|
resValues true
|
2021-03-03 14:25:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
composeOptions {
|
2023-08-30 00:10:38 +00:00
|
|
|
kotlinCompilerExtensionVersion = "1.5.3"
|
2021-03-03 14:25:21 +01:00
|
|
|
}
|
|
|
|
|
|
2022-08-10 17:37:14 +08:00
|
|
|
final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
|
def releaseSigning = signingConfigs.debug
|
2021-03-27 13:46:33 +05:30
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
|
final def keystoreProperties = new Properties()
|
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
2022-08-10 17:37:14 +08:00
|
|
|
releaseSigning = signingConfigs.create("release") {
|
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
|
storeFile rootProject.file(keystoreProperties['storeFile'])
|
|
|
|
|
storePassword keystoreProperties['storePassword']
|
2021-03-27 13:46:33 +05:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-09 02:46:07 +08:00
|
|
|
packagingOptions.resources.excludes += [
|
|
|
|
|
"**/*.proto",
|
|
|
|
|
"**/*.bin",
|
|
|
|
|
"**/*.java",
|
|
|
|
|
"**/*.properties",
|
|
|
|
|
"**/*.version",
|
|
|
|
|
"**/*.*_module",
|
|
|
|
|
"com/**",
|
|
|
|
|
"google/**",
|
|
|
|
|
"kotlin/**",
|
|
|
|
|
"kotlinx/**",
|
|
|
|
|
"okhttp3/**",
|
|
|
|
|
"META-INF/services/**",
|
|
|
|
|
"META-INF/com/**",
|
|
|
|
|
"META-INF/licenses/**",
|
|
|
|
|
"META-INF/AL2.0",
|
|
|
|
|
"META-INF/LGPL2.1",
|
|
|
|
|
]
|
|
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
2023-01-18 14:21:05 +08:00
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
|
resValue("string", "derived_app_name", "Lawnchair (Debug)")
|
2022-08-10 17:37:14 +08:00
|
|
|
signingConfig releaseSigning
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2021-03-27 07:39:44 +01:00
|
|
|
|
|
|
|
|
release {
|
2023-01-18 14:21:05 +08:00
|
|
|
resValue("string", "derived_app_name", "Lawnchair")
|
2022-08-10 17:37:14 +08:00
|
|
|
signingConfig releaseSigning
|
2021-03-27 13:41:28 +05:30
|
|
|
minifyEnabled true
|
2021-03-27 08:50:20 +01:00
|
|
|
shrinkResources true
|
2022-06-22 19:54:39 +07:00
|
|
|
proguardFiles "proguard-android-optimize.txt", "proguard.pro"
|
2021-03-27 07:39:44 +01:00
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2016-08-25 22:21:40 -07:00
|
|
|
|
2022-08-10 17:37:14 +08:00
|
|
|
dependenciesInfo {
|
|
|
|
|
includeInApk = false
|
|
|
|
|
includeInBundle = false
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
// The flavor dimensions for build variants (e.g. aospWithQuickstep, aospWithoutQuickstep)
|
|
|
|
|
// See: https://developer.android.com/studio/build/build-variants#flavor-dimensions
|
2023-01-19 13:34:09 +08:00
|
|
|
flavorDimensions += ["app", "recents"]
|
2018-04-23 14:03:04 -07:00
|
|
|
|
2016-08-25 22:21:40 -07:00
|
|
|
productFlavors {
|
|
|
|
|
aosp {
|
2019-01-04 16:30:24 -08:00
|
|
|
dimension "app"
|
2021-02-28 23:01:05 +05:30
|
|
|
applicationId 'com.android.launcher3'
|
2016-08-25 22:21:40 -07:00
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
|
}
|
2017-07-03 13:50:52 -07:00
|
|
|
|
|
|
|
|
l3go {
|
2021-02-28 23:01:05 +05:30
|
|
|
dimension "app"
|
|
|
|
|
applicationId 'com.android.launcher3'
|
|
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lawn {
|
2019-01-04 16:30:24 -08:00
|
|
|
dimension "app"
|
2022-05-17 19:34:08 +02:00
|
|
|
applicationId 'app.lawnchair'
|
2017-07-03 13:50:52 -07:00
|
|
|
testApplicationId 'com.android.launcher3.tests'
|
2022-09-07 13:37:05 +08:00
|
|
|
isDefault true
|
2017-07-03 13:50:52 -07:00
|
|
|
}
|
2017-10-30 10:03:34 -07:00
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
withQuickstep {
|
|
|
|
|
dimension "recents"
|
2022-08-10 17:37:14 +08:00
|
|
|
minSdk 26
|
2022-09-07 13:37:05 +08:00
|
|
|
isDefault true
|
2017-10-30 10:03:34 -07:00
|
|
|
}
|
2019-01-04 16:30:24 -08:00
|
|
|
|
|
|
|
|
withoutQuickstep {
|
|
|
|
|
dimension "recents"
|
|
|
|
|
}
|
2022-11-21 15:29:50 +08:00
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
configureEach {
|
2022-11-21 15:29:50 +08:00
|
|
|
resValue("string", "launcher_component", "${applicationId}/app.lawnchair.LawnchairLauncher")
|
|
|
|
|
}
|
2016-08-25 22:21:40 -07:00
|
|
|
}
|
2017-10-30 10:03:34 -07:00
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
sourceSets {
|
|
|
|
|
main {
|
2016-02-18 15:09:21 -08:00
|
|
|
res.srcDirs = ['res']
|
2019-01-04 15:55:42 -08:00
|
|
|
java.srcDirs = ['src', 'src_plugins']
|
2016-08-25 22:21:40 -07:00
|
|
|
manifest.srcFile 'AndroidManifest-common.xml'
|
2017-07-19 01:24:07 -07:00
|
|
|
proto {
|
2021-10-08 12:14:19 +07:00
|
|
|
srcDirs = ['protos/', 'quickstep/protos_overrides/']
|
2017-07-19 01:24:07 -07:00
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2015-10-16 17:18:54 -07:00
|
|
|
|
|
|
|
|
androidTest {
|
2016-09-09 15:47:55 -07:00
|
|
|
res.srcDirs = ['tests/res']
|
2018-08-14 15:21:45 -07:00
|
|
|
java.srcDirs = ['tests/src', 'tests/tapl']
|
2017-01-21 01:33:02 -08:00
|
|
|
manifest.srcFile "tests/AndroidManifest-common.xml"
|
2015-10-16 17:18:54 -07:00
|
|
|
}
|
2016-08-25 22:21:40 -07:00
|
|
|
|
2017-10-30 10:03:34 -07:00
|
|
|
androidTestDebug {
|
|
|
|
|
manifest.srcFile "tests/AndroidManifest.xml"
|
2016-08-25 22:21:40 -07:00
|
|
|
}
|
2017-01-21 01:33:02 -08:00
|
|
|
|
2017-10-30 10:03:34 -07:00
|
|
|
aosp {
|
2019-01-04 16:30:24 -08:00
|
|
|
java.srcDirs = ['src_flags', 'src_shortcuts_overrides']
|
2020-01-15 12:27:36 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
aospWithoutQuickstep {
|
2019-01-04 16:30:24 -08:00
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
2017-01-21 01:33:02 -08:00
|
|
|
}
|
2017-07-03 13:50:52 -07:00
|
|
|
|
2020-01-15 12:27:36 -08:00
|
|
|
aospWithQuickstep {
|
|
|
|
|
manifest.srcFile "quickstep/AndroidManifest-launcher.xml"
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-03 13:50:52 -07:00
|
|
|
l3go {
|
|
|
|
|
res.srcDirs = ['go/res']
|
2019-01-04 16:30:24 -08:00
|
|
|
java.srcDirs = ['go/src']
|
2017-10-30 10:03:34 -07:00
|
|
|
manifest.srcFile "go/AndroidManifest.xml"
|
2017-07-03 13:50:52 -07:00
|
|
|
}
|
|
|
|
|
|
2020-01-15 12:27:36 -08:00
|
|
|
l3goWithoutQuickstepDebug {
|
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
l3goWithQuickstepDebug {
|
|
|
|
|
manifest.srcFile "quickstep/AndroidManifest-launcher.xml"
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-28 23:01:05 +05:30
|
|
|
lawn {
|
|
|
|
|
java.srcDirs = ['src_flags', 'src_shortcuts_overrides', 'lawnchair/src']
|
2021-03-19 03:38:39 +05:30
|
|
|
aidl.srcDirs = ['lawnchair/aidl']
|
2021-02-28 23:01:05 +05:30
|
|
|
res.srcDirs = ['lawnchair/res']
|
|
|
|
|
manifest.srcFile "lawnchair/AndroidManifest.xml"
|
2021-09-09 21:35:09 +07:00
|
|
|
assets {
|
|
|
|
|
srcDirs 'lawnchair/assets'
|
|
|
|
|
}
|
2022-05-18 18:31:18 +07:00
|
|
|
proto {
|
|
|
|
|
srcDirs = ['lawnchair/protos/']
|
|
|
|
|
}
|
2021-02-28 23:01:05 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lawnWithoutQuickstep {
|
|
|
|
|
manifest.srcFile "AndroidManifest.xml"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lawnWithQuickstep {
|
|
|
|
|
manifest.srcFile "quickstep/AndroidManifest-launcher.xml"
|
2023-05-31 19:54:17 +08:00
|
|
|
assets.srcDir layout.buildDirectory.dir("generated/dependencyAssets/")
|
2021-02-28 23:01:05 +05:30
|
|
|
}
|
|
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
withoutQuickstep {
|
|
|
|
|
java.srcDirs = ['src_ui_overrides']
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
withQuickstep {
|
2019-01-04 17:54:51 -08:00
|
|
|
res.srcDirs = ['quickstep/res', 'quickstep/recents_ui_overrides/res']
|
|
|
|
|
java.srcDirs = ['quickstep/src', 'quickstep/recents_ui_overrides/src']
|
|
|
|
|
manifest.srcFile "quickstep/AndroidManifest.xml"
|
|
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2021-02-28 02:55:46 +05:30
|
|
|
|
2022-05-08 17:32:46 +07:00
|
|
|
addFrameworkJar('framework-12l.jar')
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2022-09-05 09:23:10 +08:00
|
|
|
implementation projects.iconloaderlib
|
|
|
|
|
implementation projects.searchuilib
|
2019-01-04 16:30:24 -08:00
|
|
|
// Recents lib dependency
|
2022-09-05 09:23:10 +08:00
|
|
|
withQuickstepImplementation projects.systemUIShared
|
|
|
|
|
withQuickstepCompileOnly projects.hiddenApi
|
2018-04-23 14:03:04 -07:00
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
implementation fileTree(dir: FRAMEWORK_PREBUILTS_DIR, include: 'SystemUI-statsd.jar')
|
|
|
|
|
implementation fileTree(dir: FRAMEWORK_PREBUILTS_DIR, include: 'WindowManager-Shell.jar')
|
2019-01-04 16:30:24 -08:00
|
|
|
// Required for AOSP to compile. This is already included in the sysui_shared.jar
|
2022-09-05 09:23:10 +08:00
|
|
|
withoutQuickstepImplementation fileTree(dir: FRAMEWORK_PREBUILTS_DIR, include: 'plugin_core.jar')
|
|
|
|
|
|
2023-01-19 13:34:09 +08:00
|
|
|
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
|
2023-07-27 10:12:28 +08:00
|
|
|
implementation "androidx.recyclerview:recyclerview:1.3.1"
|
2023-08-10 09:29:24 +08:00
|
|
|
implementation "androidx.preference:preference-ktx:1.2.1"
|
2023-01-19 13:34:09 +08:00
|
|
|
|
2023-07-26 09:29:31 +08:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
2023-08-23 09:19:46 +08:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'
|
2021-02-28 02:55:46 +05:30
|
|
|
implementation 'com.github.ChickenHook:RestrictionBypass:2.2'
|
2023-03-12 04:24:01 +00:00
|
|
|
implementation 'dev.rikka.tools.refine:runtime:4.3.0'
|
2021-03-03 14:25:21 +01:00
|
|
|
|
2023-09-28 08:48:57 +08:00
|
|
|
implementation platform("androidx.compose:compose-bom:2023.09.02")
|
2022-12-09 22:22:14 +08:00
|
|
|
implementation "androidx.compose.ui:ui"
|
2023-08-15 09:25:53 +08:00
|
|
|
implementation "androidx.compose.ui:ui-util"
|
2023-01-12 01:59:54 +08:00
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling"
|
2022-12-09 22:22:14 +08:00
|
|
|
implementation "androidx.compose.ui:ui-text-google-fonts"
|
|
|
|
|
implementation "androidx.compose.foundation:foundation"
|
|
|
|
|
implementation "androidx.compose.material:material-icons-extended"
|
|
|
|
|
implementation "androidx.compose.material:material"
|
|
|
|
|
implementation "androidx.compose.runtime:runtime-livedata"
|
2023-06-22 01:48:34 +00:00
|
|
|
implementation 'androidx.compose.material3:material3'
|
2022-05-28 18:52:15 +02:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
2023-05-25 09:27:11 +08:00
|
|
|
implementation "androidx.activity:activity-compose:1.7.2"
|
2023-09-07 09:11:18 +08:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2"
|
2023-09-21 09:15:24 +08:00
|
|
|
implementation "androidx.navigation:navigation-compose:2.7.3"
|
2022-08-15 18:36:32 +08:00
|
|
|
implementation "androidx.palette:palette-ktx:1.0.0"
|
2021-10-07 09:42:24 +07:00
|
|
|
implementation "androidx.slice:slice-core:1.1.0-alpha02"
|
2021-10-12 15:25:47 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-drawablepainter:$accompanist_version"
|
2021-08-05 20:41:40 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-insets-ui:$accompanist_version"
|
2021-10-12 17:06:32 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
|
2021-05-18 00:06:23 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
|
2023-05-05 09:53:41 +08:00
|
|
|
implementation "com.google.android.material:material:1.9.0"
|
2023-09-27 10:36:00 +08:00
|
|
|
implementation "io.github.fornewid:material-motion-compose-core:1.0.6"
|
2022-05-16 15:40:23 +07:00
|
|
|
implementation 'dev.kdrag0n:colorkt:1.0.5'
|
2023-05-22 13:54:40 +08:00
|
|
|
implementation 'io.coil-kt:coil-compose:2.4.0'
|
2022-05-16 15:40:23 +07:00
|
|
|
implementation 'me.xdrop:fuzzywuzzy:1.4.0'
|
2022-08-31 12:06:18 +08:00
|
|
|
implementation "com.patrykmichalik.opto:domain:$optoVersion"
|
|
|
|
|
implementation "com.patrykmichalik.opto:core:$optoVersion"
|
|
|
|
|
implementation "com.patrykmichalik.opto:compose:$optoVersion"
|
2022-02-11 19:41:43 +01:00
|
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
2022-05-13 15:44:03 +07:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
2023-08-12 21:19:09 +08:00
|
|
|
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0"
|
2021-06-15 20:26:41 +07:00
|
|
|
|
2022-01-12 22:12:55 +07:00
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
2022-07-18 16:01:37 +02:00
|
|
|
ksp "androidx.room:room-compiler:$room_version"
|
2022-01-12 22:12:55 +07:00
|
|
|
|
2021-06-15 20:26:41 +07:00
|
|
|
implementation "com.github.topjohnwu.libsu:core:$libsu_version"
|
|
|
|
|
implementation "com.github.topjohnwu.libsu:service:$libsu_version"
|
2021-10-07 09:42:24 +07:00
|
|
|
|
2022-10-25 15:36:49 +08:00
|
|
|
implementation "com.google.protobuf:protobuf-javalite:$protocVersion"
|
2021-11-09 13:19:21 -08:00
|
|
|
|
2022-05-23 10:57:50 +04:30
|
|
|
// Persian Date
|
2023-09-09 11:38:35 +08:00
|
|
|
implementation 'com.github.samanzamani:PersianDate:1.7.1'
|
2022-05-23 10:57:50 +04:30
|
|
|
|
2023-07-17 09:30:54 +08:00
|
|
|
implementation 'com.airbnb.android:lottie:6.1.0'
|
2023-02-18 18:26:00 +08:00
|
|
|
|
2023-06-30 12:38:37 +08:00
|
|
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.12"
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
|
2022-12-29 10:40:49 +08:00
|
|
|
ksp {
|
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
|
|
|
arg("room.incremental", "true")
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
protobuf {
|
|
|
|
|
// Configure the protoc executable
|
|
|
|
|
protoc {
|
2020-10-23 09:26:44 -07:00
|
|
|
artifact = "com.google.protobuf:protoc:${protocVersion}"
|
|
|
|
|
}
|
|
|
|
|
generateProtoTasks {
|
2023-01-21 19:24:02 +08:00
|
|
|
all().configureEach { task ->
|
2020-10-23 09:26:44 -07:00
|
|
|
task.builtins {
|
|
|
|
|
remove java
|
|
|
|
|
java {
|
|
|
|
|
option "lite"
|
2016-08-25 22:21:40 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
}
|
2023-05-31 19:54:17 +08:00
|
|
|
|
|
|
|
|
licensee {
|
|
|
|
|
allow("Apache-2.0")
|
|
|
|
|
allow("BSD-3-Clause")
|
2023-09-27 10:14:55 +08:00
|
|
|
allow("GPL-2.0-or-later")
|
2023-05-31 19:54:17 +08:00
|
|
|
allowUrl("https://github.com/patrykmichalik/opto/blob/master/LICENSE")
|
|
|
|
|
allowUrl("https://github.com/RikkaApps/HiddenApiRefinePlugin/blob/main/LICENSE")
|
2023-09-27 10:14:55 +08:00
|
|
|
allowUrl("https://opensource.org/licenses/mit-license.php")
|
2023-05-31 19:54:17 +08:00
|
|
|
}
|