Skip to content

Commit e13337f

Browse files
committed
Library updates.
1 parent 2820a8b commit e13337f

5 files changed

Lines changed: 23 additions & 21 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ apply plugin: 'kotlinx-serialization'
1111

1212
android {
1313
compileSdkVersion 29
14-
buildToolsVersion "29.0.2"
14+
buildToolsVersion "29.0.3"
1515
defaultConfig {
1616
applicationId "com.dev.ccodetest"
1717
minSdkVersion 23

app/src/main/java/com/dev/ccodetest/platform/BaseFragment.kt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import android.widget.ImageView
1212
import android.widget.Toast
1313
import androidx.appcompat.app.AlertDialog
1414
import androidx.fragment.app.Fragment
15+
import com.bumptech.glide.Glide
1516
import com.dev.ccodetest.contracts.AlertCallBack
1617
import com.dev.ccodetest.contracts.AppLogger
17-
import com.bumptech.glide.Glide
1818
import com.google.android.material.dialog.MaterialAlertDialogBuilder
1919

2020
/**
@@ -37,12 +37,14 @@ abstract class BaseFragment: Fragment(), AppLogger, AlertCallBack {
3737
positiveListener: DialogInterface.OnClickListener,
3838
negativeListener: DialogInterface.OnClickListener
3939
) {
40-
MaterialAlertDialogBuilder(activity)
41-
.setMessage(message)
42-
.setPositiveButton(positiveBtnText, positiveListener)
43-
.setNegativeButton(negativeBtnText, negativeListener)
44-
.setCancelable(false)
45-
.show()
40+
activity?.let {
41+
MaterialAlertDialogBuilder(it)
42+
.setMessage(message)
43+
.setPositiveButton(positiveBtnText, positiveListener)
44+
.setNegativeButton(negativeBtnText, negativeListener)
45+
.setCancelable(false)
46+
.show()
47+
}
4648
}
4749

4850
fun showToast(msg: String) {

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
buildscript {
44
ext {
5-
kotlin_version = '1.3.50'
6-
gradle_version = '3.5.1'
7-
app_compat = '1.1.0'
5+
kotlin_version = '1.4.10'
6+
gradle_version = '4.0.1'
7+
app_compat = '1.2.0'
88
legacy_support = '1.0.0'
99
koin_version = '2.0.1'
10-
material_design = '1.2.0-alpha04'
10+
material_design = '1.3.0-alpha03'
1111
retrofit_version = '2.6.0'
1212
jackson_fasterxml = '2.9.7'
13-
core_ktx = '1.2.0'
14-
constraint_lyt = '1.1.3'
13+
core_ktx = '1.3.2'
14+
constraint_lyt = '2.0.1'
1515
lifecycle_extension = '2.2.0'
1616
couroutines_version = '1.3.0-M2'
1717
http_logging = '4.1.0'
@@ -23,12 +23,12 @@ buildscript {
2323
recycler_view_version = '1.1.0'
2424

2525
//testing libraries
26-
junit_x_ext = '1.1.1'
27-
testx_rules = '1.3.0-alpha02'
26+
junit_x_ext = '1.1.2'
27+
testx_rules = '1.3.0'
2828
android_arch_core_testing = '1.1.1'
2929
retrofit_mock = '2.3.0'
3030
mockk_version = '1.9.3'
31-
espresso_contrib = '3.2.0'
31+
espresso_contrib = '3.3.0'
3232
}
3333
repositories {
3434
google()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Nov 19 17:03:56 IST 2019
1+
#Sun Oct 04 10:28:58 IST 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

local.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Location of the SDK. This is only used by Gradle.
55
# For customization when using a Version Control System, please read the
66
# header note.
7-
#Fri Dec 20 11:05:29 IST 2019
8-
sdk.dir=D\:\\AndroidSofts\\Sdk
7+
#Mon May 25 20:57:22 IST 2020
8+
sdk.dir=/Users/hari/Library/Android/sdk

0 commit comments

Comments
 (0)