Skip to content

Commit

Permalink
Release v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Jul 23, 2022
1 parent 73baa37 commit ca338ce
Show file tree
Hide file tree
Showing 18 changed files with 550 additions and 22 deletions.
8 changes: 4 additions & 4 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.2.3
$version_release = 4.3.0

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.2.3'
implementation 'com.github.amirisback:frogo-recycler-view:4.3.0'
}

#### <Option 2> Kotlin DSL Gradle

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

### Step 3. Create xml view
Expand Down Expand Up @@ -484,4 +484,4 @@ Waiting for your contribute
- Please enjoy and don't forget fork and give a star
- Don't Forget Follow My Github Account

![ScreenShoot Apps](docs/image/mad_score.png?raw=true)
![ScreenShoot Apps](docs/image/mad_score.png?raw=true)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.frogobox.coreapi.news.NewsConstant
import com.frogobox.coreapi.news.NewsUrl
import com.frogobox.coreapi.news.model.Article
import com.frogobox.coreapi.news.response.ArticleResponse
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRecyclerNotifyListener
import com.frogobox.recycler.core.IFrogoViewAdapter
import com.frogobox.recycler.ext.injector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.frogobox.recycler.core.*
import com.frogobox.apprecycler.databinding.ActivityBaseBinding
import com.frogobox.apprecycler.model.ExampleModel
import com.frogobox.apprecycler.util.Constant
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog

class KotlinNoAdapterActivity : BaseActivity<ActivityBaseBinding>() {

Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/DependencyGradle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ object DependencyGradle {
const val FROGO_PATH_RECYCLER_VIEW = ":frogorecyclerview"

const val FROGO_UI_VERSION = "1.0.8"
const val FROGO_SDK_VERSION = "2.0.4"
const val FROGO_CONSUME_API_VERSION = "2.3.7"
const val FROGO_SDK_VERSION = "2.0.6"
const val FROGO_CONSUME_API_VERSION = "2.3.8"

const val FROGO_UI = "com.github.frogobox.frogo-ui:frogoui:$FROGO_UI_VERSION"
const val FROGO_SDK_LOG = "com.github.frogobox.frogo-sdk:frogolog:$FROGO_SDK_VERSION"
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/ProjectSetting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ object ProjectSetting {
const val LIBRARY_NAME = "recycler"

const val VERSION_MAJOR = 4
const val VERSION_MINOR = 2
const val VERSION_PATCH = 3
const val VERSION_MINOR = 3
const val VERSION_PATCH = 0

const val PROJECT_MIN_SDK = Version.Gradle.minSdk
const val PROJECT_COMPILE_SDK = Version.Gradle.compileSdk
Expand Down
5 changes: 0 additions & 5 deletions frogorecyclerview/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ dependencies {
api(Androidx.Compose.activity)
api(Androidx.Compose.ui)
api(Androidx.Compose.material)

// library google material
api(Google.material)

// library frogo-log
api(DependencyGradle.FROGO_SDK_LOG)

debugImplementation(Androidx.Compose.uiTooling)
debugImplementation(Androidx.Compose.uiTestManifest)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ 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.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_COMPOSE_TAG

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.frogobox.recycler.core

import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_TAG

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.R
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_TAG

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.frogobox.recycler.core

import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.R
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_TAG

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.frogobox.recycler.core

import androidx.recyclerview.widget.RecyclerView
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoLayoutManager.dividerItemVertical
import com.frogobox.recycler.core.FrogoLayoutManager.gridLayout
import com.frogobox.recycler.core.FrogoLayoutManager.linearLayoutHorizontal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.frogobox.recycler.core
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_TAG

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.frogobox.recycler.core

import android.view.View
import com.frogobox.log.FLog
import com.frogobox.recycler.util.FLog
import com.frogobox.recycler.core.FrogoRvConstant.FROGO_RV_TAG

/*
Expand Down
161 changes: 161 additions & 0 deletions frogorecyclerview/src/main/java/com/frogobox/recycler/util/FLog.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
package com.frogobox.recycler.util

import android.content.Context
import android.util.Log
import android.widget.Toast
import com.frogobox.recycler.util.LogConstant.SIMPLE_MESSSAGE

/*
* Created by Faisal Amir on 14/02/2021
* LogCat Source Code
* -----------------------------------------
* Name : Muhammad Faisal Amir
* E-mail : [email protected]
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2021 FrogoBox Inc.
* All rights reserved
*
*/
object FLog : IFLog {

// Tag for get class name this function
private fun tag(): String {
return this.javaClass.simpleName
}

// Function Log Simple Debug without message params
override fun d() {
Log.d(tag(), SIMPLE_MESSSAGE)
}

// Function Log Debug
override fun d(msg: String?) {
Log.d(tag(), "$msg")
}

// Function Log Simple Verbose without message params
override fun v() {
Log.v(tag(), SIMPLE_MESSSAGE)
}

// Function Log Verbose
override fun v(msg: String?) {
Log.v(tag(), "$msg")
}

// Function Log Simple Info without message params
override fun i() {
Log.i(tag(), SIMPLE_MESSSAGE)
}

// Function Log Info
override fun i(msg: String?) {
Log.i(tag(), "$msg")
}

// Function Log Simple Warn without message params
override fun w() {
Log.w(tag(), SIMPLE_MESSSAGE)
}

// Function Log Warn
override fun w(msg: String?) {
Log.w(tag(), "$msg")
}

// Function Log Warn
override fun w(e: Throwable?) {
Log.w(tag(), "${e?.localizedMessage}")
}

// Function Log Warn
override fun w(e: Exception?) {
Log.w(tag(), "${e?.localizedMessage}")
}

// Function Log Simple Error without message params
override fun e() {
Log.e(tag(), SIMPLE_MESSSAGE)
}

// Function Log Error
override fun e(msg: String?) {
Log.e(tag(), "$msg")
}

// ---------------------------------------------------------------------------------------------

// Function Log Simple Debug without message params
override fun d(context: Context) {
Log.d(tag(), SIMPLE_MESSSAGE)
Toast.makeText(context, SIMPLE_MESSSAGE, Toast.LENGTH_LONG).show()
}

// Function Log Debug
override fun d(msg: String?, context: Context) {
Log.d(tag(), "$msg")
Toast.makeText(context, "$msg", Toast.LENGTH_LONG).show()
}

// Function Log Simple Verbose without message params
override fun v(context: Context) {
Log.v(tag(), SIMPLE_MESSSAGE)
Toast.makeText(context, SIMPLE_MESSSAGE, Toast.LENGTH_LONG).show()
}

// Function Log Verbose
override fun v(msg: String?, context: Context) {
Log.v(tag(), "$msg")
Toast.makeText(context, "$msg", Toast.LENGTH_LONG).show()
}

// Function Log Simple Info without message params
override fun i(context: Context) {
Log.i(tag(), SIMPLE_MESSSAGE)
Toast.makeText(context, SIMPLE_MESSSAGE, Toast.LENGTH_LONG).show()
}

// Function Log Info
override fun i(msg: String?, context: Context) {
Log.i(tag(), "$msg")
Toast.makeText(context, "$msg", Toast.LENGTH_LONG).show()
}

// Function Log Simple Warn without message params
override fun w(context: Context) {
Log.w(tag(), SIMPLE_MESSSAGE)
Toast.makeText(context, SIMPLE_MESSSAGE, Toast.LENGTH_LONG).show()
}

// Function Log Warn
override fun w(msg: String?, context: Context) {
Log.w(tag(), "$msg")
Toast.makeText(context, "$msg", Toast.LENGTH_LONG).show()
}

// Function Log Warn
override fun w(e: Exception?, context: Context) {
Log.w(tag(), "${e?.localizedMessage}")
Toast.makeText(context, "${e?.localizedMessage}", Toast.LENGTH_LONG).show()
}

// Function Log Simple Error without message params
override fun e(context: Context) {
Log.e(tag(), SIMPLE_MESSSAGE)
Toast.makeText(context, SIMPLE_MESSSAGE, Toast.LENGTH_LONG).show()
}

// Function Log Warn
override fun w(e: Throwable?, context: Context) {
Log.w(tag(), "${e?.localizedMessage}")
Toast.makeText(context, "${e?.localizedMessage}", Toast.LENGTH_LONG).show()
}

// Function Log Error
override fun e(msg: String?, context: Context) {
Log.e(tag(), "$msg")
Toast.makeText(context, "$msg", Toast.LENGTH_LONG).show()
}

}
Loading

0 comments on commit ca338ce

Please sign in to comment.