diff --git a/app/build.gradle b/app/build.gradle index c3c3570..a7d2fbc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,15 +3,16 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 26 - buildToolsVersion "26.0.2" + compileSdkVersion 27 + buildToolsVersion "27.0.1" defaultConfig { applicationId "com.simplemobiletools.thankyou" minSdkVersion 16 - targetSdkVersion 26 + targetSdkVersion 27 versionCode 3 versionName "2.1.0" + setProperty("archivesBaseName", "thank-you") } signingConfigs { @@ -37,23 +38,10 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.36.0' - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + compile 'com.simplemobiletools:commons:2.41.8' } -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/src/main/kotlin/com/simplemobiletools/thankyou/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/extensions/Context.kt index 2a4d993..a8ebe9a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/extensions/Context.kt @@ -3,4 +3,4 @@ package com.simplemobiletools.thankyou.extensions import android.content.Context import com.simplemobiletools.thankyou.helpers.Config -val Context.config: Config get() = Config.newInstance(this) +val Context.config: Config get() = Config.newInstance(applicationContext) diff --git a/app/src/main/res/values/style.xml b/app/src/main/res/values/style.xml index 46e5bce..0be5041 100644 --- a/app/src/main/res/values/style.xml +++ b/app/src/main/res/values/style.xml @@ -1,7 +1,5 @@ - +