Skip to content

Commit

Permalink
Merge pull request #901 from mikepenz/develop
Browse files Browse the repository at this point in the history
dev -> main
  • Loading branch information
mikepenz authored Jul 8, 2023
2 parents b060a92 + e995d24 commit 473ff98
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .github/config/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
{
"title": "## 💬 Other",
"labels": [
"other"
"other",
"dependencies"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
uses: mikepenz/release-changelog-builder-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
configuration: ".github/config/configuration.json"
Expand Down
2 changes: 1 addition & 1 deletion 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.8.0](https://github.com/mikepenz/AboutLibraries/tree/v10.8.0)
- (Next Gen) Kotlin && Multiplatform && Plugin | [v10.8.1](https://github.com/mikepenz/AboutLibraries/tree/v10.8.1)
- Kotlin && Gradle Plugin | [v8.9.4](https://github.com/mikepenz/AboutLibraries/tree/v8.9.4)

## Gradle Plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.AlertDialog
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.produceState
Expand All @@ -22,6 +18,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
Expand Down Expand Up @@ -58,6 +55,8 @@ fun LibrariesContainer(
onLibraryClick: ((Library) -> Unit)? = null,
) {
val context = LocalContext.current
val uriHandler = LocalUriHandler.current

val libraries = produceState<Libs?>(null) {
value = withContext(Dispatchers.IO) {
librariesBlock(context)
Expand Down Expand Up @@ -86,6 +85,8 @@ fun LibrariesContainer(
onLibraryClick(library)
} else if (!license?.htmlReadyLicenseContent.isNullOrBlank()) {
openDialog.value = library
} else if (!license?.url.isNullOrBlank()) {
license?.url?.also { uriHandler.openUri(it) }
}
},
)
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GROUP=com.mikepenz

VERSION_NAME=10.8.0
VERSION_CODE=100801
VERSION_NAME=10.8.1
VERSION_CODE=100810
POM_URL=https://github.com/mikepenz/AboutLibraries
POM_SCM_URL=https://github.com/mikepenz/AboutLibraries
POM_SCM_CONNECTION=scm:[email protected]:mikepenz/AboutLibraries.git
Expand Down
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ minSdk = "21"
targetSdk = "33"
# build
gradleBuild = "8.0.2"
buildTools = "33.0.2"
buildTools = "34.0.0"
# kotlin
dokka = "1.8.20"
kotlinCore = { require = "1.8.21" }
kotlinCoroutines = { require = "1.7.1" }
kotlinCore = { require = "1.8.22" }
kotlinCoroutines = { require = "1.7.2" }
kotlinxSerialization = "1.5.1"
# compose
compose = "1.4.3"
composeUi = "1.4.3" # foundation / material
composeCompiler = "1.4.7"
composejb = "1.4.0"
composeCompilerJb = "1.4.5"
composeCompiler = "1.4.8"
composejb = "1.4.1"
composeCompilerJb = "1.4.8"
# androidx
activity = "1.7.2"
cardview = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion plugin-build/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,20 @@ import java.util.*

@CacheableTask
abstract class AboutLibrariesTask : BaseAboutLibrariesTask() {

@OutputDirectory
var resultDirectory: File = project.file("${project.buildDir}/generated/aboutLibraries/res/")

@Internal
private lateinit var combinedLibrariesOutputFile: File

@Input
val strictMode = extension.strictMode

@Input
val outputFileName = extension.outputFileName

fun getCombinedLibrariesOutputFile(): File {
return File(resultDirectory, outputFileName)
}
@OutputDirectory
var resultDirectory: File = project.file("${project.buildDir}/generated/aboutLibraries/res/")

@OutputFile
var combinedLibrariesOutputFile = File(resultDirectory, outputFileName)

@TaskAction
public fun action() {
// ensure directories exist
this.combinedLibrariesOutputFile = getCombinedLibrariesOutputFile()

val result = createLibraryProcessor().gatherDependencies()

// validate found licenses match expectation
Expand Down

0 comments on commit 473ff98

Please sign in to comment.