GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AboutLibraries/sample/android/build.gradle.kts at develop · SageDroid/AboutLibraries

Expand file tree

/

build.gradle.kts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
151 lines (129 loc) · 7.15 KB
/

build.gradle.kts

Copy path

File metadata and controls

151 lines (129 loc) · 7.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
import com.mikepenz.aboutlibraries.plugin.DuplicateMode
import com.mikepenz.aboutlibraries.plugin.DuplicateRule
import com.mikepenz.aboutlibraries.plugin.StrictMode
plugins {
id("com.mikepenz.convention.android-application")
id("com.mikepenz.convention.compose")
id("com.mikepenz.aboutlibraries.plugin")
id("com.mikepenz.aboutlibraries.plugin.android")
id("com.mikepenz.convention.composable-preview-scanner.paparazzi-plugin")
}
android {
namespace = "com.mikepenz.aboutlibraries.sample"
defaultConfig {
applicationId = "com.mikepenz.aboutlibraries"
base.archivesName = "AboutLibraries-v$versionName-c$versionCode"
}
}
dependencies {
implementation(project(":aboutlibraries-compose"))
implementation(project(":aboutlibraries-compose-m2"))
implementation(project(":aboutlibraries-compose-m3"))
implementation(project(":sample:shared"))
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.material3)
implementation(compose.components.resources)
implementation(libs.androidx.activity.compose)
debugImplementation(compose.uiTooling)
// Recomposition-stability tests
androidTestImplementation(libs.dejavu)
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-test-manifest")
}
compose.resources {
packageOfResClass = "com.mikepenz.aboutlibraries.sample.resources"
}
/*
composablePreviewPaparazzi {
enable = true
packages = listOf("com.mikepenz.aboutlibraries.screenshot")
includePrivatePreviews = false
testClassName = "PaparazziTests"
testPackageName = "com.mikepenz.aboutlibraries.screenshot.generated.tests"
}
*/
aboutLibraries {
collect {
// define the path configuration files are located in. E.g. additional libraries, licenses to add to the target .json
// relative to module root (`../` for parent folder)
configPath = file("../../config")
// (optional) GitHub token to raise API request limit to allow fetching more licenses
gitHubApiToken = if (hasProperty("github.pat")) property("github.pat")?.toString() else null
// Set to offline mode, skipping remote requests to fetch licenses or funding information
// offlineMode = true
// enable fetching of "remote" licenses. Uses the GitHub API
fetchRemoteLicense = false
// Allows to only collect dependencies of specific variants during the `collectDependencies` step.
// filterVariants.addAll("debug")
// Allows to enable the collection of funding information of differnet libraries
// fetchRemoteFunding = true
}
// export {
// prettyPrint = true
// outputFile = file("src/main/res/raw/aboutlibraries.json")
// }
license {
// Define the strict mode, will fail if the project uses licenses not allowed
// - This will only automatically fail for Android projects which have `registerAndroidTasks` enabled
// For non-Android projects, execute `exportLibraryDefinitions`
strictMode = StrictMode.FAIL
// Allowed set of licenses, this project will be able to use without build failure
allowedLicenses.addAll("Apache-2.0", "MIT")
// Allowed set of licenses for specific dependencies, this project will be able to use without build failure
allowedLicensesMap = mapOf(
"asdkl" to listOf("androidx.jetpack.library"),
"BSD-3-Clause" to listOf("org.hamcrest:hamcrest-core"),
"EPL-1.0" to listOf("junit:junit"),
"NOASSERTION" to listOf("org.jetbrains.kotlinx"),
)
// Full license text for license IDs mentioned here will be included, even if no detected dependency uses them.
// additionalLicenses.addAll("mit", "mpl_2_0")
}
library {
// Enable the duplication mode, allows to merge, or link dependencies which relate
duplicationMode = DuplicateMode.MERGE
// Configure the duplication rule, to match "duplicates" with
duplicationRule = DuplicateRule.EXACT
}
}
// Paparazzi snapshot -> `art/` filename, for the images referenced by the README.
// Snapshot names are unstable (they encode the preview function name) and contain characters
// that need URL encoding, so they are copied to stable, link-safe names instead of referenced directly.
val readmeArt = mapOf(
"sampleapppreviewskt.previewsampleappmobilelight.sample_app_·_mobile_·_light.png" to "hero-app-light.png",
"sampleapppreviewskt.previewsampleappmobiledark.sample_app_·_mobile_·_dark_night.png" to "hero-app-dark.png",
"readmeshowcasepreviewskt.previewshowcasevariantrefined.light.png" to "showcase-variant-refined-light.png",
"readmeshowcasepreviewskt.previewshowcasevariantrefined.dark_night.png" to "showcase-variant-refined-dark.png",
"readmeshowcasepreviewskt.previewshowcasevarianttraditional.light.png" to "showcase-variant-traditional-light.png",
"readmeshowcasepreviewskt.previewshowcasevarianttraditional.dark_night.png" to "showcase-variant-traditional-dark.png",
"readmeshowcasepreviewskt.previewshowcasedensitycompact.light.png" to "showcase-density-compact-light.png",
"readmeshowcasepreviewskt.previewshowcasedensitycompact.dark_night.png" to "showcase-density-compact-dark.png",
"readmeshowcasepreviewskt.previewshowcasedensitycozy.light.png" to "showcase-density-cozy-light.png",
"readmeshowcasepreviewskt.previewshowcasedensitycozy.dark_night.png" to "showcase-density-cozy-dark.png",
"readmeshowcasepreviewskt.previewshowcaseactionschips.light.png" to "showcase-actions-chips-light.png",
"readmeshowcasepreviewskt.previewshowcaseactionschips.dark_night.png" to "showcase-actions-chips-dark.png",
"readmeshowcasepreviewskt.previewshowcaseactionsicons.light.png" to "showcase-actions-icons-light.png",
"readmeshowcasepreviewskt.previewshowcaseactionsicons.dark_night.png" to "showcase-actions-icons-dark.png",
"readmeshowcasepreviewskt.previewshowcasedetailsheet.light.png" to "showcase-detail-sheet-light.png",
"readmeshowcasepreviewskt.previewshowcasedetailsheet.dark_night.png" to "showcase-detail-sheet-dark.png",
)
tasks.register<Copy>("copyReadmeArt") {
group = "documentation"
description = "Copies the Paparazzi snapshots referenced by the README into art/."
val snapshots = layout.projectDirectory.dir("src/test/snapshots/images")
val prefix = "Paparazzi_Preview_Test_com.mikepenz.aboutlibraries.screenshot."
into(rootProject.layout.projectDirectory.dir("art"))
readmeArt.forEach { (source, target) ->
from(snapshots.file(prefix + source)) { rename { target } }
}
// A `from` pointing at a missing file is silently skipped, which would leave the README
// referencing stale art. Fail loudly instead — snapshot names change when previews are renamed.
doFirst {
val missing = readmeArt.keys.filterNot { snapshots.file(prefix + it).asFile.exists() }
require(missing.isEmpty()) {
"Missing Paparazzi snapshots: ${missing.joinToString()}. " +
"Run `./gradlew :sample:android:recordPaparazziDebug` first, or update `readmeArt` if a preview was renamed."
}
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.