Skip to content

Commit

Permalink
Merge pull request #787 from mikepenz/develop
Browse files Browse the repository at this point in the history
dev -> main
  • Loading branch information
mikepenz authored Aug 5, 2022
2 parents cf98629 + 802f466 commit 1179561
Show file tree
Hide file tree
Showing 21 changed files with 393 additions and 804 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '15'
Expand All @@ -31,7 +31,7 @@ jobs:
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Checkout Gradle Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand All @@ -42,7 +42,7 @@ jobs:
gradle-${{ runner.os }}-
- name: Cache konan
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand Down Expand Up @@ -99,11 +99,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 100

- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '15'
Expand All @@ -115,7 +115,7 @@ jobs:
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Checkout Gradle Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
find . -name "*-release.aab" -type f -exec cp {} "artifacts" \;
- name: Archive Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: "App-Artifacts"
path: artifacts/*
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

## Latest releases 🛠

- (Next Gen) Kotlin && Multiplatform && Plugin | [v10.3.1](https://github.com/mikepenz/AboutLibraries/tree/v10.3.1)
- (Next Gen) Kotlin && Multiplatform && Plugin | [v10.4.0](https://github.com/mikepenz/AboutLibraries/tree/v10.4.0)
- Kotlin && Gradle Plugin | [v8.9.4](https://github.com/mikepenz/AboutLibraries/tree/v8.9.4)

## Gradle Plugin
Expand Down Expand Up @@ -87,6 +87,8 @@ aboutLibraries {
additionalLicenses = ["mit", "mpl_2_0"]
// Allows to exclude some fields from the generated meta data field.
excludeFields = ["developers", "funding"]
// Enable inclusion of `platform` dependencies in the library report
includePlatform = true
// 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`
Expand Down Expand Up @@ -230,7 +232,7 @@ implementation "com.mikepenz:aboutlibraries:${latestAboutLibsRelease}"

Use this library in a few different ways. Create a custom activity, including a custom style or just use its generated information. Or simply use the built-in Activity or Fragment and just pass the libs to include.

> Note: The new version requires the new Material3 theme as base.
> **Note**: The new version requires the new Material3 theme as base.
#### Activity

Expand Down Expand Up @@ -310,7 +312,7 @@ After disabling the integration it is possible to manually update the definition
./gradlew app:exportLibraryDefinitions -PexportPath=src/main/res/raw/ -PexportVariant=release
```
This generated file can be either included in your SCM, and every build will use this exact verified and approved state.
Additionally this helps to ensure no issues occur during the apps delivery phase, as the respective file is already generated and included.
Additionally, this helps to ensure no issues occur during the apps delivery phase, as the respective file is already generated and included.

The library offers complete customisation for this behavior and location or name for the generated files can be adjusted as needed.
A full compose code example providing the `Libs` manually:
Expand All @@ -330,7 +332,9 @@ For other environments or for more advanced usages the plugin offers additional

```bash
# Manually generate the dependency metaData in the provided location. Allows to commit it in SCM
# Exports the metaData in `src/main/resources/` relative to the module root, for the `release` variant
# Exports the metaData in `src/main/resources/` relative to the module root
./gradlew app-desktop:exportLibraryDefinitions -PexportPath=src/main/resources/
# Export only for a specific variant: `release`
./gradlew app-desktop:exportLibraryDefinitions -PexportPath=src/main/resources/ -PexportVariant=release

# Export dependencies as CSV
Expand All @@ -348,9 +352,9 @@ For other environments or for more advanced usages the plugin offers additional
```

# Special repository support
|Host|License|Funding|
|---|---|---|
|[GitHub](https://github.com/)|x|x|
| Host | License | Funding |
|-------------------------------|---------|---------|
| [GitHub](https://github.com/) | x | x |

# Disclaimer

Expand Down
12 changes: 11 additions & 1 deletion aboutlibraries-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}

buildFeatures {
compose = true
}
Expand Down Expand Up @@ -50,7 +59,8 @@ dependencies {
commonMainCompileOnly(compose.ui)
commonMainCompileOnly(compose.foundation)
commonMainCompileOnly(compose.material)
commonMainCompileOnly(compose.uiTooling)
commonMainCompileOnly(compose.preview)
debugCompileOnly(compose.uiTooling)

"androidMainImplementation"(libs.androidx.core.ktx)
}
Expand Down
124 changes: 0 additions & 124 deletions aboutlibraries-core/build.gradle

This file was deleted.

Loading

0 comments on commit 1179561

Please sign in to comment.