Skip to content

Commit

Permalink
Library updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeharikv112 committed Oct 4, 2020
1 parent 2820a8b commit e13337f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'kotlinx-serialization'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.dev.ccodetest"
minSdkVersion 23
Expand Down
16 changes: 9 additions & 7 deletions app/src/main/java/com/dev/ccodetest/platform/BaseFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import android.widget.ImageView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.Fragment
import com.bumptech.glide.Glide
import com.dev.ccodetest.contracts.AlertCallBack
import com.dev.ccodetest.contracts.AppLogger
import com.bumptech.glide.Glide
import com.google.android.material.dialog.MaterialAlertDialogBuilder

/**
Expand All @@ -37,12 +37,14 @@ abstract class BaseFragment: Fragment(), AppLogger, AlertCallBack {
positiveListener: DialogInterface.OnClickListener,
negativeListener: DialogInterface.OnClickListener
) {
MaterialAlertDialogBuilder(activity)
.setMessage(message)
.setPositiveButton(positiveBtnText, positiveListener)
.setNegativeButton(negativeBtnText, negativeListener)
.setCancelable(false)
.show()
activity?.let {
MaterialAlertDialogBuilder(it)
.setMessage(message)
.setPositiveButton(positiveBtnText, positiveListener)
.setNegativeButton(negativeBtnText, negativeListener)
.setCancelable(false)
.show()
}
}

fun showToast(msg: String) {
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

buildscript {
ext {
kotlin_version = '1.3.50'
gradle_version = '3.5.1'
app_compat = '1.1.0'
kotlin_version = '1.4.10'
gradle_version = '4.0.1'
app_compat = '1.2.0'
legacy_support = '1.0.0'
koin_version = '2.0.1'
material_design = '1.2.0-alpha04'
material_design = '1.3.0-alpha03'
retrofit_version = '2.6.0'
jackson_fasterxml = '2.9.7'
core_ktx = '1.2.0'
constraint_lyt = '1.1.3'
core_ktx = '1.3.2'
constraint_lyt = '2.0.1'
lifecycle_extension = '2.2.0'
couroutines_version = '1.3.0-M2'
http_logging = '4.1.0'
Expand All @@ -23,12 +23,12 @@ buildscript {
recycler_view_version = '1.1.0'

//testing libraries
junit_x_ext = '1.1.1'
testx_rules = '1.3.0-alpha02'
junit_x_ext = '1.1.2'
testx_rules = '1.3.0'
android_arch_core_testing = '1.1.1'
retrofit_mock = '2.3.0'
mockk_version = '1.9.3'
espresso_contrib = '3.2.0'
espresso_contrib = '3.3.0'
}
repositories {
google()
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Nov 19 17:03:56 IST 2019
#Sun Oct 04 10:28:58 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\:https://services.gradle.org/distributions/gradle-6.1.1-all.zip
4 changes: 2 additions & 2 deletions local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Fri Dec 20 11:05:29 IST 2019
sdk.dir=D\:\\AndroidSofts\\Sdk
#Mon May 25 20:57:22 IST 2020
sdk.dir=/Users/hari/Library/Android/sdk

0 comments on commit e13337f

Please sign in to comment.