mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-21 14:10:41 +01:00
updating gradle, kotlin sdk to 29
This commit is contained in:
parent
150a791e64
commit
ffdf431c3b
@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 28
|
compileSdkVersion 29
|
||||||
buildToolsVersion "28.0.3"
|
buildToolsVersion "29.0.3"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.simplemobiletools.applauncher"
|
applicationId "com.simplemobiletools.applauncher"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 28
|
targetSdkVersion 29
|
||||||
versionCode 21
|
versionCode 21
|
||||||
versionName "5.0.5"
|
versionName "5.0.5"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
@ -57,7 +57,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.18.7'
|
implementation 'com.simplemobiletools:commons:5.22.10'
|
||||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
}
|
}
|
||||||
|
@ -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 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]
|
val launcher = launchers[position]
|
||||||
holder.bindView(launcher, true, true) { itemView, adapterPosition ->
|
holder.bindView(launcher, true, true) { itemView, adapterPosition ->
|
||||||
setupView(itemView, launcher, selectedKeys.contains(launcher.packageName.hashCode()))
|
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 getItemKeyPosition(key: Int) = launchers.indexOfFirst { it.packageName.hashCode() == key }
|
||||||
|
|
||||||
|
override fun onActionModeCreated() {}
|
||||||
|
|
||||||
|
override fun onActionModeDestroyed() {}
|
||||||
|
|
||||||
private fun showEditDialog() {
|
private fun showEditDialog() {
|
||||||
EditDialog(activity, getItemWithKey(selectedKeys.first())!!) {
|
EditDialog(activity, getItemWithKey(selectedKeys.first())!!) {
|
||||||
finishActMode()
|
finishActMode()
|
||||||
@ -113,7 +117,6 @@ class LaunchersAdapter(activity: SimpleActivity, val launchers: MutableList<AppL
|
|||||||
|
|
||||||
private fun setupView(view: View, launcher: AppLauncher, isSelected: Boolean) {
|
private fun setupView(view: View, launcher: AppLauncher, isSelected: Boolean) {
|
||||||
view.apply {
|
view.apply {
|
||||||
// setup check icon
|
|
||||||
launcher_check?.beInvisibleIf(!isSelected)
|
launcher_check?.beInvisibleIf(!isSelected)
|
||||||
launcher_label.text = launcher.name
|
launcher_label.text = launcher.name
|
||||||
launcher_label.setTextColor(textColor)
|
launcher_label.setTextColor(textColor)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.3.50'
|
ext.kotlin_version = '1.3.61'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
@ -9,7 +9,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
x
Reference in New Issue
Block a user