Skip to content

Commit

Permalink
Release v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Aug 14, 2022
1 parent ca338ce commit ceb6387
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 62 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
## Version Release
This Is Latest Release

$version_release = 4.3.0
$version_release = 4.3.1

What's New??

Expand Down Expand Up @@ -87,14 +87,14 @@ allprojects {

dependencies {
// library frogo-recycler-view
implementation 'com.github.amirisback:frogo-recycler-view:4.3.0'
implementation 'com.github.amirisback:frogo-recycler-view:4.3.1'
}

#### <Option 2> Kotlin DSL Gradle

dependencies {
// library frogo-recycler-view
implementation("com.github.amirisback:frogo-recycler-view:4.3.0")
implementation("com.github.amirisback:frogo-recycler-view:4.3.1")
}

### Step 3. Create xml view
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "7.2.1" apply false
id("com.android.library") version "7.2.1" apply false
id("com.android.application") version "7.2.2" apply false
id("com.android.library") version "7.2.2" apply false
id("org.jetbrains.kotlin.android") version DependencyGradle.KOTLIN_VERSION apply false
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ repositories {
dependencies{

// library frogo-build-src
implementation("com.github.frogobox:open-build-src:2.0.1")
implementation("com.github.frogobox:open-build-src:2.0.4")

}
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/DependencyGradle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ object DependencyGradle {

// dependencies version
const val KOTLIN_VERSION = Version.JetBrains.kotlin
const val COMPOSE_VERSION = Version.Androidx.compose
const val COMPOSE_VERSION = Version.Androidx.composeCompiler

const val FROGO_PATH_RECYCLER_VIEW = ":frogorecyclerview"

const val FROGO_UI_VERSION = "1.0.8"
const val FROGO_SDK_VERSION = "2.0.6"
const val FROGO_SDK_VERSION = "2.0.8"
const val FROGO_CONSUME_API_VERSION = "2.3.8"

const val FROGO_UI = "com.github.frogobox.frogo-ui:frogoui:$FROGO_UI_VERSION"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.frogobox.recycler.compose

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.gestures.FlingBehavior
import androidx.compose.foundation.gestures.ScrollableDefaults
import androidx.compose.foundation.layout.Arrangement
Expand All @@ -9,10 +8,9 @@ import androidx.compose.foundation.lazy.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_COMPOSE_TAG
import com.frogobox.recycler.util.FLog

/*
* Created by faisalamir on 21/08/21
Expand Down Expand Up @@ -90,54 +88,54 @@ fun <T> FrogoLazyRow(
}
}

@ExperimentalFoundationApi
@Composable
fun <T> FrogoLazyFixedGrid(
data: List<T>,
spanCount: Int,
modifier: Modifier = Modifier,
state: LazyListState = rememberLazyListState(),
contentPadding: PaddingValues = PaddingValues(0.dp),
content: @Composable() LazyGridScope.(data: T) -> Unit
) {
FLog.d("$FROGO_RV_COMPOSE_TAG - FrogoLazyFixedGrid")
FLog.d("$FROGO_RV_COMPOSE_TAG - sum data : ${data.size}")
LazyVerticalGrid(
modifier = modifier,
contentPadding = contentPadding,
state = state,
cells = GridCells.Fixed(spanCount),
) {
items(data.size) { index ->
FLog.d("$FROGO_RV_COMPOSE_TAG - list data : ${data[index]}")
this@LazyVerticalGrid.content(data[index])
}
}
}

@ExperimentalFoundationApi
@Composable
fun <T> FrogoLazyAdaptiveGrid(
data: List<T>,
minSize: Dp,
modifier: Modifier = Modifier,
state: LazyListState = rememberLazyListState(),
contentPadding: PaddingValues = PaddingValues(0.dp),
content: @Composable() LazyGridScope.(data: T) -> Unit
) {
FLog.d("$FROGO_RV_COMPOSE_TAG - FrogoLazyAdaptiveGrid")
FLog.d("$FROGO_RV_COMPOSE_TAG - sum data : ${data.size}")

LazyVerticalGrid(
modifier = modifier,
contentPadding = contentPadding,
state = state,
cells = GridCells.Adaptive(minSize),
) {
items(data.size) { index ->
FLog.d("$FROGO_RV_COMPOSE_TAG - list data : ${data[index]}")
this@LazyVerticalGrid.content(data[index])
}
}

}
//@ExperimentalFoundationApi
//@Composable
//fun <T> FrogoLazyFixedGrid(
// data: List<T>,
// spanCount: Int,
// modifier: Modifier = Modifier,
// state: LazyListState = rememberLazyListState(),
// contentPadding: PaddingValues = PaddingValues(0.dp),
// content: @Composable() LazyGridScope.(data: T) -> Unit
//) {
// FLog.d("$FROGO_RV_COMPOSE_TAG - FrogoLazyFixedGrid")
// FLog.d("$FROGO_RV_COMPOSE_TAG - sum data : ${data.size}")
// LazyVerticalGrid(
// modifier = modifier,
// contentPadding = contentPadding,
// state = state,
// cells = GridCells.Fixed(spanCount),
// ) {
// items(data.size) { index ->
// FLog.d("$FROGO_RV_COMPOSE_TAG - list data : ${data[index]}")
// [email protected](data[index])
// }
// }
//}
//
//@ExperimentalFoundationApi
//@Composable
//fun <T> FrogoLazyAdaptiveGrid(
// data: List<T>,
// minSize: Dp,
// modifier: Modifier = Modifier,
// state: LazyListState = rememberLazyListState(),
// contentPadding: PaddingValues = PaddingValues(0.dp),
// content: @Composable() LazyGridScope.(data: T) -> Unit
//) {
// FLog.d("$FROGO_RV_COMPOSE_TAG - FrogoLazyAdaptiveGrid")
// FLog.d("$FROGO_RV_COMPOSE_TAG - sum data : ${data.size}")
//
// LazyVerticalGrid(
// modifier = modifier,
// contentPadding = contentPadding,
// state = state,
// cells = GridCells.Adaptive(minSize),
// ) {
// items(data.size) { index ->
// FLog.d("$FROGO_RV_COMPOSE_TAG - list data : ${data[index]}")
// [email protected](data[index])
// }
// }
//
//}

0 comments on commit ceb6387

Please sign in to comment.