updating gradle, kotlin sdk to 29

This commit is contained in:
tibbi 2020-02-14 23:04:12 +01:00
parent 150a791e64
commit ffdf431c3b
3 changed files with 11 additions and 8 deletions

View File

@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.simplemobiletools.applauncher"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 29
versionCode 21
versionName "5.0.5"
multiDexEnabled true
@ -57,7 +57,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.18.7'
implementation 'com.simplemobiletools:commons:5.22.10'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'androidx.multidex:multidex:2.0.1'
}

View File

@ -47,7 +47,7 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList<AppL
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = createViewHolder(R.layout.item_app_launcher, parent)
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val launcher = launchers[position]
holder.bindView(launcher, true, true) { itemView, adapterPosition ->
setupView(itemView, launcher, selectedKeys.contains(launcher.packageName.hashCode()))
@ -67,6 +67,10 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList<AppL
override fun getItemKeyPosition(key: Int) = launchers.indexOfFirst { it.packageName.hashCode() == key }
override fun onActionModeCreated() {}
override fun onActionModeDestroyed() {}
private fun showEditDialog() {
EditDialog(activity, getItemWithKey(selectedKeys.first())!!) {
finishActMode()
@ -113,7 +117,6 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList<AppL
private fun setupView(view: View, launcher: AppLauncher, isSelected: Boolean) {
view.apply {
// setup check icon
launcher_check?.beInvisibleIf(!isSelected)
launcher_label.text = launcher.name
launcher_label.setTextColor(textColor)

View File

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.61'
repositories {
google()
@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong