Add support for Android studio 4.1.3
Compiles and deploys an apk
This commit is contained in:
parent
c2a0fd43cd
commit
87f72caa68
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
apply plugin: 'kotlin-android-extensions'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION
|
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION
|
||||||
|
@ -7,6 +7,7 @@ import android.content.*
|
|||||||
import android.content.pm.PackageManager
|
import android.content.pm.PackageManager
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.os.Handler
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import android.preference.PreferenceManager
|
import android.preference.PreferenceManager
|
||||||
import android.support.v4.app.ActivityCompat
|
import android.support.v4.app.ActivityCompat
|
||||||
|
@ -21,10 +21,11 @@ buildscript {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ext.kotlin_version = '1.3.50'
|
||||||
ext.android = [
|
ext.android = [
|
||||||
ANDROID_SUPPORT_VERSION: '27.0.2',
|
ANDROID_SUPPORT_VERSION: '27.0.2',
|
||||||
|
|
||||||
KOTLIN_VERSION : '1.2.51',
|
KOTLIN_VERSION : '1.3.50',
|
||||||
|
|
||||||
MIN_SDK_VERSION : 21,
|
MIN_SDK_VERSION : 21,
|
||||||
|
|
||||||
@ -42,7 +43,7 @@ buildscript {
|
|||||||
"appcompat-v7" : "com.android.support:appcompat-v7:${ext.android.ANDROID_SUPPORT_VERSION}",
|
"appcompat-v7" : "com.android.support:appcompat-v7:${ext.android.ANDROID_SUPPORT_VERSION}",
|
||||||
"design" : "com.android.support:design:${ext.android.ANDROID_SUPPORT_VERSION}",
|
"design" : "com.android.support:design:${ext.android.ANDROID_SUPPORT_VERSION}",
|
||||||
"cardview-v7" : "com.android.support:cardview-v7:${ext.android.ANDROID_SUPPORT_VERSION}",
|
"cardview-v7" : "com.android.support:cardview-v7:${ext.android.ANDROID_SUPPORT_VERSION}",
|
||||||
"kotlin-stdlib" : "org.jetbrains.kotlin:kotlin-stdlib-jre7:${ext.android.KOTLIN_VERSION}",
|
"kotlin-stdlib" : "org.jetbrains.kotlin:kotlin-stdlib:${ext.android.KOTLIN_VERSION}",
|
||||||
"kotlin-gradle-plugin": "org.jetbrains.kotlin:kotlin-gradle-plugin:${ext.android.KOTLIN_VERSION}",
|
"kotlin-gradle-plugin": "org.jetbrains.kotlin:kotlin-gradle-plugin:${ext.android.KOTLIN_VERSION}",
|
||||||
"junit" : "junit:junit:${ext.android.JUNIT_VERSION}"
|
"junit" : "junit:junit:${ext.android.JUNIT_VERSION}"
|
||||||
]
|
]
|
||||||
@ -54,7 +55,8 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
classpath 'com.android.tools.build:gradle:3.5.1'
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath rootProject.ext.deps["kotlin-gradle-plugin"]
|
classpath rootProject.ext.deps["kotlin-gradle-plugin"]
|
||||||
|
|
||||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
|
||||||
@ -71,6 +73,7 @@ allprojects {
|
|||||||
maven { url 'https://dl.google.com/dl/android/maven2/' }
|
maven { url 'https://dl.google.com/dl/android/maven2/' }
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
|
google()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
|||||||
#Thu Nov 08 23:25:07 CST 2018
|
#Tue Apr 20 22:03:06 EEST 2021
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user