Skip to content

Commit e1b2eae

Browse files
authored
Merge pull request #1050 from mikepenz/develop
dev -> main
2 parents 3038539 + b059e4f commit e1b2eae

File tree

99 files changed

+1423
-1663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1423
-1663
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
uses: gradle/actions/setup-gradle@v4
113113

114114
- name: Validate gradle wrapper
115-
uses: gradle/actions/wrapper-validation@v3
115+
uses: gradle/actions/wrapper-validation@v4
116116

117117
- name: Copy CI gradle.properties
118118
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
@@ -137,7 +137,7 @@ jobs:
137137
if: github.event_name == 'pull_request'
138138
uses: ruby/setup-ruby@v1
139139
with:
140-
ruby-version: '3.0'
140+
ruby-version: '3.3'
141141
bundler-cache: true
142142

143143
- name: Run Danger

Dangerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ fail("PR specifies label DO NOT MERGE") if github.pr_labels.any? { |label| label
1414
# Warn when there is a big PR
1515
warn("Big PR") if git.lines_of_code > 5000
1616

17-
File.open("settings.gradle", "r") do |file_handle|
17+
File.open("settings.gradle.kts", "r") do |file_handle|
1818
file_handle.each_line do |setting|
1919
if setting.include? "include"
20-
gradleModule = setting[10, setting.length-12]
20+
gradleModule = setting[10, setting.length-13]
2121

2222
# AndroidLint
2323
androidLintFile = String.new(gradleModule + "/build/reports/lint-results.xml")

Gemfile.lock

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.1)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
66
ansi (1.5.0)
77
ast (2.4.2)
8+
base64 (0.2.0)
89
claide (1.1.0)
910
claide-plugins (0.9.2)
1011
cork
@@ -13,81 +14,68 @@ GEM
1314
colored2 (3.1.2)
1415
cork (0.3.0)
1516
colored2 (~> 3.1)
16-
danger (9.0.0)
17+
danger (9.5.1)
18+
base64 (~> 0.2)
1719
claide (~> 1.0)
1820
claide-plugins (>= 0.9.2)
1921
colored2 (~> 3.1)
2022
cork (~> 0.1)
21-
faraday (>= 0.9.0, < 2.0)
23+
faraday (>= 0.9.0, < 3.0)
2224
faraday-http-cache (~> 2.0)
23-
git (~> 1.7)
25+
git (~> 1.13)
2426
kramdown (~> 2.3)
2527
kramdown-parser-gfm (~> 1.0)
26-
no_proxy_fix
27-
octokit (~> 5.0)
28+
octokit (>= 4.0)
29+
pstore (~> 0.1)
2830
terminal-table (>= 1, < 4)
29-
danger-android_lint (0.0.11)
31+
danger-android_lint (0.0.12)
3032
danger-plugin-api (~> 1.0)
3133
oga
3234
danger-kotlin_detekt (0.0.3)
3335
danger-plugin-api (~> 1.0)
3436
danger-plugin-api (1.0.0)
3537
danger (> 2.0)
36-
faraday (1.10.2)
37-
faraday-em_http (~> 1.0)
38-
faraday-em_synchrony (~> 1.0)
39-
faraday-excon (~> 1.1)
40-
faraday-httpclient (~> 1.0)
41-
faraday-multipart (~> 1.0)
42-
faraday-net_http (~> 1.0)
43-
faraday-net_http_persistent (~> 1.0)
44-
faraday-patron (~> 1.0)
45-
faraday-rack (~> 1.0)
46-
faraday-retry (~> 1.0)
47-
ruby2_keywords (>= 0.0.4)
48-
faraday-em_http (1.0.0)
49-
faraday-em_synchrony (1.0.0)
50-
faraday-excon (1.1.0)
51-
faraday-http-cache (2.4.1)
38+
faraday (2.12.2)
39+
faraday-net_http (>= 2.0, < 3.5)
40+
json
41+
logger
42+
faraday-http-cache (2.5.1)
5243
faraday (>= 0.8)
53-
faraday-httpclient (1.0.1)
54-
faraday-multipart (1.0.4)
55-
multipart-post (~> 2)
56-
faraday-net_http (1.0.1)
57-
faraday-net_http_persistent (1.2.0)
58-
faraday-patron (1.0.0)
59-
faraday-rack (1.0.0)
60-
faraday-retry (1.0.3)
61-
git (1.13.0)
44+
faraday-net_http (3.4.0)
45+
net-http (>= 0.5.0)
46+
git (1.19.1)
6247
addressable (~> 2.8)
6348
rchardet (~> 1.8)
64-
kramdown (2.4.0)
65-
rexml
49+
json (2.9.1)
50+
kramdown (2.5.1)
51+
rexml (>= 3.3.9)
6652
kramdown-parser-gfm (1.1.0)
6753
kramdown (~> 2.0)
68-
multipart-post (2.2.3)
54+
logger (1.6.4)
6955
nap (1.1.0)
70-
no_proxy_fix (0.1.2)
71-
octokit (5.6.1)
56+
net-http (0.6.0)
57+
uri
58+
octokit (9.2.0)
7259
faraday (>= 1, < 3)
7360
sawyer (~> 0.9)
7461
oga (3.4)
7562
ast
7663
ruby-ll (~> 2.1)
7764
open4 (1.3.4)
78-
public_suffix (5.0.1)
65+
pstore (0.1.4)
66+
public_suffix (6.0.1)
7967
rchardet (1.8.0)
80-
rexml (3.3.9)
81-
ruby-ll (2.1.2)
68+
rexml (3.4.0)
69+
ruby-ll (2.1.3)
8270
ansi
8371
ast
84-
ruby2_keywords (0.0.5)
8572
sawyer (0.9.2)
8673
addressable (>= 2.3.5)
8774
faraday (>= 0.17.3, < 3)
8875
terminal-table (3.0.2)
8976
unicode-display_width (>= 1.1.1, < 3)
90-
unicode-display_width (2.3.0)
77+
unicode-display_width (2.6.0)
78+
uri (1.0.2)
9179

9280
PLATFORMS
9381
ruby
@@ -98,4 +86,4 @@ DEPENDENCIES
9886
danger-kotlin_detekt
9987

10088
BUNDLED WITH
101-
2.3.11
89+
2.6.2

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
## Latest releases 🛠
3939

40-
- [v11.2.3](https://github.com/mikepenz/AboutLibraries/tree/v11.2.3)
4140
- Compile 35 | Gradle 7.0+ | [v11.3.0](https://github.com/mikepenz/AboutLibraries/tree/v11.3.0
41+
- Java 17 | [v11.4.0](https://github.com/mikepenz/AboutLibraries/tree/11.4.0
4242

4343
## Gradle Plugin
4444

@@ -49,7 +49,6 @@ AboutLibraries v10 includes a completely redone plugin, with build cache support
4949
<details open><summary><b>Using the plugins DSL (for single modules)</b></summary>
5050
<p>
5151

52-
5352
```gradle
5453
// Root build.gradle
5554
id 'com.mikepenz.aboutlibraries.plugin' version "${latestAboutLibsRelease}" apply false
@@ -113,7 +112,7 @@ aboutLibraries {
113112
// See https://github.com/mikepenz/AboutLibraries#special-repository-support
114113
fetchRemoteFunding = true
115114
// (Optional) GitHub token to raise API request limit to allow fetching more licenses
116-
gitHubApiToken = getLocalOrGlobalProperty("github.pat")
115+
gitHubApiToken = property("github.pat")
117116
// Full license text for license IDs mentioned here will be included, even if no detected dependency uses them.
118117
additionalLicenses = ["mit", "mpl_2_0"]
119118
// Allows to exclude some fields from the generated meta data field.
Lines changed: 6 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,22 @@
1-
@file:OptIn(ExperimentalWasmDsl::class)
2-
3-
import com.vanniktech.maven.publish.SonatypeHost
4-
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
5-
61
plugins {
7-
kotlin("multiplatform")
8-
alias(libs.plugins.androidLibrary)
9-
alias(libs.plugins.jetbrainsCompose)
10-
alias(libs.plugins.composeCompiler)
11-
alias(libs.plugins.dokka)
12-
alias(libs.plugins.mavenPublish)
2+
id("com.mikepenz.convention.android-library")
3+
id("com.mikepenz.convention.kotlin-multiplatform")
4+
id("com.mikepenz.convention.compose")
5+
id("com.mikepenz.convention.publishing")
136
}
147

158
android {
16-
compileSdk = libs.versions.compileSdk.get().toInt()
179
namespace = "com.mikepenz.aboutlibraries.ui.compose"
1810

19-
defaultConfig {
20-
minSdk = libs.versions.minSdk.get().toInt()
21-
}
22-
23-
buildTypes {
24-
named("release") {
25-
isMinifyEnabled = false
26-
proguardFiles(
27-
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
28-
)
29-
}
30-
}
31-
32-
compileOptions {
33-
sourceCompatibility = JavaVersion.VERSION_11
34-
targetCompatibility = JavaVersion.VERSION_11
35-
}
36-
3711
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
38-
kotlinOptions {
39-
jvmTarget = "11"
40-
41-
if (project.findProperty("composeCompilerReports") == "true") {
42-
freeCompilerArgs += listOf(
43-
"-P",
44-
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.layout.buildDirectory.asFile.get().absolutePath}/compose_compiler"
45-
)
46-
}
47-
if (project.findProperty("composeCompilerMetrics") == "true") {
48-
freeCompilerArgs += listOf(
49-
"-P",
50-
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.layout.buildDirectory.asFile.get().absolutePath}/compose_compiler"
51-
)
52-
}
53-
12+
compilerOptions {
5413
val outputDir = rootDir.resolve("aboutlibraries-core/compose_compiler_config.conf").path
55-
compilerOptions.freeCompilerArgs.addAll(
56-
"-P",
57-
"plugin:androidx.compose.compiler.plugins.kotlin:stabilityConfigurationPath=${outputDir}"
58-
)
14+
freeCompilerArgs.addAll("-P", "plugin:androidx.compose.compiler.plugins.kotlin:stabilityConfigurationPath=${outputDir}")
5915
}
6016
}
61-
62-
buildFeatures {
63-
compose = true
64-
}
65-
66-
lint {
67-
abortOnError = false
68-
}
6917
}
7018

7119
kotlin {
72-
applyDefaultHierarchyTemplate()
73-
74-
jvm()
75-
76-
androidTarget {
77-
publishLibraryVariants("release")
78-
}
79-
80-
js(IR) {
81-
browser()
82-
}
83-
84-
iosX64()
85-
iosArm64()
86-
iosSimulatorArm64()
87-
macosX64()
88-
macosArm64()
89-
wasmJs {
90-
nodejs()
91-
}
92-
9320
sourceSets {
9421
val commonMain by getting {
9522
dependencies {
@@ -108,7 +35,6 @@ dependencies {
10835

10936
debugImplementation(compose.uiTooling)
11037
"androidMainImplementation"(compose.preview)
111-
11238
"androidMainImplementation"(libs.androidx.core.ktx)
11339
}
11440

@@ -117,23 +43,4 @@ configurations.configureEach {
11743
// https://github.com/chrisbanes/tivi/blob/5e7586465337d326a1f1e40e0b412ecd2779bb5c/build.gradle#L72
11844
exclude(group = "androidx.appcompat")
11945
exclude(group = "com.google.android.material", module = "material")
120-
121-
122-
}
123-
124-
tasks.dokkaHtml.configure {
125-
dokkaSourceSets {
126-
configureEach {
127-
noAndroidSdkLink.set(false)
128-
}
129-
}
130-
}
131-
132-
133-
134-
if (project.hasProperty("pushall") || project.hasProperty("library_compose_only")) {
135-
mavenPublishing {
136-
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, true)
137-
signAllPublications()
138-
}
13946
}

0 commit comments

Comments
 (0)