Download tasks/efflora__fossify-compose-screens/environment/warm/fc-build.patch from efflora/android-bench-sample: direct link, hf CLI and curl.
- Browser
- Download file 5.39 kB
-
https://huggingface.co/datasets/efflora/android-bench-sample/resolve/main/tasks/efflora__fossify-compose-screens/environment/warm/fc-build.patch
- Command line
-
hf download hf://datasets/efflora/android-bench-sample/tasks/efflora__fossify-compose-screens/environment/warm/fc-build.patch
-
curl -L -o fc-build.patch https://huggingface.co/datasets/efflora/android-bench-sample/resolve/main/tasks/efflora__fossify-compose-screens/environment/warm/fc-build.patch
5.39 kB
| diff --git a/app/build.gradle.kts b/app/build.gradle.kts | |
| index 5715433..be0afc1 100644 | |
| --- a/app/build.gradle.kts | |
| +++ b/app/build.gradle.kts | |
| import java.io.FileInputStream | |
| plugins { | |
| alias(libs.plugins.android) | |
| + alias(libs.plugins.kotlin.compose) | |
| alias(libs.plugins.detekt) | |
| } | |
| android { | |
| versionCode = project.property("VERSION_CODE").toString().toInt() | |
| multiDexEnabled = true | |
| vectorDrawables.useSupportLibrary = true | |
| + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | |
| } | |
| signingConfigs { | |
| android { | |
| buildFeatures { | |
| viewBinding = true | |
| buildConfig = true | |
| + compose = true | |
| + } | |
| + | |
| + testOptions { | |
| + unitTests { | |
| + isIncludeAndroidResources = true | |
| + all { it.maxHeapSize = "3g" } | |
| + } | |
| } | |
| buildTypes { | |
| android { | |
| sourceSets { | |
| getByName("main").java.directories.add("src/main/kotlin") | |
| + getByName("test").java.directories.add("src/test/kotlin") | |
| + getByName("androidTest").java.directories.add("src/androidTest/kotlin") | |
| } | |
| compileOptions { | |
| dependencies { | |
| implementation(libs.gestureviews) | |
| implementation(libs.autofittextview) | |
| implementation(libs.zip4j) | |
| + implementation(libs.androidx.activity.compose) | |
| + implementation(libs.androidx.compose.ui) | |
| + implementation(libs.androidx.compose.foundation) | |
| + implementation(libs.androidx.compose.material3) | |
| + implementation(libs.kotlinx.collections.immutable) | |
| + testImplementation(libs.junit) | |
| + testImplementation(libs.robolectric) | |
| + testImplementation(libs.androidx.compose.ui.test.junit4) | |
| + androidTestImplementation(libs.androidx.test.runner) | |
| + androidTestImplementation(libs.androidx.test.espresso.core) | |
| + androidTestImplementation(libs.androidx.compose.ui.test.junit4) | |
| detektPlugins(libs.compose.detekt) | |
| } | |
| diff --git a/build.gradle.kts b/build.gradle.kts | |
| index 360f5f4..7665d2b 100644 | |
| --- a/build.gradle.kts | |
| +++ b/build.gradle.kts | |
| plugins { | |
| alias(libs.plugins.android).apply(false) | |
| + alias(libs.plugins.kotlin.compose).apply(false) | |
| alias(libs.plugins.detekt).apply(false) | |
| } | |
| diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml | |
| index 6c71eb8..22f8b5f 100644 | |
| --- a/gradle/libs.versions.toml | |
| +++ b/gradle/libs.versions.toml | |
| kotlin = "2.3.10" | |
| detekt = "1.23.8" | |
| detektCompose = "0.4.28" | |
| #AndroidX | |
| +androidx-activity = "1.12.4" | |
| +androidx-compose-foundation = "1.8.1" | |
| +androidx-compose-material3 = "1.4.0" | |
| +androidx-compose-ui = "1.9.2" | |
| androidx-swiperefreshlayout = "1.2.0" | |
| androidx-documentfile = "1.1.0" | |
| #Fossify | |
| commons = "6.1.6" | |
| #Other | |
| autofittextview = "0.2.1" | |
| +kotlinx-collections-immutable = "0.4.0" | |
| gestureviews = "2.9.0" | |
| rootshell = "bc7e5d398e" | |
| roottools = "965c154e20" | |
| zip4j = "2.11.6" | |
| +#Testing | |
| +junit = "4.13.2" | |
| +androidx-test-runner = "1.6.2" | |
| +androidx-test-espresso = "3.6.1" | |
| +robolectric = "4.16" | |
| #Gradle | |
| gradlePlugins-agp = "9.4.0" | |
| #build | |
| app-build-javaVersion = "VERSION_17" | |
| app-build-kotlinJVMTarget = "17" | |
| [libraries] | |
| #AndroidX | |
| +androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity" } | |
| androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "androidx-swiperefreshlayout" } | |
| androidx-documentfile = { module = "androidx.documentfile:documentfile", version.ref = "androidx-documentfile" } | |
| #Compose | |
| +androidx-compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "androidx-compose-foundation" } | |
| +androidx-compose-material3 = { module = "androidx.compose.material3:material3", version.ref = "androidx-compose-material3" } | |
| +androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "androidx-compose-ui" } | |
| +androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "androidx-compose-ui" } | |
| compose-detekt = { module = "io.nlopez.compose.rules:detekt", version.ref = "detektCompose" } | |
| #Fossify | |
| fossify-commons = { module = "org.fossify:commons", version.ref = "commons" } | |
| gestureviews = { module = "com.alexvasilkov:gesture-views", version.ref = "gestu | |
| rootshell = { module = "com.github.naveensingh:RootShell", version.ref = "rootshell" } | |
| roottools = { module = "com.github.naveensingh:RootTools", version.ref = "roottools" } | |
| zip4j = { module = "net.lingala.zip4j:zip4j", version.ref = "zip4j" } | |
| +kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlinx-collections-immutable" } | |
| +#Testing | |
| +junit = { module = "junit:junit", version.ref = "junit" } | |
| +androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" } | |
| +androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx-test-espresso" } | |
| +robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" } | |
| [plugins] | |
| android = { id = "com.android.application", version.ref = "gradlePlugins-agp" } | |
| +kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } | |
| detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" } | |