summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-03-06 02:01:37 -0500
committerGravatar bunnei2023-06-03 00:05:34 -0700
commit834d53fbbfcaef45172f6f4dc57c7c41815ba071 (patch)
tree012cfea54244b4e7ce840b99c8a45e20d720f3a2 /src/android
parentandroid: Upgrade java version to 11 (diff)
downloadyuzu-834d53fbbfcaef45172f6f4dc57c7c41815ba071.tar.gz
yuzu-834d53fbbfcaef45172f6f4dc57c7c41815ba071.tar.xz
yuzu-834d53fbbfcaef45172f6f4dc57c7c41815ba071.zip
android: Enable Kotlin support
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/build.gradle10
-rw-r--r--src/android/build.gradle24
-rw-r--r--src/android/gradle.properties8
-rw-r--r--src/android/settings.gradle14
4 files changed, 30 insertions, 26 deletions
diff --git a/src/android/app/build.gradle b/src/android/app/build.gradle
index 2eab98197..e230f2f92 100644
--- a/src/android/app/build.gradle
+++ b/src/android/app/build.gradle
@@ -1,4 +1,7 @@
1apply plugin: 'com.android.application' 1plugins {
2 id 'com.android.application'
3 id 'org.jetbrains.kotlin.android'
4}
2 5
3/** 6/**
4 * Use the number of seconds/10 since Jan 1 2016 as the versionCode. 7 * Use the number of seconds/10 since Jan 1 2016 as the versionCode.
@@ -20,6 +23,10 @@ android {
20 targetCompatibility JavaVersion.VERSION_11 23 targetCompatibility JavaVersion.VERSION_11
21 } 24 }
22 25
26 kotlinOptions {
27 jvmTarget = '11'
28 }
29
23 lint { 30 lint {
24 // This is important as it will run lint but not abort on error 31 // This is important as it will run lint but not abort on error
25 // Lint has some overly obnoxious "errors" that should really be warnings 32 // Lint has some overly obnoxious "errors" that should really be warnings
@@ -115,6 +122,7 @@ android {
115} 122}
116 123
117dependencies { 124dependencies {
125 implementation 'androidx.core:core-ktx:1.9.0'
118 implementation 'androidx.appcompat:appcompat:1.6.1' 126 implementation 'androidx.appcompat:appcompat:1.6.1'
119 implementation 'androidx.exifinterface:exifinterface:1.3.6' 127 implementation 'androidx.exifinterface:exifinterface:1.3.6'
120 implementation 'androidx.cardview:cardview:1.0.0' 128 implementation 'androidx.cardview:cardview:1.0.0'
diff --git a/src/android/build.gradle b/src/android/build.gradle
index 4734855d0..e2c06c58c 100644
--- a/src/android/build.gradle
+++ b/src/android/build.gradle
@@ -1,24 +1,8 @@
1// Top-level build file where you can add configuration options common to all sub-projects/modules. 1// Top-level build file where you can add configuration options common to all sub-projects/modules.
2 2plugins {
3buildscript { 3 id 'com.android.application' version '7.4.2' apply false
4 4 id 'com.android.library' version '7.4.2' apply false
5 repositories { 5 id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
6 google()
7 jcenter()
8 }
9 dependencies {
10 classpath 'com.android.tools.build:gradle:7.4.2'
11
12 // NOTE: Do not place your application dependencies here; they belong
13 // in the individual module build.gradle files
14 }
15}
16
17allprojects {
18 repositories {
19 google()
20 jcenter()
21 }
22} 6}
23 7
24task clean(type: Delete) { 8task clean(type: Delete) {
diff --git a/src/android/gradle.properties b/src/android/gradle.properties
index 8de505811..885e2af85 100644
--- a/src/android/gradle.properties
+++ b/src/android/gradle.properties
@@ -8,8 +8,6 @@
8# The setting is particularly useful for tweaking memory settings. 8# The setting is particularly useful for tweaking memory settings.
9android.enableJetifier=true 9android.enableJetifier=true
10android.useAndroidX=true 10android.useAndroidX=true
11org.gradle.jvmargs=-Xmx1536m 11org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
12# When configured, Gradle will run in incubating parallel mode. 12# Kotlin code style for this project: "official" or "obsolete":
13# This option should only be used with decoupled projects. More details, visit 13kotlin.code.style=official
14# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
15# org.gradle.parallel=true
diff --git a/src/android/settings.gradle b/src/android/settings.gradle
index e7b4def49..1e7b2cc14 100644
--- a/src/android/settings.gradle
+++ b/src/android/settings.gradle
@@ -1 +1,15 @@
1pluginManagement {
2 repositories {
3 gradlePluginPortal()
4 google()
5 mavenCentral()
6 }
7}
8dependencyResolutionManagement {
9 repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 repositories {
11 google()
12 mavenCentral()
13 }
14}
1include ':app' 15include ':app'