From 67b98bcdf50448ec97eb3ab39f7c95d287c373ae Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 30 Nov 2017 00:12:40 +0100 Subject: [PATCH] update gradle, kotlin, commons --- app/build.gradle | 21 +++---------------- app/proguard-rules.pro | 17 --------------- app/src/main/AndroidManifest.xml | 3 ++- .../applauncher/activities/MainActivity.kt | 8 +++---- .../applauncher/activities/SplashActivity.kt | 8 +++---- .../applauncher/adapters/RecyclerAdapter.kt | 3 +++ .../adapters/RecyclerDialogAdapter.kt | 3 +++ app/src/main/res/layout/activity_main.xml | 2 +- build.gradle | 9 ++++++-- 9 files changed, 25 insertions(+), 49 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 35dc236..1883c0d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,26 +39,11 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.38.8' - compile 'com.android.support:multidex:1.0.2' - compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' - compile 'com.facebook.stetho:stetho:1.5.0' - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'com.simplemobiletools:commons:3.0.3' + implementation 'com.facebook.stetho:stetho:1.5.0' } -buildscript { - ext.kotlin_version = '1.1.51' - repositories { - mavenCentral() - } - - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" - } -} - -def Properties props = new Properties() +Properties props = new Properties() def propFile = new File('signing.properties') if (propFile.canRead()) { props.load(new FileInputStream(propFile)) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 25ea334..e69de29 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in $ANDROID_HOME/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c0e813d..d1988cc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,7 +2,8 @@ + package="com.simplemobiletools.applauncher" + android:installLocation="auto"> } private val adapterListener = object : MyAdapterListener { + override fun itemLongClicked(position: Int) { + } + override fun toggleItemSelectionAdapter(select: Boolean, position: Int) { toggleItemSelection(select, position) } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 42a6096..8cda3c8 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> -