2015-08-29 23:16:27 -07:00
|
|
|
buildscript {
|
2021-02-28 12:17:59 +01:00
|
|
|
ext {
|
2022-05-15 19:57:03 +02:00
|
|
|
kotlin_version = '1.6.21'
|
2022-06-17 18:39:24 +02:00
|
|
|
compose_version = '1.2.0-rc01'
|
|
|
|
|
accompanist_version = '0.24.10-beta'
|
2021-06-15 20:26:41 +07:00
|
|
|
libsu_version = '3.1.2'
|
2021-10-05 14:13:08 +07:00
|
|
|
protocVersion = '3.18.0'
|
2022-02-27 13:32:37 +01:00
|
|
|
room_version = '2.4.2'
|
2021-02-28 12:17:59 +01:00
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
2018-04-23 14:03:04 -07:00
|
|
|
google()
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
dependencies {
|
2022-05-28 18:52:15 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:7.2.1'
|
2018-11-01 23:12:54 -07:00
|
|
|
classpath PROTOBUF_CLASS_PATH
|
2021-02-28 12:17:59 +01:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2022-05-25 22:04:38 +07:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
2022-05-15 19:57:03 +02:00
|
|
|
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.5'
|
2022-06-22 17:49:14 +07:00
|
|
|
classpath 'dev.rikka.tools.refine:gradle-plugin:3.1.1'
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-28 02:55:46 +05:30
|
|
|
final String FRAMEWORK_PREBUILTS_DIR = "prebuilts"
|
2021-03-27 13:46:33 +05:30
|
|
|
final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
2021-02-28 02:55:46 +05:30
|
|
|
|
2021-03-15 22:05:07 +01:00
|
|
|
wrapper {
|
2021-03-17 10:49:42 +01:00
|
|
|
gradleVersion = '6.8.3'
|
2021-03-15 22:05:07 +01:00
|
|
|
}
|
|
|
|
|
|
2021-02-28 02:55:46 +05:30
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-10 10:38:05 +07:00
|
|
|
ext.getFrameworkJar = { String name ->
|
|
|
|
|
def frameworkJar = new File(rootProject.projectDir, 'prebuilts/libs/' + name)
|
2021-02-28 02:55:46 +05:30
|
|
|
if (!frameworkJar.exists()) {
|
|
|
|
|
throw new IllegalArgumentException("Framework jar path doesn't exist")
|
|
|
|
|
}
|
2022-05-10 10:38:05 +07:00
|
|
|
return frameworkJar
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext.addFrameworkJar = { String name ->
|
|
|
|
|
def frameworkJar = getFrameworkJar(name)
|
2021-02-28 02:55:46 +05:30
|
|
|
gradle.projectsEvaluated {
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
|
options.bootstrapClasspath = files([frameworkJar] + (options.bootstrapClasspath.files as Iterable<File>))
|
|
|
|
|
}
|
2022-05-10 10:38:05 +07:00
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask) {
|
|
|
|
|
it.classpath.from(files([frameworkJar]))
|
|
|
|
|
}
|
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
|
|
|
|
it.classpath.from(files([frameworkJar]))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext.replaceFrameworkJar = { String name ->
|
|
|
|
|
def frameworkJar = getFrameworkJar(name)
|
|
|
|
|
gradle.projectsEvaluated {
|
2022-05-08 21:31:31 +07:00
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
|
|
|
|
def originalFiles = [] + it.classpath.files
|
|
|
|
|
def newFiles = []
|
|
|
|
|
originalFiles.each { file ->
|
|
|
|
|
if (file.path.endsWith('android.jar')) {
|
|
|
|
|
newFiles.add(frameworkJar)
|
|
|
|
|
} else {
|
|
|
|
|
newFiles.add(file)
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-10 10:38:05 +07:00
|
|
|
it.classpath.setFrom(files([]))
|
|
|
|
|
it.classpath.from(files(newFiles))
|
2022-01-12 22:12:55 +07:00
|
|
|
}
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
|
|
|
|
}
|
2021-10-10 10:16:34 +02:00
|
|
|
|
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
|
|
|
kotlinOptions {
|
2022-06-17 18:39:52 +02:00
|
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
2021-10-10 10:16:34 +02:00
|
|
|
}
|
|
|
|
|
}
|
2021-02-28 02:55:46 +05:30
|
|
|
}
|
2019-03-15 13:39:00 -07:00
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
apply plugin: 'com.android.application'
|
2021-02-28 16:51:04 +05:30
|
|
|
apply plugin: 'kotlin-android'
|
2015-08-29 23:16:27 -07:00
|
|
|
apply plugin: 'com.google.protobuf'
|
2021-03-22 19:05:52 +01:00
|
|
|
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
|
2022-01-12 19:55:33 +07:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2022-01-12 22:12:55 +07:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2022-05-25 22:04:38 +07:00
|
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
|
2022-06-22 17:49:14 +07:00
|
|
|
apply plugin: 'dev.rikka.tools.refine'
|
2015-08-29 23:16:27 -07:00
|
|
|
|
2021-03-17 09:30:20 +01:00
|
|
|
final def commitHash = { ->
|
|
|
|
|
final def stdout = new ByteArrayOutputStream()
|
|
|
|
|
exec {
|
|
|
|
|
commandLine 'git', 'rev-parse', '--short=7', 'HEAD'
|
|
|
|
|
standardOutput = stdout
|
|
|
|
|
}
|
|
|
|
|
stdout.toString().trim()
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-20 19:59:31 +07:00
|
|
|
def ciBuild = System.getenv("CI") == "true"
|
|
|
|
|
def ciRef = System.getenv("GITHUB_REF") ?: ""
|
2021-10-20 20:26:19 +07:00
|
|
|
def ciRunNumber = System.getenv("GITHUB_RUN_NUMBER") ?: ""
|
2021-10-20 19:59:31 +07:00
|
|
|
def isReleaseBuild = ciBuild && ciRef.contains("alpha")
|
2021-10-26 15:34:48 +07:00
|
|
|
def buildCommit = commitHash()
|
2021-10-20 19:59:31 +07:00
|
|
|
def devReleaseName
|
|
|
|
|
if (ciBuild) {
|
2021-10-20 20:26:19 +07:00
|
|
|
devReleaseName = "Dev (#${ciRunNumber})"
|
2021-10-20 19:59:31 +07:00
|
|
|
} else {
|
2021-10-26 15:34:48 +07:00
|
|
|
devReleaseName = "Dev (${buildCommit})"
|
2021-10-20 19:59:31 +07:00
|
|
|
}
|
|
|
|
|
|
2022-05-08 22:54:24 +07:00
|
|
|
def version = "12.1.0"
|
2022-05-19 18:13:19 +02:00
|
|
|
def releaseName = "Alpha 3"
|
2021-10-20 19:59:31 +07:00
|
|
|
def versionDisplayName = "${version} ${isReleaseBuild ? releaseName : devReleaseName}"
|
|
|
|
|
def majorVersion = versionDisplayName.split("\\.")[0]
|
|
|
|
|
|
2022-05-08 23:20:37 +07:00
|
|
|
def quickstepMinSdk = "32"
|
|
|
|
|
def quickstepMaxSdk = "32"
|
|
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
android {
|
2019-01-30 11:40:38 -08:00
|
|
|
compileSdkVersion COMPILE_SDK
|
2018-11-01 23:12:54 -07:00
|
|
|
buildToolsVersion BUILD_TOOLS_VERSION
|
2015-08-29 23:16:27 -07:00
|
|
|
|
2021-03-26 08:17:34 +01:00
|
|
|
lintOptions {
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
defaultConfig {
|
2021-10-13 12:04:04 +07:00
|
|
|
minSdkVersion 26
|
2022-05-13 23:47:33 +07:00
|
|
|
targetSdkVersion 32
|
2022-05-19 18:13:19 +02:00
|
|
|
versionCode 12_01_00_03
|
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
|
|
|
|
|
|
2018-08-24 17:48:25 -07:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2018-04-23 14:03:04 -07:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2021-03-03 14:25:21 +01:00
|
|
|
|
2021-03-17 10:29:38 +01:00
|
|
|
applicationVariants.all { variant ->
|
|
|
|
|
variant.outputs.all {
|
|
|
|
|
outputFileName = "Lawnchair ${variant.versionName}.apk"
|
|
|
|
|
}
|
2021-10-12 16:42:37 +07:00
|
|
|
resValue("string", "launcher_component", "${applicationId}/app.lawnchair.LawnchairLauncher")
|
2021-03-17 10:29:38 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-03 14:25:21 +01:00
|
|
|
buildFeatures {
|
|
|
|
|
compose true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
composeOptions {
|
2021-10-18 20:12:44 +02:00
|
|
|
kotlinCompilerExtensionVersion = compose_version
|
2021-03-03 14:25:21 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-27 13:46:33 +05:30
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
|
final def keystoreProperties = new Properties()
|
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
release {
|
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
|
storeFile rootProject.file(keystoreProperties['storeFile'])
|
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
2021-10-20 19:59:31 +07:00
|
|
|
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
2021-03-27 07:39:44 +01:00
|
|
|
|
|
|
|
|
release {
|
2021-03-27 13:46:33 +05:30
|
|
|
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
|
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
|
|
|
|
2021-02-28 16:51:04 +05:30
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-23 14:03:04 -07:00
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
|
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'
|
|
|
|
|
}
|
2017-10-30 10:03:34 -07:00
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
withQuickstep {
|
|
|
|
|
dimension "recents"
|
2018-08-14 15:21:45 -07:00
|
|
|
|
2021-10-13 09:57:22 +07:00
|
|
|
minSdkVersion 26
|
2017-10-30 10:03:34 -07:00
|
|
|
}
|
2019-01-04 16:30:24 -08:00
|
|
|
|
|
|
|
|
withoutQuickstep {
|
|
|
|
|
dimension "recents"
|
|
|
|
|
}
|
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"
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
2020-01-15 12:27:36 -08:00
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
maven { url "../../../prebuilts/sdk/current/androidx/m2repository" }
|
|
|
|
|
maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" }
|
|
|
|
|
maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" }
|
|
|
|
|
mavenCentral()
|
|
|
|
|
google()
|
|
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2018-11-01 23:12:54 -07:00
|
|
|
implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
|
|
|
|
|
implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
|
2021-03-21 19:07:16 +01:00
|
|
|
implementation "androidx.preference:preference-ktx:${ANDROID_X_VERSION}"
|
2021-10-11 13:16:06 +07:00
|
|
|
implementation project(':iconloaderlib')
|
|
|
|
|
implementation project(':searchuilib')
|
2022-05-08 17:32:46 +07:00
|
|
|
implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'SystemUI-statsd.jar')
|
2018-11-01 23:12:54 -07:00
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
// Recents lib dependency
|
2021-06-03 10:55:06 +07:00
|
|
|
withQuickstepImplementation project(':SystemUIShared')
|
2022-06-22 17:49:14 +07:00
|
|
|
withQuickstepCompileOnly project(':hidden-api')
|
2022-05-08 21:31:31 +07:00
|
|
|
implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'WindowManager-Shell.jar')
|
2018-04-23 14:03:04 -07:00
|
|
|
|
2019-01-04 16:30:24 -08:00
|
|
|
// Required for AOSP to compile. This is already included in the sysui_shared.jar
|
2019-03-15 13:39:00 -07:00
|
|
|
withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_core.jar')
|
2018-04-23 14:03:04 -07:00
|
|
|
|
2021-02-28 16:51:04 +05:30
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2022-05-25 22:04:38 +07:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2'
|
2021-03-03 14:25:21 +01:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2022-05-16 15:40:23 +07:00
|
|
|
androidTestImplementation 'org.mockito:mockito-core:4.5.1'
|
2018-04-23 14:03:04 -07:00
|
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
|
|
|
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
|
2021-03-03 14:25:21 +01:00
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
|
|
|
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
|
2018-11-01 23:12:54 -07:00
|
|
|
androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
|
2021-02-28 02:55:46 +05:30
|
|
|
implementation 'com.github.ChickenHook:RestrictionBypass:2.2'
|
2022-06-22 17:49:14 +07:00
|
|
|
implementation 'dev.rikka.tools.refine:runtime:3.1.1'
|
2021-03-03 14:25:21 +01:00
|
|
|
|
2021-03-11 15:48:17 +01:00
|
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
|
|
|
implementation "androidx.compose.ui:ui-tooling:$compose_version"
|
2022-05-16 17:17:06 +07:00
|
|
|
implementation "androidx.compose.ui:ui-text-google-fonts:$compose_version"
|
2021-03-11 15:48:17 +01:00
|
|
|
implementation "androidx.compose.foundation:foundation:$compose_version"
|
|
|
|
|
implementation "androidx.compose.material:material:$compose_version"
|
2022-06-17 18:39:24 +02:00
|
|
|
implementation "androidx.compose.material3:material3:1.0.0-alpha13"
|
2021-03-11 15:48:17 +01:00
|
|
|
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
|
|
|
|
|
implementation "androidx.compose.runtime:runtime-rxjava2:$compose_version"
|
|
|
|
|
implementation "androidx.compose.compiler:compiler:$compose_version"
|
2022-05-28 18:52:15 +02:00
|
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
2022-05-08 21:31:31 +07:00
|
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1'
|
2022-05-08 22:53:06 +07:00
|
|
|
implementation "androidx.navigation:navigation-compose:2.4.2"
|
2021-08-05 10:14:44 +07:00
|
|
|
implementation "androidx.palette:palette-ktx:${ANDROID_X_VERSION}"
|
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-08-05 01:51:32 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-navigation-animation:$accompanist_version"
|
2021-10-12 17:06:32 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
|
2021-10-27 16:53:03 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
|
2021-08-04 23:31:57 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-placeholder-material:$accompanist_version"
|
2021-05-18 00:06:23 +07:00
|
|
|
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
|
2022-06-17 18:39:24 +02:00
|
|
|
implementation "com.google.android.material:material:1.6.1"
|
2022-05-10 17:32:25 +07:00
|
|
|
implementation "io.github.fornewid:material-motion-compose-core:0.8.4"
|
2022-05-16 15:40:23 +07:00
|
|
|
implementation 'dev.kdrag0n:colorkt:1.0.5'
|
|
|
|
|
implementation 'io.coil-kt:coil-compose:2.0.0'
|
|
|
|
|
implementation 'me.xdrop:fuzzywuzzy:1.4.0'
|
2022-06-17 18:39:24 +02:00
|
|
|
implementation "com.patrykmichalik:opto:1.0.12"
|
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"
|
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:2.9.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"
|
|
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
implementation 'com.google.protobuf:protobuf-javalite:3.8.0'
|
2022-01-26 13:15:50 +01:00
|
|
|
implementation 'com.github.LawnchairLauncher:oss-notices:1.0.2'
|
2021-11-09 13:19:21 -08:00
|
|
|
|
2022-05-23 10:57:50 +04:30
|
|
|
// Persian Date
|
2022-07-16 11:16:22 +04:30
|
|
|
implementation 'com.github.samanzamani:PersianDate:1.5.4'
|
2022-05-23 10:57:50 +04:30
|
|
|
|
2022-05-16 15:40:23 +07:00
|
|
|
api 'com.airbnb.android:lottie:5.0.3'
|
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 {
|
|
|
|
|
all().each { task ->
|
|
|
|
|
task.builtins {
|
|
|
|
|
remove java
|
|
|
|
|
java {
|
|
|
|
|
option "lite"
|
2016-08-25 22:21:40 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-29 23:16:27 -07:00
|
|
|
}
|
|
|
|
|
}
|