Add support for Android studio 4.1.3

Compiles and deploys an apk
This commit is contained in:
Hilledkinged 2021-04-20 22:17:36 +03:00
parent c2a0fd43cd
commit 87f72caa68
4 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION

View File

@ -7,6 +7,7 @@ import android.content.*
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.os.Bundle
import android.os.Handler
import android.os.IBinder
import android.preference.PreferenceManager
import android.support.v4.app.ActivityCompat

View File

@ -21,10 +21,11 @@ buildscript {
return ""
}
ext.kotlin_version = '1.3.50'
ext.android = [
ANDROID_SUPPORT_VERSION: '27.0.2',
KOTLIN_VERSION : '1.2.51',
KOTLIN_VERSION : '1.3.50',
MIN_SDK_VERSION : 21,
@ -42,7 +43,7 @@ buildscript {
"appcompat-v7" : "com.android.support:appcompat-v7:${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}",
"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}",
"junit" : "junit:junit:${ext.android.JUNIT_VERSION}"
]
@ -54,7 +55,8 @@ buildscript {
google()
}
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 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
@ -71,6 +73,7 @@ allprojects {
maven { url 'https://dl.google.com/dl/android/maven2/' }
mavenCentral()
maven { url "https://jitpack.io" }
google()
}
}

View File

@ -1,6 +1,6 @@
#Thu Nov 08 23:25:07 CST 2018
#Tue Apr 20 22:03:06 EEST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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