Skip to content

Commit

Permalink
Merge pull request #3 from LDRAlighieri/update/dependencies
Browse files Browse the repository at this point in the history
Update kotlin, compose and other library dependencies
  • Loading branch information
LDRAlighieri committed May 13, 2023
2 parents 88f9ae0 + 3ac36b5 commit cabc4ba
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v2.4.2

- name: Build the sample app to verify it works
run: ./gradlew sample:assemble
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v2.4.2

- name: Build the sample app to verify it works
run: ./gradlew sample:assemble
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# ChangeLog


## Version 0.1.2

* Fix: Paging FiberglassLazyColumn after paging-compose v1.0.0-alpha19.
* Update: Kotlin to v1.8.21.
* Update: Compose BOM to v2023.05.01.
* Update: Minor update of other libraries.


## Version 0.1.1

* Fix: Row and Column key
* Fix: Row and Column key.
* Update: Row and Column are no longer scrollable by default. You need to explicitly set the scroll state.


Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[![Maven Central](https://img.shields.io/maven-central/v/ru.ldralighieri.composites/composites-fiberglass.svg)](https://search.maven.org/search?q=g:ru.ldralighieri.composites)
[![Kotlin Version](https://img.shields.io/badge/Kotlin-v1.8.0-blue.svg?logo=kotlin)](https://kotlinlang.org)
[![Compose BOM Version](https://img.shields.io/badge/Compose-v2023.01.00-blue.svg?logo=jetpackcompose)](https://developer.android.com/jetpack/compose)
[![Kotlin Version](https://img.shields.io/badge/Kotlin-v1.8.21-blue.svg?logo=kotlin)](https://kotlinlang.org)
[![Compose BOM Version](https://img.shields.io/badge/Compose-v2023.05.01-blue.svg?logo=jetpackcompose)](https://developer.android.com/jetpack/compose)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)

[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg)](https://android-arsenal.com/api?level=21)
![Publish status](https://github.com/LDRAlighieri/Composites/actions/workflows/publish.yml/badge.svg)
[![Publish status](https://github.com/LDRAlighieri/Composites/actions/workflows/publish.yml/badge.svg)](https://github.com/LDRAlighieri/Composites/actions)

<p align="center">
<img src="https://user-images.githubusercontent.com/48987500/218184621-5bab06f6-36a6-4a22-b25f-e3f41d7bd441.png" />
</p>

# Composites (work in progress 🚧🔧️👷⛏🚧)

✨ Composites are a group of tools and handy libraries that make it easier to use [Jetpack Compose][compose].
✨ Composites are a collection of tools and handy libraries that make it easier to use [Jetpack Compose][compose].
Please consider giving this repository a star ⭐ if you like the project.


Expand All @@ -26,7 +26,7 @@ Add one or more dependencies:

```kotlin
dependencies {
implementation("ru.ldralighieri.composites:composites-fiberglass:0.1.1")
implementation("ru.ldralighieri.composites:composites-fiberglass:0.1.2")
}
```

Expand All @@ -39,7 +39,7 @@ repositories {
```

Snapshot build:
[![Nexus](https://img.shields.io/nexus/s/ru.ldralighieri.composites/composites-fiberglass?server=https://oss.sonatype.org)](https://oss.sonatype.org/content/repositories/snapshots/ru/ldralighieri/composites/)
[![Maven Central](https://img.shields.io/nexus/s/ru.ldralighieri.composites/composites-fiberglass?server=https://oss.sonatype.org)](https://oss.sonatype.org/content/repositories/snapshots/ru/ldralighieri/composites/)
```kotlin
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots/")
Expand Down
Binary file removed build-logic/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions build-logic/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plugins {

// Binary compatibility validator
apiValidation {
ignoredProjects.addAll(listOf("sample"))
ignoredProjects.add("sample")
}

// Dependency updates
Expand Down
2 changes: 1 addition & 1 deletion composites-fiberglass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add dependency:

```kotlin
dependencies {
implementation("ru.ldralighieri.composites:composites-fiberglass:0.1.1")
implementation("ru.ldralighieri.composites:composites-fiberglass:0.1.2")
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.items
import androidx.paging.compose.itemContentType
import androidx.paging.compose.itemKey
import ru.ldralighieri.composites.fiberglass.model.FiberglassItem
import ru.ldralighieri.composites.fiberglass.model.FiberglassLazyItemSlots
import ru.ldralighieri.composites.fiberglass.model.FiberglassStickyHeaderItem
Expand Down Expand Up @@ -125,11 +126,12 @@ fun FiberglassLazyColumn(
userScrollEnabled = userScrollEnabled
) {
items(
items = items,
key = { it.id }
) { item ->
item?.let {
itemSlots[it::class]?.let { slot -> slot(item) }
count = items.itemCount,
key = items.itemKey { it.id },
contentType = items.itemContentType { it::class.simpleName }
) { index ->
items[index]?.let {
itemSlots[it::class]?.let { slot -> slot(it) }
}
}
}
Expand Down
7 changes: 2 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ systemProp.org.gradle.internal.http.socketTimeout=120000

# Maven
GROUP=ru.ldralighieri.composites
VERSION_NAME=0.2.0-SNAPSHOT
VERSION_NAME=0.1.2

POM_DESCRIPTION=Composites are a group of tools and handy libraries that make it easier to use Jetpack Compose.

Expand All @@ -31,13 +31,10 @@ SONATYPE_AUTOMATIC_RELEASE=true

# Android
android.useAndroidX=true
buildTools=33.0.1
buildTools=33.0.2
compileSdk=33
targetSdk=33
minSdk=21

# Build features
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.shaders=false
28 changes: 14 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[versions]
# Plugins
agp = "7.4.1"
dokka = "1.7.20"
spotless = "6.15.0"
mavenPublish = "0.24.0"
bcv = "0.12.1"
gver = "0.45.0"
agp = "8.0.1"
dokka = "1.8.10"
spotless = "6.18.0"
mavenPublish = "0.25.2"
bcv = "0.13.1"
gver = "0.46.0"

# Kotlin
kotlin = "1.8.10"
kotlin = "1.8.21"

# Androidx
androidxCoreSplashscreen = "1.0.0"
androidxActivity = "1.6.1"
androidxPagingCompose = "1.0.0-alpha17"
androidxCoreSplashscreen = "1.0.1"
androidxActivity = "1.7.1"
androidxPagingCompose = "1.0.0-alpha19"
# Compose
androidxComposeCompiler = "1.4.2"
androidxComposeBom = "2023.01.00"
androidxComposeCompiler = "1.4.7"
androidxComposeBom = "2023.05.01"
# Accompanist
accompanist = "0.28.0"
accompanist = "0.30.1"

# Google
googleMaterial="1.8.0"
googleMaterial="1.9.0"

# Lint
ktlint = "0.46.1"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.TopAppBarDefaults.topAppBarColors
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -55,9 +55,10 @@ fun CompositesScreen(onFiberglassClick: () -> Unit) {
style = AppTheme.typography.headlineSmall
)
},
colors = TopAppBarDefaults.smallTopAppBarColors(
colors = topAppBarColors(
containerColor = AppTheme.colors.surfaceColorAtElevation(3.dp),
titleContentColor = AppTheme.colors.onSurface
titleContentColor = AppTheme.colors.onSurface,
actionIconContentColor = AppTheme.colors.onSurfaceVariant
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import androidx.compose.foundation.LocalOverscrollConfiguration
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.consumedWindowInsets
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
Expand Down Expand Up @@ -50,7 +50,7 @@ fun CompositesApp(appState: CompositesAppState) {
navigate = appState::navigate,
modifier = Modifier
.padding(innerPadding)
.consumedWindowInsets(innerPadding)
.consumeWindowInsets(innerPadding)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.TopAppBarDefaults.topAppBarColors
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
Expand Down Expand Up @@ -65,10 +65,11 @@ fun FiberglassScreen(onBackClick: () -> Unit) {
Icon(imageVector = Icons.Default.ArrowBack, contentDescription = "")
}
},
colors = TopAppBarDefaults.smallTopAppBarColors(
colors = topAppBarColors(
containerColor = AppTheme.colors.surfaceColorAtElevation(3.dp),
navigationIconContentColor = AppTheme.colors.onSurface,
titleContentColor = AppTheme.colors.onSurface
titleContentColor = AppTheme.colors.onSurface,
actionIconContentColor = AppTheme.colors.onSurfaceVariant
)
)

Expand Down

0 comments on commit cabc4ba

Please sign in to comment.